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

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.net::tls_acceptor" = type { %"class.net::tcp_acceptor.base", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::shared_ptr", %"class.std::unique_ptr" }
%"class.net::tcp_acceptor.base" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.3" }
%"struct.std::_Head_base.3" = type { ptr }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::optional.4" = type { %"struct.std::_Optional_base.5" }
%"struct.std::_Optional_base.5" = type { %"struct.std::_Optional_payload.7" }
%"struct.std::_Optional_payload.7" = type { %"struct.std::_Optional_payload.base.11", [7 x i8] }
%"struct.std::_Optional_payload.base.11" = type { %"struct.std::_Optional_payload_base.base.10" }
%"struct.std::_Optional_payload_base.base.10" = type <{ %"union.std::_Optional_payload_base<net::tls_connection<net::ip_version::v4>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<net::tls_connection<net::ip_version::v4>>::_Storage" = type { %"class.net::tls_connection" }
%"class.net::tls_connection" = type { %"class.net::tcp_connection.base", %"class.std::shared_ptr", %"class.std::unique_ptr", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.net::tcp_connection.base" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8 }
%"class.std::chrono::duration" = type { i64 }
%"struct.std::array" = type { [1024 x i8] }
%"class.std::optional.14" = type { %"struct.std::_Optional_base.15" }
%"struct.std::_Optional_base.15" = type { %"struct.std::_Optional_payload.17" }
%"struct.std::_Optional_payload.17" = type { %"struct.std::_Optional_payload_base.base.19", [7 x i8] }
%"struct.std::_Optional_payload_base.base.19" = type <{ %"union.std::_Optional_payload_base<unsigned long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned long>::_Storage" = type { i64 }
%"class.net::span" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

@.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 [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.net::tls_acceptor", align 8
  %7 = alloca %"class.std::basic_string_view", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.net::endpoint", align 8
  %10 = alloca %"class.std::basic_string_view", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::optional.4", align 8
  %14 = alloca %"class.std::chrono::duration", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::array", align 1
  %17 = alloca %"class.std::optional.14", align 8
  %18 = alloca %"class.net::span", align 8
  %19 = alloca %"class.std::chrono::duration", align 8
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.net::tls_connection", align 8
  %22 = alloca %"class.std::basic_string_view", align 8
  %23 = alloca %"class.std::basic_string_view", align 8
  %24 = alloca %"class.net::endpoint", align 8
  %25 = alloca %"class.std::basic_string_view", align 8
  %26 = alloca %"class.net::span", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  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
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = icmp sle i32 %29, 1
  br i1 %30, label %31, label %32

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

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

38:                                               ; preds = %32
  %39 = 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 184, ptr %6) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef @.str.2) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.3) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.4) #10
  %40 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 0
  %41 = load i64, ptr %40, align 8
  %42 = getelementptr inbounds { i64, ptr }, ptr %10, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %9, i64 %41, ptr %43, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  %44 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 0
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 0
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8
  invoke void @_ZN3net12tls_acceptorILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEES6_RKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(184) %6, i64 %45, ptr %47, i64 %49, ptr %51, ptr noundef nonnull align 8 dereferenceable(58) %9, i64 noundef 5)
          to label %52 unwind label %63

52:                                               ; preds = %38
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %9) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #10
  %53 = 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 %54 unwind label %67

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 192, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %55 = invoke i64 @_ZNSt8literals15chrono_literalsli2msIJLc52ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv()
          to label %56 unwind label %71

56:                                               ; preds = %54
  %57 = getelementptr inbounds %"class.std::chrono::duration", ptr %14, i32 0, i32 0
  store i64 %55, ptr %57, align 8
  invoke void @_ZNK3net12tls_acceptorILNS_10ip_versionE2EE6acceptERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind writable sret(%"class.std::optional.4") align 8 %13, ptr noundef nonnull align 8 dereferenceable(184) %6, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %58 unwind label %71

58:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  %59 = call noundef zeroext i1 @_ZNKSt8optionalIN3net14tls_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(192) %13) #10
  br i1 %59, label %79, label %60

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 @.str.6)
          to label %62 unwind label %75

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

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

67:                                               ; preds = %52
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %11, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %12, align 4
  br label %136

71:                                               ; preds = %56, %54
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %11, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %135

75:                                               ; preds = %79, %60
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %11, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %12, align 4
  br label %134

79:                                               ; preds = %58
  %80 = 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 %81 unwind label %75

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1024, ptr %16) #10
  call void @llvm.memset.p0.i64(ptr align 1 %16, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #10
  %82 = call noundef ptr @_ZNSt8optionalIN3net14tls_connectionILNS0_10ip_versionE2EEEEptEv(ptr noundef nonnull align 8 dereferenceable(192) %13) #10
  %83 = call noundef ptr @_ZNSt5arrayIcLm1024EE5beginEv(ptr noundef nonnull align 1 dereferenceable(1024) %16) #11
  %84 = call noundef ptr @_ZNSt5arrayIcLm1024EE3endEv(ptr noundef nonnull align 1 dereferenceable(1024) %16) #11
  call void @_ZN3net4spanIcEC2EPcS2_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %83, ptr noundef %84) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %85 = invoke i64 @_ZNSt8literals15chrono_literalsli2msIJLc50ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv()
          to label %86 unwind label %121

86:                                               ; preds = %81
  %87 = getelementptr inbounds %"class.std::chrono::duration", ptr %19, i32 0, i32 0
  store i64 %85, ptr %87, align 8
  %88 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %91 = load i64, ptr %90, align 8
  %92 = invoke { i64, i8 } @_ZNK3net14tls_connectionILNS_10ip_versionE2EE4readIcEESt8optionalImENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr noundef nonnull align 8 dereferenceable(184) %82, ptr %89, i64 %91, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %93 unwind label %121

93:                                               ; preds = %86
  %94 = getelementptr inbounds %"class.std::optional.14", ptr %17, i32 0, i32 0
  %95 = getelementptr inbounds %"struct.std::_Optional_base.15", ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds { i64, i8 }, ptr %95, i32 0, i32 0
  %97 = extractvalue { i64, i8 } %92, 0
  store i64 %97, ptr %96, align 8
  %98 = getelementptr inbounds { i64, i8 }, ptr %95, i32 0, i32 1
  %99 = extractvalue { i64, i8 } %92, 1
  store i8 %99, ptr %98, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  %100 = call noundef zeroext i1 @_ZNKSt8optionalImE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  br i1 %100, label %101, label %129

101:                                              ; preds = %93
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %103 unwind label %125

103:                                              ; preds = %101
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  %105 = load i64, ptr %104, align 8, !tbaa !11
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %102, i64 noundef %105)
          to label %107 unwind label %125

107:                                              ; preds = %103
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %106, i8 noundef signext 10)
          to label %109 unwind label %125

109:                                              ; preds = %107
  %110 = call noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024) %16) #11
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  %112 = load i64, ptr %111, align 8, !tbaa !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %110, i64 noundef %112) #10
  %113 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %114 = load i64, ptr %113, align 8
  %115 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8
  %117 = 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) %108, i64 %114, ptr %116)
          to label %118 unwind label %125

118:                                              ; preds = %109
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %117, i8 noundef signext 10)
          to label %120 unwind label %125

120:                                              ; preds = %118
  br label %129

121:                                              ; preds = %86, %81
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %11, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  br label %133

125:                                              ; preds = %118, %109, %107, %103, %101
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %11, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %12, align 4
  br label %133

129:                                              ; preds = %120, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #10
  store i32 0, ptr %15, align 4
  br label %130

130:                                              ; preds = %129, %62
  call void @_ZNSt14_Optional_baseIN3net14tls_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(192) %13) #10
  call void @llvm.lifetime.end.p0(i64 192, ptr %13) #10
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %6) #10
  call void @llvm.lifetime.end.p0(i64 184, ptr %6) #10
  %131 = load i32, ptr %15, align 4
  switch i32 %131, label %199 [
    i32 0, label %132
    i32 1, label %192
  ]

132:                                              ; preds = %130
  br label %192

133:                                              ; preds = %125, %121
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #10
  br label %134

134:                                              ; preds = %133, %75
  call void @_ZNSt14_Optional_baseIN3net14tls_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(192) %13) #10
  br label %135

135:                                              ; preds = %134, %71
  call void @llvm.lifetime.end.p0(i64 192, ptr %13) #10
  br label %136

136:                                              ; preds = %135, %67
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %6) #10
  br label %137

137:                                              ; preds = %136, %63
  call void @llvm.lifetime.end.p0(i64 184, ptr %6) #10
  br label %194

138:                                              ; preds = %32
  %139 = load ptr, ptr %5, align 8, !tbaa !9
  %140 = getelementptr inbounds ptr, ptr %139, i64 1
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = call i32 @strcmp(ptr noundef %141, ptr noundef @.str.9) #9
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %144, label %191

144:                                              ; preds = %138
  %145 = 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 184, ptr %21) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef @.str.2) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef @.str.3) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef @.str.11) #10
  %146 = getelementptr inbounds { i64, ptr }, ptr %25, i32 0, i32 0
  %147 = load i64, ptr %146, align 8
  %148 = getelementptr inbounds { i64, ptr }, ptr %25, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %24, i64 %147, ptr %149, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  %150 = getelementptr inbounds { i64, ptr }, ptr %22, i32 0, i32 0
  %151 = load i64, ptr %150, align 8
  %152 = getelementptr inbounds { i64, ptr }, ptr %22, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8
  %154 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 0
  %155 = load i64, ptr %154, align 8
  %156 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8
  invoke void @_ZN3net14tls_connectionILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEES6_RKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(184) %21, i64 %151, ptr %153, i64 %155, ptr %157, ptr noundef nonnull align 8 dereferenceable(58) %24)
          to label %158 unwind label %172

158:                                              ; preds = %144
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %24) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #10
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %160 unwind label %176

160:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %161 unwind label %180

161:                                              ; preds = %160
  call void @_ZN3net4spanIcEC2INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  %162 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8
  %164 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %165 = load i64, ptr %164, align 8
  %166 = invoke noundef i64 @_ZNK3net14tls_connectionILNS_10ip_versionE2EE4sendIcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(184) %21, ptr %163, i64 %165)
          to label %167 unwind label %184

167:                                              ; preds = %161
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #10
  %168 = 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 %169 unwind label %176

169:                                              ; preds = %167
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %168, i8 noundef signext 10)
          to label %171 unwind label %176

171:                                              ; preds = %169
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %21) #10
  call void @llvm.lifetime.end.p0(i64 184, ptr %21) #10
  br label %191

172:                                              ; preds = %144
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %11, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %12, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %24) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #10
  br label %190

176:                                              ; preds = %169, %167, %158
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %11, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %12, align 4
  br label %189

180:                                              ; preds = %160
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %11, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %12, align 4
  br label %188

184:                                              ; preds = %161
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %11, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  br label %188

188:                                              ; preds = %184, %180
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #10
  br label %189

189:                                              ; preds = %188, %176
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %21) #10
  br label %190

190:                                              ; preds = %189, %172
  call void @llvm.lifetime.end.p0(i64 184, ptr %21) #10
  br label %194

191:                                              ; preds = %171, %138
  br label %192

192:                                              ; preds = %191, %132, %130, %31
  %193 = load i32, ptr %3, align 4
  ret i32 %193

194:                                              ; preds = %190, %137
  %195 = load ptr, ptr %11, align 8
  %196 = load i32, ptr %12, align 4
  %197 = insertvalue { ptr, i32 } poison, ptr %195, 0
  %198 = insertvalue { ptr, i32 } %197, i32 %196, 1
  resume { ptr, i32 } %198

199:                                              ; preds = %130
  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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #4 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3net12tls_acceptorILNS_10ip_versionE2EE6acceptERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.4") align 8, ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt8literals15chrono_literalsli2msIJLc52ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv() #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN3net14tls_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(192)) #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt8literals15chrono_literalsli2msIJLc50ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv() #5

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024)) #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 #4 align 2

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.net::tls_acceptor" = type { %"class.net::tcp_acceptor.base", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::shared_ptr", %"class.std::unique_ptr" }
%"class.net::tcp_acceptor.base" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.3" }
%"struct.std::_Head_base.3" = type { ptr }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::optional.4" = type { %"struct.std::_Optional_base.5" }
%"struct.std::_Optional_base.5" = type { %"struct.std::_Optional_payload.7" }
%"struct.std::_Optional_payload.7" = type { %"struct.std::_Optional_payload.base.11", [7 x i8] }
%"struct.std::_Optional_payload.base.11" = type { %"struct.std::_Optional_payload_base.base.10" }
%"struct.std::_Optional_payload_base.base.10" = type <{ %"union.std::_Optional_payload_base<net::tls_connection<net::ip_version::v4>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<net::tls_connection<net::ip_version::v4>>::_Storage" = type { %"class.net::tls_connection" }
%"class.net::tls_connection" = type { %"class.net::tcp_connection.base", %"class.std::shared_ptr", %"class.std::unique_ptr", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.net::tcp_connection.base" = type { %"class.net::detail::base_socket.base", [3 x i8], %"class.std::optional", i8 }
%"class.std::chrono::duration" = type { i64 }
%"struct.std::array" = type { [1024 x i8] }
%"class.std::optional.14" = type { %"struct.std::_Optional_base.15" }
%"struct.std::_Optional_base.15" = type { %"struct.std::_Optional_payload.17" }
%"struct.std::_Optional_payload.17" = type { %"struct.std::_Optional_payload_base.base.19", [7 x i8] }
%"struct.std::_Optional_payload_base.base.19" = type <{ %"union.std::_Optional_payload_base<unsigned long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned long>::_Storage" = type { i64 }
%"class.net::span" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

@.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 [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.net::tls_acceptor", align 8
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca %"class.net::endpoint", align 8
  %7 = alloca %"class.std::basic_string_view", align 8
  %8 = alloca %"class.std::optional.4", align 8
  %9 = alloca %"class.std::chrono::duration", align 8
  %10 = alloca %"struct.std::array", align 1
  %11 = alloca %"class.std::optional.14", align 8
  %12 = alloca %"class.net::span", align 8
  %13 = alloca %"class.std::chrono::duration", align 8
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.net::tls_connection", align 8
  %16 = alloca %"class.std::basic_string_view", align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca %"class.net::endpoint", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.net::span", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = icmp slt i32 %0, 2
  br i1 %23, label %141, label %24

24:                                               ; preds = %2
  %25 = getelementptr inbounds i8, ptr %1, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) @.str) #9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %103

29:                                               ; preds = %24
  %30 = 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 184, ptr nonnull %3) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef @.str.2) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str.3) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef @.str.4) #10
  %31 = load i64, ptr %7, align 8
  %32 = getelementptr inbounds i8, ptr %7, i64 8
  %33 = load ptr, ptr %32, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %6, i64 %31, ptr %33, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  %34 = load i64, ptr %4, align 8
  %35 = getelementptr inbounds i8, ptr %4, i64 8
  %36 = load ptr, ptr %35, align 8
  %37 = load i64, ptr %5, align 8
  %38 = getelementptr inbounds i8, ptr %5, i64 8
  %39 = load ptr, ptr %38, align 8
  invoke void @_ZN3net12tls_acceptorILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEES6_RKNS_8endpointILS1_2EEEm(ptr noundef nonnull align 8 dereferenceable(184) %3, i64 %34, ptr %36, i64 %37, ptr %39, ptr noundef nonnull align 8 dereferenceable(58) %6, i64 noundef 5)
          to label %40 unwind label %49

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

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %43 = invoke i64 @_ZNSt8literals15chrono_literalsli2msIJLc52ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv()
          to label %44 unwind label %53

44:                                               ; preds = %42
  store i64 %43, ptr %9, align 8
  invoke void @_ZNK3net12tls_acceptorILNS_10ip_versionE2EE6acceptERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional.4") align 8 %8, ptr noundef nonnull align 8 dereferenceable(184) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %45 unwind label %53

45:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  %46 = call noundef zeroext i1 @_ZNKSt8optionalIN3net14tls_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(192) %8) #10
  br i1 %46, label %57, label %47

47:                                               ; preds = %45
  %48 = 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 %97 unwind label %55

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

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %101

53:                                               ; preds = %44, %42
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %100

55:                                               ; preds = %57, %47
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %99

57:                                               ; preds = %45
  %58 = 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 %59 unwind label %55

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %10) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %10, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  %60 = call noundef ptr @_ZNSt8optionalIN3net14tls_connectionILNS0_10ip_versionE2EEEEptEv(ptr noundef nonnull align 8 dereferenceable(192) %8) #10
  %61 = call noundef ptr @_ZNSt5arrayIcLm1024EE5beginEv(ptr noundef nonnull align 1 dereferenceable(1024) %10) #11
  %62 = call noundef ptr @_ZNSt5arrayIcLm1024EE3endEv(ptr noundef nonnull align 1 dereferenceable(1024) %10) #11
  call void @_ZN3net4spanIcEC2EPcS2_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %61, ptr noundef %62) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  %63 = invoke i64 @_ZNSt8literals15chrono_literalsli2msIJLc50ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv()
          to label %64 unwind label %92

64:                                               ; preds = %59
  store i64 %63, ptr %13, align 8
  %65 = load ptr, ptr %12, align 8
  %66 = getelementptr inbounds i8, ptr %12, i64 8
  %67 = load i64, ptr %66, align 8
  %68 = invoke { i64, i8 } @_ZNK3net14tls_connectionILNS_10ip_versionE2EE4readIcEESt8optionalImENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr noundef nonnull align 8 dereferenceable(184) %60, ptr %65, i64 %67, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %69 unwind label %92

69:                                               ; preds = %64
  %70 = extractvalue { i64, i8 } %68, 0
  store i64 %70, ptr %11, align 8
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  %72 = extractvalue { i64, i8 } %68, 1
  store i8 %72, ptr %71, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  %73 = call noundef zeroext i1 @_ZNKSt8optionalImE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  br i1 %73, label %74, label %96

74:                                               ; preds = %69
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %76 unwind label %94

76:                                               ; preds = %74
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %75, i64 noundef %78)
          to label %80 unwind label %94

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

82:                                               ; preds = %80
  %83 = call noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024) %10) #11
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKRSt8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  %85 = load i64, ptr %84, align 8, !tbaa !9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %83, i64 noundef %85) #10
  %86 = load i64, ptr %14, align 8
  %87 = getelementptr inbounds i8, ptr %14, i64 8
  %88 = load ptr, ptr %87, align 8
  %89 = 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) %81, i64 %86, ptr %88)
          to label %90 unwind label %94

90:                                               ; preds = %82
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %89, i8 noundef signext 10)
          to label %96 unwind label %94

92:                                               ; preds = %64, %59
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  br label %98

94:                                               ; preds = %90, %82, %80, %76, %74
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %98

96:                                               ; preds = %90, %69
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #10
  br label %97

97:                                               ; preds = %47, %96
  call void @_ZNSt14_Optional_baseIN3net14tls_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(192) %8) #10
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %8) #10
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %3) #10
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %3) #10
  br label %141

98:                                               ; preds = %94, %92
  %.pn20 = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #10
  br label %99

99:                                               ; preds = %98, %55
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %98 ], [ %56, %55 ]
  call void @_ZNSt14_Optional_baseIN3net14tls_connectionILNS0_10ip_versionE2EEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(192) %8) #10
  br label %100

100:                                              ; preds = %99, %53
  %.pn20.pn.pn = phi { ptr, i32 } [ %.pn20.pn, %99 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %8) #10
  br label %101

101:                                              ; preds = %100, %51
  %.pn20.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn, %100 ], [ %52, %51 ]
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %3) #10
  br label %102

102:                                              ; preds = %101, %49
  %.pn20.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn.pn, %101 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %3) #10
  br label %142

103:                                              ; preds = %24
  %104 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %141

106:                                              ; preds = %103
  %107 = 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 184, ptr nonnull %15) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef @.str.2) #10
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef @.str.3) #10
  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.11) #10
  %108 = load i64, ptr %19, align 8
  %109 = getelementptr inbounds i8, ptr %19, i64 8
  %110 = load ptr, ptr %109, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %18, i64 %108, ptr %110, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  %111 = load i64, ptr %16, align 8
  %112 = getelementptr inbounds i8, ptr %16, i64 8
  %113 = load ptr, ptr %112, align 8
  %114 = load i64, ptr %17, align 8
  %115 = getelementptr inbounds i8, ptr %17, i64 8
  %116 = load ptr, ptr %115, align 8
  invoke void @_ZN3net14tls_connectionILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEES6_RKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(184) %15, i64 %111, ptr %113, i64 %114, ptr %116, ptr noundef nonnull align 8 dereferenceable(58) %18)
          to label %117 unwind label %130

117:                                              ; preds = %106
  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
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
          to label %119 unwind label %132

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %120 unwind label %134

120:                                              ; preds = %119
  call void @_ZN3net4spanIcEC2INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  %121 = load ptr, ptr %20, align 8
  %122 = getelementptr inbounds i8, ptr %20, i64 8
  %123 = load i64, ptr %122, align 8
  %124 = invoke noundef i64 @_ZNK3net14tls_connectionILNS_10ip_versionE2EE4sendIcEEmNS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(184) %15, ptr %121, i64 %123)
          to label %125 unwind label %136

125:                                              ; preds = %120
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #10
  %126 = 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 %127 unwind label %132

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %126, i8 noundef signext 10)
          to label %129 unwind label %132

129:                                              ; preds = %127
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %15) #10
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %15) #10
  br label %141

130:                                              ; preds = %106
  %131 = landingpad { ptr, i32 }
          cleanup
  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
  br label %140

132:                                              ; preds = %127, %125, %117
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %139

134:                                              ; preds = %119
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %138

136:                                              ; preds = %120
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  br label %138

138:                                              ; preds = %136, %134
  %.pn = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #10
  br label %139

139:                                              ; preds = %138, %132
  %.pn17 = phi { ptr, i32 } [ %133, %132 ], [ %.pn, %138 ]
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %15) #10
  br label %140

140:                                              ; preds = %139, %130
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %139 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %15) #10
  br label %142

141:                                              ; preds = %2, %97, %103, %129
  ret i32 0

142:                                              ; preds = %140, %102
  %.pn20.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn20.pn.pn.pn.pn, %102 ], [ %.pn17.pn, %140 ]
  resume { ptr, i32 } %.pn20.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 nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #4 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt8literals15chrono_literalsli2msIJLc52ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv() local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalIN3net14tls_connectionILNS0_10ip_versionE2EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt8literals15chrono_literalsli2msIJLc50ELc48ELc48ELc48EEEENSt6chrono8durationIlSt5ratioILl1ELl1000EEEEv() local_unnamed_addr #5

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024)) 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 #4 align 2

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

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

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

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

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

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

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

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

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

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

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


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