; LLVM IR from Bousk/Net :: NetworkLib/Samples/TCP/Server (Main)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%"class.Bousk::Network::Messages::UserData" = type <{ %"class.Bousk::Network::Messages::Base.base", [4 x i8], %"class.std::vector.8", i8, [7 x i8] }>
%"class.Bousk::Network::Messages::Base.base" = type <{ %"class.Bousk::Network::Address", i64, i32 }>
%"class.Bousk::Network::Address" = type <{ %struct.sockaddr_storage, i16, i8, [5 x i8] }>
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i16, align 2
  %3 = alloca %"class.Bousk::Network::TCP::Server", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %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 ptr, align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.5", align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  %21 = call noundef zeroext i1 @_ZN5Bousk7Network5StartEv()
  br i1 %21, label %26, label %22

22:                                               ; preds = %0
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %24 = call noundef i32 @_ZN5Bousk7Network6Errors3GetEv()
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef %24)
  store i32 -1, ptr %1, align 4
  br label %261

26:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 2, ptr %2) #8
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERt(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 2 dereferenceable(2) %2)
  call void @llvm.lifetime.start.p0(i64 120, ptr %3) #8
  call void @_ZN5Bousk7Network3TCP6ServerC1Ev(ptr noundef nonnull align 8 dereferenceable(116) %3)
  %29 = load i16, ptr %2, align 2, !tbaa !5
  %30 = invoke noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server5startEt(ptr noundef nonnull align 8 dereferenceable(116) %3, i16 noundef zeroext %29)
          to label %31 unwind label %39

31:                                               ; preds = %26
  br i1 %30, label %43, label %32

32:                                               ; preds = %31
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %34 unwind label %39

34:                                               ; preds = %32
  %35 = invoke noundef i32 @_ZN5Bousk7Network6Errors3GetEv()
          to label %36 unwind label %39

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %33, i32 noundef %35)
          to label %38 unwind label %39

38:                                               ; preds = %36
  store i32 -2, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @_ZN5Bousk7Network3TCP6ServerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %3) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %2) #8
  br label %261

39:                                               ; preds = %45, %36, %34, %32, %26
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %4, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %5, align 4
  br label %260

43:                                               ; preds = %31
  br label %44

44:                                               ; preds = %258, %43
  br label %45

45:                                               ; preds = %44
  invoke void @_ZN5Bousk7Network3TCP6Server6updateEv(ptr noundef nonnull align 8 dereferenceable(116) %3)
          to label %46 unwind label %39

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  invoke void @_ZN5Bousk7Network3TCP6Server4pollEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(116) %3)
          to label %47 unwind label %57

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store ptr %7, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %48 = load ptr, ptr %8, align 8, !tbaa !9
  %49 = call ptr @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #8
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  %52 = call ptr @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #8
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  br label %54

54:                                               ; preds = %255, %47
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS5_EESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %55, label %61, label %56

56:                                               ; preds = %54
  store i32 4, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %258

57:                                               ; preds = %46
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %4, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %5, align 4
  br label %259

61:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS5_EESt6vectorIS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  store ptr %62, ptr %11, align 8, !tbaa !9
  %63 = load ptr, ptr %11, align 8, !tbaa !9
  %64 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  %65 = invoke noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_18IncomingConnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %64)
          to label %66 unwind label %99

66:                                               ; preds = %61
  br i1 %65, label %67, label %121

67:                                               ; preds = %66
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %69 unwind label %99

69:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %70 = load ptr, ptr %11, align 8, !tbaa !9
  %71 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #8
  %72 = invoke noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %71)
          to label %73 unwind label %103

73:                                               ; preds = %69
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(131) %72)
          to label %74 unwind label %103

74:                                               ; preds = %73
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %76 unwind label %107

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @.str.4)
          to label %78 unwind label %107

78:                                               ; preds = %76
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %80 unwind label %107

80:                                               ; preds = %78
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %82 unwind label %99

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %83 = load ptr, ptr %11, align 8, !tbaa !9
  %84 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %83) #8
  %85 = invoke noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %84)
          to label %86 unwind label %112

86:                                               ; preds = %82
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(131) %85)
          to label %87 unwind label %112

87:                                               ; preds = %86
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %89 unwind label %116

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @.str.5)
          to label %91 unwind label %116

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %93 unwind label %116

93:                                               ; preds = %91
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  %94 = load ptr, ptr %11, align 8, !tbaa !9
  %95 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %94) #8
  %96 = invoke noundef i64 @_ZNK5Bousk7Network8Messages4Base9emmiterIdEv(ptr noundef nonnull align 8 dereferenceable(148) %95)
          to label %97 unwind label %99

97:                                               ; preds = %93
  invoke void @_ZN5Bousk7Network3TCP6Server6acceptEm(ptr noundef nonnull align 8 dereferenceable(116) %3, i64 noundef %96)
          to label %98 unwind label %99

98:                                               ; preds = %97
  br label %254

99:                                               ; preds = %177, %154, %149, %126, %121, %97, %93, %80, %67, %61
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %4, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %5, align 4
  br label %257

103:                                              ; preds = %73, %69
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %4, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %5, align 4
  br label %111

107:                                              ; preds = %78, %76, %74
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %4, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %111

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %257

112:                                              ; preds = %86, %82
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %4, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %5, align 4
  br label %120

116:                                              ; preds = %91, %89, %87
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %4, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %120

120:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  br label %257

121:                                              ; preds = %66
  %122 = load ptr, ptr %11, align 8, !tbaa !9
  %123 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %122) #8
  %124 = invoke noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_10ConnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %123)
          to label %125 unwind label %99

125:                                              ; preds = %121
  br i1 %124, label %126, label %149

126:                                              ; preds = %125
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %128 unwind label %99

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %129 = load ptr, ptr %11, align 8, !tbaa !9
  %130 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %129) #8
  %131 = invoke noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %130)
          to label %132 unwind label %140

132:                                              ; preds = %128
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(131) %131)
          to label %133 unwind label %140

133:                                              ; preds = %132
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %135 unwind label %144

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef @.str.6)
          to label %137 unwind label %144

137:                                              ; preds = %135
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %139 unwind label %144

139:                                              ; preds = %137
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %253

140:                                              ; preds = %132, %128
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %4, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %5, align 4
  br label %148

144:                                              ; preds = %137, %135, %133
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %4, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %148

148:                                              ; preds = %144, %140
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %257

149:                                              ; preds = %125
  %150 = load ptr, ptr %11, align 8, !tbaa !9
  %151 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %150) #8
  %152 = invoke noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_13DisconnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %151)
          to label %153 unwind label %99

153:                                              ; preds = %149
  br i1 %152, label %154, label %177

154:                                              ; preds = %153
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %156 unwind label %99

156:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  %157 = load ptr, ptr %11, align 8, !tbaa !9
  %158 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %157) #8
  %159 = invoke noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %158)
          to label %160 unwind label %168

160:                                              ; preds = %156
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(131) %159)
          to label %161 unwind label %168

161:                                              ; preds = %160
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %163 unwind label %172

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @.str.7)
          to label %165 unwind label %172

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %167 unwind label %172

167:                                              ; preds = %165
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %252

168:                                              ; preds = %160, %156
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %4, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %5, align 4
  br label %176

172:                                              ; preds = %165, %163, %161
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %4, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %176

176:                                              ; preds = %172, %168
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %257

177:                                              ; preds = %153
  %178 = load ptr, ptr %11, align 8, !tbaa !9
  %179 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %178) #8
  %180 = invoke noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_8UserDataEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %179)
          to label %181 unwind label %99

181:                                              ; preds = %177
  br i1 %180, label %182, label %251

182:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %183 = load ptr, ptr %11, align 8, !tbaa !9
  %184 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %183) #8
  %185 = invoke noundef ptr @_ZNK5Bousk7Network8Messages4Base2asINS1_8UserDataEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(148) %184)
          to label %186 unwind label %223

186:                                              ; preds = %182
  store ptr %185, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %187 = load ptr, ptr %16, align 8, !tbaa !9
  %188 = getelementptr inbounds %"class.Bousk::Network::Messages::UserData", ptr %187, i32 0, i32 2
  %189 = call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %188) #8
  %190 = load ptr, ptr %16, align 8, !tbaa !9
  %191 = getelementptr inbounds %"class.Bousk::Network::Messages::UserData", ptr %190, i32 0, i32 2
  %192 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %191) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef %189, i64 noundef %192, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %193 unwind label %227

193:                                              ; preds = %186
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %195 unwind label %231

195:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %196 = load ptr, ptr %11, align 8, !tbaa !9
  %197 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %196) #8
  %198 = invoke noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %197)
          to label %199 unwind label %235

199:                                              ; preds = %195
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(131) %198)
          to label %200 unwind label %235

200:                                              ; preds = %199
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %202 unwind label %239

202:                                              ; preds = %200
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str.9)
          to label %204 unwind label %239

204:                                              ; preds = %202
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %206 unwind label %239

206:                                              ; preds = %204
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %239

208:                                              ; preds = %206
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %209 = load ptr, ptr %11, align 8, !tbaa !9
  %210 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %209) #8
  %211 = invoke noundef ptr @_ZNK5Bousk7Network8Messages4Base2asINS1_8UserDataEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(148) %210)
          to label %212 unwind label %244

212:                                              ; preds = %208
  store ptr %211, ptr %20, align 8, !tbaa !9
  %213 = load ptr, ptr %20, align 8, !tbaa !9
  %214 = getelementptr inbounds %"class.Bousk::Network::Messages::UserData", ptr %213, i32 0, i32 2
  %215 = call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %214) #8
  %216 = load ptr, ptr %20, align 8, !tbaa !9
  %217 = getelementptr inbounds %"class.Bousk::Network::Messages::UserData", ptr %216, i32 0, i32 2
  %218 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %217) #8
  %219 = trunc i64 %218 to i32
  %220 = zext i32 %219 to i64
  %221 = invoke noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server9sendToAllEPKhm(ptr noundef nonnull align 8 dereferenceable(116) %3, ptr noundef %215, i64 noundef %220)
          to label %222 unwind label %244

222:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %251

223:                                              ; preds = %182
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %4, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %5, align 4
  br label %250

227:                                              ; preds = %186
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %4, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  br label %249

231:                                              ; preds = %193
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %4, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %5, align 4
  br label %248

235:                                              ; preds = %199, %195
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %4, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %5, align 4
  br label %243

239:                                              ; preds = %206, %204, %202, %200
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %4, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  br label %243

243:                                              ; preds = %239, %235
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %248

244:                                              ; preds = %212, %208
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %4, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %248

248:                                              ; preds = %244, %243, %231
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %249

249:                                              ; preds = %248, %227
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %250

250:                                              ; preds = %249, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %257

251:                                              ; preds = %222, %181
  br label %252

252:                                              ; preds = %251, %167
  br label %253

253:                                              ; preds = %252, %139
  br label %254

254:                                              ; preds = %253, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %255

255:                                              ; preds = %254
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS5_EESt6vectorIS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %54

257:                                              ; preds = %250, %176, %148, %120, %111, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %259

258:                                              ; preds = %56
  call void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %44, !llvm.loop !11

259:                                              ; preds = %257, %57
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %260

260:                                              ; preds = %259, %39
  call void @_ZN5Bousk7Network3TCP6ServerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %3) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %2) #8
  br label %263

261:                                              ; preds = %38, %22
  %262 = load i32, ptr %1, align 4
  ret i32 %262

263:                                              ; preds = %260
  %264 = load ptr, ptr %4, align 8
  %265 = load i32, ptr %5, align 4
  %266 = insertvalue { ptr, i32 } poison, ptr %264, 0
  %267 = insertvalue { ptr, i32 } %266, i32 %265, 1
  resume { ptr, i32 } %267
}

declare noundef zeroext i1 @_ZN5Bousk7Network5StartEv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

declare noundef i32 @_ZN5Bousk7Network6Errors3GetEv() #1

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERt(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 2 dereferenceable(2)) #4 align 2

declare void @_ZN5Bousk7Network3TCP6ServerC1Ev(ptr noundef nonnull align 8 dereferenceable(116)) unnamed_addr #1

declare noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server5startEt(ptr noundef nonnull align 8 dereferenceable(116), i16 noundef zeroext) #1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5Bousk7Network3TCP6Server6updateEv(ptr noundef nonnull align 8 dereferenceable(116)) #1

declare void @_ZN5Bousk7Network3TCP6Server4pollEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(116)) #1

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

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

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

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

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

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

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

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

declare void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(131)) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

declare void @_ZN5Bousk7Network3TCP6Server6acceptEm(ptr noundef nonnull align 8 dereferenceable(116), i64 noundef) #1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server9sendToAllEPKhm(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, i64 noundef) #1

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

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

; Function Attrs: nounwind
declare void @_ZN5Bousk7Network3TCP6ServerD1Ev(ptr noundef nonnull align 8 dereferenceable(116)) unnamed_addr #7

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -2, 0) i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i16, align 2
  %2 = alloca %"class.Bousk::Network::TCP::Server", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %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.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.5", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = tail call noundef zeroext i1 @_ZN5Bousk7Network5StartEv()
  br i1 %13, label %18, label %14

14:                                               ; preds = %0
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %16 = tail call noundef i32 @_ZN5Bousk7Network6Errors3GetEv()
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef %16)
  br label %168

18:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %1) #8
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERt(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 2 dereferenceable(2) %1)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #8
  call void @_ZN5Bousk7Network3TCP6ServerC1Ev(ptr noundef nonnull align 8 dereferenceable(116) %2)
  %21 = load i16, ptr %1, align 2, !tbaa !5
  %22 = invoke noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server5startEt(ptr noundef nonnull align 8 dereferenceable(116) %2, i16 noundef zeroext %21)
          to label %23 unwind label %.loopexit.split-lp

23:                                               ; preds = %18
  br i1 %22, label %.preheader, label %24

24:                                               ; preds = %23
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %26 unwind label %.loopexit.split-lp

26:                                               ; preds = %24
  %27 = invoke noundef i32 @_ZN5Bousk7Network6Errors3GetEv()
          to label %28 unwind label %.loopexit.split-lp

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %27)
          to label %30 unwind label %.loopexit.split-lp

30:                                               ; preds = %28
  call void @_ZN5Bousk7Network3TCP6ServerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %2) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %1) #8
  br label %168

.loopexit:                                        ; preds = %.preheader
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %167

.loopexit.split-lp:                               ; preds = %18, %24, %26, %28
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %167

.preheader:                                       ; preds = %23, %._crit_edge
  invoke void @_ZN5Bousk7Network3TCP6Server6updateEv(ptr noundef nonnull align 8 dereferenceable(116) %2)
          to label %31 unwind label %.loopexit

31:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  invoke void @_ZN5Bousk7Network3TCP6Server4pollEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(116) %2)
          to label %32 unwind label %36

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %33 = call ptr @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %33, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %34 = call ptr @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %34, ptr %5, align 8
  %35 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS5_EESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %35, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %162, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %.preheader, !llvm.loop !9

36:                                               ; preds = %31
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %166

.lr.ph:                                           ; preds = %32, %162
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS5_EESt6vectorIS8_SaIS8_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %39 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %40 = call noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_18IncomingConnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %39)
  br i1 %40, label %41, label %78

41:                                               ; preds = %.lr.ph
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %43 unwind label %66

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %44 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %45 = call noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %44)
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(131) %45)
          to label %46 unwind label %68

46:                                               ; preds = %43
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %48 unwind label %70

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @.str.4)
          to label %50 unwind label %70

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %52 unwind label %70

52:                                               ; preds = %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %54 unwind label %66

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  %55 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %56 = call noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %55)
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(131) %56)
          to label %57 unwind label %73

57:                                               ; preds = %54
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %59 unwind label %75

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @.str.5)
          to label %61 unwind label %75

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %63 unwind label %75

63:                                               ; preds = %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  %64 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %65 = call noundef i64 @_ZNK5Bousk7Network8Messages4Base9emmiterIdEv(ptr noundef nonnull align 8 dereferenceable(148) %64)
  invoke void @_ZN5Bousk7Network3TCP6Server6acceptEm(ptr noundef nonnull align 8 dereferenceable(116) %2, i64 noundef %65)
          to label %162 unwind label %66

66:                                               ; preds = %101, %81, %63, %52, %41
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %165

68:                                               ; preds = %43
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %72

70:                                               ; preds = %50, %48, %46
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %72

72:                                               ; preds = %70, %68
  %.pn39 = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %165

73:                                               ; preds = %54
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %61, %59, %57
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %77

77:                                               ; preds = %75, %73
  %.pn41 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %165

78:                                               ; preds = %.lr.ph
  %79 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %80 = call noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_10ConnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %79)
  br i1 %80, label %81, label %98

81:                                               ; preds = %78
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %83 unwind label %66

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %84 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %85 = call noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %84)
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(131) %85)
          to label %86 unwind label %93

86:                                               ; preds = %83
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %88 unwind label %95

88:                                               ; preds = %86
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @.str.6)
          to label %90 unwind label %95

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %92 unwind label %95

92:                                               ; preds = %90
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %162

93:                                               ; preds = %83
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %97

95:                                               ; preds = %90, %88, %86
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %97

97:                                               ; preds = %95, %93
  %.pn37 = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %165

98:                                               ; preds = %78
  %99 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %100 = call noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_13DisconnectionEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %99)
  br i1 %100, label %101, label %118

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

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  %104 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %105 = call noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %104)
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(131) %105)
          to label %106 unwind label %113

106:                                              ; preds = %103
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %108 unwind label %115

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull @.str.7)
          to label %110 unwind label %115

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %112 unwind label %115

112:                                              ; preds = %110
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %162

113:                                              ; preds = %103
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %117

115:                                              ; preds = %110, %108, %106
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %117

117:                                              ; preds = %115, %113
  %.pn35 = phi { ptr, i32 } [ %116, %115 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %165

118:                                              ; preds = %98
  %119 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %120 = call noundef zeroext i1 @_ZNK5Bousk7Network8Messages4Base2isINS1_8UserDataEEEbv(ptr noundef nonnull align 8 dereferenceable(148) %119)
  br i1 %120, label %121, label %162

121:                                              ; preds = %118
  %122 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %123 = call noundef ptr @_ZNK5Bousk7Network8Messages4Base2asINS1_8UserDataEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(148) %122)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  %124 = getelementptr inbounds i8, ptr %123, i64 152
  %125 = call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  %126 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %125, i64 noundef %126, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %127 unwind label %149

127:                                              ; preds = %121
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %129 unwind label %151

129:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  %130 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %131 = call noundef nonnull align 8 dereferenceable(131) ptr @_ZNK5Bousk7Network8Messages4Base7emitterEv(ptr noundef nonnull align 8 dereferenceable(148) %130)
  invoke void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(131) %131)
          to label %132 unwind label %153

132:                                              ; preds = %129
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %134 unwind label %155

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @.str.9)
          to label %136 unwind label %155

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %138 unwind label %155

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %140 unwind label %155

140:                                              ; preds = %138
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  %141 = call noundef ptr @_ZNKSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS3_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %142 = call noundef ptr @_ZNK5Bousk7Network8Messages4Base2asINS1_8UserDataEEEPKT_v(ptr noundef nonnull align 8 dereferenceable(148) %141)
  %143 = getelementptr inbounds i8, ptr %142, i64 152
  %144 = call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #8
  %145 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #8
  %146 = and i64 %145, 4294967295
  %147 = invoke noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server9sendToAllEPKhm(ptr noundef nonnull align 8 dereferenceable(116) %2, ptr noundef %144, i64 noundef %146)
          to label %148 unwind label %158

148:                                              ; preds = %140
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %162

149:                                              ; preds = %121
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  br label %161

151:                                              ; preds = %127
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %160

153:                                              ; preds = %129
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %157

155:                                              ; preds = %138, %136, %134, %132
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %157

157:                                              ; preds = %155, %153
  %.pn = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %160

158:                                              ; preds = %140
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %160

160:                                              ; preds = %158, %157, %151
  %.pn32 = phi { ptr, i32 } [ %159, %158 ], [ %.pn, %157 ], [ %152, %151 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %161

161:                                              ; preds = %160, %149
  %.pn32.pn = phi { ptr, i32 } [ %.pn32, %160 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %165

162:                                              ; preds = %92, %118, %148, %112, %63
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS5_EESt6vectorIS8_SaIS8_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %164 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS5_EESt6vectorIS8_SaIS8_EEEEbRKNS_17__normal_iteratorIT_T0_EESI_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %164, label %.lr.ph, label %._crit_edge

165:                                              ; preds = %161, %117, %97, %77, %72, %66
  %.pn43 = phi { ptr, i32 } [ %67, %66 ], [ %.pn41, %77 ], [ %.pn39, %72 ], [ %.pn37, %97 ], [ %.pn35, %117 ], [ %.pn32.pn, %161 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZNSt6vectorISt10unique_ptrIN5Bousk7Network8Messages4BaseESt14default_deleteIS4_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %166

166:                                              ; preds = %165, %36
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %165 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %167

167:                                              ; preds = %.loopexit, %.loopexit.split-lp, %166
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %166 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN5Bousk7Network3TCP6ServerD1Ev(ptr noundef nonnull align 8 dereferenceable(116) %2) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn43.pn.pn

168:                                              ; preds = %30, %14
  %.0 = phi i32 [ -2, %30 ], [ -1, %14 ]
  ret i32 %.0
}

declare noundef zeroext i1 @_ZN5Bousk7Network5StartEv() local_unnamed_addr #1

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

declare noundef i32 @_ZN5Bousk7Network6Errors3GetEv() local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERt(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #4 align 2

declare void @_ZN5Bousk7Network3TCP6ServerC1Ev(ptr noundef nonnull align 8 dereferenceable(116)) unnamed_addr #1

declare noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server5startEt(ptr noundef nonnull align 8 dereferenceable(116), i16 noundef zeroext) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5Bousk7Network3TCP6Server6updateEv(ptr noundef nonnull align 8 dereferenceable(116)) local_unnamed_addr #1

declare void @_ZN5Bousk7Network3TCP6Server4pollEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(116)) local_unnamed_addr #1

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

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

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

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

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

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

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

declare void @_ZNK5Bousk7Network7Address8toStringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(131)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

declare void @_ZN5Bousk7Network3TCP6Server6acceptEm(ptr noundef nonnull align 8 dereferenceable(116), i64 noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcmRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare noundef zeroext i1 @_ZN5Bousk7Network3TCP6Server9sendToAllEPKhm(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind
declare void @_ZN5Bousk7Network3TCP6ServerD1Ev(ptr noundef nonnull align 8 dereferenceable(116)) unnamed_addr #7

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass