; LLVM IR from Bousk/Net :: NetworkLib/src/TCP/Server.ll (ZN5Bousk7Network3TCP6Server6updateEv)

; 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.Bousk::Network::Address" = type <{ %struct.sockaddr_storage, i16, i8, [5 x i8] }>
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%"class.Bousk::Network::TCP::Client" = type <{ %"class.std::unique_ptr", %"class.std::unique_ptr.5", %"class.std::unique_ptr.13", %"class.Bousk::Network::Address", i32, i32, i8, [7 x i8] }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.4" }
%"struct.std::_Head_base.4" = type { ptr }
%"class.std::unique_ptr.5" = type { %"struct.std::__uniq_ptr_data.6" }
%"struct.std::__uniq_ptr_data.6" = type { %"class.std::__uniq_ptr_impl.7" }
%"class.std::__uniq_ptr_impl.7" = type { %"class.std::tuple.8" }
%"class.std::tuple.8" = type { %"struct.std::_Tuple_impl.9" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"class.std::unique_ptr.13" = type { %"struct.std::__uniq_ptr_data.14" }
%"struct.std::__uniq_ptr_data.14" = type { %"class.std::__uniq_ptr_impl.15" }
%"class.std::__uniq_ptr_impl.15" = type { %"class.std::tuple.16" }
%"class.std::tuple.16" = type { %"struct.std::_Tuple_impl.17" }
%"struct.std::_Tuple_impl.17" = type { %"struct.std::_Head_base.20" }
%"struct.std::_Head_base.20" = type { ptr }
%"class.std::unique_ptr.21" = type { %"struct.std::__uniq_ptr_data.22" }
%"struct.std::__uniq_ptr_data.22" = type { %"class.std::__uniq_ptr_impl.23" }
%"class.std::__uniq_ptr_impl.23" = type { %"class.std::tuple.24" }
%"class.std::tuple.24" = type { %"struct.std::_Tuple_impl.25" }
%"struct.std::_Tuple_impl.25" = type { %"struct.std::_Head_base.28" }
%"struct.std::_Head_base.28" = type { ptr }
%"class.std::lock_guard" = type { ptr }
%"class.std::unique_ptr.29" = type { %"struct.std::__uniq_ptr_data.30" }
%"struct.std::__uniq_ptr_data.30" = type { %"class.std::__uniq_ptr_impl.31" }
%"class.std::__uniq_ptr_impl.31" = type { %"class.std::tuple.32" }
%"class.std::tuple.32" = type { %"struct.std::_Tuple_impl.33" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.Bousk::Network::TCP::Server" = type <{ %"class.std::map", %"class.std::mutex", %"class.std::vector", i32, [4 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, Bousk::Network::TCP::Client>, std::_Select1st<std::pair<const unsigned long, Bousk::Network::TCP::Client>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, Bousk::Network::TCP::Client>, std::_Select1st<std::pair<const unsigned long, Bousk::Network::TCP::Client>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<Bousk::Network::Messages::Base>, std::allocator<std::unique_ptr<Bousk::Network::Messages::Base>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<Bousk::Network::Messages::Base>, std::allocator<std::unique_ptr<Bousk::Network::Messages::Base>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<Bousk::Network::Messages::Base>, std::allocator<std::unique_ptr<Bousk::Network::Messages::Base>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<Bousk::Network::Messages::Base>, std::allocator<std::unique_ptr<Bousk::Network::Messages::Base>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i64, %"class.Bousk::Network::TCP::Client" }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Bousk7Network3TCP6Server6updateEv(ptr noundef nonnull align 8 dereferenceable(116) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.Bousk::Network::Address", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.Bousk::Network::TCP::Client", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::unique_ptr.21", align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::lock_guard", align 8
  %13 = alloca %"class.std::unique_ptr.29", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::unique_ptr.29", align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca %"class.std::lock_guard", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %22 = load ptr, ptr %2, align 8
  %23 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = icmp eq i32 %24, -1
  br i1 %25, label %26, label %27

26:                                               ; preds = %1
  br label %146

27:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !27
  br label %28

28:                                               ; preds = %87, %27
  %29 = load i32, ptr %3, align 4, !tbaa !27
  %30 = icmp slt i32 %29, 10
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  store i32 2, ptr %4, align 4
  br label %91

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 136, ptr %5) #8
  call void @_ZN5Bousk7Network7AddressC2Ev(ptr noundef nonnull align 8 dereferenceable(131) %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %33 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 3
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = call noundef zeroext i1 @_ZN5Bousk7Network7Address6acceptEiRi(ptr noundef nonnull align 8 dereferenceable(131) %5, i32 noundef %34, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 2, ptr %4, align 4
  br label %84

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 176, ptr %7) #8
  call void @_ZN5Bousk7Network3TCP6ClientC1Ev(ptr noundef nonnull align 8 dereferenceable(169) %7)
  %38 = invoke noundef zeroext i1 @_ZN5Bousk7Network3TCP6Client4initEOiRKNS0_7AddressE(ptr noundef nonnull align 8 dereferenceable(169) %7, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(131) %5)
          to label %39 unwind label %56

39:                                               ; preds = %37
  br i1 %38, label %40, label %83

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %41 = invoke noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network3TCP6Client7addressEv(ptr noundef nonnull align 8 dereferenceable(169) %7)
          to label %42 unwind label %60

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %43 = invoke noundef i64 @_ZNK5Bousk7Network3TCP6Client2idEv(ptr noundef nonnull align 8 dereferenceable(169) %7)
          to label %44 unwind label %64

44:                                               ; preds = %42
  store i64 %43, ptr %11, align 8, !tbaa !28
  invoke void @_ZSt11make_uniqueIN5Bousk7Network8Messages18IncomingConnectionEJRKNS1_7AddressEmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.21") align 8 %10, ptr noundef nonnull align 8 dereferenceable(131) %41, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %45 unwind label %64

45:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %46 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 1
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(40) %46)
          to label %47 unwind label %68

47:                                               ; preds = %45
  %48 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEC2INS2_18IncomingConnectionES4_IS8_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  invoke void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %49 unwind label %72

49:                                               ; preds = %47
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %50 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %51 = invoke noundef i64 @_ZNK5Bousk7Network3TCP6Client2idEv(ptr noundef nonnull align 8 dereferenceable(169) %7)
          to label %52 unwind label %77

52:                                               ; preds = %49
  store i64 %51, ptr %14, align 8, !tbaa !28
  %53 = invoke noundef nonnull align 8 dereferenceable(169) ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEEixEOm(ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %54 unwind label %77

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(169) ptr @_ZN5Bousk7Network3TCP6ClientaSEOS2_(ptr noundef nonnull align 8 dereferenceable(169) %53, ptr noundef nonnull align 8 dereferenceable(169) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages18IncomingConnectionESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %83

56:                                               ; preds = %37
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  br label %90

60:                                               ; preds = %40
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  br label %82

64:                                               ; preds = %44, %42
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %8, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %82

68:                                               ; preds = %45
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %8, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %9, align 4
  br label %76

72:                                               ; preds = %47
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %76

76:                                               ; preds = %72, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %81

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

81:                                               ; preds = %77, %76
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages18IncomingConnectionESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br label %82

82:                                               ; preds = %81, %64, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %90

83:                                               ; preds = %54, %39
  call void @_ZN5Bousk7Network3TCP6ClientD1Ev(ptr noundef nonnull align 8 dereferenceable(169) %7) #8
  call void @llvm.lifetime.end.p0(i64 176, ptr %7) #8
  store i32 0, ptr %4, align 4
  br label %84

84:                                               ; preds = %83, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr %5) #8
  %85 = load i32, ptr %4, align 4
  switch i32 %85, label %91 [
    i32 0, label %86
  ]

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %3, align 4, !tbaa !27
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %3, align 4, !tbaa !27
  br label %28, !llvm.loop !29

90:                                               ; preds = %82, %56
  call void @_ZN5Bousk7Network3TCP6ClientD1Ev(ptr noundef nonnull align 8 dereferenceable(169) %7) #8
  call void @llvm.lifetime.end.p0(i64 176, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %147

91:                                               ; preds = %84, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %93 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 0
  %94 = call ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %93) #8
  %95 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  br label %96

96:                                               ; preds = %144, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %97 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 0
  %98 = call ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %97) #8
  %99 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  %100 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br i1 %100, label %102, label %101

101:                                              ; preds = %96
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %146

102:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %103 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %104 = getelementptr inbounds %"struct.std::pair", ptr %103, i32 0, i32 1
  store ptr %104, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN5Bousk7Network3TCP6Client4pollEv(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.29") align 8 %18, ptr noundef nonnull align 8 dereferenceable(169) %105)
  %106 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %106, label %107, label %142

107:                                              ; preds = %102
  %108 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  %109 = invoke noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_13DisconnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %108)
          to label %110 unwind label %118

110:                                              ; preds = %107
  br i1 %109, label %111, label %126

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %112 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %15, i64 8, i1 false), !tbaa.struct !31
  %113 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = invoke ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(48) %112, ptr %114)
          to label %116 unwind label %122

116:                                              ; preds = %111
  %117 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  store ptr %115, ptr %117, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %19, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %128

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

122:                                              ; preds = %111
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %8, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %145

126:                                              ; preds = %110
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %128

128:                                              ; preds = %126, %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %129 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 1
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(40) %129)
          to label %130 unwind label %133

130:                                              ; preds = %128
  %131 = getelementptr inbounds %"class.Bousk::Network::TCP::Server", ptr %22, i32 0, i32 2
  invoke void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %132 unwind label %137

132:                                              ; preds = %130
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %144

133:                                              ; preds = %128
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %8, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %9, align 4
  br label %141

137:                                              ; preds = %130
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %8, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %9, align 4
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br label %141

141:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %145

142:                                              ; preds = %102
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %144

144:                                              ; preds = %142, %132
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %96, !llvm.loop !32

145:                                              ; preds = %141, %122, %118
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %147

146:                                              ; preds = %101, %26
  ret void

147:                                              ; preds = %145, %90
  %148 = load ptr, ptr %8, align 8
  %149 = load i32, ptr %9, align 4
  %150 = insertvalue { ptr, i32 } poison, ptr %148, 0
  %151 = insertvalue { ptr, i32 } %150, i32 %149, 1
  resume { ptr, i32 } %151
}

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

declare noundef zeroext i1 @_ZN5Bousk7Network7Address6acceptEiRi(ptr noundef nonnull align 8 dereferenceable(131), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #3

declare void @_ZN5Bousk7Network3TCP6ClientC1Ev(ptr noundef nonnull align 8 dereferenceable(169)) unnamed_addr #3

declare noundef zeroext i1 @_ZN5Bousk7Network3TCP6Client4initEOiRKNS0_7AddressE(ptr noundef nonnull align 8 dereferenceable(169), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(131)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN5Bousk7Network8Messages18IncomingConnectionEJRKNS1_7AddressEmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(131), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network3TCP6Client7addressEv(ptr noundef nonnull align 8 dereferenceable(169)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5Bousk7Network3TCP6Client2idEv(ptr noundef nonnull align 8 dereferenceable(169)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(169) ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEEixEOm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(169) ptr @_ZN5Bousk7Network3TCP6ClientaSEOS2_(ptr noundef nonnull align 8 dereferenceable(169), ptr noundef nonnull align 8 dereferenceable(169)) #6

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

; Function Attrs: nounwind
declare void @_ZN5Bousk7Network3TCP6ClientD1Ev(ptr noundef nonnull align 8 dereferenceable(169)) unnamed_addr #6

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

declare void @_ZN5Bousk7Network3TCP6Client4pollEv(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.29") align 8, ptr noundef nonnull align 8 dereferenceable(169)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_13DisconnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148)) #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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 = { 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 = { 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 #5 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !26, i64 112}
!10 = !{!"_ZTSN5Bousk7Network3TCP6ServerE", !11, i64 0, !20, i64 48, !22, i64 88, !26, i64 112}
!11 = !{!"_ZTSSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmN5Bousk7Network3TCP6ClientEESt10_Select1stIS6_ESt4lessImESaIS6_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmN5Bousk7Network3TCP6ClientEESt10_Select1stIS6_ESt4lessImESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !15, i64 0}
!15 = !{!"_ZTSSt4lessImE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt5mutex", !21, i64 0}
!21 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!22 = !{!"_ZTSSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"int", !7, i64 0}
!27 = !{!26, !26, i64 0}
!28 = !{!19, !19, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{i64 0, i64 8, !5}
!32 = distinct !{!32, !30}


; 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.Bousk::Network::Address" = type <{ %struct.sockaddr_storage, i16, i8, [5 x i8] }>
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%"class.Bousk::Network::TCP::Client" = type <{ %"class.std::unique_ptr", %"class.std::unique_ptr.5", %"class.std::unique_ptr.13", %"class.Bousk::Network::Address", i32, i32, i8, [7 x i8] }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.4" }
%"struct.std::_Head_base.4" = type { ptr }
%"class.std::unique_ptr.5" = type { %"struct.std::__uniq_ptr_data.6" }
%"struct.std::__uniq_ptr_data.6" = type { %"class.std::__uniq_ptr_impl.7" }
%"class.std::__uniq_ptr_impl.7" = type { %"class.std::tuple.8" }
%"class.std::tuple.8" = type { %"struct.std::_Tuple_impl.9" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"class.std::unique_ptr.13" = type { %"struct.std::__uniq_ptr_data.14" }
%"struct.std::__uniq_ptr_data.14" = type { %"class.std::__uniq_ptr_impl.15" }
%"class.std::__uniq_ptr_impl.15" = type { %"class.std::tuple.16" }
%"class.std::tuple.16" = type { %"struct.std::_Tuple_impl.17" }
%"struct.std::_Tuple_impl.17" = type { %"struct.std::_Head_base.20" }
%"struct.std::_Head_base.20" = type { ptr }
%"class.std::unique_ptr.21" = type { %"struct.std::__uniq_ptr_data.22" }
%"struct.std::__uniq_ptr_data.22" = type { %"class.std::__uniq_ptr_impl.23" }
%"class.std::__uniq_ptr_impl.23" = type { %"class.std::tuple.24" }
%"class.std::tuple.24" = type { %"struct.std::_Tuple_impl.25" }
%"struct.std::_Tuple_impl.25" = type { %"struct.std::_Head_base.28" }
%"struct.std::_Head_base.28" = type { ptr }
%"class.std::lock_guard" = type { ptr }
%"class.std::unique_ptr.29" = type { %"struct.std::__uniq_ptr_data.30" }
%"struct.std::__uniq_ptr_data.30" = type { %"class.std::__uniq_ptr_impl.31" }
%"class.std::__uniq_ptr_impl.31" = type { %"class.std::tuple.32" }
%"class.std::tuple.32" = type { %"struct.std::_Tuple_impl.33" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Bousk7Network3TCP6Server6updateEv(ptr noundef nonnull align 8 dereferenceable(116) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.Bousk::Network::Address", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.Bousk::Network::TCP::Client", align 8
  %5 = alloca %"class.std::unique_ptr.21", align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::lock_guard", align 8
  %8 = alloca %"class.std::unique_ptr.29", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca %"class.std::unique_ptr.29", align 8
  %13 = alloca %"class.std::lock_guard", align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = icmp eq i32 %15, -1
  br i1 %16, label %81, label %.preheader

.preheader:                                       ; preds = %1
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = getelementptr inbounds i8, ptr %0, i64 88
  br label %19

19:                                               ; preds = %.preheader, %48
  %.025 = phi i32 [ 0, %.preheader ], [ %49, %48 ]
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %2) #7
  call void @_ZN5Bousk7Network7AddressC2Ev(ptr noundef nonnull align 8 dereferenceable(131) %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %20 = load i32, ptr %14, align 8, !tbaa !5
  %21 = call noundef zeroext i1 @_ZN5Bousk7Network7Address6acceptEiRi(ptr noundef nonnull align 8 dereferenceable(131) %2, i32 noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %21, label %22, label %.critedge

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %4) #7
  call void @_ZN5Bousk7Network3TCP6ClientC1Ev(ptr noundef nonnull align 8 dereferenceable(169) %4)
  %23 = invoke noundef zeroext i1 @_ZN5Bousk7Network3TCP6Client4initEOiRKNS0_7AddressE(ptr noundef nonnull align 8 dereferenceable(169) %4, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(131) %2)
          to label %24 unwind label %35

24:                                               ; preds = %22
  br i1 %23, label %25, label %48

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %26 = call noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network3TCP6Client7addressEv(ptr noundef nonnull align 8 dereferenceable(169) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %27 = call noundef i64 @_ZNK5Bousk7Network3TCP6Client2idEv(ptr noundef nonnull align 8 dereferenceable(169) %4)
  store i64 %27, ptr %6, align 8, !tbaa !26
  invoke void @_ZSt11make_uniqueIN5Bousk7Network8Messages18IncomingConnectionEJRKNS1_7AddressEmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.21") align 8 %5, ptr noundef nonnull align 8 dereferenceable(131) %26, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %28 unwind label %37

28:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %29 unwind label %39

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEC2INS2_18IncomingConnectionES4_IS8_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  invoke void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %30 unwind label %41

30:                                               ; preds = %29
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %31 = call noundef i64 @_ZNK5Bousk7Network3TCP6Client2idEv(ptr noundef nonnull align 8 dereferenceable(169) %4)
  store i64 %31, ptr %9, align 8, !tbaa !26
  %32 = invoke noundef nonnull align 8 dereferenceable(169) ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEEixEOm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %33 unwind label %44

33:                                               ; preds = %30
  %34 = call noundef nonnull align 8 dereferenceable(169) ptr @_ZN5Bousk7Network3TCP6ClientaSEOS2_(ptr noundef nonnull align 8 dereferenceable(169) %32, ptr noundef nonnull align 8 dereferenceable(169) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages18IncomingConnectionESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %48

35:                                               ; preds = %22
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %50

37:                                               ; preds = %25
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %47

39:                                               ; preds = %28
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %29
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %43

43:                                               ; preds = %41, %39
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %46

44:                                               ; preds = %30
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %46

46:                                               ; preds = %44, %43
  %.pn17 = phi { ptr, i32 } [ %45, %44 ], [ %.pn, %43 ]
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages18IncomingConnectionESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %47

47:                                               ; preds = %46, %37
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %46 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %50

48:                                               ; preds = %24, %33
  call void @_ZN5Bousk7Network3TCP6ClientD1Ev(ptr noundef nonnull align 8 dereferenceable(169) %4) #7
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %2) #7
  %49 = add nuw nsw i32 %.025, 1
  %exitcond.not = icmp eq i32 %49, 10
  br i1 %exitcond.not, label %.loopexit, label %19, !llvm.loop !27

50:                                               ; preds = %47, %35
  %.pn17.pn.pn = phi { ptr, i32 } [ %.pn17.pn, %47 ], [ %36, %35 ]
  call void @_ZN5Bousk7Network3TCP6ClientD1Ev(ptr noundef nonnull align 8 dereferenceable(169) %4) #7
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %2) #7
  br label %82

.critedge:                                        ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %2) #7
  br label %.loopexit

.loopexit:                                        ; preds = %48, %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %51 = call ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  store ptr %51, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %52 = call ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  store ptr %52, ptr %11, align 8
  %53 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %53, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %77, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %81

.lr.ph:                                           ; preds = %.loopexit, %77
  %54 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN5Bousk7Network3TCP6Client4pollEv(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.29") align 8 %12, ptr noundef nonnull align 8 dereferenceable(169) %55)
  %56 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br i1 %56, label %57, label %75

57:                                               ; preds = %.lr.ph
  %58 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %59 = call noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_13DisconnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %58)
  br i1 %59, label %60, label %65

60:                                               ; preds = %57
  %.sroa.0.0.copyload = load ptr, ptr %10, align 8, !tbaa !29
  %61 = invoke ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE5eraseB5cxx11ESt17_Rb_tree_iteratorIS8_E(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr %.sroa.0.0.copyload)
          to label %62 unwind label %63

62:                                               ; preds = %60
  store ptr %61, ptr %10, align 8, !tbaa !29
  br label %67

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

65:                                               ; preds = %57
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %67

67:                                               ; preds = %65, %62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  invoke void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %68 unwind label %70

68:                                               ; preds = %67
  invoke void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %69 unwind label %72

69:                                               ; preds = %68
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %77

70:                                               ; preds = %67
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %68
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %74

74:                                               ; preds = %72, %70
  %.pn21 = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %80

75:                                               ; preds = %.lr.ph
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %77

77:                                               ; preds = %75, %69
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %78 = call ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  store ptr %78, ptr %11, align 8
  %79 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKmN5Bousk7Network3TCP6ClientEEES9_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !30

80:                                               ; preds = %74, %63
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %74 ], [ %64, %63 ]
  call void @_ZNSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %82

81:                                               ; preds = %1, %._crit_edge
  ret void

82:                                               ; preds = %80, %50
  %.pn21.pn.pn = phi { ptr, i32 } [ %.pn21.pn, %80 ], [ %.pn17.pn.pn, %50 ]
  resume { ptr, i32 } %.pn21.pn.pn
}

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

declare noundef zeroext i1 @_ZN5Bousk7Network7Address6acceptEiRi(ptr noundef nonnull align 8 dereferenceable(131), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

declare void @_ZN5Bousk7Network3TCP6ClientC1Ev(ptr noundef nonnull align 8 dereferenceable(169)) unnamed_addr #3

declare noundef zeroext i1 @_ZN5Bousk7Network3TCP6Client4initEOiRKNS0_7AddressE(ptr noundef nonnull align 8 dereferenceable(169), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(131)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN5Bousk7Network8Messages18IncomingConnectionEJRKNS1_7AddressEmEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(131), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network3TCP6Client7addressEv(ptr noundef nonnull align 8 dereferenceable(169)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5Bousk7Network3TCP6Client2idEv(ptr noundef nonnull align 8 dereferenceable(169)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(169) ptr @_ZNSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEEixEOm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(169) ptr @_ZN5Bousk7Network3TCP6ClientaSEOS2_(ptr noundef nonnull align 8 dereferenceable(169), ptr noundef nonnull align 8 dereferenceable(169)) local_unnamed_addr #6

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

; Function Attrs: nounwind
declare void @_ZN5Bousk7Network3TCP6ClientD1Ev(ptr noundef nonnull align 8 dereferenceable(169)) unnamed_addr #6

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

declare void @_ZN5Bousk7Network3TCP6Client4pollEv(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.29") align 8, ptr noundef nonnull align 8 dereferenceable(169)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_13DisconnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148)) local_unnamed_addr #1 align 2

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

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 = { 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 = { 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 #5 = { 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 #6 = { 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 #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !25, i64 112}
!6 = !{!"_ZTSN5Bousk7Network3TCP6ServerE", !7, i64 0, !19, i64 48, !21, i64 88, !25, i64 112}
!7 = !{!"_ZTSSt3mapImN5Bousk7Network3TCP6ClientESt4lessImESaISt4pairIKmS3_EEE", !8, i64 0}
!8 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmN5Bousk7Network3TCP6ClientEESt10_Select1stIS6_ESt4lessImESaIS6_EE", !9, i64 0}
!9 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmN5Bousk7Network3TCP6ClientEESt10_Select1stIS6_ESt4lessImESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !10, i64 0, !12, i64 8}
!10 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !11, i64 0}
!11 = !{!"_ZTSSt4lessImE"}
!12 = !{!"_ZTSSt15_Rb_tree_header", !13, i64 0, !18, i64 32}
!13 = !{!"_ZTSSt18_Rb_tree_node_base", !14, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!14 = !{!"_ZTSSt14_Rb_tree_color", !15, i64 0}
!15 = !{!"omnipotent char", !16, i64 0}
!16 = !{!"Simple C++ TBAA"}
!17 = !{!"any pointer", !15, i64 0}
!18 = !{!"long", !15, i64 0}
!19 = !{!"_ZTSSt5mutex", !20, i64 0}
!20 = !{!"_ZTSSt12__mutex_base", !15, i64 0}
!21 = !{!"_ZTSSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!25 = !{!"int", !15, i64 0}
!26 = !{!18, !18, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!17, !17, i64 0}
!30 = distinct !{!30, !28}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass