; LLVM IR from tglane/socketwrapper :: example (async_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::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr.4" }
%"class.std::shared_ptr.4" = type { %"class.std::__shared_ptr.5" }
%"class.std::__shared_ptr.5" = type { ptr, %"class.std::__shared_count" }
%"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 }
%"struct.std::array" = type { [1024 x i8] }
%"class.net::span" = type { ptr, i64 }
%class.anon = type { ptr }
%"class.std::future.7" = type { %"class.std::__basic_future.8" }
%"class.std::__basic_future.8" = type { %"class.std::shared_ptr.4" }
%"class.net::span.9" = 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 [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 [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 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::future", align 8
  %14 = alloca %"class.net::tls_connection", align 8
  %15 = alloca %"struct.std::array", align 1
  %16 = alloca %"class.net::span", align 8
  %17 = alloca %class.anon, align 8
  %18 = alloca %"class.net::tls_connection", align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.net::endpoint", align 8
  %22 = alloca %"class.std::basic_string_view", align 8
  %23 = alloca %"class.std::future.7", align 8
  %24 = alloca %"class.net::span.9", 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
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = icmp sle i32 %25, 1
  br i1 %26, label %27, label %28

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

28:                                               ; preds = %2
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 1
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call i32 @strcmp(ptr noundef %31, ptr noundef @.str) #8
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %89

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

48:                                               ; preds = %34
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %9) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  invoke void @_ZNK3net12tls_acceptorILNS_10ip_versionE2EE15promised_acceptEv(ptr dead_on_unwind writable sret(%"class.std::future") align 8 %13, ptr noundef nonnull align 8 dereferenceable(184) %6)
          to label %49 unwind label %64

49:                                               ; preds = %48
  %50 = 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 %51 unwind label %68

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 184, ptr %14) #9
  invoke void @_ZNSt6futureIN3net14tls_connectionILNS0_10ip_versionE2EEEE3getEv(ptr dead_on_unwind writable sret(%"class.net::tls_connection") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %52 unwind label %72

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 1024, ptr %15) #9
  call void @llvm.memset.p0.i64(ptr align 1 %15, i8 0, i64 1024, i1 false)
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm1024EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 1 dereferenceable(1024) %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %53 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 0
  store ptr %15, ptr %53, align 8, !tbaa !9
  %54 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  %56 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %57 = load i64, ptr %56, align 8
  invoke void @"_ZNK3net14tls_connectionILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(ptr noundef nonnull align 8 dereferenceable(184) %14, ptr %55, i64 %57, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %58 unwind label %76

58:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  invoke void @_ZN3net9async_runEv()
          to label %59 unwind label %80

59:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 1024, ptr %15) #9
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %14) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr %14) #9
  call void @_ZNSt14__basic_futureIN3net14tls_connectionILNS0_10ip_versionE2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %6) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr %6) #9
  br label %139

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

64:                                               ; preds = %48
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  br label %87

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

72:                                               ; preds = %51
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  br label %85

76:                                               ; preds = %52
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %11, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %84

80:                                               ; preds = %58
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %11, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %12, align 4
  br label %84

84:                                               ; preds = %80, %76
  call void @llvm.lifetime.end.p0(i64 1024, ptr %15) #9
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %14) #9
  br label %85

85:                                               ; preds = %84, %72
  call void @llvm.lifetime.end.p0(i64 184, ptr %14) #9
  br label %86

86:                                               ; preds = %85, %68
  call void @_ZNSt14__basic_futureIN3net14tls_connectionILNS0_10ip_versionE2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #9
  br label %87

87:                                               ; preds = %86, %64
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %6) #9
  br label %88

88:                                               ; preds = %87, %60
  call void @llvm.lifetime.end.p0(i64 184, ptr %6) #9
  br label %141

89:                                               ; preds = %28
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 1
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = call i32 @strcmp(ptr noundef %92, ptr noundef @.str.6) #8
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %138

95:                                               ; preds = %89
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 184, ptr %18) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef @.str.2) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef @.str.3) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef @.str.8) #9
  %97 = getelementptr inbounds { i64, ptr }, ptr %22, i32 0, i32 0
  %98 = load i64, ptr %97, align 8
  %99 = getelementptr inbounds { i64, ptr }, ptr %22, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %21, i64 %98, ptr %100, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  %101 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %102 = load i64, ptr %101, align 8
  %103 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %106 = load i64, ptr %105, align 8
  %107 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8
  invoke void @_ZN3net14tls_connectionILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEES6_RKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(184) %18, i64 %102, ptr %104, i64 %106, ptr %108, ptr noundef nonnull align 8 dereferenceable(58) %21)
          to label %109 unwind label %119

109:                                              ; preds = %95
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %21) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @_ZN3net4spanIKcEC2ILm12EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 1 dereferenceable(12) @.str.9) #9
  %110 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %113 = load i64, ptr %112, align 8
  invoke void @_ZNK3net14tls_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind writable sret(%"class.std::future.7") align 8 %23, ptr noundef nonnull align 8 dereferenceable(184) %18, ptr %111, i64 %113)
          to label %114 unwind label %123

114:                                              ; preds = %109
  %115 = invoke noundef i64 @_ZNSt6futureImE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %116 unwind label %127

116:                                              ; preds = %114
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %118 unwind label %132

118:                                              ; preds = %116
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %18) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr %18) #9
  br label %138

119:                                              ; preds = %95
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %11, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %12, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %21) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #9
  br label %137

123:                                              ; preds = %109
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %11, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %12, align 4
  br label %131

127:                                              ; preds = %114
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %11, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %12, align 4
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  br label %136

132:                                              ; preds = %116
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %11, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %12, align 4
  br label %136

136:                                              ; preds = %132, %131
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %18) #9
  br label %137

137:                                              ; preds = %136, %119
  call void @llvm.lifetime.end.p0(i64 184, ptr %18) #9
  br label %141

138:                                              ; preds = %118, %89
  br label %139

139:                                              ; preds = %138, %59, %27
  %140 = load i32, ptr %3, align 4
  ret i32 %140

141:                                              ; preds = %137, %88
  %142 = load ptr, ptr %11, align 8
  %143 = load i32, ptr %12, align 4
  %144 = insertvalue { ptr, i32 } poison, ptr %142, 0
  %145 = insertvalue { ptr, i32 } %144, i32 %143, 1
  resume { ptr, i32 } %145
}

; 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_versionE2EE15promised_acceptEv(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(184)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6futureIN3net14tls_connectionILNS0_10ip_versionE2EEEE3getEv(ptr dead_on_unwind noalias writable sret(%"class.net::tls_connection") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #5 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 uwtable
declare hidden void @"_ZNK3net14tls_connectionILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(ptr noundef nonnull align 8 dereferenceable(184), ptr, i64, ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3net9async_runEv() #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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14__basic_futureIN3net14tls_connectionILNS0_10ip_versionE2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 void @_ZNK3net14tls_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind noalias writable sret(%"class.std::future.7") align 8, ptr noundef nonnull align 8 dereferenceable(184), ptr, i64) #5 align 2

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

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

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

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

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

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


; 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::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr.4" }
%"class.std::shared_ptr.4" = type { %"class.std::__shared_ptr.5" }
%"class.std::__shared_ptr.5" = type { ptr, %"class.std::__shared_count" }
%"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 }
%"struct.std::array" = type { [1024 x i8] }
%"class.net::span" = type { ptr, i64 }
%class.anon = type { ptr }
%"class.std::future.7" = type { %"class.std::__basic_future.8" }
%"class.std::__basic_future.8" = type { %"class.std::shared_ptr.4" }
%"class.net::span.9" = 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 [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 [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 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::future", align 8
  %9 = alloca %"class.net::tls_connection", align 8
  %10 = alloca %"struct.std::array", align 1
  %11 = alloca %"class.net::span", align 8
  %12 = alloca %class.anon, align 8
  %13 = alloca %"class.net::tls_connection", align 8
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.std::basic_string_view", align 8
  %16 = alloca %"class.net::endpoint", align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca %"class.std::future.7", align 8
  %19 = alloca %"class.net::span.9", align 8
  %20 = icmp slt i32 %0, 2
  br i1 %20, label %98, label %21

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

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

37:                                               ; preds = %26
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %6) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  invoke void @_ZNK3net12tls_acceptorILNS_10ip_versionE2EE15promised_acceptEv(ptr dead_on_unwind nonnull writable sret(%"class.std::future") align 8 %8, ptr noundef nonnull align 8 dereferenceable(184) %3)
          to label %38 unwind label %49

38:                                               ; preds = %37
  %39 = 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 %40 unwind label %51

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %9) #9
  invoke void @_ZNSt6futureIN3net14tls_connectionILNS0_10ip_versionE2EEEE3getEv(ptr dead_on_unwind nonnull writable sret(%"class.net::tls_connection") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %41 unwind label %53

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %10) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %10, i8 0, i64 1024, i1 false)
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm1024EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 1 dereferenceable(1024) %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  store ptr %10, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %11, align 8
  %43 = getelementptr inbounds i8, ptr %11, i64 8
  %44 = load i64, ptr %43, align 8
  invoke void @"_ZNK3net14tls_connectionILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(ptr noundef nonnull align 8 dereferenceable(184) %9, ptr %42, i64 %44, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %45 unwind label %55

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  invoke void @_ZN3net9async_runEv()
          to label %46 unwind label %57

46:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #9
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %9) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %9) #9
  call void @_ZNSt14__basic_futureIN3net14tls_connectionILNS0_10ip_versionE2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %3) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %3) #9
  br label %98

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

49:                                               ; preds = %37
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %62

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

53:                                               ; preds = %40
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %60

55:                                               ; preds = %41
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %59

57:                                               ; preds = %45
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %59

59:                                               ; preds = %57, %55
  %.pn19 = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #9
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %9) #9
  br label %60

60:                                               ; preds = %59, %53
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %59 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %9) #9
  br label %61

61:                                               ; preds = %60, %51
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %60 ], [ %52, %51 ]
  call void @_ZNSt14__basic_futureIN3net14tls_connectionILNS0_10ip_versionE2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  br label %62

62:                                               ; preds = %61, %49
  %.pn19.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn, %61 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @_ZN3net12tls_acceptorILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %3) #9
  br label %63

63:                                               ; preds = %62, %47
  %.pn19.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn.pn, %62 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %3) #9
  br label %99

64:                                               ; preds = %21
  %65 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.6) #8
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %98

67:                                               ; preds = %64
  %68 = 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.7)
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %13) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef @.str.2) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.3) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef @.str.8) #9
  %69 = load i64, ptr %17, align 8
  %70 = getelementptr inbounds i8, ptr %17, i64 8
  %71 = load ptr, ptr %70, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %16, i64 %69, ptr %71, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  %72 = load i64, ptr %14, align 8
  %73 = getelementptr inbounds i8, ptr %14, i64 8
  %74 = load ptr, ptr %73, align 8
  %75 = load i64, ptr %15, align 8
  %76 = getelementptr inbounds i8, ptr %15, i64 8
  %77 = load ptr, ptr %76, align 8
  invoke void @_ZN3net14tls_connectionILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEES6_RKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(184) %13, i64 %72, ptr %74, i64 %75, ptr %77, ptr noundef nonnull align 8 dereferenceable(58) %16)
          to label %78 unwind label %87

78:                                               ; preds = %67
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %16) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #9
  call void @_ZN3net4spanIKcEC2ILm12EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 1 dereferenceable(12) @.str.9) #9
  %79 = load ptr, ptr %19, align 8
  %80 = getelementptr inbounds i8, ptr %19, i64 8
  %81 = load i64, ptr %80, align 8
  invoke void @_ZNK3net14tls_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::future.7") align 8 %18, ptr noundef nonnull align 8 dereferenceable(184) %13, ptr %79, i64 %81)
          to label %82 unwind label %89

82:                                               ; preds = %78
  %83 = invoke noundef i64 @_ZNSt6futureImE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %84 unwind label %91

84:                                               ; preds = %82
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
          to label %86 unwind label %94

86:                                               ; preds = %84
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %13) #9
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %13) #9
  br label %98

87:                                               ; preds = %67
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %16) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #9
  br label %97

89:                                               ; preds = %78
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %82
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #9
  br label %93

93:                                               ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #9
  br label %96

94:                                               ; preds = %84
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %96

96:                                               ; preds = %94, %93
  %.pn16 = phi { ptr, i32 } [ %95, %94 ], [ %.pn, %93 ]
  call void @_ZN3net14tls_connectionILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(184) %13) #9
  br label %97

97:                                               ; preds = %96, %87
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %96 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %13) #9
  br label %99

98:                                               ; preds = %2, %64, %86, %46
  ret i32 0

99:                                               ; preds = %97, %63
  %.pn19.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn19.pn.pn.pn.pn, %63 ], [ %.pn16.pn, %97 ]
  resume { ptr, i32 } %.pn19.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_versionE2EE15promised_acceptEv(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6futureIN3net14tls_connectionILNS0_10ip_versionE2EEEE3getEv(ptr dead_on_unwind noalias writable sret(%"class.net::tls_connection") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 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 uwtable
declare hidden void @"_ZNK3net14tls_connectionILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(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 nounwind uwtable
declare dso_local void @_ZN3net4spanIcEC2IRSt5arrayIcLm1024EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1024)) unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14__basic_futureIN3net14tls_connectionILNS0_10ip_versionE2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 void @_ZNK3net14tls_connectionILNS_10ip_versionE2EE13promised_sendIKcEESt6futureImENS_4spanIT_EE(ptr dead_on_unwind noalias writable sret(%"class.std::future.7") align 8, ptr noundef nonnull align 8 dereferenceable(184), ptr, i64) local_unnamed_addr #5 align 2

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

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

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

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

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

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


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