; LLVM IR from turi-code/SFrame :: oss_src/rpc/dc_tcp_comm.ll (ZN8graphlab7dc_impl11dc_tcp_comm7connectEm)

; 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"

%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"struct.graphlab::dc_impl::dc_tcp_comm::initial_message" = type { i16, [32 x i8] }
%"class.graphlab::dc_impl::dc_tcp_comm" = type <{ %"class.graphlab::dc_impl::dc_comm_base", i16, i16, i8, [3 x i8], %"class.std::__cxx11::basic_string", %"class.std::vector.8", %"class.std::map", %"class.std::vector.16", %"class.std::vector", %"class.std::vector.0", %"class.graphlab::atomic", %"class.graphlab::mutex", %"class.graphlab::conditional", %"class.std::vector.21", %"class.graphlab::atomic", %"class.graphlab::atomic", %"class.graphlab::thread_group", ptr, %"class.graphlab::thread_group", ptr, ptr, ptr, %"struct.graphlab::dc_impl::dc_tcp_comm::timeout_event", %"struct.graphlab::dc_impl::dc_tcp_comm::timeout_event", %"class.graphlab::fixed_dense_bitset", i32, [4 x i8], %"class.graphlab::thread", i8, [7 x i8] }>
%"class.graphlab::dc_impl::dc_comm_base" = 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::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned short>, std::_Select1st<std::pair<const unsigned int, unsigned short>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned short>, std::_Select1st<std::pair<const unsigned int, unsigned short>>, std::less<unsigned int>>::_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::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<graphlab::dc_impl::dc_receive *, std::allocator<graphlab::dc_impl::dc_receive *>>::_Vector_impl" }
%"struct.std::_Vector_base<graphlab::dc_impl::dc_receive *, std::allocator<graphlab::dc_impl::dc_receive *>>::_Vector_impl" = type { %"struct.std::_Vector_base<graphlab::dc_impl::dc_receive *, std::allocator<graphlab::dc_impl::dc_receive *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graphlab::dc_impl::dc_receive *, std::allocator<graphlab::dc_impl::dc_receive *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<graphlab::dc_impl::dc_send *, std::allocator<graphlab::dc_impl::dc_send *>>::_Vector_impl" }
%"struct.std::_Vector_base<graphlab::dc_impl::dc_send *, std::allocator<graphlab::dc_impl::dc_send *>>::_Vector_impl" = type { %"struct.std::_Vector_base<graphlab::dc_impl::dc_send *, std::allocator<graphlab::dc_impl::dc_send *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graphlab::dc_impl::dc_send *, std::allocator<graphlab::dc_impl::dc_send *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.graphlab::mutex" = 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.graphlab::conditional" = 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 }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<graphlab::dc_impl::dc_tcp_comm::socket_info, std::allocator<graphlab::dc_impl::dc_tcp_comm::socket_info>>::_Vector_impl" }
%"struct.std::_Vector_base<graphlab::dc_impl::dc_tcp_comm::socket_info, std::allocator<graphlab::dc_impl::dc_tcp_comm::socket_info>>::_Vector_impl" = type { %"struct.std::_Vector_base<graphlab::dc_impl::dc_tcp_comm::socket_info, std::allocator<graphlab::dc_impl::dc_tcp_comm::socket_info>>::_Vector_impl_data" }
%"struct.std::_Vector_base<graphlab::dc_impl::dc_tcp_comm::socket_info, std::allocator<graphlab::dc_impl::dc_tcp_comm::socket_info>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.graphlab::atomic" = type { %"class.graphlab::graphlab_impl::atomic_impl" }
%"class.graphlab::graphlab_impl::atomic_impl" = type { i64 }
%"class.graphlab::thread_group" = type { i64, i64, %"class.graphlab::mutex", %"class.graphlab::conditional", %"class.std::queue" }
%"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::pair<unsigned long, const char *>, std::allocator<std::pair<unsigned long, const char *>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<unsigned long, const char *>, std::allocator<std::pair<unsigned long, const char *>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<unsigned long, const char *>, std::allocator<std::pair<unsigned long, const char *>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<unsigned long, const char *>, std::allocator<std::pair<unsigned long, const char *>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.graphlab::dc_impl::dc_tcp_comm::timeout_event" = type { i8, ptr }
%"class.graphlab::fixed_dense_bitset" = type { [4 x i64] }
%"class.graphlab::thread" = type <{ i64, i64, i64, i8, [7 x i8] }>
%"struct.graphlab::dc_impl::dc_tcp_comm::socket_info" = type { i64, ptr, i32, i32, ptr, ptr, i8, %"class.graphlab::mutex", %"struct.graphlab::dc_impl::circular_iovec_buffer", %struct.msghdr }
%"struct.graphlab::dc_impl::circular_iovec_buffer" = type { %"class.std::vector.34", %"class.std::vector.34", i64, i64, i64 }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<iovec, std::allocator<iovec>>::_Vector_impl" }
%"struct.std::_Vector_base<iovec, std::allocator<iovec>>::_Vector_impl" = type { %"struct.std::_Vector_base<iovec, std::allocator<iovec>>::_Vector_impl_data" }
%"struct.std::_Vector_base<iovec, std::allocator<iovec>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.msghdr = type { ptr, i32, ptr, i64, ptr, i64, i32 }

@.str.6 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab7dc_impl11dc_tcp_comm7connectEm(ptr noundef nonnull align 8 dereferenceable(833) %0, i64 noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.sockaddr_in, align 4
  %7 = alloca %struct.in_addr, align 4
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.graphlab::dc_impl::dc_tcp_comm::initial_message", align 2
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %12 = load ptr, ptr %3, align 8
  %13 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 14
  %14 = load i64, ptr %4, align 8, !tbaa !9
  %15 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %14) #11
  %16 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %15, i32 0, i32 2
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = icmp ne i32 %17, -1
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  br label %140

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #11
  %21 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #11
  store i32 %21, ptr %5, align 4, !tbaa !22
  %22 = load i32, ptr %5, align 4, !tbaa !22
  call void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_tcp_no_delayEi(ptr noundef nonnull align 8 dereferenceable(833) %12, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #11
  %23 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
  store i16 2, ptr %23, align 4, !tbaa !23
  %24 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 8
  %25 = load i64, ptr %4, align 8, !tbaa !9
  %26 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %25) #11
  %27 = load i16, ptr %26, align 2, !tbaa !27
  %28 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %27)
  %29 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
  store i16 %28, ptr %29, align 2, !tbaa !28
  %30 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 6
  %31 = load i64, ptr %4, align 8, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %31) #11
  %33 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %32, i64 4, i1 false), !tbaa.struct !29
  %34 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 4 %34, i8 0, i64 8, i1 false)
  %35 = call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %36 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %35)
  %37 = icmp sge i32 2, %36
  br i1 %37, label %38, label %54

38:                                               ; preds = %20
  %39 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef @.str.6, ptr noundef @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 463, i1 noundef zeroext true)
  %40 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %39, ptr noundef @.str.30)
  %41 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 1
  %42 = load i16, ptr %41, align 8, !tbaa !30
  %43 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %40, i16 noundef zeroext %42)
  %44 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %43, ptr noundef @.str.31)
  %45 = load i64, ptr %4, align 8, !tbaa !9
  %46 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %44, i64 noundef %45)
  %47 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %46, ptr noundef @.str.32)
  %48 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 8
  %49 = load i64, ptr %4, align 8, !tbaa !9
  %50 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #11
  %51 = load i16, ptr %50, align 2, !tbaa !27
  %52 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %47, i16 noundef zeroext %51)
  %53 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %52, ptr noundef @.str.27)
  br label %54

54:                                               ; preds = %38, %20
  %55 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %55, i64 4, i1 false), !tbaa.struct !29
  %56 = getelementptr inbounds %struct.in_addr, ptr %7, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  %58 = call ptr @inet_ntoa(i32 %57) #11
  call void (i32, ptr, ptr, i32, ptr, ...) @_ZN12log_dispatchILb1EE4execEiPKcS2_iS2_z(i32 noundef 2, ptr noundef @.str.6, ptr noundef @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 466, ptr noundef @.str.33, ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #11
  store i8 0, ptr %8, align 1, !tbaa !76
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #11
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %103, %54
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = icmp ult i64 %60, 10
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  store i32 2, ptr %10, align 4
  br label %106

63:                                               ; preds = %59
  %64 = load i32, ptr %5, align 4, !tbaa !22
  %65 = call i32 @connect(i32 noundef %64, ptr noundef %6, i32 noundef 16)
  %66 = icmp slt i32 %65, 0
  br i1 %66, label %67, label %91

67:                                               ; preds = %63
  %68 = call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %69 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %68)
  %70 = icmp sge i32 2, %69
  br i1 %70, label %71, label %86

71:                                               ; preds = %67
  %72 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef @.str.6, ptr noundef @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 471, i1 noundef zeroext true)
  %73 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %72, ptr noundef @.str.34)
  %74 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 1
  %75 = load i16, ptr %74, align 8, !tbaa !30
  %76 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %73, i16 noundef zeroext %75)
  %77 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %76, ptr noundef @.str.35)
  %78 = load i64, ptr %4, align 8, !tbaa !9
  %79 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %77, i64 noundef %78)
  %80 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %79, ptr noundef @.str.36)
  %81 = call ptr @__errno_location() #12
  %82 = load i32, ptr %81, align 4, !tbaa !22
  %83 = call ptr @strerror(i32 noundef %82) #11
  %84 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsIPcEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %80, ptr noundef %83)
  %85 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %84, ptr noundef @.str.37)
  br label %86

86:                                               ; preds = %71, %67
  call void @_ZN8graphlab5timer5sleepEm(i64 noundef 1)
  %87 = load i32, ptr %5, align 4, !tbaa !22
  %88 = call i32 @close(i32 noundef %87)
  %89 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #11
  store i32 %89, ptr %5, align 4, !tbaa !22
  %90 = load i32, ptr %5, align 4, !tbaa !22
  call void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_tcp_no_delayEi(ptr noundef nonnull align 8 dereferenceable(833) %12, i32 noundef %90)
  br label %102

91:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 34, ptr %11) #11
  %92 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 1
  %93 = load i16, ptr %92, align 8, !tbaa !30
  %94 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::initial_message", ptr %11, i32 0, i32 0
  store i16 %93, ptr %94, align 2, !tbaa !77
  %95 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::initial_message", ptr %11, i32 0, i32 1
  %96 = getelementptr inbounds [32 x i8], ptr %95, i64 0, i64 0
  %97 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 5
  %98 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %97) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %96, ptr align 1 %98, i64 32, i1 false)
  %99 = load i32, ptr %5, align 4, !tbaa !22
  %100 = call noundef i32 @_ZN8graphlab7dc_impl11dc_tcp_comm10sendtosockEiPKcm(ptr noundef nonnull align 8 dereferenceable(833) %12, i32 noundef %99, ptr noundef %11, i64 noundef 34)
  %101 = load i32, ptr %5, align 4, !tbaa !22
  call void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_non_blockingEi(ptr noundef nonnull align 8 dereferenceable(833) %12, i32 noundef %101)
  store i8 1, ptr %8, align 1, !tbaa !76
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 34, ptr %11) #11
  br label %106

102:                                              ; preds = %86
  br label %103

103:                                              ; preds = %102
  %104 = load i64, ptr %9, align 8, !tbaa !9
  %105 = add i64 %104, 1
  store i64 %105, ptr %9, align 8, !tbaa !9
  br label %59, !llvm.loop !79

106:                                              ; preds = %91, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  br label %107

107:                                              ; preds = %106
  %108 = load i8, ptr %8, align 1, !tbaa !76, !range !81, !noundef !82
  %109 = trunc i8 %108 to i1
  br i1 %109, label %119, label %110

110:                                              ; preds = %107
  %111 = call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %112 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %111)
  %113 = icmp sge i32 5, %112
  br i1 %113, label %114, label %118

114:                                              ; preds = %110
  %115 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 5, ptr noundef @.str.6, ptr noundef @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 494, i1 noundef zeroext true)
  %116 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %115, ptr noundef @.str.38)
  %117 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %116, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %118

118:                                              ; preds = %114, %110
  call void @abort() #13
  unreachable

119:                                              ; preds = %107
  %120 = load i32, ptr %5, align 4, !tbaa !22
  %121 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 14
  %122 = load i64, ptr %4, align 8, !tbaa !9
  %123 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %122) #11
  %124 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %123, i32 0, i32 2
  store i32 %120, ptr %124, align 8, !tbaa !11
  %125 = call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %126 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %125)
  %127 = icmp sge i32 2, %126
  br i1 %127, label %128, label %139

128:                                              ; preds = %119
  %129 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef @.str.6, ptr noundef @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 499, i1 noundef zeroext true)
  %130 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %129, ptr noundef @.str.39)
  %131 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %12, i32 0, i32 1
  %132 = load i16, ptr %131, align 8, !tbaa !30
  %133 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %130, i16 noundef zeroext %132)
  %134 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %133, ptr noundef @.str.35)
  %135 = load i64, ptr %4, align 8, !tbaa !9
  %136 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %134, i64 noundef %135)
  %137 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %136, ptr noundef @.str.40)
  %138 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %137, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %139

139:                                              ; preds = %128, %119
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #11
  br label %140

140:                                              ; preds = %139, %19
  ret void
}

declare noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv() #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896), ptr noundef) #5 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)) #5

declare i32 @close(i32 noundef) #4

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

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

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #7

; Function Attrs: noreturn nounwind
declare void @abort() #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8graphlab7dc_impl11dc_tcp_comm10sendtosockEiPKcm(ptr noundef nonnull align 8 dereferenceable(833), i32 noundef, ptr noundef, i64 noundef) #3 align 2

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

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

; Function Attrs: nounwind
declare ptr @inet_ntoa(i32) #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i16 noundef zeroext) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12log_dispatchILb1EE4execEiPKcS2_iS2_z(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #5 align 2

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

declare void @_ZN8graphlab5timer5sleepEm(i64 noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm11socket_infoE", !10, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !14, i64 40, !15, i64 48, !16, i64 88, !21, i64 160}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!16 = !{!"_ZTSN8graphlab7dc_impl21circular_iovec_bufferE", !17, i64 0, !17, i64 24, !10, i64 48, !10, i64 56, !10, i64 64}
!17 = !{!"_ZTSSt6vectorI5iovecSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI5iovecSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTS6msghdr", !6, i64 0, !13, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !13, i64 48}
!22 = !{!13, !13, i64 0}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS11sockaddr_in", !25, i64 0, !25, i64 2, !26, i64 4, !7, i64 8}
!25 = !{!"short", !7, i64 0}
!26 = !{!"_ZTS7in_addr", !13, i64 0}
!27 = !{!25, !25, i64 0}
!28 = !{!24, !25, i64 2}
!29 = !{i64 0, i64 4, !22}
!30 = !{!31, !25, i64 8}
!31 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_commE", !32, i64 0, !25, i64 8, !25, i64 10, !14, i64 12, !33, i64 16, !35, i64 48, !39, i64 72, !47, i64 120, !51, i64 144, !55, i64 168, !59, i64 192, !15, i64 200, !61, i64 240, !62, i64 288, !59, i64 312, !59, i64 320, !66, i64 328, !6, i64 512, !66, i64 520, !6, i64 704, !6, i64 712, !6, i64 720, !73, i64 728, !73, i64 744, !74, i64 760, !13, i64 792, !75, i64 800, !14, i64 832}
!32 = !{!"_ZTSN8graphlab7dc_impl12dc_comm_baseE"}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !10, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{!"_ZTSSt6vectorIjSaIjEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt3mapIjtSt4lessIjESaISt4pairIKjtEEE", !40, i64 0}
!40 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !42, i64 0, !44, i64 8}
!42 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !43, i64 0}
!43 = !{!"_ZTSSt4lessIjE"}
!44 = !{!"_ZTSSt15_Rb_tree_header", !45, i64 0, !10, i64 32}
!45 = !{!"_ZTSSt18_Rb_tree_node_base", !46, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!46 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!47 = !{!"_ZTSSt6vectorItSaItEE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseItSaItEE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseItSaItEE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseItSaItEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !56, i64 0}
!56 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE12_Vector_implE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!59 = !{!"_ZTSN8graphlab6atomicImEE", !60, i64 0}
!60 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !10, i64 0}
!61 = !{!"_ZTSN8graphlab11conditionalE", !7, i64 0}
!62 = !{!"_ZTSSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !63, i64 0}
!63 = !{!"_ZTSSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE12_Vector_implE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!66 = !{!"_ZTSN8graphlab12thread_groupE", !10, i64 0, !10, i64 8, !15, i64 16, !61, i64 56, !67, i64 104}
!67 = !{!"_ZTSSt5queueISt4pairImPKcESt5dequeIS3_SaIS3_EEE", !68, i64 0}
!68 = !{!"_ZTSSt5dequeISt4pairImPKcESaIS3_EE", !69, i64 0}
!69 = !{!"_ZTSSt11_Deque_baseISt4pairImPKcESaIS3_EE", !70, i64 0}
!70 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE11_Deque_implE", !71, i64 0}
!71 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !10, i64 8, !72, i64 16, !72, i64 48}
!72 = !{!"_ZTSSt15_Deque_iteratorISt4pairImPKcERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!73 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm13timeout_eventE", !14, i64 0, !6, i64 8}
!74 = !{!"_ZTSN8graphlab18fixed_dense_bitsetILi256EEE", !7, i64 0}
!75 = !{!"_ZTSN8graphlab6threadE", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24}
!76 = !{!14, !14, i64 0}
!77 = !{!78, !25, i64 0}
!78 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm15initial_messageE", !25, i64 0, !7, i64 2}
!79 = distinct !{!79, !80}
!80 = !{!"llvm.loop.mustprogress"}
!81 = !{i8 0, i8 2}
!82 = !{}


; 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"

%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"struct.graphlab::dc_impl::dc_tcp_comm::initial_message" = type { i16, [32 x i8] }

@.str.6 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab7dc_impl11dc_tcp_comm7connectEm(ptr noundef nonnull align 8 dereferenceable(833) %0, i64 noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %struct.sockaddr_in, align 4
  %4 = alloca %"struct.graphlab::dc_impl::dc_tcp_comm::initial_message", align 2
  %5 = getelementptr inbounds i8, ptr %0, i64 288
  %6 = tail call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %1) #10
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i32 %8, -1
  br i1 %.not, label %9, label %93

9:                                                ; preds = %2
  %10 = tail call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #10
  tail call void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_tcp_no_delayEi(ptr noundef nonnull align 8 dereferenceable(833) %0, i32 noundef %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  store i16 2, ptr %3, align 4, !tbaa !20
  %11 = getelementptr inbounds i8, ptr %0, i64 120
  %12 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %1) #10
  %13 = load i16, ptr %12, align 2, !tbaa !24
  %14 = tail call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %13)
  %15 = getelementptr inbounds i8, ptr %3, i64 2
  store i16 %14, ptr %15, align 2, !tbaa !25
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %1) #10
  %18 = getelementptr inbounds i8, ptr %3, i64 4
  %19 = load i32, ptr %17, align 4, !tbaa !26
  store i32 %19, ptr %18, align 4, !tbaa !26
  %20 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 0, ptr %20, align 4
  %21 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %22 = tail call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %21)
  %23 = icmp slt i32 %22, 3
  br i1 %23, label %24, label %37

24:                                               ; preds = %9
  %25 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef nonnull @.str.6, ptr noundef nonnull @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 463, i1 noundef zeroext true)
  %26 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %25, ptr noundef nonnull @.str.30)
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load i16, ptr %27, align 8, !tbaa !27
  %29 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %26, i16 noundef zeroext %28)
  %30 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %29, ptr noundef nonnull @.str.31)
  %31 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %30, i64 noundef %1)
  %32 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %31, ptr noundef nonnull @.str.32)
  %33 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %1) #10
  %34 = load i16, ptr %33, align 2, !tbaa !24
  %35 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %32, i16 noundef zeroext %34)
  %36 = tail call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %35, ptr noundef nonnull @.str.27)
  br label %37

37:                                               ; preds = %24, %9
  %38 = tail call ptr @inet_ntoa(i32 %19) #10
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_ZN12log_dispatchILb1EE4execEiPKcS2_iS2_z(i32 noundef 2, ptr noundef nonnull @.str.6, ptr noundef nonnull @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 466, ptr noundef nonnull @.str.33, ptr noundef %38)
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  br label %40

40:                                               ; preds = %37, %60
  %.022 = phi i64 [ 0, %37 ], [ %63, %60 ]
  %.01921 = phi i32 [ %10, %37 ], [ %62, %60 ]
  %41 = call i32 @connect(i32 noundef %.01921, ptr noundef nonnull %3, i32 noundef 16)
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %43, label %72

43:                                               ; preds = %40
  %44 = call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %45 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %44)
  %46 = icmp slt i32 %45, 3
  br i1 %46, label %47, label %60

47:                                               ; preds = %43
  %48 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef nonnull @.str.6, ptr noundef nonnull @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 471, i1 noundef zeroext true)
  %49 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %48, ptr noundef nonnull @.str.34)
  %50 = load i16, ptr %39, align 8, !tbaa !27
  %51 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %49, i16 noundef zeroext %50)
  %52 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %51, ptr noundef nonnull @.str.35)
  %53 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %52, i64 noundef %1)
  %54 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %53, ptr noundef nonnull @.str.36)
  %55 = tail call ptr @__errno_location() #11
  %56 = load i32, ptr %55, align 4, !tbaa !26
  %57 = call ptr @strerror(i32 noundef %56) #10
  %58 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsIPcEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %54, ptr noundef %57)
  %59 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %58, ptr noundef nonnull @.str.37)
  br label %60

60:                                               ; preds = %47, %43
  call void @_ZN8graphlab5timer5sleepEm(i64 noundef 1)
  %61 = call i32 @close(i32 noundef %.01921)
  %62 = call i32 @socket(i32 noundef 2, i32 noundef 1, i32 noundef 0) #10
  call void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_tcp_no_delayEi(ptr noundef nonnull align 8 dereferenceable(833) %0, i32 noundef %62)
  %63 = add nuw nsw i64 %.022, 1
  %exitcond.not = icmp eq i64 %63, 10
  br i1 %exitcond.not, label %.critedge, label %40, !llvm.loop !73

.critedge:                                        ; preds = %60
  %64 = call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %65 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %64)
  %66 = icmp slt i32 %65, 6
  br i1 %66, label %67, label %71

67:                                               ; preds = %.critedge
  %68 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 5, ptr noundef nonnull @.str.6, ptr noundef nonnull @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 494, i1 noundef zeroext true)
  %69 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %68, ptr noundef nonnull @.str.38)
  %70 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %71

71:                                               ; preds = %67, %.critedge
  call void @abort() #12
  unreachable

72:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 34, ptr nonnull %4) #10
  %73 = load i16, ptr %39, align 8, !tbaa !27
  store i16 %73, ptr %4, align 2, !tbaa !75
  %74 = getelementptr inbounds i8, ptr %4, i64 2
  %75 = getelementptr inbounds i8, ptr %0, i64 16
  %76 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %75) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(32) %74, ptr noundef nonnull align 1 dereferenceable(32) %76, i64 32, i1 false)
  %77 = call noundef i32 @_ZN8graphlab7dc_impl11dc_tcp_comm10sendtosockEiPKcm(ptr noundef nonnull align 8 dereferenceable(833) %0, i32 noundef %.01921, ptr noundef nonnull %4, i64 noundef 34)
  call void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_non_blockingEi(ptr noundef nonnull align 8 dereferenceable(833) %0, i32 noundef %.01921)
  call void @llvm.lifetime.end.p0(i64 34, ptr nonnull %4) #10
  %78 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %1) #10
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  store i32 %.01921, ptr %79, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
  %81 = call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %80)
  %82 = icmp slt i32 %81, 3
  br i1 %82, label %83, label %92

83:                                               ; preds = %72
  %84 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 2, ptr noundef nonnull @.str.6, ptr noundef nonnull @__func__._ZN8graphlab7dc_impl11dc_tcp_comm7connectEm, i32 noundef 499, i1 noundef zeroext true)
  %85 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %84, ptr noundef nonnull @.str.39)
  %86 = load i16, ptr %39, align 8, !tbaa !27
  %87 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %85, i16 noundef zeroext %86)
  %88 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %87, ptr noundef nonnull @.str.35)
  %89 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896) %88, i64 noundef %1)
  %90 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %89, ptr noundef nonnull @.str.40)
  %91 = call noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %92

92:                                               ; preds = %83, %72
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  br label %93

93:                                               ; preds = %2, %92
  ret void
}

declare noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv() local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

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

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

declare i32 @close(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #7

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8graphlab7dc_impl11dc_tcp_comm10sendtosockEiPKcm(ptr noundef nonnull align 8 dereferenceable(833), i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_tcp_no_delayEi(ptr noundef nonnull align 8 dereferenceable(833), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab7dc_impl11dc_tcp_comm16set_non_blockingEi(ptr noundef nonnull align 8 dereferenceable(833), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: nounwind
declare ptr @inet_ntoa(i32) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsItEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i16 noundef zeroext) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsImEERS_T_(ptr noundef nonnull align 8 dereferenceable(896), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12log_dispatchILb1EE4execEiPKcS2_iS2_z(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #5 align 2

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

declare void @_ZN8graphlab5timer5sleepEm(i64 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(none) }
attributes #12 = { noreturn 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, !11, i64 16}
!6 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm11socket_infoE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !10, i64 24, !10, i64 32, !12, i64 40, !13, i64 48, !14, i64 88, !19, i64 160}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN8graphlab5mutexE", !8, i64 0}
!14 = !{!"_ZTSN8graphlab7dc_impl21circular_iovec_bufferE", !15, i64 0, !15, i64 24, !7, i64 48, !7, i64 56, !7, i64 64}
!15 = !{!"_ZTSSt6vectorI5iovecSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI5iovecSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!"_ZTS6msghdr", !10, i64 0, !11, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !11, i64 48}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTS11sockaddr_in", !22, i64 0, !22, i64 2, !23, i64 4, !8, i64 8}
!22 = !{!"short", !8, i64 0}
!23 = !{!"_ZTS7in_addr", !11, i64 0}
!24 = !{!22, !22, i64 0}
!25 = !{!21, !22, i64 2}
!26 = !{!11, !11, i64 0}
!27 = !{!28, !22, i64 8}
!28 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_commE", !29, i64 0, !22, i64 8, !22, i64 10, !12, i64 12, !30, i64 16, !32, i64 48, !36, i64 72, !44, i64 120, !48, i64 144, !52, i64 168, !56, i64 192, !13, i64 200, !58, i64 240, !59, i64 288, !56, i64 312, !56, i64 320, !63, i64 328, !10, i64 512, !63, i64 520, !10, i64 704, !10, i64 712, !10, i64 720, !70, i64 728, !70, i64 744, !71, i64 760, !11, i64 792, !72, i64 800, !12, i64 832}
!29 = !{!"_ZTSN8graphlab7dc_impl12dc_comm_baseE"}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !7, i64 8, !8, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!32 = !{!"_ZTSSt6vectorIjSaIjEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!36 = !{!"_ZTSSt3mapIjtSt4lessIjESaISt4pairIKjtEEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !39, i64 0, !41, i64 8}
!39 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !40, i64 0}
!40 = !{!"_ZTSSt4lessIjE"}
!41 = !{!"_ZTSSt15_Rb_tree_header", !42, i64 0, !7, i64 32}
!42 = !{!"_ZTSSt18_Rb_tree_node_base", !43, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!43 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!44 = !{!"_ZTSSt6vectorItSaItEE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseItSaItEE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseItSaItEE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseItSaItEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!48 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!52 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!56 = !{!"_ZTSN8graphlab6atomicImEE", !57, i64 0}
!57 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !7, i64 0}
!58 = !{!"_ZTSN8graphlab11conditionalE", !8, i64 0}
!59 = !{!"_ZTSSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!63 = !{!"_ZTSN8graphlab12thread_groupE", !7, i64 0, !7, i64 8, !13, i64 16, !58, i64 56, !64, i64 104}
!64 = !{!"_ZTSSt5queueISt4pairImPKcESt5dequeIS3_SaIS3_EEE", !65, i64 0}
!65 = !{!"_ZTSSt5dequeISt4pairImPKcESaIS3_EE", !66, i64 0}
!66 = !{!"_ZTSSt11_Deque_baseISt4pairImPKcESaIS3_EE", !67, i64 0}
!67 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE11_Deque_implE", !68, i64 0}
!68 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE16_Deque_impl_dataE", !10, i64 0, !7, i64 8, !69, i64 16, !69, i64 48}
!69 = !{!"_ZTSSt15_Deque_iteratorISt4pairImPKcERS3_PS3_E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!70 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm13timeout_eventE", !12, i64 0, !10, i64 8}
!71 = !{!"_ZTSN8graphlab18fixed_dense_bitsetILi256EEE", !8, i64 0}
!72 = !{!"_ZTSN8graphlab6threadE", !7, i64 0, !7, i64 8, !7, i64 16, !12, i64 24}
!73 = distinct !{!73, !74}
!74 = !{!"llvm.loop.mustprogress"}
!75 = !{!76, !22, i64 0}
!76 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm15initial_messageE", !22, i64 0, !8, i64 2}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass