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

; 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
@.str.4 = external hidden unnamed_addr constant [56 x i8], align 1
@__func__._ZN8graphlab11thread_pool16set_cpu_affinityEb = external hidden unnamed_addr constant [17 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: 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab11thread_pool16set_cpu_affinityEb(ptr noundef nonnull align 8 dereferenceable(530) %0, i1 noundef zeroext %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %8 = zext i1 %1 to i8
  store i8 %8, ptr %4, align 1, !tbaa !9
  %9 = load ptr, ptr %3, align 8
  %10 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %11 = trunc i8 %10 to i1
  %12 = zext i1 %11 to i32
  %13 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %9, i32 0, i32 8
  %14 = load i8, ptr %13, align 1, !tbaa !13, !range !11, !noundef !12
  %15 = trunc i8 %14 to i1
  %16 = zext i1 %15 to i32
  %17 = icmp ne i32 %12, %16
  br i1 %17, label %18, label %61

18:                                               ; preds = %2
  %19 = load i8, ptr %4, align 1, !tbaa !9, !range !11, !noundef !12
  %20 = trunc i8 %19 to i1
  %21 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %9, i32 0, i32 8
  %22 = zext i1 %20 to i8
  store i8 %22, ptr %21, align 1, !tbaa !13
  %23 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %9, i32 0, i32 1
  call void @_ZN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEE13stop_blockingEv(ptr noundef nonnull align 8 dereferenceable(228) %23)
  br label %24

24:                                               ; preds = %58, %18
  %25 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %9, i32 0, i32 0
  invoke void @_ZN8graphlab12thread_group4joinEv(ptr noundef nonnull align 8 dereferenceable(184) %25)
          to label %26 unwind label %27

26:                                               ; preds = %24
  br label %59

27:                                               ; preds = %24
  %28 = landingpad { ptr, i32 }
          catch ptr @_ZTIPKc
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %5, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %6, align 4
  br label %31

31:                                               ; preds = %27
  %32 = load i32, ptr %6, align 4
  %33 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIPKc) #6
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %35, label %62

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %36 = load ptr, ptr %5, align 8
  %37 = call ptr @__cxa_begin_catch(ptr %36) #6
  store ptr %37, ptr %7, align 8
  %38 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_Z13global_loggerv()
          to label %39 unwind label %53

39:                                               ; preds = %35
  %40 = invoke noundef i32 @_ZN11file_logger13get_log_levelEv(ptr noundef nonnull align 8 dereferenceable(896) %38)
          to label %41 unwind label %53

41:                                               ; preds = %39
  %42 = icmp sge i32 7, %40
  br i1 %42, label %43, label %57

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 7, ptr noundef @.str, ptr noundef @__func__._ZN8graphlab11thread_pool16set_cpu_affinityEb, i32 noundef 180, i1 noundef zeroext true)
          to label %45 unwind label %53

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %44, ptr noundef @.str.4)
          to label %47 unwind label %53

47:                                               ; preds = %45
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPKc(ptr noundef nonnull align 8 dereferenceable(896) %46, ptr noundef %48)
          to label %50 unwind label %53

50:                                               ; preds = %47
  %51 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN11file_loggerlsEPFRSoS0_E(ptr noundef nonnull align 8 dereferenceable(896) %49, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %52 unwind label %53

52:                                               ; preds = %50
  br label %57

53:                                               ; preds = %50, %47, %45, %43, %39, %35
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %5, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %6, align 4
  call void @__cxa_end_catch() #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %62

57:                                               ; preds = %52, %41
  call void @__cxa_end_catch() #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %58

58:                                               ; preds = %57
  br label %24, !llvm.loop !32

59:                                               ; preds = %26
  %60 = getelementptr inbounds %"class.graphlab::thread_pool", ptr %9, i32 0, i32 1
  call void @_ZN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEE14start_blockingEv(ptr noundef nonnull align 8 dereferenceable(228) %60)
  call void @_ZN8graphlab11thread_pool18spawn_thread_groupEv(ptr noundef nonnull align 8 dereferenceable(530) %9)
  br label %61

61:                                               ; preds = %59, %2
  ret void

62:                                               ; preds = %53, %31
  %63 = load ptr, ptr %5, align 8
  %64 = load i32, ptr %6, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !10, i64 529}
!14 = !{!"_ZTSN8graphlab11thread_poolE", !15, i64 0, !25, i64 184, !16, i64 416, !17, i64 424, !18, i64 464, !16, i64 512, !16, i64 520, !10, i64 528, !10, i64 529}
!15 = !{!"_ZTSN8graphlab12thread_groupE", !16, i64 0, !16, i64 8, !17, i64 16, !18, i64 56, !19, i64 104}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN8graphlab5mutexE", !7, i64 0}
!18 = !{!"_ZTSN8graphlab11conditionalE", !7, i64 0}
!19 = !{!"_ZTSSt5queueISt4pairImPKcESt5dequeIS3_SaIS3_EEE", !20, i64 0}
!20 = !{!"_ZTSSt5dequeISt4pairImPKcESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt11_Deque_baseISt4pairImPKcESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE11_Deque_implE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseISt4pairImPKcESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !16, i64 8, !24, i64 16, !24, i64 48}
!24 = !{!"_ZTSSt15_Deque_iteratorISt4pairImPKcERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSN8graphlab14blocking_queueISt4pairIN5boost8functionIFvvEEEiEEE", !10, i64 0, !26, i64 8, !17, i64 88, !18, i64 128, !18, i64 176, !31, i64 224, !31, i64 226}
!26 = !{!"_ZTSSt5dequeISt4pairIN5boost8functionIFvvEEEiESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE11_Deque_implE", !29, i64 0}
!29 = !{!"_ZTSNSt11_Deque_baseISt4pairIN5boost8functionIFvvEEEiESaIS5_EE16_Deque_impl_dataE", !6, i64 0, !16, i64 8, !30, i64 16, !30, i64 48}
!30 = !{!"_ZTSSt15_Deque_iteratorISt4pairIN5boost8functionIFvvEEEiERS5_PS5_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"short", !7, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"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
@.str.4 = external hidden unnamed_addr constant [56 x i8], align 1
@__func__._ZN8graphlab11thread_pool16set_cpu_affinityEb = external hidden unnamed_addr constant [17 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: 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8graphlab11thread_pool16set_cpu_affinityEb(ptr noundef nonnull align 8 dereferenceable(530) %0, i1 noundef zeroext %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 529
  %4 = load i8, ptr %3, align 1, !tbaa !5, !range !28, !noundef !29
  %5 = zext i1 %1 to i8
  %.not = icmp eq i8 %4, %5
  br i1 %.not, label %33, label %6

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

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

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

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

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

21:                                               ; preds = %18
  %22 = invoke noundef nonnull align 8 dereferenceable(896) ptr @_ZN19log_stream_dispatchILb1EE4execEiPKcS2_ib(i32 noundef 7, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8graphlab11thread_pool16set_cpu_affinityEb, i32 noundef 180, i1 noundef zeroext true)
          to label %23 unwind label %29

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

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

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

29:                                               ; preds = %27, %25, %23, %21, %14
  %30 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_end_catch() #5
  br label %.loopexit

31:                                               ; preds = %27, %18
  tail call void @__cxa_end_catch() #5
  br label %8, !llvm.loop !30

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

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

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

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, !21, i64 529}
!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 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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