; LLVM IR from dynexcoin/Dynex :: src/Platform/Linux/System/TcpListener.ll (ZN6System11TcpListener6acceptEv)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.System::TcpConnection" = type { ptr, i32, %"struct.System::ContextPair" }
%"struct.System::ContextPair" = type { ptr, ptr }
%"struct.System::OperationContext" = type { ptr, i8, i32 }
%struct.epoll_event = type <{ i32, %union.epoll_data }>
%union.epoll_data = type { ptr }
%class.anon = type { ptr }
%struct.sockaddr = type { i16, [14 x i8] }
%"class.System::TcpListener" = type <{ ptr, ptr, i32, [4 x i8] }>
%"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 [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [91 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv = external hidden unnamed_addr constant [44 x i8], align 1
@_ZTIN6System20InterruptedExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; 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)) #2

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

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)) #1 align 2

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

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

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

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

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

declare i32 @close(i32 noundef) #3

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

declare ptr @__cxa_allocate_exception(i64)

; 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)) #6

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6System11TcpListener6acceptEv(ptr dead_on_unwind noalias writable sret(%"class.System::TcpConnection") align 8 %0, ptr noundef nonnull align 8 dereferenceable(20) %1) #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.System::ContextPair", align 8
  %6 = alloca %"struct.System::OperationContext", align 8
  %7 = alloca %struct.epoll_event, align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, 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 %class.anon, align 8
  %14 = alloca %struct.sockaddr, align 2
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i32, align 4
  %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 i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %4, align 8
  %27 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %2
  br label %33

31:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.7, i32 noundef 121, ptr noundef @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #9
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  %34 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  br label %40

38:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.7, i32 noundef 122, ptr noundef @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #9
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  %41 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = call noundef zeroext i1 @_ZN6System10Dispatcher11interruptedEv(ptr noundef nonnull align 8 dereferenceable(424) %42)
  br i1 %43, label %44, label %46

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

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #10
  %47 = getelementptr inbounds %"struct.System::OperationContext", ptr %6, i32 0, i32 1
  store i8 0, ptr %47, align 8, !tbaa !13
  %48 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %49)
  %51 = getelementptr inbounds %"struct.System::OperationContext", ptr %6, i32 0, i32 0
  store ptr %50, ptr %51, align 8, !tbaa !16
  %52 = getelementptr inbounds %"struct.System::ContextPair", ptr %5, i32 0, i32 1
  store ptr null, ptr %52, align 8, !tbaa !17
  %53 = getelementptr inbounds %"struct.System::ContextPair", ptr %5, i32 0, i32 0
  store ptr %6, ptr %53, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #10
  %54 = getelementptr inbounds %struct.epoll_event, ptr %7, i32 0, i32 0
  store i32 1073741825, ptr %54, align 1, !tbaa !20
  %55 = getelementptr inbounds %struct.epoll_event, ptr %7, i32 0, i32 1
  store ptr %5, ptr %55, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  %56 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = invoke noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424) %57)
          to label %59 unwind label %68

59:                                               ; preds = %46
  %60 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 2
  %61 = load i32, ptr %60, align 8, !tbaa !23
  %62 = call i32 @epoll_ctl(i32 noundef %58, i32 noundef 3, i32 noundef %61, ptr noundef %7) #10
  %63 = icmp eq i32 %62, -1
  br i1 %63, label %64, label %81

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

65:                                               ; preds = %64
  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.5, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %66 unwind label %76

66:                                               ; preds = %65
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, 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 %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  br label %236

68:                                               ; preds = %149, %140, %109, %92, %87, %46
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %9, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %10, align 4
  br label %253

72:                                               ; preds = %64
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  br label %80

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

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  br label %253

81:                                               ; preds = %59
  %82 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 1
  store ptr %6, ptr %82, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %83 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 0
  store ptr %26, ptr %83, align 8, !tbaa !24
  %84 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %85)
          to label %87 unwind label %104

87:                                               ; preds = %81
  %88 = getelementptr inbounds %"struct.System::NativeContext", ptr %86, i32 0, i32 9
  %89 = call noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvvEEaSIZN6System11TcpListener6acceptEvE3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS6_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceIS8_E4typeEE4typeES1_EE5valueESt5decayIS8_EE4type4typeESt15__invoke_resultIRSJ_JEEEE5valueERS1_E4typeEOS8_"(ptr noundef nonnull align 8 dereferenceable(32) %88, ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  %90 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  invoke void @_ZN6System10Dispatcher8dispatchEv(ptr noundef nonnull align 8 dereferenceable(424) %91)
          to label %92 unwind label %68

92:                                               ; preds = %87
  %93 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %94)
          to label %96 unwind label %68

96:                                               ; preds = %92
  %97 = getelementptr inbounds %"struct.System::NativeContext", ptr %95, i32 0, i32 9
  %98 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvvEEaSEDn(ptr noundef nonnull align 8 dereferenceable(32) %97, ptr null) #10
  %99 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %103

102:                                              ; preds = %96
  br label %109

103:                                              ; preds = %96
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.7, i32 noundef 163, ptr noundef @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #9
  unreachable

104:                                              ; preds = %81
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %9, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %253

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %102
  %110 = getelementptr inbounds %"struct.System::OperationContext", ptr %6, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !16
  %112 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %113)
          to label %115 unwind label %68

115:                                              ; preds = %109
  %116 = icmp eq ptr %111, %114
  br i1 %116, label %117, label %118

117:                                              ; preds = %115
  br label %120

118:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.7, i32 noundef 164, ptr noundef @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #9
  unreachable

119:                                              ; No predecessors!
  br label %120

120:                                              ; preds = %119, %117
  %121 = getelementptr inbounds %"struct.System::ContextPair", ptr %5, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8, !tbaa !17
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %125

124:                                              ; preds = %120
  br label %127

125:                                              ; preds = %120
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.7, i32 noundef 165, ptr noundef @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #9
  unreachable

126:                                              ; No predecessors!
  br label %127

127:                                              ; preds = %126, %124
  %128 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !12
  %130 = icmp eq ptr %129, %6
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  br label %134

132:                                              ; preds = %127
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.7, i32 noundef 166, ptr noundef @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #9
  unreachable

133:                                              ; No predecessors!
  br label %134

134:                                              ; preds = %133, %131
  %135 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 1
  store ptr null, ptr %135, align 8, !tbaa !12
  %136 = getelementptr inbounds %"struct.System::OperationContext", ptr %6, i32 0, i32 0
  store ptr null, ptr %136, align 8, !tbaa !16
  %137 = getelementptr inbounds %"struct.System::OperationContext", ptr %6, i32 0, i32 1
  %138 = load i8, ptr %137, align 8, !tbaa !13, !range !26, !noundef !27
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %142

140:                                              ; preds = %134
  %141 = call ptr @__cxa_allocate_exception(i64 8) #10
  call void @llvm.memset.p0.i64(ptr align 16 %141, i8 0, i64 8, i1 false)
  call void @_ZN6System20InterruptedExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %141) #10
  invoke void @__cxa_throw(ptr %141, ptr @_ZTIN6System20InterruptedExceptionE, ptr @_ZNSt9exceptionD2Ev) #11
          to label %259 unwind label %68

142:                                              ; preds = %134
  %143 = getelementptr inbounds %"struct.System::OperationContext", ptr %6, i32 0, i32 2
  %144 = load i32, ptr %143, align 4, !tbaa !28
  %145 = and i32 %144, 24
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %154

147:                                              ; preds = %142
  %148 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %148, ptr noundef @.str.16)
          to label %149 unwind label %150

149:                                              ; preds = %147
  invoke void @__cxa_throw(ptr %148, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #11
          to label %259 unwind label %68

150:                                              ; preds = %147
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %9, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %10, align 4
  call void @__cxa_free_exception(ptr %148) #10
  br label %253

154:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  store i32 16, ptr %15, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  %155 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 2
  %156 = load i32, ptr %155, align 8, !tbaa !23
  %157 = invoke i32 @accept(i32 noundef %156, ptr noundef %14, ptr noundef %15)
          to label %158 unwind label %165

158:                                              ; preds = %154
  store i32 %157, ptr %16, align 4, !tbaa !29
  %159 = load i32, ptr %16, align 4, !tbaa !29
  %160 = icmp eq i32 %159, -1
  br i1 %160, label %161, label %178

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

162:                                              ; preds = %161
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef @.str.17, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %163 unwind label %173

163:                                              ; preds = %162
  %164 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, 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 %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  br label %231

165:                                              ; preds = %154
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  br label %235

169:                                              ; preds = %161
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  br label %177

173:                                              ; preds = %162
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #10
  br label %177

177:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  br label %235

178:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %179 = load i32, ptr %16, align 4, !tbaa !29
  %180 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %179, i32 noundef 3, i32 noundef 0)
          to label %181 unwind label %195

181:                                              ; preds = %178
  store i32 %180, ptr %19, align 4, !tbaa !29
  %182 = load i32, ptr %19, align 4, !tbaa !29
  %183 = icmp eq i32 %182, -1
  br i1 %183, label %191, label %184

184:                                              ; preds = %181
  %185 = load i32, ptr %16, align 4, !tbaa !29
  %186 = load i32, ptr %19, align 4, !tbaa !29
  %187 = or i32 %186, 2048
  %188 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %185, i32 noundef 4, i32 noundef %187)
          to label %189 unwind label %195

189:                                              ; preds = %184
  %190 = icmp eq i32 %188, -1
  br i1 %190, label %191, label %208

191:                                              ; preds = %189, %181
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #10
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21)
          to label %192 unwind label %199

192:                                              ; preds = %191
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %193 unwind label %203

193:                                              ; preds = %192
  %194 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, 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 %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  br label %213

195:                                              ; preds = %208, %184, %178
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %9, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %10, align 4
  br label %230

199:                                              ; preds = %191
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %9, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %10, align 4
  br label %207

203:                                              ; preds = %192
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %9, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  br label %207

207:                                              ; preds = %203, %199
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #10
  br label %230

208:                                              ; preds = %189
  %209 = getelementptr inbounds %"class.System::TcpListener", ptr %26, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !9
  %211 = load i32, ptr %16, align 4, !tbaa !29
  invoke void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(424) %210, i32 noundef %211)
          to label %212 unwind label %195

212:                                              ; preds = %208
  store i32 1, ptr %22, align 4
  br label %227

213:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  %214 = load i32, ptr %16, align 4, !tbaa !29
  %215 = invoke i32 @close(i32 noundef %214)
          to label %216 unwind label %221

216:                                              ; preds = %213
  store i32 %215, ptr %23, align 4, !tbaa !29
  %217 = load i32, ptr %23, align 4, !tbaa !29
  %218 = icmp ne i32 %217, -1
  br i1 %218, label %219, label %220

219:                                              ; preds = %216
  br label %226

220:                                              ; preds = %216
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 191, ptr noundef @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #9
  unreachable

221:                                              ; preds = %213
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %9, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %230

225:                                              ; No predecessors!
  br label %226

226:                                              ; preds = %225, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  store i32 0, ptr %22, align 4
  br label %227

227:                                              ; preds = %226, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  %228 = load i32, ptr %22, align 4
  switch i32 %228, label %232 [
    i32 0, label %229
  ]

229:                                              ; preds = %227
  br label %231

230:                                              ; preds = %221, %207, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %235

231:                                              ; preds = %229, %163
  store i32 0, ptr %22, align 4
  br label %232

232:                                              ; preds = %231, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  %233 = load i32, ptr %22, align 4
  switch i32 %233, label %252 [
    i32 0, label %234
  ]

234:                                              ; preds = %232
  br label %236

235:                                              ; preds = %230, %177, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  br label %253

236:                                              ; preds = %234, %66
  store i1 true, ptr %25, align 1
  %237 = call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #10
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef @.str.18, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %238 unwind label %240

238:                                              ; preds = %236
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %237, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %239 unwind label %244

239:                                              ; preds = %238
  store i1 false, ptr %25, align 1
  invoke void @__cxa_throw(ptr %237, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #11
          to label %259 unwind label %244

240:                                              ; preds = %236
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %9, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %10, align 4
  br label %248

244:                                              ; preds = %239, %238
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %9, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #10
  br label %248

248:                                              ; preds = %244, %240
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #10
  %249 = load i1, ptr %25, align 1
  br i1 %249, label %250, label %251

250:                                              ; preds = %248
  call void @__cxa_free_exception(ptr %237) #10
  br label %251

251:                                              ; preds = %250, %248
  br label %253

252:                                              ; preds = %232
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #10
  ret void

253:                                              ; preds = %251, %235, %150, %104, %80, %68
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #10
  br label %254

254:                                              ; preds = %253
  %255 = load ptr, ptr %9, align 8
  %256 = load i32, ptr %10, align 4
  %257 = insertvalue { ptr, i32 } poison, ptr %255, 0
  %258 = insertvalue { ptr, i32 } %257, i32 %256, 1
  resume { ptr, i32 } %258

259:                                              ; preds = %239, %149, %140
  unreachable
}

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

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

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

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

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

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

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

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

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

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #3

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

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

!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, !6, i64 0}
!10 = !{!"_ZTSN6System11TcpListenerE", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTSN6System16OperationContextE", !6, i64 0, !15, i64 8, !11, i64 12}
!15 = !{!"bool", !7, i64 0}
!16 = !{!14, !6, i64 0}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSN6System11ContextPairE", !6, i64 0, !6, i64 8}
!19 = !{!18, !6, i64 0}
!20 = !{!21, !11, i64 0}
!21 = !{!"_ZTS11epoll_event", !11, i64 0, !7, i64 4}
!22 = !{!7, !7, i64 0}
!23 = !{!10, !11, i64 16}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSZN6System11TcpListener6acceptEvE3$_0", !6, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!14, !11, i64 12}
!29 = !{!11, !11, i64 0}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.System::TcpConnection" = type { ptr, i32, %"struct.System::ContextPair" }
%"struct.System::ContextPair" = type { ptr, ptr }
%"struct.System::OperationContext" = type { ptr, i8, i32 }
%struct.epoll_event = type <{ i32, %union.epoll_data }>
%union.epoll_data = type { ptr }
%class.anon = type { ptr }
%struct.sockaddr = type { i16, [14 x i8] }

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [91 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv = external hidden unnamed_addr constant [44 x i8], align 1
@_ZTIN6System20InterruptedExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; 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 #2

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

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 #1 align 2

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

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

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

; 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 #3

declare i32 @close(i32 noundef) local_unnamed_addr #3

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; 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 #6

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6System11TcpListener6acceptEv(ptr dead_on_unwind noalias writable sret(%"class.System::TcpConnection") align 8 %0, ptr noundef nonnull align 8 dereferenceable(20) %1) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.System::ContextPair", align 8
  %4 = alloca %"struct.System::OperationContext", align 8
  %5 = alloca %struct.epoll_event, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %class.anon, align 8
  %10 = alloca %struct.sockaddr, align 2
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = load ptr, ptr %1, align 8, !tbaa !5
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %18, label %19

18:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.7, i32 noundef 121, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #8
  unreachable

19:                                               ; preds = %2
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = icmp eq ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.7, i32 noundef 122, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #8
  unreachable

24:                                               ; preds = %19
  %25 = tail call noundef zeroext i1 @_ZN6System10Dispatcher11interruptedEv(ptr noundef nonnull align 8 dereferenceable(424) %17)
  br i1 %25, label %26, label %28

26:                                               ; preds = %24
  %27 = tail call ptr @__cxa_allocate_exception(i64 8) #9
  store i64 0, ptr %27, align 16
  tail call void @_ZN6System20InterruptedExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  tail call void @__cxa_throw(ptr nonnull %27, ptr nonnull @_ZTIN6System20InterruptedExceptionE, ptr nonnull @_ZNSt9exceptionD2Ev) #10
  unreachable

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  store i8 0, ptr %29, align 8, !tbaa !12
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = tail call noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %30)
  store ptr %31, ptr %4, align 8, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr null, ptr %32, align 8, !tbaa !16
  store ptr %4, ptr %3, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #9
  store i32 1073741825, ptr %5, align 4, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %5, i64 4
  store ptr %3, ptr %33, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = invoke noundef i32 @_ZNK6System10Dispatcher8getEpollEv(ptr noundef nonnull align 8 dereferenceable(424) %34)
          to label %36 unwind label %45

36:                                               ; preds = %28
  %37 = getelementptr inbounds i8, ptr %1, i64 16
  %38 = load i32, ptr %37, align 8, !tbaa !22
  %39 = call i32 @epoll_ctl(i32 noundef %35, i32 noundef 3, i32 noundef %38, ptr noundef nonnull %5) #9
  %40 = icmp eq i32 %39, -1
  br i1 %40, label %41, label %52

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

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

43:                                               ; preds = %42
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %143

45:                                               ; preds = %.invoke, %69, %59, %55, %28
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %152

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

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

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

52:                                               ; preds = %36
  store ptr %4, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  store ptr %1, ptr %9, align 8, !tbaa !23
  %53 = load ptr, ptr %1, align 8, !tbaa !5
  %54 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %53)
          to label %55 unwind label %67

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %54, i64 88
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvvEEaSIZN6System11TcpListener6acceptEvE3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS6_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceIS8_E4typeEE4typeES1_EE5valueESt5decayIS8_EE4type4typeESt15__invoke_resultIRSJ_JEEEE5valueERS1_E4typeEOS8_"(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %58 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZN6System10Dispatcher8dispatchEv(ptr noundef nonnull align 8 dereferenceable(424) %58)
          to label %59 unwind label %45

59:                                               ; preds = %55
  %60 = load ptr, ptr %1, align 8, !tbaa !5
  %61 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %60)
          to label %62 unwind label %45

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %61, i64 88
  %64 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt8functionIFvvEEaSEDn(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr null) #9
  %65 = load ptr, ptr %1, align 8, !tbaa !5
  %.not30 = icmp eq ptr %65, null
  br i1 %.not30, label %66, label %69

66:                                               ; preds = %62
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.7, i32 noundef 163, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #8
  unreachable

67:                                               ; preds = %52
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %152

69:                                               ; preds = %62
  %70 = load ptr, ptr %4, align 8, !tbaa !15
  %71 = invoke noundef ptr @_ZNK6System10Dispatcher17getCurrentContextEv(ptr noundef nonnull align 8 dereferenceable(424) %65)
          to label %72 unwind label %45

72:                                               ; preds = %69
  %73 = icmp eq ptr %70, %71
  br i1 %73, label %75, label %74

74:                                               ; preds = %72
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.7, i32 noundef 164, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #8
  unreachable

75:                                               ; preds = %72
  %76 = load ptr, ptr %32, align 8, !tbaa !16
  %77 = icmp eq ptr %76, null
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.7, i32 noundef 165, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #8
  unreachable

79:                                               ; preds = %75
  %80 = load ptr, ptr %20, align 8, !tbaa !11
  %81 = icmp eq ptr %80, %4
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.7, i32 noundef 166, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #8
  unreachable

83:                                               ; preds = %79
  store ptr null, ptr %20, align 8, !tbaa !11
  store ptr null, ptr %4, align 8, !tbaa !15
  %84 = load i8, ptr %29, align 8, !tbaa !12, !range !25, !noundef !26
  %85 = trunc nuw i8 %84 to i1
  br i1 %85, label %86, label %88

86:                                               ; preds = %83
  %87 = call ptr @__cxa_allocate_exception(i64 8) #9
  store i64 0, ptr %87, align 16
  call void @_ZN6System20InterruptedExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %87) #9
  br label %.invoke

88:                                               ; preds = %83
  %89 = getelementptr inbounds i8, ptr %4, i64 12
  %90 = load i32, ptr %89, align 4, !tbaa !27
  %91 = and i32 %90, 24
  %.not31 = icmp eq i32 %91, 0
  br i1 %.not31, label %99, label %92

92:                                               ; preds = %88
  %93 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %93, ptr noundef nonnull @.str.16)
          to label %.invoke unwind label %97

.invoke:                                          ; preds = %92, %86
  %94 = phi ptr [ %87, %86 ], [ %93, %92 ]
  %95 = phi ptr [ @_ZTIN6System20InterruptedExceptionE, %86 ], [ @_ZTISt13runtime_error, %92 ]
  %96 = phi ptr [ @_ZNSt9exceptionD2Ev, %86 ], [ @_ZNSt13runtime_errorD1Ev, %92 ]
  invoke void @__cxa_throw(ptr nonnull %94, ptr nonnull %95, ptr nonnull %96) #10
          to label %.cont unwind label %45

.cont:                                            ; preds = %.invoke
  unreachable

97:                                               ; preds = %92
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %93) #9
  br label %152

99:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 16, ptr %11, align 4, !tbaa !28
  %100 = load i32, ptr %37, align 8, !tbaa !22
  %101 = invoke i32 @accept(i32 noundef %100, ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %102 unwind label %108

102:                                              ; preds = %99
  %103 = icmp eq i32 %101, -1
  br i1 %103, label %104, label %115

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13)
          to label %105 unwind label %110

105:                                              ; preds = %104
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull @.str.17, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %106 unwind label %112

106:                                              ; preds = %105
  %107 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  br label %.critedge44

108:                                              ; preds = %99
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %142

110:                                              ; preds = %104
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %114

112:                                              ; preds = %105
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %114

114:                                              ; preds = %112, %110
  %.pn36 = phi { ptr, i32 } [ %113, %112 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  br label %142

115:                                              ; preds = %102
  %116 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %101, i32 noundef 3, i32 noundef 0)
          to label %117 unwind label %129

117:                                              ; preds = %115
  %118 = icmp eq i32 %116, -1
  br i1 %118, label %124, label %119

119:                                              ; preds = %117
  %120 = or i32 %116, 2048
  %121 = invoke i32 (i32, i32, ...) @fcntl(i32 noundef %101, i32 noundef 4, i32 noundef %120)
          to label %122 unwind label %129

122:                                              ; preds = %119
  %123 = icmp eq i32 %121, -1
  br i1 %123, label %124, label %136

124:                                              ; preds = %122, %117
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #9
  invoke void @_ZN6System16lastErrorMessageB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15)
          to label %125 unwind label %131

125:                                              ; preds = %124
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %126 unwind label %133

126:                                              ; preds = %125
  %127 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  %128 = invoke i32 @close(i32 noundef %101)
          to label %138 unwind label %140

129:                                              ; preds = %136, %119, %115
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %142

131:                                              ; preds = %124
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %135

133:                                              ; preds = %125
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  br label %135

135:                                              ; preds = %133, %131
  %.pn = phi { ptr, i32 } [ %134, %133 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  br label %142

136:                                              ; preds = %122
  %137 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZN6System13TcpConnectionC1ERNS_10DispatcherEi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(424) %137, i32 noundef %101)
          to label %.critedge unwind label %129

138:                                              ; preds = %126
  %.not35 = icmp eq i32 %128, -1
  br i1 %.not35, label %139, label %.critedge44

139:                                              ; preds = %138
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 191, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6System11TcpListener6acceptEv) #8
  unreachable

140:                                              ; preds = %126
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %142

.critedge:                                        ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  ret void

142:                                              ; preds = %129, %135, %140, %114, %108
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %114 ], [ %109, %108 ], [ %141, %140 ], [ %.pn, %135 ], [ %130, %129 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %152

.critedge44:                                      ; preds = %106, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %143

143:                                              ; preds = %.critedge44, %43
  %144 = call ptr @__cxa_allocate_exception(i64 16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull @.str.18, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %145 unwind label %.thread

145:                                              ; preds = %143
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %144, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %147 unwind label %.thread48

.thread48:                                        ; preds = %145
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  br label %151

147:                                              ; preds = %145
  invoke void @__cxa_throw(ptr nonnull %144, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %153 unwind label %149

.thread:                                          ; preds = %143
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  br label %151

149:                                              ; preds = %147
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  br label %152

151:                                              ; preds = %.thread48, %.thread
  %.pn4147 = phi { ptr, i32 } [ %148, %.thread ], [ %146, %.thread48 ]
  call void @__cxa_free_exception(ptr %144) #9
  br label %152

152:                                              ; preds = %149, %151, %142, %97, %67, %51, %45
  %.pn41.pn = phi { ptr, i32 } [ %.pn4147, %151 ], [ %150, %149 ], [ %.pn39, %51 ], [ %46, %45 ], [ %98, %97 ], [ %.pn36.pn, %142 ], [ %68, %67 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn41.pn

153:                                              ; preds = %147
  unreachable
}

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

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

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

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

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

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

; 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 #1 align 2

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

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

!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 0}
!6 = !{!"_ZTSN6System11TcpListenerE", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!13, !14, i64 8}
!13 = !{!"_ZTSN6System16OperationContextE", !7, i64 0, !14, i64 8, !10, i64 12}
!14 = !{!"bool", !8, i64 0}
!15 = !{!13, !7, i64 0}
!16 = !{!17, !7, i64 8}
!17 = !{!"_ZTSN6System11ContextPairE", !7, i64 0, !7, i64 8}
!18 = !{!17, !7, i64 0}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTS11epoll_event", !10, i64 0, !8, i64 4}
!21 = !{!8, !8, i64 0}
!22 = !{!6, !10, i64 16}
!23 = !{!24, !7, i64 0}
!24 = !{!"_ZTSZN6System11TcpListener6acceptEvE3$_0", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!13, !10, i64 12}
!28 = !{!10, !10, i64 0}


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