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

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

%"class.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 }

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab7dc_impl11dc_tcp_comm20trigger_send_timeoutEtb(ptr noundef nonnull align 8 dereferenceable(833) %0, i16 noundef zeroext %1, i1 noundef zeroext %2) unnamed_addr #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i16 %1, ptr %5, align 2, !tbaa !9
  %9 = zext i1 %2 to i8
  store i8 %9, ptr %6, align 1, !tbaa !11
  %10 = load ptr, ptr %4, align 8
  %11 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %12 = trunc i8 %11 to i1
  br i1 %12, label %38, label %13

13:                                               ; preds = %3
  %14 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %10, i32 0, i32 14
  %15 = load i16, ptr %5, align 2, !tbaa !9
  %16 = zext i16 %15 to i64
  %17 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %16) #6
  %18 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %17, i32 0, i32 6
  %19 = load i8, ptr %18, align 8, !tbaa !15, !range !13, !noundef !14
  %20 = trunc i8 %19 to i1
  %21 = zext i1 %20 to i32
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %37

23:                                               ; preds = %13
  %24 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %10, i32 0, i32 25
  %25 = load i16, ptr %5, align 2, !tbaa !9
  %26 = zext i16 %25 to i64
  %27 = call noundef zeroext i1 @_ZNK8graphlab18fixed_dense_bitsetILi256EE3getEm(ptr noundef nonnull align 8 dereferenceable(32) %24, i64 noundef %26)
  %28 = zext i1 %27 to i32
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %37

30:                                               ; preds = %23
  %31 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %10, i32 0, i32 25
  %32 = load i16, ptr %5, align 2, !tbaa !9
  %33 = zext i16 %32 to i64
  %34 = call noundef zeroext i1 @_ZN8graphlab18fixed_dense_bitsetILi256EE7set_bitEm(ptr noundef nonnull align 8 dereferenceable(32) %31, i64 noundef %33)
  %35 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %10, i32 0, i32 21
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  call void @gl_event_active(ptr noundef %36, i32 noundef 1, i16 noundef signext 1)
  br label %37

37:                                               ; preds = %30, %23, %13
  br label %62

38:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %39 = getelementptr inbounds %"class.graphlab::dc_impl::dc_tcp_comm", ptr %10, i32 0, i32 14
  %40 = load i16, ptr %5, align 2, !tbaa !9
  %41 = zext i16 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #6
  store ptr %42, ptr %7, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %43, i32 0, i32 7
  call void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %44)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !72
  store ptr %47, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8graphlab7dc_impl11dc_tcp_comm18check_for_new_dataERNS1_11socket_infoE(ptr noundef nonnull align 8 dereferenceable(833) %48, ptr noundef nonnull align 8 dereferenceable(216) %49)
  br label %50

50:                                               ; preds = %55, %38
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %51, i32 0, i32 8
  %53 = call noundef zeroext i1 @_ZNK8graphlab7dc_impl21circular_iovec_buffer5emptyEv(ptr noundef nonnull align 8 dereferenceable(72) %52)
  %54 = xor i1 %53, true
  br i1 %54, label %55, label %59

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZN8graphlab7dc_impl11dc_tcp_comm15send_till_blockERNS1_11socket_infoE(ptr noundef nonnull align 8 dereferenceable(833) %56, ptr noundef nonnull align 8 dereferenceable(216) %57)
  br label %50, !llvm.loop !73

59:                                               ; preds = %50
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.graphlab::dc_impl::dc_tcp_comm::socket_info", ptr %60, i32 0, i32 7
  call void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %61)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %62

62:                                               ; preds = %59, %37
  ret void
}

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

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

declare void @gl_event_active(ptr noundef, i32 noundef, i16 noundef signext) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8graphlab7dc_impl11dc_tcp_comm15send_till_blockERNS1_11socket_infoE(ptr noundef nonnull align 8 dereferenceable(833), ptr noundef nonnull align 8 dereferenceable(216)) #3 align 2

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { "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 }

!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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !12, i64 40}
!16 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm11socket_infoE", !17, i64 0, !6, i64 8, !18, i64 16, !18, i64 20, !6, i64 24, !6, i64 32, !12, i64 40, !19, i64 48, !20, i64 88, !25, i64 160}
!17 = !{!"long", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!20 = !{!"_ZTSN8graphlab7dc_impl21circular_iovec_bufferE", !21, i64 0, !21, i64 24, !17, i64 48, !17, i64 56, !17, i64 64}
!21 = !{!"_ZTSSt6vectorI5iovecSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseI5iovecSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI5iovecSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTS6msghdr", !6, i64 0, !18, i64 8, !6, i64 16, !17, i64 24, !6, i64 32, !17, i64 40, !18, i64 48}
!26 = !{!27, !6, i64 712}
!27 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_commE", !28, i64 0, !10, i64 8, !10, i64 10, !12, i64 12, !29, i64 16, !31, i64 48, !35, i64 72, !43, i64 120, !47, i64 144, !51, i64 168, !55, i64 192, !19, i64 200, !57, i64 240, !58, i64 288, !55, i64 312, !55, i64 320, !62, i64 328, !6, i64 512, !62, i64 520, !6, i64 704, !6, i64 712, !6, i64 720, !69, i64 728, !69, i64 744, !70, i64 760, !18, i64 792, !71, i64 800, !12, i64 832}
!28 = !{!"_ZTSN8graphlab7dc_impl12dc_comm_baseE"}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !17, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"_ZTSSt6vectorIjSaIjEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt3mapIjtSt4lessIjESaISt4pairIKjtEEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessIjE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !17, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!43 = !{!"_ZTSSt6vectorItSaItEE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseItSaItEE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseItSaItEE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseItSaItEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!"_ZTSN8graphlab6atomicImEE", !56, i64 0}
!56 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !17, i64 0}
!57 = !{!"_ZTSN8graphlab11conditionalE", !7, i64 0}
!58 = !{!"_ZTSSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!62 = !{!"_ZTSN8graphlab12thread_groupE", !17, i64 0, !17, i64 8, !19, i64 16, !57, i64 56, !63, i64 104}
!63 = !{!"_ZTSSt5queueISt4pairImPKcESt5dequeIS3_SaIS3_EEE", !64, i64 0}
!64 = !{!"_ZTSSt5dequeISt4pairImPKcESaIS3_EE", !65, i64 0}
!65 = !{!"_ZTSSt11_Deque_baseISt4pairImPKcESaIS3_EE", !66, i64 0}
!66 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE11_Deque_implE", !67, i64 0}
!67 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !17, i64 8, !68, i64 16, !68, i64 48}
!68 = !{!"_ZTSSt15_Deque_iteratorISt4pairImPKcERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!69 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm13timeout_eventE", !12, i64 0, !6, i64 8}
!70 = !{!"_ZTSN8graphlab18fixed_dense_bitsetILi256EEE", !7, i64 0}
!71 = !{!"_ZTSN8graphlab6threadE", !17, i64 0, !17, i64 8, !17, i64 16, !12, i64 24}
!72 = !{!16, !6, i64 8}
!73 = distinct !{!73, !74}
!74 = !{!"llvm.loop.mustprogress"}


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

; 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 #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab7dc_impl11dc_tcp_comm20trigger_send_timeoutEtb(ptr noundef nonnull align 8 dereferenceable(833) %0, i16 noundef zeroext %1, i1 noundef zeroext %2) unnamed_addr #2 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 288
  %5 = zext i16 %1 to i64
  %6 = tail call noundef nonnull align 8 dereferenceable(216) ptr @_ZNSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %5) #5
  br i1 %2, label %18, label %7

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %6, i64 40
  %9 = load i8, ptr %8, align 8, !tbaa !5, !range !20, !noundef !21
  %10 = icmp eq i8 %9, 0
  br i1 %10, label %11, label %26

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 760
  %13 = tail call noundef zeroext i1 @_ZNK8graphlab18fixed_dense_bitsetILi256EE3getEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %5)
  br i1 %13, label %26, label %14

14:                                               ; preds = %11
  %15 = tail call noundef zeroext i1 @_ZN8graphlab18fixed_dense_bitsetILi256EE7set_bitEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %5)
  %16 = getelementptr inbounds i8, ptr %0, i64 712
  %17 = load ptr, ptr %16, align 8, !tbaa !22
  tail call void @gl_event_active(ptr noundef %17, i32 noundef 1, i16 noundef signext 1)
  br label %26

18:                                               ; preds = %3
  %19 = getelementptr inbounds i8, ptr %6, i64 48
  tail call void @_ZNK8graphlab5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
  %20 = getelementptr inbounds i8, ptr %6, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !69
  tail call void @_ZN8graphlab7dc_impl11dc_tcp_comm18check_for_new_dataERNS1_11socket_infoE(ptr noundef nonnull align 8 dereferenceable(833) %21, ptr noundef nonnull align 8 dereferenceable(216) %6)
  %22 = getelementptr inbounds i8, ptr %6, i64 88
  %23 = tail call noundef zeroext i1 @_ZNK8graphlab7dc_impl21circular_iovec_buffer5emptyEv(ptr noundef nonnull align 8 dereferenceable(72) %22)
  br i1 %23, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %18, %.lr.ph
  %24 = tail call noundef zeroext i1 @_ZN8graphlab7dc_impl11dc_tcp_comm15send_till_blockERNS1_11socket_infoE(ptr noundef nonnull align 8 dereferenceable(833) %21, ptr noundef nonnull align 8 dereferenceable(216) %6)
  %25 = tail call noundef zeroext i1 @_ZNK8graphlab7dc_impl21circular_iovec_buffer5emptyEv(ptr noundef nonnull align 8 dereferenceable(72) %22)
  br i1 %25, label %._crit_edge, label %.lr.ph, !llvm.loop !70

._crit_edge:                                      ; preds = %.lr.ph, %18
  tail call void @_ZNK8graphlab5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
  br label %26

26:                                               ; preds = %7, %11, %14, %._crit_edge
  ret void
}

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

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

declare void @gl_event_active(ptr noundef, i32 noundef, i16 noundef signext) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8graphlab7dc_impl21circular_iovec_buffer5emptyEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8graphlab7dc_impl11dc_tcp_comm15send_till_blockERNS1_11socket_infoE(ptr noundef nonnull align 8 dereferenceable(833), ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { 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 #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !10, i64 712}
!23 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_commE", !24, i64 0, !25, i64 8, !25, i64 10, !12, i64 12, !26, i64 16, !28, i64 48, !32, i64 72, !40, i64 120, !44, i64 144, !48, i64 168, !52, i64 192, !13, i64 200, !54, i64 240, !55, i64 288, !52, i64 312, !52, i64 320, !59, i64 328, !10, i64 512, !59, i64 520, !10, i64 704, !10, i64 712, !10, i64 720, !66, i64 728, !66, i64 744, !67, i64 760, !11, i64 792, !68, i64 800, !12, i64 832}
!24 = !{!"_ZTSN8graphlab7dc_impl12dc_comm_baseE"}
!25 = !{!"short", !8, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !7, i64 8, !8, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!28 = !{!"_ZTSSt6vectorIjSaIjEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!32 = !{!"_ZTSSt3mapIjtSt4lessIjESaISt4pairIKjtEEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeIjSt4pairIKjtESt10_Select1stIS2_ESt4lessIjESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !35, i64 0, !37, i64 8}
!35 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIjEE", !36, i64 0}
!36 = !{!"_ZTSSt4lessIjE"}
!37 = !{!"_ZTSSt15_Rb_tree_header", !38, i64 0, !7, i64 32}
!38 = !{!"_ZTSSt18_Rb_tree_node_base", !39, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!39 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!40 = !{!"_ZTSSt6vectorItSaItEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseItSaItEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseItSaItEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseItSaItEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!44 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl10dc_receiveESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!48 = !{!"_ZTSSt6vectorIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIPN8graphlab7dc_impl7dc_sendESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!52 = !{!"_ZTSN8graphlab6atomicImEE", !53, i64 0}
!53 = !{!"_ZTSN8graphlab13graphlab_impl11atomic_implImLb1EEE", !7, i64 0}
!54 = !{!"_ZTSN8graphlab11conditionalE", !8, i64 0}
!55 = !{!"_ZTSSt6vectorIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !56, i64 0}
!56 = !{!"_ZTSSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE12_Vector_implE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIN8graphlab7dc_impl11dc_tcp_comm11socket_infoESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!59 = !{!"_ZTSN8graphlab12thread_groupE", !7, i64 0, !7, i64 8, !13, i64 16, !54, i64 56, !60, i64 104}
!60 = !{!"_ZTSSt5queueISt4pairImPKcESt5dequeIS3_SaIS3_EEE", !61, i64 0}
!61 = !{!"_ZTSSt5dequeISt4pairImPKcESaIS3_EE", !62, i64 0}
!62 = !{!"_ZTSSt11_Deque_baseISt4pairImPKcESaIS3_EE", !63, i64 0}
!63 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE11_Deque_implE", !64, i64 0}
!64 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE16_Deque_impl_dataE", !10, i64 0, !7, i64 8, !65, i64 16, !65, i64 48}
!65 = !{!"_ZTSSt15_Deque_iteratorISt4pairImPKcERS3_PS3_E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!66 = !{!"_ZTSN8graphlab7dc_impl11dc_tcp_comm13timeout_eventE", !12, i64 0, !10, i64 8}
!67 = !{!"_ZTSN8graphlab18fixed_dense_bitsetILi256EEE", !8, i64 0}
!68 = !{!"_ZTSN8graphlab6threadE", !7, i64 0, !7, i64 8, !7, i64 16, !12, i64 24}
!69 = !{!6, !10, i64 8}
!70 = distinct !{!70, !71}
!71 = !{!"llvm.loop.mustprogress"}


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