; LLVM IR from turi-code/SFrame :: oss_src/parallel/thread_pool.ll (ZN8graphlab11thread_pool6resizeEm)

; 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::thread_pool" = type <{ %"class.graphlab::thread_group", %"class.graphlab::blocking_queue", i64, %"class.graphlab::mutex", %"class.graphlab::conditional", i64, i64, i8, i8, [6 x i8] }>
%"class.graphlab::thread_group" = type { i64, i64, %"class.graphlab::mutex", %"class.graphlab::conditional", %"class.std::queue.0" }
%"class.std::queue.0" = type { %"class.std::deque.1" }
%"class.std::deque.1" = type { %"class.std::_Deque_base.2" }
%"class.std::_Deque_base.2" = 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.6", %"struct.std::_Deque_iterator.6" }
%"struct.std::_Deque_iterator.6" = type { ptr, ptr, ptr, ptr }
%"class.graphlab::blocking_queue" = type <{ i8, [7 x i8], %"class.std::deque.7", %"class.graphlab::mutex", %"class.graphlab::conditional", %"class.graphlab::conditional", i16, i16, [4 x i8] }>
%"class.std::deque.7" = type { %"class.std::_Deque_base.8" }
%"class.std::_Deque_base.8" = type { %"struct.std::_Deque_base<std::pair<boost::function<void ()>, int>, std::allocator<std::pair<boost::function<void ()>, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<boost::function<void ()>, int>, std::allocator<std::pair<boost::function<void ()>, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<boost::function<void ()>, int>, std::allocator<std::pair<boost::function<void ()>, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<boost::function<void ()>, int>, std::allocator<std::pair<boost::function<void ()>, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.12", %"struct.std::_Deque_iterator.12" }
%"struct.std::_Deque_iterator.12" = type { ptr, 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 }

@_ZTIPKc = external constant ptr
@.str = external hidden unnamed_addr constant [83 x i8], align 1
@__func__._ZN8graphlab11thread_pool6resizeEm = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [56 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab11thread_pool18spawn_thread_groupEv(ptr noundef nonnull align 8 dereferenceable(530)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab11thread_pool6resizeEm(ptr noundef nonnull align 8 dereferenceable(530) %0, i64 noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %8 = load ptr, ptr %3, align 8
  %9 = load i64, ptr %4, align 8, !tbaa !9
  %10 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %8, i32 0, i32 2
  %11 = load i64, ptr %10, align 8, !tbaa !11
  %12 = icmp ne i64 %9, %11
  br i1 %12, label %13, label %54

13:                                               ; preds = %2
  %14 = load i64, ptr %4, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %8, i32 0, i32 2
  store i64 %14, ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %8, i32 0, i32 1
  call void @_ZN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEE13stop_blockingEv(ptr noundef nonnull align 8 dereferenceable(228) %16)
  br label %17

17:                                               ; preds = %51, %13
  %18 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %8, i32 0, i32 0
  invoke void @_ZN8graphlab12thread_group4joinEv(ptr noundef nonnull align 8 dereferenceable(184) %18)
          to label %19 unwind label %20

19:                                               ; preds = %17
  br label %52

20:                                               ; preds = %17
  %21 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
  %22 = extractvalue { ptr, i32 } %21, 0
  store ptr %22, ptr %5, align 8
  %23 = extractvalue { ptr, i32 } %21, 1
  store i32 %23, ptr %6, align 4
  br label %24

24:                                               ; preds = %20
  %25 = load i32, ptr %6, align 4
  %26 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIPKc) #6
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %28, label %55

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %29 = load ptr, ptr %5, align 8
  %30 = call ptr @__cxa_begin_catch(ptr %29) #6
  store ptr %30, ptr %7, align 8
  %31 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %32 unwind label %46

32:                                               ; preds = %28
  %33 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %31)
          to label %34 unwind label %46

34:                                               ; preds = %32
  %35 = icmp sge i32 7, %33
  br i1 %35, label %36, label %50

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 7, ptr noundef @.str, ptr noundef @__func__._ZN8graphlab11thread_pool6resizeEm, i32 noundef 115, i1 noundef zeroext true)
          to label %38 unwind label %46

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %37, ptr noundef @.str.4)
          to label %40 unwind label %46

40:                                               ; preds = %38
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %39, ptr noundef %41)
          to label %43 unwind label %46

43:                                               ; preds = %40
  %44 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %45 unwind label %46

45:                                               ; preds = %43
  br label %50

46:                                               ; preds = %43, %40, %38, %36, %32, %28
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  call void @__cxa_end_catch() #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %55

50:                                               ; preds = %45, %34
  call void @__cxa_end_catch() #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %51

51:                                               ; preds = %50
  br label %17, !llvm.loop !30

52:                                               ; preds = %19
  %53 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %8, i32 0, i32 1
  call void @_ZN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEE14start_blockingEv(ptr noundef nonnull align 8 dereferenceable(228) %53)
  call void @_ZN8graphlab11thread_pool18spawn_thread_groupEv(ptr noundef nonnull align 8 dereferenceable(530) %8)
  br label %54

54:                                               ; preds = %52, %2
  ret void

55:                                               ; preds = %46, %24
  %56 = load ptr, ptr %5, align 8
  %57 = load i32, ptr %6, align 4
  %58 = insertvalue { ptr, i32 } poison, ptr %56, 0
  %59 = insertvalue { ptr, i32 } %58, i32 %57, 1
  resume { ptr, i32 } %59
}

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

declare void @_ZN8graphlab12thread_group4joinEv(ptr noundef nonnull align 8 dereferenceable(184)) #3

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #4

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { "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 = { nounwind memory(none) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !10, i64 416}
!12 = !{!"_ZTSN8graphlab11thread_poolE", !13, i64 0, !22, i64 184, !10, i64 416, !14, i64 424, !15, i64 464, !10, i64 512, !10, i64 520, !23, i64 528, !23, i64 529}
!13 = !{!"_ZTSN8graphlab12thread_groupE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 56, !16, i64 104}
!14 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!15 = !{!"_ZTSN8graphlab11conditionalE", !7, i64 0}
!16 = !{!"_ZTSSt5queueISt4pairImPKcESt5dequeIS3_SaIS3_EEE", !17, i64 0}
!17 = !{!"_ZTSSt5dequeISt4pairImPKcESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt11_Deque_baseISt4pairImPKcESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE11_Deque_implE", !20, i64 0}
!20 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !10, i64 8, !21, i64 16, !21, i64 48}
!21 = !{!"_ZTSSt15_Deque_iteratorISt4pairImPKcERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!"_ZTSN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEEE", !23, i64 0, !24, i64 8, !14, i64 88, !15, i64 128, !15, i64 176, !29, i64 224, !29, i64 226}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSSt5dequeISt4pairIN5boost8functionIFvvEEEiESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE11_Deque_implE", !27, i64 0}
!27 = !{!"_ZTSNSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE16_Deque_impl_dataE", !6, i64 0, !10, i64 8, !28, i64 16, !28, i64 48}
!28 = !{!"_ZTSSt15_Deque_iteratorISt4pairIN5boost8functionIFvvEEEiERS5_PS5_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!29 = !{!"short", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"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"

@_ZTIPKc = external constant ptr
@.str = external hidden unnamed_addr constant [83 x i8], align 1
@__func__._ZN8graphlab11thread_pool6resizeEm = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [56 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8graphlab11thread_pool18spawn_thread_groupEv(ptr noundef nonnull align 8 dereferenceable(530)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab11thread_pool6resizeEm(ptr noundef nonnull align 8 dereferenceable(530) %0, i64 noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 416
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i64 %4, %1
  br i1 %.not, label %32, label %5

5:                                                ; preds = %2
  store i64 %1, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEE13stop_blockingEv(ptr noundef nonnull align 8 dereferenceable(228) %6)
  br label %7

7:                                                ; preds = %30, %5
  invoke void @_ZN8graphlab12thread_group4joinEv(ptr noundef nonnull align 8 dereferenceable(184) %0)
          to label %31 unwind label %8

8:                                                ; preds = %7
  %9 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
  %10 = extractvalue { ptr, i32 } %9, 1
  %11 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIPKc) #5
  %12 = icmp eq i32 %10, %11
  br i1 %12, label %13, label %.loopexit

13:                                               ; preds = %8
  %14 = extractvalue { ptr, i32 } %9, 0
  %15 = tail call ptr @__cxa_begin_catch(ptr %14) #5
  %16 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %17 unwind label %28

17:                                               ; preds = %13
  %18 = tail call noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %16)
  %19 = icmp slt i32 %18, 8
  br i1 %19, label %20, label %30

20:                                               ; preds = %17
  %21 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 7, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8graphlab11thread_pool6resizeEm, i32 noundef 115, i1 noundef zeroext true)
          to label %22 unwind label %28

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %21, ptr noundef nonnull @.str.4)
          to label %24 unwind label %28

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %23, ptr noundef %15)
          to label %26 unwind label %28

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %25, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %30 unwind label %28

28:                                               ; preds = %26, %24, %22, %20, %13
  %29 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_end_catch() #5
  br label %.loopexit

30:                                               ; preds = %26, %17
  tail call void @__cxa_end_catch() #5
  br label %7, !llvm.loop !28

31:                                               ; preds = %7
  tail call void @_ZN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEE14start_blockingEv(ptr noundef nonnull align 8 dereferenceable(228) %6)
  tail call void @_ZN8graphlab11thread_pool18spawn_thread_groupEv(ptr noundef nonnull align 8 dereferenceable(530) %0)
  br label %32

32:                                               ; preds = %31, %2
  ret void

.loopexit:                                        ; preds = %8, %28
  %.merged = phi { ptr, i32 } [ %29, %28 ], [ %9, %8 ]
  resume { ptr, i32 } %.merged
}

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

declare void @_ZN8graphlab12thread_group4joinEv(ptr noundef nonnull align 8 dereferenceable(184)) local_unnamed_addr #2

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896)) local_unnamed_addr #4 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 #1 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 #1 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 #1 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)) #1

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

attributes #0 = { 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 #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 = { "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 = { nofree nosync nounwind memory(none) }
attributes #4 = { 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, !8, i64 416}
!6 = !{!"_ZTSN8graphlab11thread_poolE", !7, i64 0, !20, i64 184, !8, i64 416, !11, i64 424, !12, i64 464, !8, i64 512, !8, i64 520, !21, i64 528, !21, i64 529}
!7 = !{!"_ZTSN8graphlab12thread_groupE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 56, !13, i64 104}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN8graphlab5mutexE", !9, i64 0}
!12 = !{!"_ZTSN8graphlab11conditionalE", !9, i64 0}
!13 = !{!"_ZTSSt5queueISt4pairImPKcESt5dequeIS3_SaIS3_EEE", !14, i64 0}
!14 = !{!"_ZTSSt5dequeISt4pairImPKcESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt11_Deque_baseISt4pairImPKcESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE11_Deque_implE", !17, i64 0}
!17 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE16_Deque_impl_dataE", !18, i64 0, !8, i64 8, !19, i64 16, !19, i64 48}
!18 = !{!"any pointer", !9, i64 0}
!19 = !{!"_ZTSSt15_Deque_iteratorISt4pairImPKcERS3_PS3_E", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!20 = !{!"_ZTSN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEEE", !21, i64 0, !22, i64 8, !11, i64 88, !12, i64 128, !12, i64 176, !27, i64 224, !27, i64 226}
!21 = !{!"bool", !9, i64 0}
!22 = !{!"_ZTSSt5dequeISt4pairIN5boost8functionIFvvEEEiESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSNSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE11_Deque_implE", !25, i64 0}
!25 = !{!"_ZTSNSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE16_Deque_impl_dataE", !18, i64 0, !8, i64 8, !26, i64 16, !26, i64 48}
!26 = !{!"_ZTSSt15_Deque_iteratorISt4pairIN5boost8functionIFvvEEEiERS5_PS5_E", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!27 = !{!"short", !9, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass