; LLVM IR from KoishiDB/Koishi-DB :: src (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.koishidb::concurrent_hashmap" = type { %"class.std::unordered_map", %"class.std::shared_mutex" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::shared_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.3" }
%"struct.std::_Head_base.3" = type { ptr }
%"class.std::unique_ptr.4" = type { %"struct.std::__uniq_ptr_data.5" }
%"struct.std::__uniq_ptr_data.5" = type { %"class.std::__uniq_ptr_impl.6" }
%"class.std::__uniq_ptr_impl.6" = type { %"class.std::tuple.7" }
%"class.std::tuple.7" = type { %"struct.std::_Tuple_impl.8" }
%"struct.std::_Tuple_impl.8" = type { %"struct.std::_Head_base.11" }
%"struct.std::_Head_base.11" = type { ptr }
%"class.koishidb::ThreadPool" = type <{ %"class.std::vector", %"class.std::queue", %"class.std::mutex", %"class.std::condition_variable", i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, 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::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.epoll_event = type <{ i32, %union.epoll_data }>
%union.epoll_data = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr.29" }
%"class.std::shared_ptr.29" = type { %"class.std::__shared_ptr.30" }
%"class.std::__shared_ptr.30" = type { ptr, %"class.std::__shared_count" }
%class.anon = type { ptr, ptr, ptr }

@connection_storage = external dso_local global %"class.koishidb::concurrent_hashmap", align 8
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 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 %"class.std::unique_ptr", align 8
  %3 = alloca %"class.std::unique_ptr.4", align 8
  %4 = alloca %"class.koishidb::ThreadPool", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.sockaddr_in, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca [128 x %struct.epoll_event], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.sockaddr_in, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::shared_ptr", align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::shared_ptr", align 8
  %27 = alloca %"class.std::future", align 8
  %28 = alloca %class.anon, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #11
  call void @_ZSt11make_uniqueIN8koishidb6DBimplEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.4") align 8 %3)
  call void @_ZNSt10unique_ptrIN8koishidb2DBESt14default_deleteIS1_EEC2INS0_6DBimplES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  call void @_ZNSt10unique_ptrIN8koishidb6DBimplESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #11
  call void @llvm.lifetime.start.p0(i64 200, ptr %4) #11
  invoke void @_ZN8koishidb10ThreadPoolC2Em(ptr noundef nonnull align 8 dereferenceable(193) %4, i64 noundef 10)
          to label %29 unwind label %67

29:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #11
  call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 16, i1 false)
  %30 = invoke noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext 8096)
          to label %31 unwind label %71

31:                                               ; preds = %29
  %32 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
  store i16 %30, ptr %32, align 2, !tbaa !5
  %33 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
  store i16 2, ptr %33, align 4, !tbaa !12
  %34 = invoke noundef i32 @_ZL10__bswap_32j(i32 noundef 0)
          to label %35 unwind label %71

35:                                               ; preds = %31
  %36 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
  %37 = getelementptr inbounds %struct.in_addr, ptr %36, i32 0, i32 0
  store i32 %34, ptr %37, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #11
  %38 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #11
  store i32 %38, ptr %8, align 4, !tbaa !14
  %39 = load i32, ptr %8, align 4, !tbaa !14
  %40 = call i32 @bind(i32 noundef %39, ptr noundef %7, i32 noundef 16) #11
  %41 = load i32, ptr %8, align 4, !tbaa !14
  %42 = call i32 @listen(i32 noundef %41, i32 noundef 10) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #11
  store ptr getelementptr (i8, ptr @.str, i64 1), ptr %9, align 8, !tbaa !15
  store ptr getelementptr (i8, ptr @.str, i64 1), ptr %10, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  %43 = load ptr, ptr %10, align 8, !tbaa !15
  invoke void @_Z15OutputLogHeaderPKciS0_i(ptr noundef %43, i32 noundef 58, ptr noundef @__FUNCTION__.main, i32 noundef 300)
          to label %44 unwind label %75

44:                                               ; preds = %35
  %45 = load ptr, ptr @stdout, align 8, !tbaa !15
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.2) #11
  %47 = load ptr, ptr @stdout, align 8, !tbaa !15
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.3) #11
  %49 = load ptr, ptr @stdout, align 8, !tbaa !15
  %50 = invoke i32 @fflush(ptr noundef %49)
          to label %51 unwind label %75

51:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #11
  %52 = call i32 @epoll_create(i32 noundef 1024) #11
  store i32 %52, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1536, ptr %12) #11
  %53 = load i32, ptr %11, align 4, !tbaa !14
  %54 = load i32, ptr %8, align 4, !tbaa !14
  invoke void @_ZN8koishidb12epoll_helper12create_eventEiii(i32 noundef %53, i32 noundef %54, i32 noundef 1)
          to label %55 unwind label %79

55:                                               ; preds = %51
  br label %56

56:                                               ; preds = %203, %55
  br label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #11
  %58 = load i32, ptr %11, align 4, !tbaa !14
  %59 = getelementptr inbounds [128 x %struct.epoll_event], ptr %12, i64 0, i64 0
  %60 = invoke i32 @epoll_wait(i32 noundef %58, ptr noundef %59, i32 noundef 128, i32 noundef -1)
          to label %61 unwind label %83

61:                                               ; preds = %57
  store i32 %60, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #11
  store i32 0, ptr %14, align 4, !tbaa !14
  br label %62

62:                                               ; preds = %199, %61
  %63 = load i32, ptr %14, align 4, !tbaa !14
  %64 = load i32, ptr %13, align 4, !tbaa !14
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %87, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  br label %203

67:                                               ; preds = %0
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %5, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %6, align 4
  br label %208

71:                                               ; preds = %31, %29
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %5, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %6, align 4
  br label %207

75:                                               ; preds = %44, %35
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  br label %206

79:                                               ; preds = %51
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %5, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %6, align 4
  br label %205

83:                                               ; preds = %57
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %5, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %6, align 4
  br label %204

87:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #11
  %88 = load i32, ptr %14, align 4, !tbaa !14
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [128 x %struct.epoll_event], ptr %12, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.epoll_event, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !17
  store i32 %92, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #11
  %93 = load i32, ptr %14, align 4, !tbaa !14
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [128 x %struct.epoll_event], ptr %12, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.epoll_event, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 4, !tbaa !18
  store i32 %97, ptr %16, align 4, !tbaa !14
  %98 = load i32, ptr %15, align 4, !tbaa !14
  %99 = load i32, ptr %8, align 4, !tbaa !14
  %100 = icmp eq i32 %98, %99
  br i1 %100, label %101, label %157

101:                                              ; preds = %87
  %102 = load i32, ptr %16, align 4, !tbaa !14
  %103 = and i32 %102, 9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %157

105:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #11
  call void @llvm.memset.p0.i64(ptr align 4 %17, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #11
  store i32 16, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #11
  %106 = load i32, ptr %8, align 4, !tbaa !14
  %107 = invoke i32 @accept(i32 noundef %106, ptr noundef %17, ptr noundef %18)
          to label %108 unwind label %136

108:                                              ; preds = %105
  store i32 %107, ptr %19, align 4, !tbaa !14
  %109 = load i32, ptr %19, align 4, !tbaa !14
  %110 = icmp ne i32 %109, -1
  br i1 %110, label %111, label %155

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  store ptr getelementptr (i8, ptr @.str, i64 1), ptr %20, align 8, !tbaa !15
  store ptr getelementptr (i8, ptr @.str, i64 1), ptr %21, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  %112 = load ptr, ptr %21, align 8, !tbaa !15
  invoke void @_Z15OutputLogHeaderPKciS0_i(ptr noundef %112, i32 noundef 75, ptr noundef @__FUNCTION__.main, i32 noundef 300)
          to label %113 unwind label %136

113:                                              ; preds = %111
  %114 = load ptr, ptr @stdout, align 8, !tbaa !15
  %115 = load i32, ptr %19, align 4, !tbaa !14
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.4, i32 noundef %115) #11
  %117 = load ptr, ptr @stdout, align 8, !tbaa !15
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.3) #11
  %119 = load ptr, ptr @stdout, align 8, !tbaa !15
  %120 = invoke i32 @fflush(ptr noundef %119)
          to label %121 unwind label %136

121:                                              ; preds = %113
  %122 = load i32, ptr %18, align 4, !tbaa !14
  invoke void @_ZN8koishidb6Parser17print_client_infoEP8sockaddrj(ptr noundef %17, i32 noundef %122)
          to label %123 unwind label %136

123:                                              ; preds = %121
  %124 = load i32, ptr %19, align 4, !tbaa !14
  invoke void @_ZN8koishidb6Helper13set_non_blockEi(i32 noundef %124)
          to label %125 unwind label %136

125:                                              ; preds = %123
  %126 = load i32, ptr %11, align 4, !tbaa !14
  %127 = load i32, ptr %19, align 4, !tbaa !14
  invoke void @_ZN8koishidb12epoll_helper12create_eventEiii(i32 noundef %126, i32 noundef %127, i32 noundef -2147483647)
          to label %128 unwind label %136

128:                                              ; preds = %125
  %129 = load i32, ptr %19, align 4, !tbaa !14
  %130 = invoke noundef i32 @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE5countEi(ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %129)
          to label %131 unwind label %136

131:                                              ; preds = %128
  %132 = icmp ne i32 %130, 0
  br i1 %132, label %133, label %140

133:                                              ; preds = %131
  %134 = load i32, ptr %19, align 4, !tbaa !14
  invoke void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE5eraseEi(ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %134)
          to label %135 unwind label %136

135:                                              ; preds = %133
  br label %140

136:                                              ; preds = %144, %140, %133, %128, %125, %123, %121, %113, %111, %105
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %5, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %6, align 4
  br label %156

140:                                              ; preds = %135, %131
  %141 = load i32, ptr %19, align 4, !tbaa !14
  %142 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 72) #12
          to label %143 unwind label %136

143:                                              ; preds = %140
  invoke void @_ZN8koishidb10connectionC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %142)
          to label %144 unwind label %147

144:                                              ; preds = %143
  invoke void @_ZNSt10shared_ptrIN8koishidb10connectionEEC2IS1_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %142)
          to label %145 unwind label %136

145:                                              ; preds = %144
  invoke void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE3setEiS3_(ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %141, ptr noundef %22)
          to label %146 unwind label %151

146:                                              ; preds = %145
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #11
  br label %155

147:                                              ; preds = %143
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %142, i64 noundef 72) #13
  br label %156

151:                                              ; preds = %145
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %5, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #11
  br label %156

155:                                              ; preds = %146, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #11
  br label %198

156:                                              ; preds = %151, %147, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #11
  br label %202

157:                                              ; preds = %101, %87
  %158 = load i32, ptr %16, align 4, !tbaa !14
  %159 = and i32 %158, 1
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %197

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #11
  %162 = load i32, ptr %14, align 4, !tbaa !14
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [128 x %struct.epoll_event], ptr %12, i64 0, i64 %163
  %165 = getelementptr inbounds %struct.epoll_event, ptr %164, i32 0, i32 1
  %166 = load i32, ptr %165, align 4, !tbaa !17
  store i32 %166, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  store ptr getelementptr (i8, ptr @.str, i64 1), ptr %24, align 8, !tbaa !15
  store ptr getelementptr (i8, ptr @.str, i64 1), ptr %25, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  %167 = load ptr, ptr %25, align 8, !tbaa !15
  invoke void @_Z15OutputLogHeaderPKciS0_i(ptr noundef %167, i32 noundef 90, ptr noundef @__FUNCTION__.main, i32 noundef 300)
          to label %168 unwind label %183

168:                                              ; preds = %161
  %169 = load ptr, ptr @stdout, align 8, !tbaa !15
  %170 = load i32, ptr %23, align 4, !tbaa !14
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.5, i32 noundef %170) #11
  %172 = load ptr, ptr @stdout, align 8, !tbaa !15
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.3) #11
  %174 = load ptr, ptr @stdout, align 8, !tbaa !15
  %175 = invoke i32 @fflush(ptr noundef %174)
          to label %176 unwind label %183

176:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #11
  %177 = load i32, ptr %23, align 4, !tbaa !14
  invoke void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE3getEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %26, ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %177)
          to label %178 unwind label %187

178:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #11
  %179 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 0
  store ptr %23, ptr %179, align 8, !tbaa !15
  %180 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 1
  store ptr %26, ptr %180, align 8, !tbaa !15
  %181 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 2
  store ptr %2, ptr %181, align 8, !tbaa !15
  invoke void @"_ZN8koishidb10ThreadPool7enqueueIZ4mainE3$_0JEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEEOS5_DpOS6_"(ptr dead_on_unwind writable sret(%"class.std::future") align 8 %27, ptr noundef nonnull align 8 dereferenceable(193) %4, ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %182 unwind label %191

182:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #11
  call void @_ZNSt14__basic_futureIbED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #11
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %197

183:                                              ; preds = %168, %161
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %5, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %6, align 4
  br label %196

187:                                              ; preds = %176
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %5, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %6, align 4
  br label %195

191:                                              ; preds = %178
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %5, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #11
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #11
  br label %195

195:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  br label %196

196:                                              ; preds = %195, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %202

197:                                              ; preds = %182, %157
  br label %198

198:                                              ; preds = %197, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %14, align 4, !tbaa !14
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %14, align 4, !tbaa !14
  br label %62, !llvm.loop !20

202:                                              ; preds = %196, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  br label %204

203:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #11
  br label %56, !llvm.loop !22

204:                                              ; preds = %202, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #11
  br label %205

205:                                              ; preds = %204, %79
  call void @llvm.lifetime.end.p0(i64 1536, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #11
  br label %206

206:                                              ; preds = %205, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #11
  br label %207

207:                                              ; preds = %206, %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #11
  call void @_ZN8koishidb10ThreadPoolD2Ev(ptr noundef nonnull align 8 dereferenceable(193) %4) #11
  br label %208

208:                                              ; preds = %207, %67
  call void @llvm.lifetime.end.p0(i64 200, ptr %4) #11
  call void @_ZNSt10unique_ptrIN8koishidb2DBESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #11
  br label %209

209:                                              ; preds = %208
  %210 = load ptr, ptr %5, align 8
  %211 = load i32, ptr %6, align 4
  %212 = insertvalue { ptr, i32 } poison, ptr %210, 0
  %213 = insertvalue { ptr, i32 } %212, i32 %211, 1
  resume { ptr, i32 } %213
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN8koishidb6DBimplEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.4") align 8) #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8koishidb10ThreadPoolC2Em(ptr noundef nonnull align 8 dereferenceable(193), i64 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @listen(i32 noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z15OutputLogHeaderPKciS0_i(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #6

declare i32 @fflush(ptr noundef) #7

; Function Attrs: nounwind
declare i32 @epoll_create(i32 noundef) #6

declare void @_ZN8koishidb12epoll_helper12create_eventEiii(i32 noundef, i32 noundef, i32 noundef) #7

declare i32 @epoll_wait(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #7

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

declare void @_ZN8koishidb6Parser17print_client_infoEP8sockaddrj(ptr noundef, i32 noundef) #7

declare void @_ZN8koishidb6Helper13set_non_blockEi(i32 noundef) #7

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #9

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #10

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE3getEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(112), i32 noundef) #8 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN8koishidb10ThreadPool7enqueueIZ4mainE3$_0JEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEEOS5_DpOS6_"(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(193), ptr noundef nonnull align 8 dereferenceable(24)) #8 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN8koishidb2DBESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nobuiltin allocsize(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 #10 = { nobuiltin 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 #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin 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, !7, i64 2}
!6 = !{!"_ZTS11sockaddr_in", !7, i64 0, !7, i64 2, !10, i64 4, !8, i64 8}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7in_addr", !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !11, i64 4}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"_ZTS11epoll_event", !11, i64 0, !8, i64 4}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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.koishidb::concurrent_hashmap" = type { %"class.std::unordered_map", %"class.std::shared_mutex" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::shared_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.3" }
%"struct.std::_Head_base.3" = type { ptr }
%"class.std::unique_ptr.4" = type { %"struct.std::__uniq_ptr_data.5" }
%"struct.std::__uniq_ptr_data.5" = type { %"class.std::__uniq_ptr_impl.6" }
%"class.std::__uniq_ptr_impl.6" = type { %"class.std::tuple.7" }
%"class.std::tuple.7" = type { %"struct.std::_Tuple_impl.8" }
%"struct.std::_Tuple_impl.8" = type { %"struct.std::_Head_base.11" }
%"struct.std::_Head_base.11" = type { ptr }
%"class.koishidb::ThreadPool" = type <{ %"class.std::vector", %"class.std::queue", %"class.std::mutex", %"class.std::condition_variable", i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::function<void ()>, std::allocator<std::function<void ()>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, 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::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.epoll_event = type <{ i32, %union.epoll_data }>
%union.epoll_data = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr.29" }
%"class.std::shared_ptr.29" = type { %"class.std::__shared_ptr.30" }
%"class.std::__shared_ptr.30" = type { ptr, %"class.std::__shared_count" }
%class.anon = type { ptr, ptr, ptr }

@connection_storage = external dso_local global %"class.koishidb::concurrent_hashmap", align 8
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress norecurse noreturn uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::unique_ptr", align 8
  %2 = alloca %"class.std::unique_ptr.4", align 8
  %3 = alloca %"class.koishidb::ThreadPool", align 8
  %4 = alloca %struct.sockaddr_in, align 4
  %5 = alloca [128 x %struct.epoll_event], align 16
  %6 = alloca %struct.sockaddr_in, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::shared_ptr", align 8
  %11 = alloca %"class.std::future", align 8
  %12 = alloca %class.anon, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #11
  call void @_ZSt11make_uniqueIN8koishidb6DBimplEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.4") align 8 %2)
  call void @_ZNSt10unique_ptrIN8koishidb2DBESt14default_deleteIS1_EEC2INS0_6DBimplES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #11
  call void @_ZNSt10unique_ptrIN8koishidb6DBimplESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #11
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %3) #11
  invoke void @_ZN8koishidb10ThreadPoolC2Em(ptr noundef nonnull align 8 dereferenceable(193) %3, i64 noundef 10)
          to label %13 unwind label %34

13:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #11
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 0, ptr %14, align 4
  %15 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext 8096)
  %16 = getelementptr inbounds i8, ptr %4, i64 2
  store i16 %15, ptr %16, align 2, !tbaa !5
  store i16 2, ptr %4, align 4, !tbaa !12
  %17 = call noundef i32 @_ZL10__bswap_32j(i32 noundef 0)
  %18 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %17, ptr %18, align 4, !tbaa !13
  %19 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #11
  %20 = call i32 @bind(i32 noundef %19, ptr noundef nonnull %4, i32 noundef 16) #11
  %21 = call i32 @listen(i32 noundef %19, i32 noundef 10) #11
  call void @_Z15OutputLogHeaderPKciS0_i(ptr noundef nonnull getelementptr inbounds (i8, ptr @.str, i64 1), i32 noundef 58, ptr noundef nonnull @__FUNCTION__.main, i32 noundef 300)
  %22 = load ptr, ptr @stdout, align 8, !tbaa !14
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.2) #11
  %24 = load ptr, ptr @stdout, align 8, !tbaa !14
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.3) #11
  %26 = load ptr, ptr @stdout, align 8, !tbaa !14
  %27 = call i32 @fflush(ptr noundef %26)
  %28 = call i32 @epoll_create(i32 noundef 1024) #11
  call void @llvm.lifetime.start.p0(i64 1536, ptr nonnull %5) #11
  invoke void @_ZN8koishidb12epoll_helper12create_eventEiii(i32 noundef %28, i32 noundef %19, i32 noundef 1)
          to label %.preheader47 unwind label %36

.preheader47:                                     ; preds = %13
  %29 = getelementptr inbounds i8, ptr %12, i64 8
  %30 = getelementptr inbounds i8, ptr %12, i64 16
  br label %31

.loopexit:                                        ; preds = %92, %.preheader
  br label %31, !llvm.loop !16

31:                                               ; preds = %.preheader47, %.loopexit
  %32 = invoke i32 @epoll_wait(i32 noundef %28, ptr noundef nonnull %5, i32 noundef 128, i32 noundef -1)
          to label %.preheader unwind label %38

.preheader:                                       ; preds = %31
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %32 to i64
  br label %.lr.ph

34:                                               ; preds = %0
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %94

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

38:                                               ; preds = %31
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %93

.lr.ph:                                           ; preds = %.lr.ph.preheader, %92
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %92 ]
  %40 = getelementptr inbounds [128 x %struct.epoll_event], ptr %5, i64 0, i64 %indvars.iv
  %41 = getelementptr inbounds i8, ptr %40, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !18
  %43 = load i32, ptr %40, align 4, !tbaa !19
  %44 = icmp ne i32 %42, %19
  %45 = and i32 %43, 9
  %.not = icmp eq i32 %45, 0
  %or.cond = select i1 %44, i1 true, i1 %.not
  br i1 %or.cond, label %74, label %46

46:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #11
  store i32 16, ptr %7, align 4, !tbaa !21
  %47 = invoke i32 @accept(i32 noundef %19, ptr noundef nonnull %6, ptr noundef nonnull %7)
          to label %48 unwind label %63

48:                                               ; preds = %46
  %.not39 = icmp eq i32 %47, -1
  br i1 %.not39, label %72, label %49

49:                                               ; preds = %48
  call void @_Z15OutputLogHeaderPKciS0_i(ptr noundef nonnull getelementptr inbounds (i8, ptr @.str, i64 1), i32 noundef 75, ptr noundef nonnull @__FUNCTION__.main, i32 noundef 300)
  %50 = load ptr, ptr @stdout, align 8, !tbaa !14
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.4, i32 noundef %47) #11
  %52 = load ptr, ptr @stdout, align 8, !tbaa !14
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.3) #11
  %54 = load ptr, ptr @stdout, align 8, !tbaa !14
  %55 = call i32 @fflush(ptr noundef %54)
  %56 = load i32, ptr %7, align 4, !tbaa !21
  invoke void @_ZN8koishidb6Parser17print_client_infoEP8sockaddrj(ptr noundef nonnull %6, i32 noundef %56)
          to label %57 unwind label %63

57:                                               ; preds = %49
  invoke void @_ZN8koishidb6Helper13set_non_blockEi(i32 noundef %47)
          to label %58 unwind label %63

58:                                               ; preds = %57
  invoke void @_ZN8koishidb12epoll_helper12create_eventEiii(i32 noundef %28, i32 noundef %47, i32 noundef -2147483647)
          to label %59 unwind label %63

59:                                               ; preds = %58
  %60 = invoke noundef i32 @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE5countEi(ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %47)
          to label %61 unwind label %63

61:                                               ; preds = %59
  %.not40 = icmp eq i32 %60, 0
  br i1 %.not40, label %65, label %62

62:                                               ; preds = %61
  invoke void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE5eraseEi(ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %47)
          to label %65 unwind label %63

63:                                               ; preds = %67, %65, %62, %59, %58, %57, %49, %46
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %73

65:                                               ; preds = %62, %61
  %66 = invoke noalias noundef nonnull dereferenceable(72) ptr @_Znwm(i64 noundef 72) #12
          to label %67 unwind label %63

67:                                               ; preds = %65
  call void @_ZN8koishidb10connectionC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %66)
  invoke void @_ZNSt10shared_ptrIN8koishidb10connectionEEC2IS1_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull %66)
          to label %68 unwind label %63

68:                                               ; preds = %67
  invoke void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE3setEiS3_(ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %47, ptr noundef nonnull %8)
          to label %69 unwind label %70

69:                                               ; preds = %68
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #11
  br label %72

70:                                               ; preds = %68
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #11
  br label %73

72:                                               ; preds = %69, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br label %92

73:                                               ; preds = %70, %63
  %.pn41 = phi { ptr, i32 } [ %71, %70 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br label %93

74:                                               ; preds = %.lr.ph
  %75 = and i32 %43, 1
  %.not37 = icmp eq i32 %75, 0
  br i1 %.not37, label %92, label %76

76:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 %42, ptr %9, align 4, !tbaa !21
  call void @_Z15OutputLogHeaderPKciS0_i(ptr noundef nonnull getelementptr inbounds (i8, ptr @.str, i64 1), i32 noundef 90, ptr noundef nonnull @__FUNCTION__.main, i32 noundef 300)
  %77 = load ptr, ptr @stdout, align 8, !tbaa !14
  %78 = load i32, ptr %9, align 4, !tbaa !21
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.5, i32 noundef %78) #11
  %80 = load ptr, ptr @stdout, align 8, !tbaa !14
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.3) #11
  %82 = load ptr, ptr @stdout, align 8, !tbaa !14
  %83 = call i32 @fflush(ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #11
  %84 = load i32, ptr %9, align 4, !tbaa !21
  invoke void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE3getEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %10, ptr noundef nonnull align 8 dereferenceable(112) @connection_storage, i32 noundef %84)
          to label %85 unwind label %87

85:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #11
  store ptr %9, ptr %12, align 8, !tbaa !14
  store ptr %10, ptr %29, align 8, !tbaa !14
  store ptr %1, ptr %30, align 8, !tbaa !14
  invoke void @"_ZN8koishidb10ThreadPool7enqueueIZ4mainE3$_0JEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEEOS5_DpOS6_"(ptr dead_on_unwind nonnull writable sret(%"class.std::future") align 8 %11, ptr noundef nonnull align 8 dereferenceable(193) %3, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %86 unwind label %89

86:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #11
  call void @_ZNSt14__basic_futureIbED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #11
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  br label %92

87:                                               ; preds = %76
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %91

89:                                               ; preds = %85
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #11
  call void @_ZNSt12__shared_ptrIN8koishidb10connectionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #11
  br label %91

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

92:                                               ; preds = %74, %86, %72
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !22

93:                                               ; preds = %38, %91, %73, %36
  %.pn41.pn.pn.pn = phi { ptr, i32 } [ %37, %36 ], [ %39, %38 ], [ %.pn41, %73 ], [ %.pn, %91 ]
  call void @llvm.lifetime.end.p0(i64 1536, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #11
  call void @_ZN8koishidb10ThreadPoolD2Ev(ptr noundef nonnull align 8 dereferenceable(193) %3) #11
  br label %94

94:                                               ; preds = %93, %34
  %.pn41.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn41.pn.pn.pn, %93 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %3) #11
  call void @_ZNSt10unique_ptrIN8koishidb2DBESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #11
  resume { ptr, i32 } %.pn41.pn.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN8koishidb6DBimplEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.4") align 8) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8koishidb10ThreadPoolC2Em(ptr noundef nonnull align 8 dereferenceable(193), i64 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @listen(i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z15OutputLogHeaderPKciS0_i(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @epoll_create(i32 noundef) local_unnamed_addr #6

declare void @_ZN8koishidb12epoll_helper12create_eventEiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #8

declare i32 @epoll_wait(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #8

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

declare void @_ZN8koishidb6Parser17print_client_infoEP8sockaddrj(ptr noundef, i32 noundef) local_unnamed_addr #8

declare void @_ZN8koishidb6Helper13set_non_blockEi(i32 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE5countEi(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef) local_unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE5eraseEi(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef) local_unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE3setEiS3_(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef) local_unnamed_addr #9 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #10

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8koishidb18concurrent_hashmapIiSt10shared_ptrINS_10connectionEEE3getEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(112), i32 noundef) local_unnamed_addr #9 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN8koishidb10ThreadPool7enqueueIZ4mainE3$_0JEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEEOS5_DpOS6_"(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(193), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #9 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 2}
!6 = !{!"_ZTS11sockaddr_in", !7, i64 0, !7, i64 2, !10, i64 4, !8, i64 8}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7in_addr", !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !11, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"_ZTS11epoll_event", !11, i64 0, !8, i64 4}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !17}


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