; LLVM IR from tglane/socketwrapper :: example (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 }
%"struct.std::array" = type { [10000 x i8] }
%"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::optional.2" = type { %"struct.std::_Optional_base.3" }
%"struct.std::_Optional_base.3" = type { %"struct.std::_Optional_payload.5" }
%"struct.std::_Optional_payload.5" = type { %"struct.std::_Optional_payload.base.9", [7 x i8] }
%"struct.std::_Optional_payload.base.9" = type { %"struct.std::_Optional_payload_base.base.8" }
%"struct.std::_Optional_payload_base.base.8" = type { %"union.std::_Optional_payload_base<net::tcp_connection<net::ip_version::v4>>::_Storage", i8 }
%"union.std::_Optional_payload_base<net::tcp_connection<net::ip_version::v4>>::_Storage" = type { %"class.net::tcp_connection" }
%"class.net::tcp_connection" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8, [7 x i8] }
%"class.std::chrono::duration" = type { i64 }
%"class.net::span" = type { ptr, i64 }
%"class.std::optional.12" = type { %"struct.std::_Optional_base.13" }
%"struct.std::_Optional_base.13" = type { %"struct.std::_Optional_payload.15" }
%"struct.std::_Optional_payload.15" = type { %"struct.std::_Optional_payload_base.base.17", [7 x i8] }
%"struct.std::_Optional_payload_base.base.17" = type <{ %"union.std::_Optional_payload_base<unsigned long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned long>::_Storage" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.net::span.20" = type { ptr, i64 }

@.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 [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 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 %"struct.std::array", align 1
  %7 = alloca %"class.net::tcp_acceptor", align 8
  %8 = alloca %"class.net::endpoint", align 8
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::optional.2", align 8
  %13 = alloca %"class.std::chrono::duration", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.net::span", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.std::optional.12", align 8
  %21 = alloca %"class.net::span", align 8
  %22 = alloca %"class.std::chrono::duration", align 8
  %23 = alloca i32, align 4
  %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::chrono::duration", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca %"class.std::initializer_list", align 8
  %32 = alloca [5 x i8], align 1
  %33 = alloca %"class.std::allocator", align 1
  %34 = alloca %"class.net::span", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.std::chrono::duration", align 8
  %38 = alloca i32, align 4
  %39 = alloca %"class.std::basic_string_view", align 8
  %40 = alloca %"class.net::span.20", 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
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp sle i32 %41, 1
  br i1 %42, label %43, label %44

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

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

50:                                               ; preds = %44
  %51 = 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 10000, ptr %6) #10
  call void @llvm.memset.p0.i64(ptr align 1 %6, i8 0, i64 10000, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.2) #10
  %52 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %8, i64 %53, ptr %55, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89) %7, ptr noundef nonnull align 8 dereferenceable(58) %8, i64 noundef 5)
          to label %56 unwind label %65

56:                                               ; preds = %50
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %8) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #10
  %57 = 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 %58 unwind label %69

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 104, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 5000, ptr %14, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %59 unwind label %73

59:                                               ; preds = %58
  invoke void @_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE6acceptERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind writable sret(%"class.std::optional.2") align 8 %12, ptr noundef nonnull align 8 dereferenceable(89) %7, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %60 unwind label %73

60:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  %61 = call noundef zeroext i1 @_ZNKSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(104) %12) #10
  br i1 %61, label %81, label %62

62:                                               ; preds = %60
  %63 = 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 %64 unwind label %77

64:                                               ; preds = %62
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %164

65:                                               ; preds = %50
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %10, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %11, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %8) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #10
  br label %173

69:                                               ; preds = %56
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %10, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %11, align 4
  br label %172

73:                                               ; preds = %59, %58
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %10, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %171

77:                                               ; preds = %62
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %10, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %11, align 4
  br label %170

81:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %82 = invoke noundef nonnull align 8 dereferenceable(89) ptr @_ZNRSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(104) %12)
          to label %83 unwind label %147

83:                                               ; preds = %81
  store ptr %82, ptr %16, align 8, !tbaa !9
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %85 unwind label %147

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %87 unwind label %147

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %88 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm10000EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 1 dereferenceable(10000) %6) #10
  %89 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8
  %91 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %92 = load i64, ptr %91, align 8
  %93 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4readIcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %88, ptr %90, i64 %92)
          to label %94 unwind label %151

94:                                               ; preds = %87
  store i64 %93, ptr %17, align 8, !tbaa !11
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %96 unwind label %151

96:                                               ; preds = %94
  %97 = load i64, ptr %17, align 8, !tbaa !11
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %95, i64 noundef %97)
          to label %99 unwind label %151

99:                                               ; preds = %96
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef @.str.8)
          to label %101 unwind label %151

101:                                              ; preds = %99
  %102 = call noundef ptr @_ZNSt5arrayIcLm10000EE4dataEv(ptr noundef nonnull align 1 dereferenceable(10000) %6) #11
  %103 = load i64, ptr %17, align 8, !tbaa !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %102, i64 noundef %103) #10
  %104 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %105 = load i64, ptr %104, align 8
  %106 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8) %100, i64 %105, ptr %107)
          to label %109 unwind label %151

109:                                              ; preds = %101
  %110 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %108, i8 noundef signext 10)
          to label %111 unwind label %151

111:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  %112 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm10000EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 1 dereferenceable(10000) %6) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  store i32 4000, ptr %23, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %113 unwind label %155

113:                                              ; preds = %111
  %114 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8
  %116 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %117 = load i64, ptr %116, align 8
  %118 = invoke { i64, i8 } @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4readIcEESt8optionalImENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr noundef nonnull align 8 dereferenceable(89) %112, ptr %115, i64 %117, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %119 unwind label %155

119:                                              ; preds = %113
  %120 = getelementptr inbounds %"class.std::optional.12", ptr %20, i32 0, i32 0
  %121 = getelementptr inbounds %"struct.std::_Optional_base.13", ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds { i64, i8 }, ptr %121, i32 0, i32 0
  %123 = extractvalue { i64, i8 } %118, 0
  store i64 %123, ptr %122, align 8
  %124 = getelementptr inbounds { i64, i8 }, ptr %121, i32 0, i32 1
  %125 = extractvalue { i64, i8 } %118, 1
  store i8 %125, ptr %124, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  %126 = call noundef zeroext i1 @_ZNKSt8optionalImE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  br i1 %126, label %127, label %163

127:                                              ; preds = %119
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %129 unwind label %159

129:                                              ; preds = %127
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  %131 = load i64, ptr %130, align 8, !tbaa !11
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %128, i64 noundef %131)
          to label %133 unwind label %159

133:                                              ; preds = %129
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @.str.8)
          to label %135 unwind label %159

135:                                              ; preds = %133
  %136 = call noundef ptr @_ZNSt5arrayIcLm10000EE4dataEv(ptr noundef nonnull align 1 dereferenceable(10000) %6) #11
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  %138 = load i64, ptr %137, align 8, !tbaa !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef %136, i64 noundef %138) #10
  %139 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 0
  %140 = load i64, ptr %139, align 8
  %141 = getelementptr inbounds { i64, ptr }, ptr %24, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8) %134, i64 %140, ptr %142)
          to label %144 unwind label %159

144:                                              ; preds = %135
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %143, i8 noundef signext 10)
          to label %146 unwind label %159

146:                                              ; preds = %144
  br label %163

147:                                              ; preds = %85, %83, %81
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %10, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %11, align 4
  br label %169

151:                                              ; preds = %109, %101, %99, %96, %94, %87
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %10, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %11, align 4
  br label %168

155:                                              ; preds = %113, %111
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %10, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %167

159:                                              ; preds = %144, %135, %133, %129, %127
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %10, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %11, align 4
  br label %167

163:                                              ; preds = %146, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  store i32 0, ptr %15, align 4
  br label %164

164:                                              ; preds = %163, %64
  call void @_ZNSt14_Optional_baseIN3net14tcp_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(104) %12) #10
  call void @llvm.lifetime.end.p0(i64 104, ptr %12) #10
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %7) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 10000, ptr %6) #10
  %165 = load i32, ptr %15, align 4
  switch i32 %165, label %277 [
    i32 0, label %166
    i32 1, label %270
  ]

166:                                              ; preds = %164
  br label %270

167:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  br label %168

168:                                              ; preds = %167, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %169

169:                                              ; preds = %168, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %170

170:                                              ; preds = %169, %77
  call void @_ZNSt14_Optional_baseIN3net14tcp_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(104) %12) #10
  br label %171

171:                                              ; preds = %170, %73
  call void @llvm.lifetime.end.p0(i64 104, ptr %12) #10
  br label %172

172:                                              ; preds = %171, %69
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %7) #10
  br label %173

173:                                              ; preds = %172, %65
  call void @llvm.lifetime.end.p0(i64 96, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 10000, ptr %6) #10
  br label %272

174:                                              ; preds = %44
  %175 = load ptr, ptr %5, align 8, !tbaa !9
  %176 = getelementptr inbounds ptr, ptr %175, i64 1
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = call i32 @strcmp(ptr noundef %177, ptr noundef @.str.9) #9
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %269

180:                                              ; preds = %174
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 96, ptr %25) #10
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(89) %25)
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
          to label %183 unwind label %233

183:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef @.str.12) #10
  %184 = getelementptr inbounds { i64, ptr }, ptr %27, i32 0, i32 0
  %185 = load i64, ptr %184, align 8
  %186 = getelementptr inbounds { i64, ptr }, ptr %27, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %26, i64 %185, ptr %187, i16 noundef zeroext 4433, i8 noundef zeroext 1)
          to label %188 unwind label %237

188:                                              ; preds = %183
  invoke void @_ZN3net14tcp_connectionILNS_10ip_versionE2EE7connectERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89) %25, ptr noundef nonnull align 8 dereferenceable(58) %26)
          to label %189 unwind label %241

189:                                              ; preds = %188
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %26) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #10
  %190 = 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 %191 unwind label %233

191:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store i32 3000, ptr %29, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %192 unwind label %246

192:                                              ; preds = %191
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %193 unwind label %246

193:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #10
  call void @llvm.lifetime.start.p0(i64 5, ptr %32) #10
  store i8 72, ptr %32, align 1, !tbaa !13
  %194 = getelementptr inbounds i8, ptr %32, i64 1
  store i8 101, ptr %194, align 1, !tbaa !13
  %195 = getelementptr inbounds i8, ptr %32, i64 2
  store i8 108, ptr %195, align 1, !tbaa !13
  %196 = getelementptr inbounds i8, ptr %32, i64 3
  store i8 108, ptr %196, align 1, !tbaa !13
  %197 = getelementptr inbounds i8, ptr %32, i64 4
  store i8 111, ptr %197, align 1, !tbaa !13
  %198 = getelementptr inbounds %"class.std::initializer_list", ptr %31, i32 0, i32 0
  store ptr %32, ptr %198, align 8, !tbaa !14
  %199 = getelementptr inbounds %"class.std::initializer_list", ptr %31, i32 0, i32 1
  store i64 5, ptr %199, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #10
  %200 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8
  %202 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %203 = load i64, ptr %202, align 8
  invoke void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr %201, i64 %203, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %204 unwind label %250

204:                                              ; preds = %193
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 5, ptr %32) #10
  %205 = call ptr @_ZNSt6vectorIcSaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #10
  %206 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %205, ptr %206, align 8
  %207 = call ptr @_ZNSt6vectorIcSaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #10
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %207, ptr %208, align 8
  %209 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8
  %211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8
  call void @_ZN3net4spanIcEC2IN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_SA_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr %210, ptr %212) #10
  %213 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8
  %215 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %216 = load i64, ptr %215, align 8
  %217 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %25, ptr %214, i64 %216)
          to label %218 unwind label %254

218:                                              ; preds = %204
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
          to label %220 unwind label %254

220:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  store i32 1000, ptr %38, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %221 unwind label %258

221:                                              ; preds = %220
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %222 unwind label %258

222:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef @.str.15) #10
  %223 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %39) #10
  %224 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %39) #10
  call void @_ZN3net4spanIKcEC2EPS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef %223, ptr noundef %224) #10
  %225 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8
  %227 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %228 = load i64, ptr %227, align 8
  %229 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %25, ptr %226, i64 %228)
          to label %230 unwind label %262

230:                                              ; preds = %222
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
          to label %232 unwind label %262

232:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #10
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #10
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %25) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr %25) #10
  br label %269

233:                                              ; preds = %189, %180
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %10, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %11, align 4
  br label %268

237:                                              ; preds = %183
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %10, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %11, align 4
  br label %245

241:                                              ; preds = %188
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %10, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %11, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %26) #10
  br label %245

245:                                              ; preds = %241, %237
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #10
  br label %268

246:                                              ; preds = %192, %191
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %10, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %268

250:                                              ; preds = %193
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %10, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 5, ptr %32) #10
  br label %267

254:                                              ; preds = %218, %204
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %10, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %11, align 4
  br label %266

258:                                              ; preds = %221, %220
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %10, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  br label %266

262:                                              ; preds = %230, %222
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %10, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #10
  br label %266

266:                                              ; preds = %262, %258, %254
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #10
  br label %267

267:                                              ; preds = %266, %250
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #10
  br label %268

268:                                              ; preds = %267, %246, %245, %233
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %25) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr %25) #10
  br label %272

269:                                              ; preds = %232, %174
  br label %270

270:                                              ; preds = %269, %166, %164, %43
  %271 = load i32, ptr %3, align 4
  ret i32 %271

272:                                              ; preds = %268, %173
  %273 = load ptr, ptr %10, align 8
  %274 = load i32, ptr %11, align 4
  %275 = insertvalue { ptr, i32 } poison, ptr %273, 0
  %276 = insertvalue { ptr, i32 } %275, i32 %274, 1
  resume { ptr, i32 } %276

277:                                              ; preds = %164
  unreachable
}

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; 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 #5 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 #6 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 #6 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 #7 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: mustprogress uwtable
declare dso_local void @_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE6acceptERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.2") align 8, ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 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 #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(104)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(89) ptr @_ZNRSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(104)) #6 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #6 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm10000EE4dataEv(ptr noundef nonnull align 1 dereferenceable(10000)) #8 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i8 } @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4readIcEESt8optionalImENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr noundef nonnull align 8 dereferenceable(89), ptr, i64, ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalImE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Optional_baseIN3net14tcp_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #7 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 #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net14tcp_connectionILNS_10ip_versionE2EE7connectERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #6 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 void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIcSaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIcSaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIcEC2IN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_SA_(ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr) unnamed_addr #5 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) #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 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 #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { mustprogress nounwind willreturn memory(none) 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 #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(none) }

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTSSt16initializer_listIcE", !10, i64 0, !12, i64 8}
!16 = !{!15, !12, 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 }
%"struct.std::array" = type { [10000 x i8] }
%"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::optional.2" = type { %"struct.std::_Optional_base.3" }
%"struct.std::_Optional_base.3" = type { %"struct.std::_Optional_payload.5" }
%"struct.std::_Optional_payload.5" = type { %"struct.std::_Optional_payload.base.9", [7 x i8] }
%"struct.std::_Optional_payload.base.9" = type { %"struct.std::_Optional_payload_base.base.8" }
%"struct.std::_Optional_payload_base.base.8" = type { %"union.std::_Optional_payload_base<net::tcp_connection<net::ip_version::v4>>::_Storage", i8 }
%"union.std::_Optional_payload_base<net::tcp_connection<net::ip_version::v4>>::_Storage" = type { %"class.net::tcp_connection" }
%"class.net::tcp_connection" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8, [7 x i8] }
%"class.std::chrono::duration" = type { i64 }
%"class.net::span" = type { ptr, i64 }
%"class.std::optional.12" = type { %"struct.std::_Optional_base.13" }
%"struct.std::_Optional_base.13" = type { %"struct.std::_Optional_payload.15" }
%"struct.std::_Optional_payload.15" = type { %"struct.std::_Optional_payload_base.base.17", [7 x i8] }
%"struct.std::_Optional_payload_base.base.17" = type <{ %"union.std::_Optional_payload_base<unsigned long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned long>::_Storage" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.net::span.20" = type { ptr, i64 }

@.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 [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 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 %"struct.std::array", align 1
  %4 = alloca %"class.net::tcp_acceptor", align 8
  %5 = alloca %"class.net::endpoint", align 8
  %6 = alloca %"class.std::basic_string_view", align 8
  %7 = alloca %"class.std::optional.2", align 8
  %8 = alloca %"class.std::chrono::duration", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.net::span", align 8
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"class.std::optional.12", align 8
  %13 = alloca %"class.net::span", align 8
  %14 = alloca %"class.std::chrono::duration", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::basic_string_view", align 8
  %17 = alloca %"class.net::tcp_connection", align 8
  %18 = alloca %"class.net::endpoint", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.std::chrono::duration", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca [5 x i8], align 4
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.net::span", align 8
  %26 = alloca %"class.std::chrono::duration", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::basic_string_view", align 8
  %29 = alloca %"class.net::span.20", align 8
  %30 = icmp slt i32 %0, 2
  br i1 %30, label %179, label %31

31:                                               ; preds = %2
  %32 = getelementptr inbounds i8, ptr %1, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str) #9
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %123

36:                                               ; preds = %31
  %37 = 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 10000, ptr nonnull %3) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(10000) %3, i8 0, i64 10000, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef @.str.2) #10
  %38 = load i64, ptr %6, align 8
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  %40 = load ptr, ptr %39, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %5, i64 %38, ptr %40, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull align 8 dereferenceable(58) %5, i64 noundef 5)
          to label %41 unwind label %48

41:                                               ; preds = %36
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %5) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #10
  %42 = 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 %43 unwind label %50

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #10
  store i32 5000, ptr %9, align 4, !tbaa !9
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  invoke void @_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE6acceptERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional.2") align 8 %7, ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %44 unwind label %52

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  %45 = call noundef zeroext i1 @_ZNKSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(104) %7) #10
  br i1 %45, label %56, label %46

46:                                               ; preds = %44
  %47 = 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 %117 unwind label %54

48:                                               ; preds = %36
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %5) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #10
  br label %122

50:                                               ; preds = %41
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %121

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  br label %120

54:                                               ; preds = %46
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %119

56:                                               ; preds = %44
  %57 = invoke noundef nonnull align 8 dereferenceable(89) ptr @_ZNRSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(104) %7)
          to label %58 unwind label %108

58:                                               ; preds = %56
  %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.5)
          to label %60 unwind label %108

60:                                               ; preds = %58
  %61 = 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.6)
          to label %62 unwind label %108

62:                                               ; preds = %60
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm10000EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(10000) %3) #10
  %63 = load ptr, ptr %10, align 8
  %64 = getelementptr inbounds i8, ptr %10, i64 8
  %65 = load i64, ptr %64, align 8
  %66 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4readIcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %57, ptr %63, i64 %65)
          to label %67 unwind label %110

67:                                               ; preds = %62
  %68 = 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.7)
          to label %69 unwind label %110

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %68, i64 noundef %66)
          to label %71 unwind label %110

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.8)
          to label %73 unwind label %110

73:                                               ; preds = %71
  %74 = call noundef ptr @_ZNSt5arrayIcLm10000EE4dataEv(ptr noundef nonnull align 1 dereferenceable(10000) %3) #11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %74, i64 noundef %66) #10
  %75 = load i64, ptr %11, align 8
  %76 = getelementptr inbounds i8, ptr %11, i64 8
  %77 = load ptr, ptr %76, align 8
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8) %72, i64 %75, ptr %77)
          to label %79 unwind label %110

79:                                               ; preds = %73
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %78, i8 noundef signext 10)
          to label %81 unwind label %110

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm10000EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(10000) %3) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #10
  store i32 4000, ptr %15, align 4, !tbaa !9
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %82 = load ptr, ptr %13, align 8
  %83 = getelementptr inbounds i8, ptr %13, i64 8
  %84 = load i64, ptr %83, align 8
  %85 = invoke { i64, i8 } @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4readIcEESt8optionalImENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr noundef nonnull align 8 dereferenceable(89) %57, ptr %82, i64 %84, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %86 unwind label %112

86:                                               ; preds = %81
  %87 = extractvalue { i64, i8 } %85, 0
  store i64 %87, ptr %12, align 8
  %88 = getelementptr inbounds i8, ptr %12, i64 8
  %89 = extractvalue { i64, i8 } %85, 1
  store i8 %89, ptr %88, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  %90 = call noundef zeroext i1 @_ZNKSt8optionalImE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  br i1 %90, label %91, label %116

91:                                               ; preds = %86
  %92 = 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.7)
          to label %93 unwind label %114

93:                                               ; preds = %91
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %92, i64 noundef %95)
          to label %97 unwind label %114

97:                                               ; preds = %93
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @.str.8)
          to label %99 unwind label %114

99:                                               ; preds = %97
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  %101 = load i64, ptr %100, align 8, !tbaa !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef %74, i64 noundef %101) #10
  %102 = load i64, ptr %16, align 8
  %103 = getelementptr inbounds i8, ptr %16, i64 8
  %104 = load ptr, ptr %103, align 8
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8) %98, i64 %102, ptr %104)
          to label %106 unwind label %114

106:                                              ; preds = %99
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %105, i8 noundef signext 10)
          to label %116 unwind label %114

108:                                              ; preds = %60, %58, %56
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %119

110:                                              ; preds = %79, %73, %71, %69, %67, %62
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %119

112:                                              ; preds = %81
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  br label %118

114:                                              ; preds = %106, %99, %97, %93, %91
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %106, %86
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  br label %117

117:                                              ; preds = %46, %116
  call void @_ZNSt14_Optional_baseIN3net14tcp_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(104) %7) #10
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %7) #10
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %4) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 10000, ptr nonnull %3) #10
  br label %179

118:                                              ; preds = %114, %112
  %.pn30 = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  br label %119

119:                                              ; preds = %108, %118, %110, %54
  %.pn30.pn.pn.pn = phi { ptr, i32 } [ %55, %54 ], [ %109, %108 ], [ %.pn30, %118 ], [ %111, %110 ]
  call void @_ZNSt14_Optional_baseIN3net14tcp_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(104) %7) #10
  br label %120

120:                                              ; preds = %119, %52
  %.pn30.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn30.pn.pn.pn, %119 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %7) #10
  br label %121

121:                                              ; preds = %120, %50
  %.pn30.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn30.pn.pn.pn.pn, %120 ], [ %51, %50 ]
  call void @_ZN3net12tcp_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %4) #10
  br label %122

122:                                              ; preds = %121, %48
  %.pn30.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn30.pn.pn.pn.pn.pn, %121 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 10000, ptr nonnull %3) #10
  br label %180

123:                                              ; preds = %31
  %124 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %179

126:                                              ; preds = %123
  %127 = 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.10)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %17) #10
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(89) %17)
  %128 = 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.11)
          to label %129 unwind label %159

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.12) #10
  %130 = load i64, ptr %19, align 8
  %131 = getelementptr inbounds i8, ptr %19, i64 8
  %132 = load ptr, ptr %131, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %18, i64 %130, ptr %132, i16 noundef zeroext 4433, i8 noundef zeroext 1)
          to label %133 unwind label %161

133:                                              ; preds = %129
  invoke void @_ZN3net14tcp_connectionILNS_10ip_versionE2EE7connectERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89) %17, ptr noundef nonnull align 8 dereferenceable(58) %18)
          to label %134 unwind label %163

134:                                              ; preds = %133
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %18) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #10
  %135 = 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 %136 unwind label %159

136:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #10
  store i32 3000, ptr %21, align 4, !tbaa !9
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %137 unwind label %166

137:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #10
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %23) #10
  store <4 x i8> <i8 72, i8 101, i8 108, i8 108>, ptr %23, align 4, !tbaa !13
  %138 = getelementptr inbounds i8, ptr %23, i64 4
  store i8 111, ptr %138, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  invoke void @_ZNSt6vectorIcSaIcEEC2ESt16initializer_listIcERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr nonnull %23, i64 5, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %139 unwind label %168

139:                                              ; preds = %137
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %23) #10
  %140 = call ptr @_ZNSt6vectorIcSaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  %141 = call ptr @_ZNSt6vectorIcSaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  call void @_ZN3net4spanIcEC2IN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_SA_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr %140, ptr %141) #10
  %142 = load ptr, ptr %25, align 8
  %143 = getelementptr inbounds i8, ptr %25, i64 8
  %144 = load i64, ptr %143, align 8
  %145 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %17, ptr %142, i64 %144)
          to label %146 unwind label %170

146:                                              ; preds = %139
  %147 = 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.14)
          to label %148 unwind label %170

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #10
  store i32 1000, ptr %27, align 4, !tbaa !9
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %149 unwind label %172

149:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef @.str.15) #10
  %150 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #10
  %151 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #10
  call void @_ZN3net4spanIKcEC2EPS1_S3_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %150, ptr noundef %151) #10
  %152 = load ptr, ptr %29, align 8
  %153 = getelementptr inbounds i8, ptr %29, i64 8
  %154 = load i64, ptr %153, align 8
  %155 = invoke noundef i64 @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4sendIKcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(89) %17, ptr %152, i64 %154)
          to label %156 unwind label %174

156:                                              ; preds = %149
  %157 = 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.16)
          to label %158 unwind label %174

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #10
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #10
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %17) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %17) #10
  br label %179

159:                                              ; preds = %134, %126
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %178

161:                                              ; preds = %129
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %133
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %18) #10
  br label %165

165:                                              ; preds = %163, %161
  %.pn = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #10
  br label %178

166:                                              ; preds = %136
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  br label %178

168:                                              ; preds = %137
  %169 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %23) #10
  br label %177

170:                                              ; preds = %146, %139
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %176

172:                                              ; preds = %148
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  br label %176

174:                                              ; preds = %156, %149
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #10
  br label %176

176:                                              ; preds = %174, %172, %170
  %.pn26 = phi { ptr, i32 } [ %175, %174 ], [ %173, %172 ], [ %171, %170 ]
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  br label %177

177:                                              ; preds = %176, %168
  %.pn26.pn = phi { ptr, i32 } [ %.pn26, %176 ], [ %169, %168 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #10
  br label %178

178:                                              ; preds = %177, %166, %165, %159
  %.pn26.pn.pn = phi { ptr, i32 } [ %.pn26.pn, %177 ], [ %167, %166 ], [ %160, %159 ], [ %.pn, %165 ]
  call void @_ZN3net14tcp_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(89) %17) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %17) #10
  br label %180

179:                                              ; preds = %2, %117, %123, %158
  ret i32 0

180:                                              ; preds = %178, %122
  %.pn30.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn30.pn.pn.pn.pn.pn.pn, %122 ], [ %.pn26.pn.pn, %178 ]
  resume { ptr, i32 } %.pn30.pn.pn.pn.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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; 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 #5 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 #6 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 #6 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 #7 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 uwtable
declare dso_local void @_ZNK3net12tcp_acceptorILNS_10ip_versionE2EE6acceptERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.2") align 8, ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 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 #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(89) ptr @_ZNRSt8optionalIN3net14tcp_connectionILNS0_10ip_versionE2EEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #6 align 2

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

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

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

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm10000EE4dataEv(ptr noundef nonnull align 1 dereferenceable(10000)) local_unnamed_addr #8 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i8 } @_ZNK3net14tcp_connectionILNS_10ip_versionE2EE4readIcEESt8optionalImENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr noundef nonnull align 8 dereferenceable(89), ptr, i64, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalImE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Optional_baseIN3net14tcp_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #7 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 #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net14tcp_connectionILNS_10ip_versionE2EE7connectERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #6 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 void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIcSaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIcSaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3net4spanIcEC2IN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_SA_(ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr) unnamed_addr #5 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 #6 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 #5 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 #5 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 #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(none) }

!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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}


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