; LLVM IR from tglane/socketwrapper :: example (async_tcp_example)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.net::tcp_acceptor" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8, [7 x i8] }
%"class.net::detail::base_socket.base" = type <{ ptr, i32, i8 }>
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type { %"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage", i8 }
%"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage" = type { %"class.net::endpoint" }
%"class.net::endpoint" = type <{ i8, [3 x i8], %struct.sockaddr_in, [4 x i8], %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl" }
%"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr, ptr }
%"class.net::tcp_connection" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8, [7 x i8] }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%"class.std::chrono::duration" = type { i64 }
%"class.net::span" = type { ptr, i64 }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.net::tcp_acceptor", align 8
  %7 = alloca %"class.net::endpoint", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.net::tcp_acceptor", align 8
  %12 = alloca %"class.net::endpoint", align 8
  %13 = alloca %"class.std::basic_string_view", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %class.anon, align 8
  %16 = alloca %"class.net::tcp_connection", align 8
  %17 = alloca %"class.net::endpoint", align 8
  %18 = alloca %"class.std::basic_string_view", align 8
  %19 = alloca %"class.std::vector.5", align 8
  %20 = alloca %"class.std::initializer_list", align 8
  %21 = alloca [5 x i8], align 1
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.std::chrono::duration", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::basic_string_view", align 8
  %26 = alloca %"class.net::span", align 8
  %27 = alloca %"class.std::chrono::duration", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.net::span", align 8
  %30 = alloca %"class.std::basic_string_view", align 8
  %31 = alloca %"class.net::tcp_connection", align 8
  %32 = alloca %"class.net::endpoint", align 8
  %33 = alloca %"class.std::basic_string_view", align 8
  %34 = alloca %"class.std::vector.5", align 8
  %35 = alloca %"class.std::initializer_list", align 8
  %36 = alloca [5 x i8], align 1
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca %"class.std::future", align 8
  %39 = alloca %"class.net::span", align 8
  %40 = alloca %"class.std::chrono::duration", align 8
  %41 = alloca i32, align 4
  %42 = alloca %"class.std::basic_string_view", align 8
  %43 = alloca %"class.net::span", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = icmp sle i32 %44, 1
  br i1 %45, label %46, label %47

46:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %256

47:                                               ; preds = %2
  %48 = load ptr, ptr %5, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 1
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = call i32 @strcmp(ptr noundef %50, ptr noundef @.str) #8
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %104

53:                                               ; preds = %47
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 96, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.2) #9
  %55 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 0
  %56 = load i64, ptr %55, align 8
  %57 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %7, i64 %56, ptr %58, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89) %6, ptr noundef nonnull align 8 dereferenceable(58) %7, i64 noundef 5)
          to label %59 unwind label %75

59:                                               ; preds = %53
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %7) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.2) #9
  %60 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 0
  %61 = load i64, ptr %60, align 8
  %62 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %12, i64 %61, ptr %63, i16 noundef zeroext 4556, i8 noundef zeroext 0)
          to label %64 unwind label %79

64:                                               ; preds = %59
  invoke void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89) %11, ptr noundef nonnull align 8 dereferenceable(58) %12, i64 noundef 5)
          to label %65 unwind label %83

65:                                               ; preds = %64
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %12) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #9
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %67 unwind label %88

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  invoke void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 2)
          to label %68 unwind label %92

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %69 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 0
  store ptr %6, ptr %69, align 8, !tbaa !9
  %70 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 1
  store ptr %14, ptr %70, align 8, !tbaa !9
  invoke void @"_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE12async_acceptIZ4mainE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(89) %6, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %71 unwind label %96

71:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %73 unwind label %92

73:                                               ; preds = %71
  invoke void @_ZN3net9async_runEv()
          to label %74 unwind label %92

74:                                               ; preds = %73
  call void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %11) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #9
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %6) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #9
  br label %256

75:                                               ; preds = %53
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %7) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #9
  br label %103

79:                                               ; preds = %59
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %9, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %10, align 4
  br label %87

83:                                               ; preds = %64
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %9, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %12) #9
  br label %87

87:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #9
  br label %102

88:                                               ; preds = %65
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  br label %101

92:                                               ; preds = %73, %71, %67
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  br label %100

96:                                               ; preds = %68
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  br label %100

100:                                              ; preds = %96, %92
  call void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  br label %101

101:                                              ; preds = %100, %88
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %11) #9
  br label %102

102:                                              ; preds = %101, %87
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #9
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %6) #9
  br label %103

103:                                              ; preds = %102, %75
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #9
  br label %258

104:                                              ; preds = %47
  %105 = load ptr, ptr %5, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %105, i64 1
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = call i32 @strcmp(ptr noundef %107, ptr noundef @.str.5) #8
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %255

110:                                              ; preds = %104
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 96, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef @.str.7) #9
  %112 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 0
  %113 = load i64, ptr %112, align 8
  %114 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %17, i64 %113, ptr %115, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89) %16, ptr noundef nonnull align 8 dereferenceable(58) %17)
          to label %116 unwind label %189

116:                                              ; preds = %110
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %17) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #9
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %118 unwind label %193

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 5, ptr %21) #9
  store i8 72, ptr %21, align 1, !tbaa !11
  %119 = getelementptr inbounds i8, ptr %21, i64 1
  store i8 101, ptr %119, align 1, !tbaa !11
  %120 = getelementptr inbounds i8, ptr %21, i64 2
  store i8 108, ptr %120, align 1, !tbaa !11
  %121 = getelementptr inbounds i8, ptr %21, i64 3
  store i8 108, ptr %121, align 1, !tbaa !11
  %122 = getelementptr inbounds i8, ptr %21, i64 4
  store i8 111, ptr %122, align 1, !tbaa !11
  %123 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 0
  store ptr %21, ptr %123, align 8, !tbaa !12
  %124 = getelementptr inbounds %"class.std::initializer_list", ptr %20, i32 0, i32 1
  store i64 5, ptr %124, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  %125 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %128 = load i64, ptr %127, align 8
  invoke void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr %126, i64 %128, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %129 unwind label %197

129:                                              ; preds = %118
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 2000, ptr %24, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %130 unwind label %201

130:                                              ; preds = %129
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %131 unwind label %201

131:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef @.str.9) #9
  %132 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %25) #9
  %133 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %25) #9
  call void @_ZN3net4spanIKcEC2EPS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef %132, ptr noundef %133) #9
  %134 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8
  %136 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %137 = load i64, ptr %136, align 8
  %138 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %16, ptr %135, i64 %137)
          to label %139 unwind label %205

139:                                              ; preds = %131
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %141 unwind label %205

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 1000, ptr %28, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %142 unwind label %209

142:                                              ; preds = %141
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %143 unwind label %209

143:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef @.str.11) #9
  call void @_ZN3net4spanIKcEC2ISt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %30) #9
  %144 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  %146 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %147 = load i64, ptr %146, align 8
  %148 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %16, ptr %145, i64 %147)
          to label %149 unwind label %213

149:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %151 unwind label %205

151:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #9
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %16) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef @.str.7) #9
  %152 = getelementptr inbounds { i64, ptr }, ptr %33, i32 0, i32 0
  %153 = load i64, ptr %152, align 8
  %154 = getelementptr inbounds { i64, ptr }, ptr %33, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %32, i64 %153, ptr %155, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89) %31, ptr noundef nonnull align 8 dereferenceable(58) %32)
          to label %156 unwind label %222

156:                                              ; preds = %151
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %32) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #9
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
          to label %158 unwind label %226

158:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 5, ptr %36) #9
  store i8 72, ptr %36, align 1, !tbaa !11
  %159 = getelementptr inbounds i8, ptr %36, i64 1
  store i8 101, ptr %159, align 1, !tbaa !11
  %160 = getelementptr inbounds i8, ptr %36, i64 2
  store i8 108, ptr %160, align 1, !tbaa !11
  %161 = getelementptr inbounds i8, ptr %36, i64 3
  store i8 108, ptr %161, align 1, !tbaa !11
  %162 = getelementptr inbounds i8, ptr %36, i64 4
  store i8 111, ptr %162, align 1, !tbaa !11
  %163 = getelementptr inbounds %"class.std::initializer_list", ptr %35, i32 0, i32 0
  store ptr %36, ptr %163, align 8, !tbaa !12
  %164 = getelementptr inbounds %"class.std::initializer_list", ptr %35, i32 0, i32 1
  store i64 5, ptr %164, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  %165 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8
  %167 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %168 = load i64, ptr %167, align 8
  invoke void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr %166, i64 %168, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %169 unwind label %230

169:                                              ; preds = %158
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #9
  call void @_ZN3net4spanIKcEC2ILm22EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 1 dereferenceable(22) @.str.14) #9
  %170 = getelementptr inbounds { ptr, i64 }, ptr %39, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8
  %172 = getelementptr inbounds { ptr, i64 }, ptr %39, i32 0, i32 1
  %173 = load i64, ptr %172, align 8
  invoke void @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind writable sret(%"class.std::future") align 8 %38, ptr noundef nonnull align 8 dereferenceable(89) %31, ptr %171, i64 %173)
          to label %174 unwind label %234

174:                                              ; preds = %169
  invoke void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %175 unwind label %238

175:                                              ; preds = %174
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
          to label %177 unwind label %238

177:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 1000, ptr %41, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %178 unwind label %242

178:                                              ; preds = %177
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %179 unwind label %242

179:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef @.str.16) #9
  call void @_ZN3net4spanIKcEC2IRSt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %42) #9
  %180 = getelementptr inbounds { ptr, i64 }, ptr %43, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  %182 = getelementptr inbounds { ptr, i64 }, ptr %43, i32 0, i32 1
  %183 = load i64, ptr %182, align 8
  %184 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %31, ptr %181, i64 %183)
          to label %185 unwind label %246

185:                                              ; preds = %179
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
          to label %187 unwind label %246

187:                                              ; preds = %185
  invoke void @_ZN3net9async_runEv()
          to label %188 unwind label %246

188:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #9
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %31) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %31) #9
  br label %255

189:                                              ; preds = %110
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %17) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #9
  br label %221

193:                                              ; preds = %116
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  br label %220

197:                                              ; preds = %118
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %9, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr %21) #9
  br label %219

201:                                              ; preds = %130, %129
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %9, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %218

205:                                              ; preds = %149, %139, %131
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %9, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %10, align 4
  br label %217

209:                                              ; preds = %142, %141
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %9, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %217

213:                                              ; preds = %143
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %9, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  br label %217

217:                                              ; preds = %213, %209, %205
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  br label %218

218:                                              ; preds = %217, %201
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  br label %219

219:                                              ; preds = %218, %197
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #9
  br label %220

220:                                              ; preds = %219, %193
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %16) #9
  br label %221

221:                                              ; preds = %220, %189
  call void @llvm.lifetime.end.p0(i64 96, ptr %16) #9
  br label %258

222:                                              ; preds = %151
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %9, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %32) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #9
  br label %254

226:                                              ; preds = %156
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %9, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %10, align 4
  br label %253

230:                                              ; preds = %158
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %9, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr %36) #9
  br label %252

234:                                              ; preds = %169
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %9, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %10, align 4
  br label %251

238:                                              ; preds = %175, %174
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %9, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %10, align 4
  br label %250

242:                                              ; preds = %178, %177
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %9, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %250

246:                                              ; preds = %187, %185, %179
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %9, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #9
  br label %250

250:                                              ; preds = %246, %242, %238
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #9
  br label %251

251:                                              ; preds = %250, %234
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  br label %252

252:                                              ; preds = %251, %230
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  br label %253

253:                                              ; preds = %252, %226
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %31) #9
  br label %254

254:                                              ; preds = %253, %222
  call void @llvm.lifetime.end.p0(i64 96, ptr %31) #9
  br label %258

255:                                              ; preds = %188, %104
  br label %256

256:                                              ; preds = %255, %74, %46
  %257 = load i32, ptr %3, align 4
  ret i32 %257

258:                                              ; preds = %254, %221, %103
  %259 = load ptr, ptr %9, align 8
  %260 = load i32, ptr %10, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58), i64, ptr, i16 noundef zeroext, i8 noundef zeroext) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(58), i64 noundef) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #6 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE12async_acceptIZ4mainE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3net9async_runEv() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89), ptr, i64) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2EPS1_S3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2ISt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(89), ptr, i64) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2ILm22EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(22)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2IRSt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"_ZTSSt16initializer_listIcE", !10, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !14, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.net::tcp_acceptor" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8, [7 x i8] }
%"class.net::detail::base_socket.base" = type <{ ptr, i32, i8 }>
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type { %"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage", i8 }
%"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage" = type { %"class.net::endpoint" }
%"class.net::endpoint" = type <{ i8, [3 x i8], %struct.sockaddr_in, [4 x i8], %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl" }
%"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<net::tcp_connection<net::ip_version::v4>, std::allocator<net::tcp_connection<net::ip_version::v4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr, ptr }
%"class.net::tcp_connection" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8, [7 x i8] }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::chrono::duration" = type { i64 }
%"class.net::span" = type { ptr, i64 }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.net::tcp_acceptor", align 8
  %4 = alloca %"class.net::endpoint", align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca %"class.net::tcp_acceptor", align 8
  %7 = alloca %"class.net::endpoint", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %class.anon, align 8
  %11 = alloca %"class.net::tcp_connection", align 8
  %12 = alloca %"class.net::endpoint", align 8
  %13 = alloca %"class.std::basic_string_view", align 8
  %14 = alloca %"class.std::vector.5", align 8
  %15 = alloca [5 x i8], align 4
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::chrono::duration", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.net::span", align 8
  %21 = alloca %"class.std::chrono::duration", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.net::span", align 8
  %24 = alloca %"class.std::basic_string_view", align 8
  %25 = alloca %"class.net::tcp_connection", align 8
  %26 = alloca %"class.net::endpoint", align 8
  %27 = alloca %"class.std::basic_string_view", align 8
  %28 = alloca %"class.std::vector.5", align 8
  %29 = alloca [5 x i8], align 4
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca %"class.std::future", align 8
  %32 = alloca %"class.net::span", align 8
  %33 = alloca %"class.std::chrono::duration", align 8
  %34 = alloca i32, align 4
  %35 = alloca %"class.std::basic_string_view", align 8
  %36 = alloca %"class.net::span", align 8
  %37 = icmp slt i32 %0, 2
  br i1 %37, label %172, label %38

38:                                               ; preds = %2
  %39 = getelementptr inbounds i8, ptr %1, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %40, ptr noundef nonnull dereferenceable(1) @.str) #8
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %79

43:                                               ; preds = %38
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str.2) #9
  %45 = load i64, ptr %5, align 8
  %46 = getelementptr inbounds i8, ptr %5, i64 8
  %47 = load ptr, ptr %46, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %4, i64 %45, ptr %47, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89) %3, ptr noundef nonnull align 8 dereferenceable(58) %4, i64 noundef 5)
          to label %48 unwind label %62

48:                                               ; preds = %43
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %4) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.2) #9
  %49 = load i64, ptr %8, align 8
  %50 = getelementptr inbounds i8, ptr %8, i64 8
  %51 = load ptr, ptr %50, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %7, i64 %49, ptr %51, i16 noundef zeroext 4556, i8 noundef zeroext 0)
          to label %52 unwind label %64

52:                                               ; preds = %48
  invoke void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89) %6, ptr noundef nonnull align 8 dereferenceable(58) %7, i64 noundef 5)
          to label %53 unwind label %66

53:                                               ; preds = %52
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %7) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #9
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %55 unwind label %69

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  invoke void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 2)
          to label %56 unwind label %71

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  store ptr %3, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %9, ptr %57, align 8, !tbaa !5
  invoke void @"_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE12async_acceptIZ4mainE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(89) %3, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %58 unwind label %73

58:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %60 unwind label %71

60:                                               ; preds = %58
  invoke void @_ZN3net9async_runEv()
          to label %61 unwind label %71

61:                                               ; preds = %60
  call void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %6) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #9
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %3) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #9
  br label %172

62:                                               ; preds = %43
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %4) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #9
  br label %78

64:                                               ; preds = %48
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %52
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %7) #9
  br label %68

68:                                               ; preds = %66, %64
  %.pn35 = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #9
  br label %77

69:                                               ; preds = %53
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %60, %58, %55
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %56
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %75

75:                                               ; preds = %73, %71
  %.pn37 = phi { ptr, i32 } [ %72, %71 ], [ %74, %73 ]
  call void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  br label %76

76:                                               ; preds = %75, %69
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %75 ], [ %70, %69 ]
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %6) #9
  br label %77

77:                                               ; preds = %76, %68
  %.pn37.pn.pn = phi { ptr, i32 } [ %.pn37.pn, %76 ], [ %.pn35, %68 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #9
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %3) #9
  br label %78

78:                                               ; preds = %77, %62
  %.pn37.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn, %77 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #9
  br label %173

79:                                               ; preds = %38
  %80 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %40, ptr noundef nonnull dereferenceable(1) @.str.5) #8
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %172

82:                                               ; preds = %79
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.7) #9
  %84 = load i64, ptr %13, align 8
  %85 = getelementptr inbounds i8, ptr %13, i64 8
  %86 = load ptr, ptr %85, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %12, i64 %84, ptr %86, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89) %11, ptr noundef nonnull align 8 dereferenceable(58) %12)
          to label %87 unwind label %134

87:                                               ; preds = %82
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %12) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %89 unwind label %136

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %15) #9
  store <4 x i8> <i8 72, i8 101, i8 108, i8 108>, ptr %15, align 4, !tbaa !9
  %90 = getelementptr inbounds i8, ptr %15, i64 4
  store i8 111, ptr %90, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  invoke void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr nonnull %15, i64 5, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %91 unwind label %138

91:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  store i32 2000, ptr %18, align 4, !tbaa !10
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %92 unwind label %140

92:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.9) #9
  %93 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #9
  %94 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #9
  call void @_ZN3net4spanIKcEC2EPS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %93, ptr noundef %94) #9
  %95 = load ptr, ptr %20, align 8
  %96 = getelementptr inbounds i8, ptr %20, i64 8
  %97 = load i64, ptr %96, align 8
  %98 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %11, ptr %95, i64 %97)
          to label %99 unwind label %142

99:                                               ; preds = %92
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
          to label %101 unwind label %142

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  store i32 1000, ptr %22, align 4, !tbaa !10
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %102 unwind label %144

102:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef @.str.11) #9
  call void @_ZN3net4spanIKcEC2ISt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %24) #9
  %103 = load ptr, ptr %23, align 8
  %104 = getelementptr inbounds i8, ptr %23, i64 8
  %105 = load i64, ptr %104, align 8
  %106 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %11, ptr %103, i64 %105)
          to label %107 unwind label %146

107:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
          to label %109 unwind label %142

109:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %11) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %26) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef @.str.7) #9
  %110 = load i64, ptr %27, align 8
  %111 = getelementptr inbounds i8, ptr %27, i64 8
  %112 = load ptr, ptr %111, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %26, i64 %110, ptr %112, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89) %25, ptr noundef nonnull align 8 dereferenceable(58) %26)
          to label %113 unwind label %153

113:                                              ; preds = %109
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %26) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #9
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
          to label %115 unwind label %155

115:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %29) #9
  store <4 x i8> <i8 72, i8 101, i8 108, i8 108>, ptr %29, align 4, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %29, i64 4
  store i8 111, ptr %116, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  invoke void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr nonnull %29, i64 5, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %117 unwind label %157

117:                                              ; preds = %115
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #9
  call void @_ZN3net4spanIKcEC2ILm22EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 1 dereferenceable(22) @.str.14) #9
  %118 = load ptr, ptr %32, align 8
  %119 = getelementptr inbounds i8, ptr %32, i64 8
  %120 = load i64, ptr %119, align 8
  invoke void @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::future") align 8 %31, ptr noundef nonnull align 8 dereferenceable(89) %25, ptr %118, i64 %120)
          to label %121 unwind label %159

121:                                              ; preds = %117
  invoke void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %122 unwind label %161

122:                                              ; preds = %121
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
          to label %124 unwind label %161

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #9
  store i32 1000, ptr %34, align 4, !tbaa !10
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(4) %34)
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %125 unwind label %163

125:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef @.str.16) #9
  call void @_ZN3net4spanIKcEC2IRSt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %35) #9
  %126 = load ptr, ptr %36, align 8
  %127 = getelementptr inbounds i8, ptr %36, i64 8
  %128 = load i64, ptr %127, align 8
  %129 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %25, ptr %126, i64 %128)
          to label %130 unwind label %165

130:                                              ; preds = %125
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.17)
          to label %132 unwind label %165

132:                                              ; preds = %130
  invoke void @_ZN3net9async_runEv()
          to label %133 unwind label %165

133:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #9
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #9
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %25) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %25) #9
  br label %172

134:                                              ; preds = %82
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %12) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  br label %152

136:                                              ; preds = %87
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %151

138:                                              ; preds = %89
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %15) #9
  br label %150

140:                                              ; preds = %91
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  br label %149

142:                                              ; preds = %107, %99, %92
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %148

144:                                              ; preds = %101
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  br label %148

146:                                              ; preds = %102
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  br label %148

148:                                              ; preds = %146, %144, %142
  %.pn = phi { ptr, i32 } [ %143, %142 ], [ %147, %146 ], [ %145, %144 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  br label %149

149:                                              ; preds = %148, %140
  %.pn.pn = phi { ptr, i32 } [ %.pn, %148 ], [ %141, %140 ]
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %150

150:                                              ; preds = %149, %138
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %149 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %151

151:                                              ; preds = %150, %136
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %150 ], [ %137, %136 ]
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %11) #9
  br label %152

152:                                              ; preds = %151, %134
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %151 ], [ %135, %134 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %11) #9
  br label %173

153:                                              ; preds = %109
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %26) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #9
  br label %171

155:                                              ; preds = %113
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %170

157:                                              ; preds = %115
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %29) #9
  br label %169

159:                                              ; preds = %117
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %168

161:                                              ; preds = %122, %121
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %167

163:                                              ; preds = %124
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #9
  br label %167

165:                                              ; preds = %132, %130, %125
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #9
  br label %167

167:                                              ; preds = %165, %163, %161
  %.pn29 = phi { ptr, i32 } [ %166, %165 ], [ %164, %163 ], [ %162, %161 ]
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #9
  br label %168

168:                                              ; preds = %167, %159
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %167 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #9
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #9
  br label %169

169:                                              ; preds = %168, %157
  %.pn29.pn.pn = phi { ptr, i32 } [ %.pn29.pn, %168 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  br label %170

170:                                              ; preds = %169, %155
  %.pn29.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn, %169 ], [ %156, %155 ]
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %25) #9
  br label %171

171:                                              ; preds = %170, %153
  %.pn29.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn.pn, %170 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %25) #9
  br label %173

172:                                              ; preds = %2, %79, %133, %61
  ret i32 0

173:                                              ; preds = %171, %152, %78
  %.pn37.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn37.pn.pn.pn, %78 ], [ %.pn29.pn.pn.pn.pn, %171 ], [ %.pn.pn.pn.pn.pn, %152 ]
  resume { ptr, i32 } %.pn37.pn.pn.pn.pn
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58), i64, ptr, i16 noundef zeroext, i8 noundef zeroext) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(58), i64 noundef) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE12async_acceptIZ4mainE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3net9async_runEv() local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3net14tcp_connectionILNS0_10ip_versionE2EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89), ptr, i64) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2EPS1_S3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2ISt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(89), ptr, i64) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2ILm22EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(22)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIKcEC2IRSt17basic_string_viewIcSt11char_traitsIcEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass