; LLVM IR from dynexcoin/Dynex :: src/Platform/Linux/System (TcpConnector)

; 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.System::TcpConnection" = type { ptr, i32, %"struct.System::ContextPair" }
%"struct.System::ContextPair" = type { ptr, ptr }
%"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] }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"struct.System::(anonymous namespace)::TcpConnectorContextExt" = type <{ %"struct.System::OperationContext", i32, [4 x i8] }>
%"struct.System::OperationContext" = type { ptr, i8, i32 }
%struct.epoll_event = type <{ i32, %union.epoll_data }>
%union.epoll_data = type { ptr }
%class.anon = type { ptr }
%"class.System::TcpConnector" = type { ptr, ptr }
%"struct.System::NativeContext" = type { ptr, ptr, i8, i8, ptr, ptr, ptr, ptr, %"class.std::function", %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZTIN6System20InterruptedExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt(ptr dead_on_unwind noalias writable sret(%"class.System::TcpConnection") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, i16 noundef zeroext %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i16, align 2
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.sockaddr_in, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %struct.sockaddr_in, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.System::ContextPair", align 8
  %24 = alloca %"struct.System::(anonymous namespace)::TcpConnectorContextExt", align 8
  %25 = alloca %struct.epoll_event, align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %class.anon, align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i16 %3, ptr %8, align 2, !tbaa !9
  %43 = load ptr, ptr %6, align 8
  %44 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %4
  br label %50

48:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 73, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

49:                                               ; No predecessors!
  br label %50

50:                                               ; preds = %49, %47
  %51 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %55

54:                                               ; preds = %50
  br label %57

55:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 74, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %54
  %58 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = call noundef zeroext i1 @_ZN6System10Dispatcher11interruptedEv(ptr noundef nonnull align 8 dereferenceable(424) %59)
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = call ptr @__cxa_allocate_exception(i64 8) #11
  call void @llvm.memset.p0.i64(ptr align 16 %62, i8 0, i64 8, i1 false)
  call void @_ZN6System20InterruptedExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %62) #11
  call void @__cxa_throw(ptr %62, ptr @_ZTIN6System20InterruptedExceptionE, ptr @_ZNSt9exceptionD2Ev) #12
  unreachable

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #11
  %64 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 6) #11
  store i32 %64, ptr %10, align 4, !tbaa !14
  %65 = load i32, ptr %10, align 4, !tbaa !14
  %66 = icmp eq i32 %65, -1
  br i1 %66, label %67, label %80

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #11
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12)
          to label %68 unwind label %71

68:                                               ; preds = %67
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef @.str.4, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %69 unwind label %75

69:                                               ; preds = %68
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #11
  br label %401

71:                                               ; preds = %67
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  br label %79

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %13, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  br label %79

79:                                               ; preds = %75, %71
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #11
  br label %418

80:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #11
  %81 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 0
  store i16 2, ptr %81, align 4, !tbaa !16
  %82 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 1
  store i16 0, ptr %82, align 2, !tbaa !19
  %83 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 2
  %84 = getelementptr inbounds %struct.in_addr, ptr %83, i32 0, i32 0
  store i32 0, ptr %84, align 4, !tbaa !20
  %85 = load i32, ptr %10, align 4, !tbaa !14
  %86 = call i32 @bind(i32 noundef %85, ptr noundef %15, i32 noundef 16) #11
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %101

88:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #11
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17)
          to label %89 unwind label %92

89:                                               ; preds = %88
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %90 unwind label %96

90:                                               ; preds = %89
  %91 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #11
  br label %383

92:                                               ; preds = %88
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %13, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %14, align 4
  br label %100

96:                                               ; preds = %89
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %13, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #11
  br label %100

100:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #11
  br label %400

101:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #11
  %102 = load i32, ptr %10, align 4, !tbaa !14
  %103 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %102, i32 noundef 3, i32 noundef 0)
          to label %104 unwind label %118

104:                                              ; preds = %101
  store i32 %103, ptr %18, align 4, !tbaa !14
  %105 = load i32, ptr %18, align 4, !tbaa !14
  %106 = icmp eq i32 %105, -1
  br i1 %106, label %114, label %107

107:                                              ; preds = %104
  %108 = load i32, ptr %10, align 4, !tbaa !14
  %109 = load i32, ptr %18, align 4, !tbaa !14
  %110 = or i32 %109, 2048
  %111 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %108, i32 noundef 4, i32 noundef %110)
          to label %112 unwind label %118

112:                                              ; preds = %107
  %113 = icmp eq i32 %111, -1
  br i1 %113, label %114, label %131

114:                                              ; preds = %112, %104
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #11
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20)
          to label %115 unwind label %122

115:                                              ; preds = %114
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef @.str.6, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %116 unwind label %126

116:                                              ; preds = %115
  %117 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #11
  br label %378

118:                                              ; preds = %107, %101
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %13, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %14, align 4
  br label %382

122:                                              ; preds = %114
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %13, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %14, align 4
  br label %130

126:                                              ; preds = %115
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %13, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #11
  br label %130

130:                                              ; preds = %126, %122
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #11
  br label %382

131:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #11
  %132 = getelementptr inbounds %struct.sockaddr_in, ptr %21, i32 0, i32 0
  store i16 2, ptr %132, align 4, !tbaa !16
  %133 = load i16, ptr %8, align 2, !tbaa !9
  %134 = invoke noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %133)
          to label %135 unwind label %177

135:                                              ; preds = %131
  %136 = getelementptr inbounds %struct.sockaddr_in, ptr %21, i32 0, i32 1
  store i16 %134, ptr %136, align 2, !tbaa !19
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = invoke noundef i32 @_ZNK6System11Ipv4Address8getValueEv(ptr noundef nonnull align 4 dereferenceable(4) %137)
          to label %139 unwind label %177

139:                                              ; preds = %135
  %140 = invoke noundef i32 @_ZL10__bswap_32j(i32 noundef %138)
          to label %141 unwind label %177

141:                                              ; preds = %139
  %142 = getelementptr inbounds %struct.sockaddr_in, ptr %21, i32 0, i32 2
  %143 = getelementptr inbounds %struct.in_addr, ptr %142, i32 0, i32 0
  store i32 %140, ptr %143, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #11
  %144 = load i32, ptr %10, align 4, !tbaa !14
  %145 = invoke i32 @connect(i32 noundef %144, ptr noundef %21, i32 noundef 16)
          to label %146 unwind label %181

146:                                              ; preds = %141
  store i32 %145, ptr %22, align 4, !tbaa !14
  %147 = load i32, ptr %22, align 4, !tbaa !14
  %148 = icmp eq i32 %147, -1
  br i1 %148, label %149, label %367

149:                                              ; preds = %146
  %150 = call ptr @__errno_location() #13
  %151 = load i32, ptr %150, align 4, !tbaa !14
  %152 = icmp eq i32 %151, 115
  br i1 %152, label %153, label %366

153:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #11
  %154 = getelementptr inbounds %"struct.System::OperationContext", ptr %24, i32 0, i32 1
  store i8 0, ptr %154, align 8, !tbaa !21
  %155 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !11
  %157 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %156)
          to label %158 unwind label %185

158:                                              ; preds = %153
  %159 = getelementptr inbounds %"struct.System::OperationContext", ptr %24, i32 0, i32 0
  store ptr %157, ptr %159, align 8, !tbaa !24
  %160 = load i32, ptr %10, align 4, !tbaa !14
  %161 = getelementptr inbounds %"struct.System::(anonymous namespace)::TcpConnectorContextExt", ptr %24, i32 0, i32 1
  store i32 %160, ptr %161, align 8, !tbaa !25
  %162 = getelementptr inbounds %"struct.System::ContextPair", ptr %23, i32 0, i32 0
  store ptr null, ptr %162, align 8, !tbaa !27
  %163 = getelementptr inbounds %"struct.System::ContextPair", ptr %23, i32 0, i32 1
  store ptr %24, ptr %163, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #11
  %164 = getelementptr inbounds %struct.epoll_event, ptr %25, i32 0, i32 0
  store i32 1073750028, ptr %164, align 1, !tbaa !30
  %165 = getelementptr inbounds %struct.epoll_event, ptr %25, i32 0, i32 1
  store ptr %23, ptr %165, align 1, !tbaa !32
  %166 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !11
  %168 = invoke noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424) %167)
          to label %169 unwind label %189

169:                                              ; preds = %158
  %170 = load i32, ptr %10, align 4, !tbaa !14
  %171 = call i32 @epoll_ctl(i32 noundef %168, i32 noundef 1, i32 noundef %170, ptr noundef %25) #11
  %172 = icmp eq i32 %171, -1
  br i1 %172, label %173, label %202

173:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #11
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %27)
          to label %174 unwind label %193

174:                                              ; preds = %173
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef @.str.7, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %175 unwind label %197

175:                                              ; preds = %174
  %176 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  br label %360

177:                                              ; preds = %139, %135, %131
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %13, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %14, align 4
  br label %377

181:                                              ; preds = %367, %141
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %13, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %14, align 4
  br label %376

185:                                              ; preds = %153
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %13, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %14, align 4
  br label %365

189:                                              ; preds = %263, %261, %230, %213, %208, %158
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %13, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %14, align 4
  br label %364

193:                                              ; preds = %173
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %13, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %14, align 4
  br label %201

197:                                              ; preds = %174
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %13, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  br label %201

201:                                              ; preds = %197, %193
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  br label %364

202:                                              ; preds = %169
  %203 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 0
  store ptr %24, ptr %203, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %204 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 0
  store ptr %43, ptr %204, align 8, !tbaa !33
  %205 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !11
  %207 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %206)
          to label %208 unwind label %225

208:                                              ; preds = %202
  %209 = getelementptr inbounds %"struct.System::NativeContext", ptr %207, i32 0, i32 9
  %210 = call noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvvEEaSIZN6System12TcpConnector7connectERKNS3_11Ipv4AddressEtE3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS9_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISB_E4typeEE4typeES1_EE5valueESt5decayISB_EE4type4typeESt15__invoke_resultIRSM_JEEEE5valueERS1_E4typeEOSB_"(ptr noundef nonnull align 8 dereferenceable(32) %209, ptr noundef nonnull align 8 dereferenceable(8) %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  %211 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8, !tbaa !11
  invoke void @_ZN6System10Dispatcher8dispatchEv(ptr noundef nonnull align 8 dereferenceable(424) %212)
          to label %213 unwind label %189

213:                                              ; preds = %208
  %214 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %215 = load ptr, ptr %214, align 8, !tbaa !11
  %216 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %215)
          to label %217 unwind label %189

217:                                              ; preds = %213
  %218 = getelementptr inbounds %"struct.System::NativeContext", ptr %216, i32 0, i32 9
  %219 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvvEEaSEDn(ptr noundef nonnull align 8 dereferenceable(32) %218, ptr null) #11
  %220 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %221 = load ptr, ptr %220, align 8, !tbaa !11
  %222 = icmp ne ptr %221, null
  br i1 %222, label %223, label %224

223:                                              ; preds = %217
  br label %230

224:                                              ; preds = %217
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 133, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

225:                                              ; preds = %202
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %13, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  br label %364

229:                                              ; No predecessors!
  br label %230

230:                                              ; preds = %229, %223
  %231 = getelementptr inbounds %"struct.System::OperationContext", ptr %24, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8, !tbaa !24
  %233 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %234 = load ptr, ptr %233, align 8, !tbaa !11
  %235 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %234)
          to label %236 unwind label %189

236:                                              ; preds = %230
  %237 = icmp eq ptr %232, %235
  br i1 %237, label %238, label %239

238:                                              ; preds = %236
  br label %241

239:                                              ; preds = %236
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 134, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

240:                                              ; No predecessors!
  br label %241

241:                                              ; preds = %240, %238
  %242 = getelementptr inbounds %"struct.System::ContextPair", ptr %23, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !27
  %244 = icmp eq ptr %243, null
  br i1 %244, label %245, label %246

245:                                              ; preds = %241
  br label %248

246:                                              ; preds = %241
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 135, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

247:                                              ; No predecessors!
  br label %248

248:                                              ; preds = %247, %245
  %249 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !13
  %251 = icmp eq ptr %250, %24
  br i1 %251, label %252, label %253

252:                                              ; preds = %248
  br label %255

253:                                              ; preds = %248
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 136, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

254:                                              ; No predecessors!
  br label %255

255:                                              ; preds = %254, %252
  %256 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 0
  store ptr null, ptr %256, align 8, !tbaa !13
  %257 = getelementptr inbounds %"struct.System::OperationContext", ptr %24, i32 0, i32 0
  store ptr null, ptr %257, align 8, !tbaa !24
  %258 = getelementptr inbounds %"struct.System::OperationContext", ptr %24, i32 0, i32 1
  %259 = load i8, ptr %258, align 8, !tbaa !21, !range !35, !noundef !36
  %260 = trunc i8 %259 to i1
  br i1 %260, label %261, label %263

261:                                              ; preds = %255
  %262 = call ptr @__cxa_allocate_exception(i64 8) #11
  call void @llvm.memset.p0.i64(ptr align 16 %262, i8 0, i64 8, i1 false)
  call void @_ZN6System20InterruptedExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %262) #11
  invoke void @__cxa_throw(ptr %262, ptr @_ZTIN6System20InterruptedExceptionE, ptr @_ZNSt9exceptionD2Ev) #12
          to label %424 unwind label %189

263:                                              ; preds = %255
  %264 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %265 = load ptr, ptr %264, align 8, !tbaa !11
  %266 = invoke noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424) %265)
          to label %267 unwind label %189

267:                                              ; preds = %263
  %268 = load i32, ptr %10, align 4, !tbaa !14
  %269 = call i32 @epoll_ctl(i32 noundef %266, i32 noundef 2, i32 noundef %268, ptr noundef null) #11
  %270 = icmp eq i32 %269, -1
  br i1 %270, label %271, label %284

271:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #11
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30)
          to label %272 unwind label %275

272:                                              ; preds = %271
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef @.str.7, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %273 unwind label %279

273:                                              ; preds = %272
  %274 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #11
  br label %359

275:                                              ; preds = %271
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %13, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %14, align 4
  br label %283

279:                                              ; preds = %272
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %13, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #11
  br label %283

283:                                              ; preds = %279, %275
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #11
  br label %364

284:                                              ; preds = %267
  %285 = getelementptr inbounds %"struct.System::OperationContext", ptr %24, i32 0, i32 2
  %286 = load i32, ptr %285, align 4, !tbaa !37
  %287 = and i32 %286, 24
  %288 = icmp ne i32 %287, 0
  br i1 %288, label %289, label %310

289:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #11
  %290 = load i32, ptr %10, align 4, !tbaa !14
  %291 = invoke i32 @close(i32 noundef %290)
          to label %292 unwind label %297

292:                                              ; preds = %289
  store i32 %291, ptr %31, align 4, !tbaa !14
  %293 = load i32, ptr %31, align 4, !tbaa !14
  %294 = icmp ne i32 %293, -1
  br i1 %294, label %295, label %296

295:                                              ; preds = %292
  br label %302

296:                                              ; preds = %292
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 148, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

297:                                              ; preds = %304, %289
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %13, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %14, align 4
  br label %309

301:                                              ; No predecessors!
  br label %302

302:                                              ; preds = %301, %295
  %303 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %303, ptr noundef @.str.12)
          to label %304 unwind label %305

304:                                              ; preds = %302
  invoke void @__cxa_throw(ptr %303, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %424 unwind label %297

305:                                              ; preds = %302
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %13, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %14, align 4
  call void @__cxa_free_exception(ptr %303) #11
  br label %309

309:                                              ; preds = %305, %297
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  br label %364

310:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #11
  store i32 -1, ptr %32, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #11
  store i32 4, ptr %33, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #11
  %311 = load i32, ptr %10, align 4, !tbaa !14
  %312 = call i32 @getsockopt(i32 noundef %311, i32 noundef 1, i32 noundef 4, ptr noundef %32, ptr noundef %33) #11
  store i32 %312, ptr %34, align 4, !tbaa !14
  %313 = load i32, ptr %34, align 4, !tbaa !14
  %314 = icmp eq i32 %313, -1
  br i1 %314, label %315, label %328

315:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #11
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %36)
          to label %316 unwind label %319

316:                                              ; preds = %315
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %35, ptr noundef @.str.13, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %317 unwind label %323

317:                                              ; preds = %316
  %318 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %35) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #11
  br label %354

319:                                              ; preds = %315
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %13, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %14, align 4
  br label %327

323:                                              ; preds = %316
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %13, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #11
  br label %327

327:                                              ; preds = %323, %319
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #11
  br label %358

328:                                              ; preds = %310
  %329 = load i32, ptr %32, align 4, !tbaa !14
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %331, label %344

331:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #11
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %38)
          to label %332 unwind label %335

332:                                              ; preds = %331
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef @.str.13, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %333 unwind label %339

333:                                              ; preds = %332
  %334 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %37) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #11
  br label %353

335:                                              ; preds = %331
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %13, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %14, align 4
  br label %343

339:                                              ; preds = %332
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %13, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #11
  br label %343

343:                                              ; preds = %339, %335
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #11
  br label %358

344:                                              ; preds = %328
  %345 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %346 = load ptr, ptr %345, align 8, !tbaa !11
  %347 = load i32, ptr %10, align 4, !tbaa !14
  invoke void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(424) %346, i32 noundef %347)
          to label %348 unwind label %349

348:                                              ; preds = %344
  store i32 1, ptr %39, align 4
  br label %355

349:                                              ; preds = %344
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %13, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %14, align 4
  br label %358

353:                                              ; preds = %333
  br label %354

354:                                              ; preds = %353, %317
  store i32 0, ptr %39, align 4
  br label %355

355:                                              ; preds = %354, %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  %356 = load i32, ptr %39, align 4
  switch i32 %356, label %361 [
    i32 0, label %357
  ]

357:                                              ; preds = %355
  br label %359

358:                                              ; preds = %349, %343, %327
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  br label %364

359:                                              ; preds = %357, %273
  br label %360

360:                                              ; preds = %359, %175
  store i32 0, ptr %39, align 4
  br label %361

361:                                              ; preds = %360, %355
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  %362 = load i32, ptr %39, align 4
  switch i32 %362, label %373 [
    i32 0, label %363
  ]

363:                                              ; preds = %361
  br label %366

364:                                              ; preds = %358, %309, %283, %225, %201, %189
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #11
  br label %365

365:                                              ; preds = %364, %185
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  br label %376

366:                                              ; preds = %363, %149
  br label %372

367:                                              ; preds = %146
  %368 = getelementptr inbounds %"class.System::TcpConnector", ptr %43, i32 0, i32 1
  %369 = load ptr, ptr %368, align 8, !tbaa !11
  %370 = load i32, ptr %10, align 4, !tbaa !14
  invoke void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(424) %369, i32 noundef %370)
          to label %371 unwind label %181

371:                                              ; preds = %367
  store i32 1, ptr %39, align 4
  br label %373

372:                                              ; preds = %366
  store i32 0, ptr %39, align 4
  br label %373

373:                                              ; preds = %372, %371, %361
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #11
  %374 = load i32, ptr %39, align 4
  switch i32 %374, label %379 [
    i32 0, label %375
  ]

375:                                              ; preds = %373
  br label %378

376:                                              ; preds = %365, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  br label %377

377:                                              ; preds = %376, %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #11
  br label %382

378:                                              ; preds = %375, %116
  store i32 0, ptr %39, align 4
  br label %379

379:                                              ; preds = %378, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  %380 = load i32, ptr %39, align 4
  switch i32 %380, label %397 [
    i32 0, label %381
  ]

381:                                              ; preds = %379
  br label %383

382:                                              ; preds = %377, %130, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  br label %400

383:                                              ; preds = %381, %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #11
  %384 = load i32, ptr %10, align 4, !tbaa !14
  %385 = invoke i32 @close(i32 noundef %384)
          to label %386 unwind label %391

386:                                              ; preds = %383
  store i32 %385, ptr %40, align 4, !tbaa !14
  %387 = load i32, ptr %40, align 4, !tbaa !14
  %388 = icmp ne i32 %387, -1
  br i1 %388, label %389, label %390

389:                                              ; preds = %386
  br label %396

390:                                              ; preds = %386
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 175, ptr noundef @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #10
  unreachable

391:                                              ; preds = %383
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %13, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  br label %400

395:                                              ; No predecessors!
  br label %396

396:                                              ; preds = %395, %389
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  store i32 0, ptr %39, align 4
  br label %397

397:                                              ; preds = %396, %379
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #11
  %398 = load i32, ptr %39, align 4
  switch i32 %398, label %417 [
    i32 0, label %399
  ]

399:                                              ; preds = %397
  br label %401

400:                                              ; preds = %391, %382, %100
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #11
  br label %418

401:                                              ; preds = %399, %69
  store i1 true, ptr %42, align 1
  %402 = call ptr @__cxa_allocate_exception(i64 16) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #11
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %41, ptr noundef @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %403 unwind label %405

403:                                              ; preds = %401
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %402, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %404 unwind label %409

404:                                              ; preds = %403
  store i1 false, ptr %42, align 1
  invoke void @__cxa_throw(ptr %402, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %424 unwind label %409

405:                                              ; preds = %401
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %13, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %14, align 4
  br label %413

409:                                              ; preds = %404, %403
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %13, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #11
  br label %413

413:                                              ; preds = %409, %405
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #11
  %414 = load i1, ptr %42, align 1
  br i1 %414, label %415, label %416

415:                                              ; preds = %413
  call void @__cxa_free_exception(ptr %402) #11
  br label %416

416:                                              ; preds = %415, %413
  br label %418

417:                                              ; preds = %397
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #11
  ret void

418:                                              ; preds = %416, %400, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #11
  br label %419

419:                                              ; preds = %418
  %420 = load ptr, ptr %13, align 8
  %421 = load i32, ptr %14, align 4
  %422 = insertvalue { ptr, i32 } poison, ptr %420, 0
  %423 = insertvalue { ptr, i32 } %422, i32 %421, 1
  resume { ptr, i32 } %423

424:                                              ; preds = %404, %304, %261
  unreachable
}

declare noundef zeroext i1 @_ZN6System10Dispatcher11interruptedEv(ptr noundef nonnull align 8 dereferenceable(424)) #2

declare ptr @__cxa_allocate_exception(i64)

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

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

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #8

declare void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #7 align 2

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

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

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #5

declare i32 @fcntl(i32 noundef, i32 noundef, ...) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL10__bswap_32j(i32 noundef) #4

declare noundef i32 @_ZNK6System11Ipv4Address8getValueEv(ptr noundef nonnull align 4 dereferenceable(4)) #2

declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #9

declare noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424)) #2

; Function Attrs: nounwind
declare i32 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #5

declare noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424)) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvvEEaSIZN6System12TcpConnector7connectERKNS3_11Ipv4AddressEtE3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS9_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISB_E4typeEE4typeES1_EE5valueESt5decayISB_EE4type4typeESt15__invoke_resultIRSM_JEEEE5valueERS1_E4typeEOSB_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #7 align 2

declare void @_ZN6System10Dispatcher8dispatchEv(ptr noundef nonnull align 8 dereferenceable(424)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvvEEaSEDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) #7 align 2

declare i32 @close(i32 noundef) #2

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

; Function Attrs: nounwind
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #5

declare void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(424), i32 noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

attributes #0 = { noreturn nounwind "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 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 #2 = { "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 nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { nounwind willreturn memory(none) "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 #10 = { noreturn nounwind }
attributes #11 = { nounwind }
attributes #12 = { noreturn }
attributes #13 = { 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 = !{!"short", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN6System12TcpConnectorE", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTS11sockaddr_in", !10, i64 0, !10, i64 2, !18, i64 4, !7, i64 8}
!18 = !{!"_ZTS7in_addr", !15, i64 0}
!19 = !{!17, !10, i64 2}
!20 = !{!17, !15, i64 4}
!21 = !{!22, !23, i64 8}
!22 = !{!"_ZTSN6System16OperationContextE", !6, i64 0, !23, i64 8, !15, i64 12}
!23 = !{!"bool", !7, i64 0}
!24 = !{!22, !6, i64 0}
!25 = !{!26, !15, i64 16}
!26 = !{!"_ZTSN6System12_GLOBAL__N_122TcpConnectorContextExtE", !22, i64 0, !15, i64 16}
!27 = !{!28, !6, i64 0}
!28 = !{!"_ZTSN6System11ContextPairE", !6, i64 0, !6, i64 8}
!29 = !{!28, !6, i64 8}
!30 = !{!31, !15, i64 0}
!31 = !{!"_ZTS11epoll_event", !15, i64 0, !7, i64 4}
!32 = !{!7, !7, i64 0}
!33 = !{!34, !6, i64 0}
!34 = !{!"_ZTSZN6System12TcpConnector7connectERKNS_11Ipv4AddressEtE3$_0", !6, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!22, !15, i64 12}


; 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.System::TcpConnection" = type { ptr, i32, %"struct.System::ContextPair" }
%"struct.System::ContextPair" = type { ptr, ptr }
%"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] }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"struct.System::(anonymous namespace)::TcpConnectorContextExt" = type <{ %"struct.System::OperationContext", i32, [4 x i8] }>
%"struct.System::OperationContext" = type { ptr, i8, i32 }
%struct.epoll_event = type <{ i32, %union.epoll_data }>
%union.epoll_data = type { ptr }
%class.anon = type { ptr }

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZTIN6System20InterruptedExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt(ptr dead_on_unwind noalias writable sret(%"class.System::TcpConnection") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, i16 noundef zeroext %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %struct.sockaddr_in, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %struct.sockaddr_in, align 4
  %14 = alloca %"struct.System::ContextPair", align 8
  %15 = alloca %"struct.System::(anonymous namespace)::TcpConnectorContextExt", align 8
  %16 = alloca %struct.epoll_event, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %class.anon, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = getelementptr inbounds i8, ptr %1, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %31, label %32

31:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 73, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

32:                                               ; preds = %4
  %33 = load ptr, ptr %1, align 8, !tbaa !10
  %34 = icmp eq ptr %33, null
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 74, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

36:                                               ; preds = %32
  %37 = tail call noundef zeroext i1 @_ZN6System10Dispatcher11interruptedEv(ptr noundef nonnull align 8 dereferenceable(424) %30)
  br i1 %37, label %38, label %40

38:                                               ; preds = %36
  %39 = tail call ptr @__cxa_allocate_exception(i64 8) #10
  store i64 0, ptr %39, align 16
  tail call void @_ZN6System20InterruptedExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #10
  tail call void @__cxa_throw(ptr nonnull %39, ptr nonnull @_ZTIN6System20InterruptedExceptionE, ptr nonnull @_ZNSt9exceptionD2Ev) #11
  unreachable

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  %41 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 6) #10
  %42 = icmp eq i32 %41, -1
  br i1 %42, label %43, label %52

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7)
          to label %44 unwind label %47

44:                                               ; preds = %43
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull @.str.4, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %45 unwind label %49

45:                                               ; preds = %44
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #10
  br label %239

47:                                               ; preds = %43
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %44
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %51

51:                                               ; preds = %49, %47
  %.pn89 = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #10
  br label %248

52:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #10
  store i16 2, ptr %8, align 4, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %8, i64 2
  store i16 0, ptr %53, align 2, !tbaa !16
  %54 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 0, ptr %54, align 4, !tbaa !17
  %55 = call i32 @bind(i32 noundef %41, ptr noundef nonnull %8, i32 noundef 16) #10
  %.not62 = icmp eq i32 %55, 0
  br i1 %.not62, label %65, label %56

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10)
          to label %57 unwind label %60

57:                                               ; preds = %56
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %58 unwind label %62

58:                                               ; preds = %57
  %59 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  br label %231

60:                                               ; preds = %56
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %64

62:                                               ; preds = %57
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  br label %64

64:                                               ; preds = %62, %60
  %.pn84 = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  br label %238

65:                                               ; preds = %52
  %66 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %41, i32 noundef 3, i32 noundef 0)
          to label %67 unwind label %78

67:                                               ; preds = %65
  %68 = icmp eq i32 %66, -1
  br i1 %68, label %74, label %69

69:                                               ; preds = %67
  %70 = or i32 %66, 2048
  %71 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %41, i32 noundef 4, i32 noundef %70)
          to label %72 unwind label %78

72:                                               ; preds = %69
  %73 = icmp eq i32 %71, -1
  br i1 %73, label %74, label %85

74:                                               ; preds = %72, %67
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12)
          to label %75 unwind label %80

75:                                               ; preds = %74
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull @.str.6, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %76 unwind label %82

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  br label %231

78:                                               ; preds = %69, %65
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %238

80:                                               ; preds = %74
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %75
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  br label %84

84:                                               ; preds = %82, %80
  %.pn81 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #10
  br label %238

85:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  store i16 2, ptr %13, align 4, !tbaa !11
  %86 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %3)
  %87 = getelementptr inbounds i8, ptr %13, i64 2
  store i16 %86, ptr %87, align 2, !tbaa !16
  %88 = invoke noundef i32 @_ZNK6System11Ipv4Address8getValueEv(ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %89 unwind label %116

89:                                               ; preds = %85
  %90 = call noundef i32 @_ZL10__bswap_32j(i32 noundef %88)
  %91 = getelementptr inbounds i8, ptr %13, i64 4
  store i32 %90, ptr %91, align 4, !tbaa !17
  %92 = invoke i32 @connect(i32 noundef %41, ptr noundef nonnull %13, i32 noundef 16)
          to label %93 unwind label %118

93:                                               ; preds = %89
  %94 = icmp eq i32 %92, -1
  br i1 %94, label %95, label %227

95:                                               ; preds = %93
  %96 = tail call ptr @__errno_location() #12
  %97 = load i32, ptr %96, align 4, !tbaa !18
  %98 = icmp eq i32 %97, 115
  br i1 %98, label %99, label %229

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #10
  %100 = getelementptr inbounds i8, ptr %15, i64 8
  store i8 0, ptr %100, align 8, !tbaa !19
  %101 = load ptr, ptr %29, align 8, !tbaa !5
  %102 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %101)
          to label %103 unwind label %120

103:                                              ; preds = %99
  store ptr %102, ptr %15, align 8, !tbaa !22
  %104 = getelementptr inbounds i8, ptr %15, i64 16
  store i32 %41, ptr %104, align 8, !tbaa !23
  store ptr null, ptr %14, align 8, !tbaa !25
  %105 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %15, ptr %105, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #10
  store i32 1073750028, ptr %16, align 4, !tbaa !28
  %106 = getelementptr inbounds i8, ptr %16, i64 4
  store ptr %14, ptr %106, align 4, !tbaa !30
  %107 = load ptr, ptr %29, align 8, !tbaa !5
  %108 = invoke noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424) %107)
          to label %109 unwind label %122

109:                                              ; preds = %103
  %110 = call i32 @epoll_ctl(i32 noundef %108, i32 noundef 1, i32 noundef %41, ptr noundef nonnull %16) #10
  %111 = icmp eq i32 %110, -1
  br i1 %111, label %112, label %129

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18)
          to label %113 unwind label %124

113:                                              ; preds = %112
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull @.str.7, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %114 unwind label %126

114:                                              ; preds = %113
  %115 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #10
  br label %224

116:                                              ; preds = %85
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %230

118:                                              ; preds = %227, %89
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %230

120:                                              ; preds = %99
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %226

122:                                              ; preds = %165, %163, %146, %136, %132, %103
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %225

124:                                              ; preds = %112
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %128

126:                                              ; preds = %113
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  br label %128

128:                                              ; preds = %126, %124
  %.pn75 = phi { ptr, i32 } [ %127, %126 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #10
  br label %225

129:                                              ; preds = %109
  store ptr %15, ptr %1, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  store ptr %1, ptr %19, align 8, !tbaa !31
  %130 = load ptr, ptr %29, align 8, !tbaa !5
  %131 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %130)
          to label %132 unwind label %144

132:                                              ; preds = %129
  %133 = getelementptr inbounds i8, ptr %131, i64 88
  %134 = call noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvvEEaSIZN6System12TcpConnector7connectERKNS3_11Ipv4AddressEtE3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS9_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISB_E4typeEE4typeES1_EE5valueESt5decayISB_EE4type4typeESt15__invoke_resultIRSM_JEEEE5valueERS1_E4typeEOSB_"(ptr noundef nonnull align 8 dereferenceable(32) %133, ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  %135 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN6System10Dispatcher8dispatchEv(ptr noundef nonnull align 8 dereferenceable(424) %135)
          to label %136 unwind label %122

136:                                              ; preds = %132
  %137 = load ptr, ptr %29, align 8, !tbaa !5
  %138 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %137)
          to label %139 unwind label %122

139:                                              ; preds = %136
  %140 = getelementptr inbounds i8, ptr %138, i64 88
  %141 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvvEEaSEDn(ptr noundef nonnull align 8 dereferenceable(32) %140, ptr null) #10
  %142 = load ptr, ptr %29, align 8, !tbaa !5
  %.not63 = icmp eq ptr %142, null
  br i1 %.not63, label %143, label %146

143:                                              ; preds = %139
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 133, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

144:                                              ; preds = %129
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  br label %225

146:                                              ; preds = %139
  %147 = load ptr, ptr %15, align 8, !tbaa !22
  %148 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %142)
          to label %149 unwind label %122

149:                                              ; preds = %146
  %150 = icmp eq ptr %147, %148
  br i1 %150, label %152, label %151

151:                                              ; preds = %149
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 134, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

152:                                              ; preds = %149
  %153 = load ptr, ptr %14, align 8, !tbaa !25
  %154 = icmp eq ptr %153, null
  br i1 %154, label %156, label %155

155:                                              ; preds = %152
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 135, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

156:                                              ; preds = %152
  %157 = load ptr, ptr %1, align 8, !tbaa !10
  %158 = icmp eq ptr %157, %15
  br i1 %158, label %160, label %159

159:                                              ; preds = %156
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 136, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

160:                                              ; preds = %156
  store ptr null, ptr %1, align 8, !tbaa !10
  store ptr null, ptr %15, align 8, !tbaa !22
  %161 = load i8, ptr %100, align 8, !tbaa !19, !range !33, !noundef !34
  %162 = trunc nuw i8 %161 to i1
  br i1 %162, label %163, label %165

163:                                              ; preds = %160
  %164 = call ptr @__cxa_allocate_exception(i64 8) #10
  store i64 0, ptr %164, align 16
  call void @_ZN6System20InterruptedExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %164) #10
  invoke void @__cxa_throw(ptr nonnull %164, ptr nonnull @_ZTIN6System20InterruptedExceptionE, ptr nonnull @_ZNSt9exceptionD2Ev) #11
          to label %249 unwind label %122

165:                                              ; preds = %160
  %166 = load ptr, ptr %29, align 8, !tbaa !5
  %167 = invoke noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424) %166)
          to label %168 unwind label %122

168:                                              ; preds = %165
  %169 = call i32 @epoll_ctl(i32 noundef %167, i32 noundef 2, i32 noundef %41, ptr noundef null) #10
  %170 = icmp eq i32 %169, -1
  br i1 %170, label %171, label %180

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21)
          to label %172 unwind label %175

172:                                              ; preds = %171
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull @.str.7, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %173 unwind label %177

173:                                              ; preds = %172
  %174 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  br label %224

175:                                              ; preds = %171
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %179

177:                                              ; preds = %172
  %178 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  br label %179

179:                                              ; preds = %177, %175
  %.pn73 = phi { ptr, i32 } [ %178, %177 ], [ %176, %175 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #10
  br label %225

180:                                              ; preds = %168
  %181 = getelementptr inbounds i8, ptr %15, i64 12
  %182 = load i32, ptr %181, align 4, !tbaa !35
  %183 = and i32 %182, 24
  %.not64 = icmp eq i32 %183, 0
  br i1 %.not64, label %195, label %184

184:                                              ; preds = %180
  %185 = invoke i32 @close(i32 noundef %41)
          to label %186 unwind label %188

186:                                              ; preds = %184
  %.not70 = icmp eq i32 %185, -1
  br i1 %.not70, label %187, label %190

187:                                              ; preds = %186
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 148, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

188:                                              ; preds = %192, %184
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %225

190:                                              ; preds = %186
  %191 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %191, ptr noundef nonnull @.str.12)
          to label %192 unwind label %193

192:                                              ; preds = %190
  invoke void @__cxa_throw(ptr nonnull %191, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %249 unwind label %188

193:                                              ; preds = %190
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %191) #10
  br label %225

195:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #10
  store i32 -1, ptr %22, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #10
  store i32 4, ptr %23, align 4, !tbaa !18
  %196 = call i32 @getsockopt(i32 noundef %41, i32 noundef 1, i32 noundef 4, ptr noundef nonnull %22, ptr noundef nonnull %23) #10
  %197 = icmp eq i32 %196, -1
  br i1 %197, label %198, label %207

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %25)
          to label %199 unwind label %202

199:                                              ; preds = %198
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull @.str.13, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %200 unwind label %204

200:                                              ; preds = %199
  %201 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #10
  br label %222

202:                                              ; preds = %198
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %206

204:                                              ; preds = %199
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %206

206:                                              ; preds = %204, %202
  %.pn67 = phi { ptr, i32 } [ %205, %204 ], [ %203, %202 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #10
  br label %223

207:                                              ; preds = %195
  %208 = load i32, ptr %22, align 4, !tbaa !18
  %.not65 = icmp eq i32 %208, 0
  br i1 %.not65, label %218, label %209

209:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %27)
          to label %210 unwind label %213

210:                                              ; preds = %209
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull @.str.13, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %211 unwind label %215

211:                                              ; preds = %210
  %212 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #10
  br label %222

213:                                              ; preds = %209
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %217

215:                                              ; preds = %210
  %216 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  br label %217

217:                                              ; preds = %215, %213
  %.pn = phi { ptr, i32 } [ %216, %215 ], [ %214, %213 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #10
  br label %223

218:                                              ; preds = %207
  %219 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(424) %219, i32 noundef %41)
          to label %.critedge unwind label %220

220:                                              ; preds = %218
  %221 = landingpad { ptr, i32 }
          cleanup
  br label %223

222:                                              ; preds = %200, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  br label %224

223:                                              ; preds = %220, %217, %206
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %206 ], [ %.pn, %217 ], [ %221, %220 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  br label %225

.critedge:                                        ; preds = %218
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  br label %.critedge97

224:                                              ; preds = %114, %173, %222
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  br label %229

225:                                              ; preds = %188, %193, %223, %179, %144, %128, %122
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %128 ], [ %123, %122 ], [ %.pn73, %179 ], [ %.pn67.pn, %223 ], [ %145, %144 ], [ %189, %188 ], [ %194, %193 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  br label %226

226:                                              ; preds = %225, %120
  %.pn75.pn.pn = phi { ptr, i32 } [ %.pn75.pn, %225 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  br label %230

227:                                              ; preds = %93
  %228 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(424) %228, i32 noundef %41)
          to label %.critedge97 unwind label %118

229:                                              ; preds = %95, %224
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  br label %231

230:                                              ; preds = %118, %226, %116
  %.pn75.pn.pn.pn.pn = phi { ptr, i32 } [ %117, %116 ], [ %.pn75.pn.pn, %226 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  br label %238

.critedge97:                                      ; preds = %227, %.critedge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #10
  ret void

231:                                              ; preds = %229, %76, %58
  %232 = invoke i32 @close(i32 noundef %41)
          to label %233 unwind label %235

233:                                              ; preds = %231
  %.not88 = icmp eq i32 %232, -1
  br i1 %.not88, label %234, label %237

234:                                              ; preds = %233
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 175, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System12TcpConnector7connectERKNS_11Ipv4AddressEt) #9
  unreachable

235:                                              ; preds = %231
  %236 = landingpad { ptr, i32 }
          cleanup
  br label %238

237:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  br label %239

238:                                              ; preds = %78, %84, %230, %235, %64
  %.pn86 = phi { ptr, i32 } [ %236, %235 ], [ %.pn84, %64 ], [ %.pn81, %84 ], [ %.pn75.pn.pn.pn.pn, %230 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  br label %248

239:                                              ; preds = %237, %45
  %240 = call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #10
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull @.str.14, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %241 unwind label %.thread

241:                                              ; preds = %239
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %240, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %243 unwind label %.thread105

.thread105:                                       ; preds = %241
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #10
  br label %247

243:                                              ; preds = %241
  invoke void @__cxa_throw(ptr nonnull %240, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %249 unwind label %245

.thread:                                          ; preds = %239
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #10
  br label %247

245:                                              ; preds = %243
  %246 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #10
  br label %248

247:                                              ; preds = %.thread105, %.thread
  %.pn91104 = phi { ptr, i32 } [ %244, %.thread ], [ %242, %.thread105 ]
  call void @__cxa_free_exception(ptr %240) #10
  br label %248

248:                                              ; preds = %245, %247, %238, %51
  %.pn91.pn = phi { ptr, i32 } [ %.pn91104, %247 ], [ %246, %245 ], [ %.pn89, %51 ], [ %.pn86, %238 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #10
  resume { ptr, i32 } %.pn91.pn

249:                                              ; preds = %243, %192, %163
  unreachable
}

declare noundef zeroext i1 @_ZN6System10Dispatcher11interruptedEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7

declare void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @fcntl(i32 noundef, i32 noundef, ...) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL10__bswap_32j(i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZNK6System11Ipv4Address8getValueEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #8

declare noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvvEEaSIZN6System12TcpConnector7connectERKNS3_11Ipv4AddressEtE3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS9_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceISB_E4typeEE4typeES1_EE5valueESt5decayISB_EE4type4typeESt15__invoke_resultIRSM_JEEEE5valueERS1_E4typeEOSB_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

declare void @_ZN6System10Dispatcher8dispatchEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvvEEaSEDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) local_unnamed_addr #6 align 2

declare i32 @close(i32 noundef) local_unnamed_addr #2

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

; Function Attrs: nounwind
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(424), i32 noundef) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

attributes #0 = { noreturn nounwind "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 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 #2 = { "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 = { 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 #4 = { nounwind "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = { 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 #8 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { noreturn nounwind }
attributes #10 = { nounwind }
attributes #11 = { noreturn }
attributes #12 = { 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, !7, i64 8}
!6 = !{!"_ZTSN6System12TcpConnectorE", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS11sockaddr_in", !13, i64 0, !13, i64 2, !14, i64 4, !8, i64 8}
!13 = !{!"short", !8, i64 0}
!14 = !{!"_ZTS7in_addr", !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!12, !13, i64 2}
!17 = !{!12, !15, i64 4}
!18 = !{!15, !15, i64 0}
!19 = !{!20, !21, i64 8}
!20 = !{!"_ZTSN6System16OperationContextE", !7, i64 0, !21, i64 8, !15, i64 12}
!21 = !{!"bool", !8, i64 0}
!22 = !{!20, !7, i64 0}
!23 = !{!24, !15, i64 16}
!24 = !{!"_ZTSN6System12_GLOBAL__N_122TcpConnectorContextExtE", !20, i64 0, !15, i64 16}
!25 = !{!26, !7, i64 0}
!26 = !{!"_ZTSN6System11ContextPairE", !7, i64 0, !7, i64 8}
!27 = !{!26, !7, i64 8}
!28 = !{!29, !15, i64 0}
!29 = !{!"_ZTS11epoll_event", !15, i64 0, !8, i64 4}
!30 = !{!8, !8, i64 0}
!31 = !{!32, !7, i64 0}
!32 = !{!"_ZTSZN6System12TcpConnector7connectERKNS_11Ipv4AddressEtE3$_0", !7, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!20, !15, i64 12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass