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

; 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.boost::foreach_detail_::auto_any" = type { ptr }
%"struct.boost::foreach_detail_::auto_any.59" = type { %"struct.graphlab::fixed_dense_bitset<256>::bit_pos_iterator" }
%"struct.graphlab::fixed_dense_bitset<256>::bit_pos_iterator" = type { i64, ptr }
%"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 }
%"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 }
%"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 }
%"struct.graphlab::dc_impl::dc_tcp_comm::timeout_event" = type { i8, ptr }
%"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::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 }
%"class.graphlab::fixed_dense_bitset" = type { [4 x i64] }
%"class.graphlab::thread" = type <{ i64, i64, i64, i8, [7 x i8] }>

; 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 dso_local noundef i64 @_ZNKSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab7dc_impl13on_send_eventEisPv(i32 noundef %0, i16 noundef signext %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca i16, align 2
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.boost::foreach_detail_::auto_any", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.boost::foreach_detail_::auto_any.59", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.boost::foreach_detail_::auto_any.59", align 8
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i16 %1, ptr %5, align 2, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !11
  %22 = load i16, ptr %5, align 2, !tbaa !9
  %23 = sext i16 %22 to i32
  %24 = and i32 %23, 4
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %31

26:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %27 = load ptr, ptr %6, align 8, !tbaa !11
  store ptr %27, ptr %7, align 8, !tbaa !11
  %28 = load ptr, ptr %7, align 8, !tbaa !11
  %29 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %28, i32 0, i32 6
  store i8 0, ptr %29, align 8, !tbaa !13
  %30 = load ptr, ptr %7, align 8, !tbaa !11
  call void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %149

31:                                               ; preds = %3
  %32 = load i16, ptr %5, align 2, !tbaa !9
  %33 = sext i16 %32 to i32
  %34 = and i32 %33, 1
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %148

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %37 = load ptr, ptr %6, align 8, !tbaa !11
  store ptr %37, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = load ptr, ptr %8, align 8, !tbaa !11
  %39 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::timeout_event", ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !24
  store ptr %40, ptr %9, align 8, !tbaa !11
  %41 = load ptr, ptr %8, align 8, !tbaa !11
  %42 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::timeout_event", ptr %41, i32 0, i32 0
  %43 = load i8, ptr %42, align 8, !tbaa !26, !range !27, !noundef !28
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i32
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %127

47:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %48 = load ptr, ptr %9, align 8, !tbaa !11
  %49 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %48, i32 0, i32 25
  %50 = call ptr @_ZN5boost15foreach_detail_7containIN8graphlab18fixed_dense_bitsetILi256EEEEENS0_8auto_anyIPT_EERS6_PN4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef null)
  %51 = getelementptr inbounds %"struct.boost::foreach_detail_::auto_any", ptr %11, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  store ptr %11, ptr %10, align 8, !tbaa !11
  %52 = load ptr, ptr %10, align 8, !tbaa !11
  %53 = call noundef zeroext i1 @_ZNK5boost15foreach_detail_13auto_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %52)
  br i1 %53, label %54, label %55

54:                                               ; preds = %47
  br label %126

55:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %56 = load ptr, ptr %10, align 8, !tbaa !11
  %57 = call { i64, ptr } @_ZN5boost15foreach_detail_5beginIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1) %56, ptr noundef null, ptr noundef null)
  %58 = getelementptr inbounds %"struct.boost::foreach_detail_::auto_any.59", ptr %13, i32 0, i32 0
  %59 = getelementptr inbounds { i64, ptr }, ptr %58, i32 0, i32 0
  %60 = extractvalue { i64, ptr } %57, 0
  store i64 %60, ptr %59, align 8
  %61 = getelementptr inbounds { i64, ptr }, ptr %58, i32 0, i32 1
  %62 = extractvalue { i64, ptr } %57, 1
  store ptr %62, ptr %61, align 8
  store ptr %13, ptr %12, align 8, !tbaa !11
  %63 = load ptr, ptr %12, align 8, !tbaa !11
  %64 = call noundef zeroext i1 @_ZNK5boost15foreach_detail_13auto_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %63)
  br i1 %64, label %65, label %66

65:                                               ; preds = %55
  br label %125

66:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %67 = load ptr, ptr %10, align 8, !tbaa !11
  %68 = call { i64, ptr } @_ZN5boost15foreach_detail_3endIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1) %67, ptr noundef null, ptr noundef null)
  %69 = getelementptr inbounds %"struct.boost::foreach_detail_::auto_any.59", ptr %15, i32 0, i32 0
  %70 = getelementptr inbounds { i64, ptr }, ptr %69, i32 0, i32 0
  %71 = extractvalue { i64, ptr } %68, 0
  store i64 %71, ptr %70, align 8
  %72 = getelementptr inbounds { i64, ptr }, ptr %69, i32 0, i32 1
  %73 = extractvalue { i64, ptr } %68, 1
  store ptr %73, ptr %72, align 8
  store ptr %15, ptr %14, align 8, !tbaa !11
  %74 = load ptr, ptr %14, align 8, !tbaa !11
  %75 = call noundef zeroext i1 @_ZNK5boost15foreach_detail_13auto_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %74)
  br i1 %75, label %76, label %77

76:                                               ; preds = %66
  br label %124

77:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  store i8 1, ptr %16, align 1, !tbaa !29
  br label %78

78:                                               ; preds = %122, %77
  %79 = load i8, ptr %16, align 1, !tbaa !29, !range !27, !noundef !28
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %86

81:                                               ; preds = %78
  %82 = load ptr, ptr %12, align 8, !tbaa !11
  %83 = load ptr, ptr %14, align 8, !tbaa !11
  %84 = call noundef zeroext i1 @_ZN5boost15foreach_detail_4doneIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEbRKNS0_13auto_any_baseESA_PNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1) %82, ptr noundef nonnull align 1 dereferenceable(1) %83, ptr noundef null)
  %85 = xor i1 %84, true
  br label %86

86:                                               ; preds = %81, %78
  %87 = phi i1 [ false, %78 ], [ %85, %81 ]
  br i1 %87, label %89, label %88

88:                                               ; preds = %86
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %123

89:                                               ; preds = %86
  %90 = call noundef zeroext i1 @_ZN5boost15foreach_detail_9set_falseERb(ptr noundef nonnull align 1 dereferenceable(1) %16)
  br i1 %90, label %91, label %92

91:                                               ; preds = %89
  br label %115

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %93 = load ptr, ptr %12, align 8, !tbaa !11
  %94 = call noundef i64 @_ZN5boost15foreach_detail_5derefIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_17foreach_referenceIT_T0_E4typeERKNS0_13auto_any_baseEPNS0_9type2typeIS9_SA_EE(ptr noundef nonnull align 1 dereferenceable(1) %93, ptr noundef null)
  %95 = trunc i64 %94 to i32
  store i32 %95, ptr %18, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %113, %92
  %97 = load i8, ptr %16, align 1, !tbaa !29, !range !27, !noundef !28
  %98 = trunc i8 %97 to i1
  %99 = xor i1 %98, true
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %114

101:                                              ; preds = %96
  %102 = load ptr, ptr %9, align 8, !tbaa !11
  %103 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %102, i32 0, i32 25
  %104 = load i32, ptr %18, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = call noundef zeroext i1 @_ZN8graphlab18fixed_dense_bitsetILi256EE9clear_bitEm(ptr noundef nonnull align 8 dereferenceable(32) %103, i64 noundef %105)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %107 = load ptr, ptr %9, align 8, !tbaa !11
  %108 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %107, i32 0, i32 14
  %109 = load i32, ptr %18, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %110) #5
  store ptr %111, ptr %19, align 8, !tbaa !11
  %112 = load ptr, ptr %19, align 8, !tbaa !11
  call void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef %112)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %113

113:                                              ; preds = %101
  store i8 1, ptr %16, align 1, !tbaa !29
  br label %96, !llvm.loop !30

114:                                              ; preds = %100
  br label %115

115:                                              ; preds = %114, %91
  br label %116

116:                                              ; preds = %115
  %117 = load i8, ptr %16, align 1, !tbaa !29, !range !27, !noundef !28
  %118 = trunc i8 %117 to i1
  br i1 %118, label %119, label %121

119:                                              ; preds = %116
  %120 = load ptr, ptr %12, align 8, !tbaa !11
  call void @_ZN5boost15foreach_detail_4nextIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEvRKNS0_13auto_any_baseEPNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1) %120, ptr noundef null)
  br label %122

121:                                              ; preds = %116
  br label %122

122:                                              ; preds = %121, %119
  br label %78, !llvm.loop !32

123:                                              ; preds = %88
  br label %124

124:                                              ; preds = %123, %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %125

125:                                              ; preds = %124, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %126

126:                                              ; preds = %125, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %147

127:                                              ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %143, %127
  %129 = load i32, ptr %20, align 4, !tbaa !5
  %130 = zext i32 %129 to i64
  %131 = load ptr, ptr %9, align 8, !tbaa !11
  %132 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %131, i32 0, i32 14
  %133 = call noundef i64 @_ZNKSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #5
  %134 = icmp ult i64 %130, %133
  br i1 %134, label %136, label %135

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

136:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %137 = load ptr, ptr %9, align 8, !tbaa !11
  %138 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %137, i32 0, i32 14
  %139 = load i32, ptr %20, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #5
  store ptr %141, ptr %21, align 8, !tbaa !11
  %142 = load ptr, ptr %21, align 8, !tbaa !11
  call void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef %142)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %143

143:                                              ; preds = %136
  %144 = load i32, ptr %20, align 4, !tbaa !5
  %145 = add i32 %144, 1
  store i32 %145, ptr %20, align 4, !tbaa !5
  br label %128, !llvm.loop !33

146:                                              ; preds = %135
  br label %147

147:                                              ; preds = %146, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %148

148:                                              ; preds = %147, %31
  br label %149

149:                                              ; preds = %148, %26
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, ptr } @_ZN5boost15foreach_detail_5beginIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, ptr } @_ZN5boost15foreach_detail_3endIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost15foreach_detail_4doneIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEbRKNS0_13auto_any_baseESA_PNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost15foreach_detail_9set_falseERb(ptr noundef nonnull align 1 dereferenceable(1)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost15foreach_detail_5derefIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_17foreach_referenceIT_T0_E4typeERKNS0_13auto_any_baseEPNS0_9type2typeIS9_SA_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8graphlab18fixed_dense_bitsetILi256EE9clear_bitEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost15foreach_detail_4nextIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEvRKNS0_13auto_any_baseEPNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { 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 #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !16, i64 40}
!14 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm11socket_infoE", !15, i64 0, !12, i64 8, !6, i64 16, !6, i64 20, !12, i64 24, !12, i64 32, !16, i64 40, !17, i64 48, !18, i64 88, !23, i64 160}
!15 = !{!"long", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!18 = !{!"_ZTSN8graphlab7dc_impl21circular_iovec_bufferE", !19, i64 0, !19, i64 24, !15, i64 48, !15, i64 56, !15, i64 64}
!19 = !{!"_ZTSSt6vectorI5iovecSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseI5iovecSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!"_ZTS6msghdr", !12, i64 0, !6, i64 8, !12, i64 16, !15, i64 24, !12, i64 32, !15, i64 40, !6, i64 48}
!24 = !{!25, !12, i64 8}
!25 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm13timeout_eventE", !16, i64 0, !12, i64 8}
!26 = !{!25, !16, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!16, !16, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}


; 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.boost::foreach_detail_::auto_any" = type { ptr }
%"struct.boost::foreach_detail_::auto_any.59" = type { %"struct.graphlab::fixed_dense_bitset<256>::bit_pos_iterator" }
%"struct.graphlab::fixed_dense_bitset<256>::bit_pos_iterator" = type { i64, ptr }

; 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 dso_local noundef i64 @_ZNKSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab7dc_impl13on_send_eventEisPv(i32 noundef %0, i16 noundef signext %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca %"struct.boost::foreach_detail_::auto_any", align 8
  %5 = alloca %"struct.boost::foreach_detail_::auto_any.59", align 8
  %6 = alloca %"struct.boost::foreach_detail_::auto_any.59", align 8
  %7 = alloca i8, align 1
  %8 = zext i16 %1 to i32
  %9 = and i32 %8, 4
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %12, label %10

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %2, i64 40
  store i8 0, ptr %11, align 8, !tbaa !5
  tail call void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef %2)
  br label %.loopexit30

12:                                               ; preds = %3
  %13 = and i32 %8, 1
  %.not29 = icmp eq i32 %13, 0
  br i1 %.not29, label %.loopexit30, label %14

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %2, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !20
  %17 = load i8, ptr %2, align 8, !tbaa !22, !range !23, !noundef !24
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %21, label %.preheader

.preheader:                                       ; preds = %14
  %19 = getelementptr inbounds i8, ptr %16, i64 288
  %20 = tail call noundef i64 @_ZNKSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %.not35 = icmp eq i64 %20, 0
  br i1 %.not35, label %.loopexit30, label %.lr.ph

21:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %22 = getelementptr inbounds i8, ptr %16, i64 760
  %23 = tail call ptr @_ZN5boost15foreach_detail_7containIN8graphlab18fixed_dense_bitsetILi256EEEEENS0_8auto_anyIPT_EERS6_PN4mpl_5bool_ILb0EEE(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef null)
  store ptr %23, ptr %4, align 8
  %24 = call noundef zeroext i1 @_ZNK5boost15foreach_detail_13auto_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
  br i1 %24, label %54, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %26 = call { i64, ptr } @_ZN5boost15foreach_detail_5beginIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef null, ptr noundef null)
  %27 = extractvalue { i64, ptr } %26, 0
  store i64 %27, ptr %5, align 8
  %28 = getelementptr inbounds i8, ptr %5, i64 8
  %29 = extractvalue { i64, ptr } %26, 1
  store ptr %29, ptr %28, align 8
  %30 = call noundef zeroext i1 @_ZNK5boost15foreach_detail_13auto_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  br i1 %30, label %53, label %31

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %32 = call { i64, ptr } @_ZN5boost15foreach_detail_3endIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef null, ptr noundef null)
  %33 = extractvalue { i64, ptr } %32, 0
  store i64 %33, ptr %6, align 8
  %34 = getelementptr inbounds i8, ptr %6, i64 8
  %35 = extractvalue { i64, ptr } %32, 1
  store ptr %35, ptr %34, align 8
  %36 = call noundef zeroext i1 @_ZNK5boost15foreach_detail_13auto_any_basecvbEv(ptr noundef nonnull align 1 dereferenceable(1) %6)
  br i1 %36, label %52, label %.lr.ph33

.lr.ph33:                                         ; preds = %31
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  store i8 1, ptr %7, align 1, !tbaa !25
  %37 = getelementptr inbounds i8, ptr %16, i64 288
  br label %38

38:                                               ; preds = %.lr.ph33, %51
  %39 = call noundef zeroext i1 @_ZN5boost15foreach_detail_4doneIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEbRKNS0_13auto_any_baseESA_PNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef null)
  br i1 %39, label %.critedge, label %40

.critedge:                                        ; preds = %.loopexit, %38, %51
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %52

40:                                               ; preds = %38
  %41 = call noundef zeroext i1 @_ZN5boost15foreach_detail_9set_falseERb(ptr noundef nonnull align 1 dereferenceable(1) %7)
  br i1 %41, label %..loopexit_crit_edge, label %42

..loopexit_crit_edge:                             ; preds = %40
  %.pre = load i8, ptr %7, align 1, !tbaa !25, !range !23
  br label %.loopexit

42:                                               ; preds = %40
  %43 = call noundef i64 @_ZN5boost15foreach_detail_5derefIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_17foreach_referenceIT_T0_E4typeERKNS0_13auto_any_baseEPNS0_9type2typeIS9_SA_EE(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef null)
  %44 = load i8, ptr %7, align 1, !tbaa !25, !range !23, !noundef !24
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %.loopexit, label %.loopexit.thread

.loopexit.thread:                                 ; preds = %42
  %46 = and i64 %43, 4294967295
  %47 = call noundef zeroext i1 @_ZN8graphlab18fixed_dense_bitsetILi256EE9clear_bitEm(ptr noundef nonnull align 8 dereferenceable(32) %22, i64 noundef %46)
  %48 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %46) #5
  call void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef nonnull %48)
  store i8 1, ptr %7, align 1, !tbaa !25
  br label %51

.loopexit:                                        ; preds = %..loopexit_crit_edge, %42
  %49 = phi i8 [ %.pre, %..loopexit_crit_edge ], [ %44, %42 ]
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %51, label %.critedge

51:                                               ; preds = %.loopexit, %.loopexit.thread
  call void @_ZN5boost15foreach_detail_4nextIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEvRKNS0_13auto_any_baseEPNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef null)
  %.pre36 = load i8, ptr %7, align 1, !tbaa !25, !range !23
  %.pre37 = trunc nuw i8 %.pre36 to i1
  br i1 %.pre37, label %38, label %.critedge, !llvm.loop !26

52:                                               ; preds = %31, %.critedge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %53

53:                                               ; preds = %25, %52
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %54

54:                                               ; preds = %21, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %.loopexit30

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %55 = phi i64 [ %58, %.lr.ph ], [ 0, %.preheader ]
  %.031 = phi i32 [ %57, %.lr.ph ], [ 0, %.preheader ]
  %56 = tail call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %55) #5
  tail call void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef nonnull %56)
  %57 = add i32 %.031, 1
  %58 = zext i32 %57 to i64
  %59 = tail call noundef i64 @_ZNKSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %60 = icmp ugt i64 %59, %58
  br i1 %60, label %.lr.ph, label %.loopexit30, !llvm.loop !28

.loopexit30:                                      ; preds = %.lr.ph, %.preheader, %54, %12, %10
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8graphlab7dc_impl12process_sockEPNS0_11dc_tcp_comm11socket_infoE(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, ptr } @_ZN5boost15foreach_detail_5beginIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, ptr } @_ZN5boost15foreach_detail_3endIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_8auto_anyINS0_16foreach_iteratorIT_T0_E4typeEEERKNS0_13auto_any_baseEPNS0_9type2typeISA_SB_EEPS7_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5boost15foreach_detail_4doneIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEbRKNS0_13auto_any_baseESA_PNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost15foreach_detail_9set_falseERb(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost15foreach_detail_5derefIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEENS0_17foreach_referenceIT_T0_E4typeERKNS0_13auto_any_baseEPNS0_9type2typeIS9_SA_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8graphlab18fixed_dense_bitsetILi256EE9clear_bitEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost15foreach_detail_4nextIN8graphlab18fixed_dense_bitsetILi256EEEN4mpl_5bool_ILb0EEEEEvRKNS0_13auto_any_baseEPNS0_9type2typeIT_T0_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { 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 #5 = { 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, !12, i64 40}
!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, !10, i64 8}
!21 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm13timeout_eventE", !12, i64 0, !10, i64 8}
!22 = !{!21, !12, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!12, !12, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


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