; LLVM IR from lynx-family/primjs :: src/gc/thread_pool.ll (ZN14BytePoolThread10WorkerFuncEPv)

; 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.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>
%class.BytePoolThread = type { ptr, i64, i64, i32, %"class.std::__cxx11::basic_string", 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.ByteThreadPool = type { %"class.std::__cxx11::basic_string", %"struct.std::atomic", %"struct.std::atomic", %"class.std::queue", i32, i32, %"struct.std::atomic.3", %"struct.std::atomic.3", %"class.std::mutex", %"class.std::condition_variable", %"class.std::condition_variable", %"class.std::condition_variable", %"class.std::condition_variable", %"class.std::vector" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<ByteTask *, std::allocator<ByteTask *>>::_Deque_impl" }
%"struct.std::_Deque_base<ByteTask *, std::allocator<ByteTask *>>::_Deque_impl" = type { %"struct.std::_Deque_base<ByteTask *, std::allocator<ByteTask *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<ByteTask *, std::allocator<ByteTask *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::atomic.3" = type { %"struct.std::__atomic_base.4" }
%"struct.std::__atomic_base.4" = type { i32 }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = 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.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<BytePoolThread *, std::allocator<BytePoolThread *>>::_Vector_impl" }
%"struct.std::_Vector_base<BytePoolThread *, std::allocator<BytePoolThread *>>::_Vector_impl" = type { %"struct.std::_Vector_base<BytePoolThread *, std::allocator<BytePoolThread *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BytePoolThread *, std::allocator<BytePoolThread *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN14BytePoolThread10WorkerFuncEPv(ptr noundef %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::unique_lock", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::unique_lock", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %10, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %class.BytePoolThread, ptr %11, i32 0, i32 5
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr %4, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %140, %1
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %15)
  %17 = xor i1 %16, true
  br i1 %17, label %18, label %141

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.ByteThreadPool, ptr %19, i32 0, i32 8
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %6, ptr noundef nonnull align 8 dereferenceable(40) %20)
  br label %21

21:                                               ; preds = %58, %18
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.ByteThreadPool, ptr %22, i32 0, i32 6
  %24 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 noundef 5) #6
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %class.ByteThreadPool, ptr %25, i32 0, i32 5
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = icmp sgt i32 %24, %27
  br i1 %28, label %33, label %29

29:                                               ; preds = %21
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = invoke noundef zeroext i1 @_ZNK14ByteThreadPool9IsRunningEv(ptr noundef nonnull align 8 dereferenceable(392) %30)
          to label %32 unwind label %51

32:                                               ; preds = %29
  br i1 %31, label %38, label %33

33:                                               ; preds = %32, %21
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = invoke noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %34)
          to label %36 unwind label %51

36:                                               ; preds = %33
  %37 = xor i1 %35, true
  br label %38

38:                                               ; preds = %36, %32
  %39 = phi i1 [ false, %32 ], [ %37, %36 ]
  br i1 %39, label %40, label %62

40:                                               ; preds = %38
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %class.ByteThreadPool, ptr %41, i32 0, i32 6
  %43 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %42, i32 noundef 1, i32 noundef 5) #6
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.ByteThreadPool, ptr %44, i32 0, i32 6
  %46 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %45, i32 noundef 5) #6
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %55

48:                                               ; preds = %40
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.ByteThreadPool, ptr %49, i32 0, i32 12
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %50) #6
  br label %55

51:                                               ; preds = %117, %113, %109, %105, %100, %93, %72, %68, %63, %55, %33, %29
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %155

55:                                               ; preds = %48, %40
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.ByteThreadPool, ptr %56, i32 0, i32 10
  invoke void @_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE(ptr noundef nonnull align 8 dereferenceable(48) %57, ptr noundef nonnull align 8 dereferenceable(9) %6)
          to label %58 unwind label %51

58:                                               ; preds = %55
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.ByteThreadPool, ptr %59, i32 0, i32 6
  %61 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_addEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %60, i32 noundef 1, i32 noundef 5) #6
  br label %21, !llvm.loop !36

62:                                               ; preds = %38
  br label %63

63:                                               ; preds = %96, %62
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %class.ByteThreadPool, ptr %64, i32 0, i32 3
  %66 = invoke noundef zeroext i1 @_ZNKSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %65)
          to label %67 unwind label %51

67:                                               ; preds = %63
  br i1 %66, label %68, label %77

68:                                               ; preds = %67
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = invoke noundef zeroext i1 @_ZNK14ByteThreadPool9IsRunningEv(ptr noundef nonnull align 8 dereferenceable(392) %69)
          to label %71 unwind label %51

71:                                               ; preds = %68
  br i1 %70, label %72, label %77

72:                                               ; preds = %71
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = invoke noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %73)
          to label %75 unwind label %51

75:                                               ; preds = %72
  %76 = xor i1 %74, true
  br label %77

77:                                               ; preds = %75, %71, %67
  %78 = phi i1 [ false, %71 ], [ false, %67 ], [ %76, %75 ]
  br i1 %78, label %79, label %100

79:                                               ; preds = %77
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.ByteThreadPool, ptr %80, i32 0, i32 7
  %82 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_addEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %81, i32 noundef 1, i32 noundef 5) #6
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.ByteThreadPool, ptr %83, i32 0, i32 7
  %85 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %84, i32 noundef 5) #6
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %class.ByteThreadPool, ptr %86, i32 0, i32 5
  %88 = load i32, ptr %87, align 4, !tbaa !15
  %89 = icmp eq i32 %85, %88
  br i1 %89, label %90, label %93

90:                                               ; preds = %79
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.ByteThreadPool, ptr %91, i32 0, i32 11
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %92) #6
  br label %93

93:                                               ; preds = %90, %79
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.ByteThreadPool, ptr %94, i32 0, i32 9
  invoke void @_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE(ptr noundef nonnull align 8 dereferenceable(48) %95, ptr noundef nonnull align 8 dereferenceable(9) %6)
          to label %96 unwind label %51

96:                                               ; preds = %93
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.ByteThreadPool, ptr %97, i32 0, i32 7
  %99 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %98, i32 noundef 1, i32 noundef 5) #6
  br label %63, !llvm.loop !38

100:                                              ; preds = %77
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.ByteThreadPool, ptr %101, i32 0, i32 3
  %103 = invoke noundef zeroext i1 @_ZNKSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %102)
          to label %104 unwind label %51

104:                                              ; preds = %100
  br i1 %103, label %122, label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = invoke noundef zeroext i1 @_ZNK14ByteThreadPool9IsRunningEv(ptr noundef nonnull align 8 dereferenceable(392) %106)
          to label %108 unwind label %51

108:                                              ; preds = %105
  br i1 %107, label %109, label %122

109:                                              ; preds = %108
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = invoke noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %110)
          to label %112 unwind label %51

112:                                              ; preds = %109
  br i1 %111, label %122, label %113

113:                                              ; preds = %112
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %class.ByteThreadPool, ptr %114, i32 0, i32 3
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %115)
          to label %117 unwind label %51

117:                                              ; preds = %113
  %118 = load ptr, ptr %116, align 8, !tbaa !5
  store ptr %118, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.ByteThreadPool, ptr %119, i32 0, i32 3
  invoke void @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %120)
          to label %121 unwind label %51

121:                                              ; preds = %117
  br label %122

122:                                              ; preds = %121, %112, %108, %104
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %140

125:                                              ; preds = %122
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %class.BytePoolThread, ptr %127, i32 0, i32 1
  %129 = load i64, ptr %128, align 8, !tbaa !39
  %130 = load ptr, ptr %126, align 8, !tbaa !40
  %131 = getelementptr inbounds ptr, ptr %130, i64 2
  %132 = load ptr, ptr %131, align 8
  call void %132(ptr noundef nonnull align 8 dereferenceable(8) %126, i64 noundef %129)
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = icmp eq ptr %133, null
  br i1 %134, label %139, label %135

135:                                              ; preds = %125
  %136 = load ptr, ptr %133, align 8, !tbaa !40
  %137 = getelementptr inbounds ptr, ptr %136, i64 1
  %138 = load ptr, ptr %137, align 8
  call void %138(ptr noundef nonnull align 8 dereferenceable(8) %133) #6
  br label %139

139:                                              ; preds = %135, %125
  br label %140

140:                                              ; preds = %139, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %14, !llvm.loop !42

141:                                              ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %class.ByteThreadPool, ptr %142, i32 0, i32 8
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %9, ptr noundef nonnull align 8 dereferenceable(40) %143)
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.ByteThreadPool, ptr %144, i32 0, i32 6
  %146 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %145, i32 noundef 1, i32 noundef 5) #6
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %class.ByteThreadPool, ptr %147, i32 0, i32 6
  %149 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %148, i32 noundef 5) #6
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %154

151:                                              ; preds = %141
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %class.ByteThreadPool, ptr %152, i32 0, i32 12
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %153) #6
  br label %154

154:                                              ; preds = %151, %141
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret ptr null

155:                                              ; preds = %51
  %156 = load ptr, ptr %7, align 8
  %157 = load i32, ptr %8, align 4
  %158 = insertvalue { ptr, i32 } poison, ptr %156, 0
  %159 = insertvalue { ptr, i32 } %158, i32 %157, 1
  resume { ptr, i32 } %159
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #3 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: nounwind
declare void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48)) #4

declare void @_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(9)) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIiE9fetch_addEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #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 = { 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 #3 = { alwaysinline 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !6, i64 64}
!10 = !{!"_ZTS14BytePoolThread", !6, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !6, i64 64}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !11, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!16, !12, i64 124}
!16 = !{!"_ZTS14ByteThreadPool", !13, i64 0, !17, i64 32, !17, i64 33, !20, i64 40, !12, i64 120, !12, i64 124, !26, i64 128, !26, i64 132, !28, i64 136, !30, i64 176, !30, i64 224, !30, i64 272, !30, i64 320, !32, i64 368}
!17 = !{!"_ZTSSt6atomicIbE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIbE", !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt5dequeIP8ByteTaskSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt11_Deque_baseIP8ByteTaskSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseIP8ByteTaskSaIS1_EE11_Deque_implE", !24, i64 0}
!24 = !{!"_ZTSNSt11_Deque_baseIP8ByteTaskSaIS1_EE16_Deque_impl_dataE", !6, i64 0, !11, i64 8, !25, i64 16, !25, i64 48}
!25 = !{!"_ZTSSt15_Deque_iteratorIP8ByteTaskRS1_PS1_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt6atomicIiE", !27, i64 0}
!27 = !{!"_ZTSSt13__atomic_baseIiE", !12, i64 0}
!28 = !{!"_ZTSSt5mutex", !29, i64 0}
!29 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!30 = !{!"_ZTSSt18condition_variable", !31, i64 0}
!31 = !{!"_ZTSSt9__condvar", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIP14BytePoolThreadSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIP14BytePoolThreadSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP14BytePoolThreadSaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP14BytePoolThreadSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = !{!10, !11, i64 8}
!40 = !{!41, !41, i64 0}
!41 = !{!"vtable pointer", !8, i64 0}
!42 = distinct !{!42, !37}


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

%"class.std::unique_lock" = type <{ ptr, i8, [7 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

; 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 uwtable
define dso_local noundef ptr @_ZN14BytePoolThread10WorkerFuncEPv(ptr nocapture noundef readonly %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::unique_lock", align 8
  %3 = alloca %"class.std::unique_lock", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %6, label %._crit_edge, label %.lr.ph47

.lr.ph47:                                         ; preds = %1
  %7 = getelementptr inbounds i8, ptr %5, i64 136
  %8 = getelementptr inbounds i8, ptr %5, i64 128
  %9 = getelementptr inbounds i8, ptr %5, i64 124
  %10 = getelementptr inbounds i8, ptr %5, i64 320
  %11 = getelementptr inbounds i8, ptr %5, i64 224
  %12 = getelementptr inbounds i8, ptr %5, i64 40
  %13 = getelementptr inbounds i8, ptr %5, i64 132
  %14 = getelementptr inbounds i8, ptr %5, i64 272
  %15 = getelementptr inbounds i8, ptr %5, i64 176
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  br label %17

17:                                               ; preds = %.lr.ph47, %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %2, ptr noundef nonnull align 8 dereferenceable(40) %7)
  br label %18

18:                                               ; preds = %33, %17
  %19 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 5) #6
  %20 = load i32, ptr %9, align 4, !tbaa !14
  %21 = icmp sgt i32 %19, %20
  br i1 %21, label %24, label %22

22:                                               ; preds = %18
  %23 = call noundef zeroext i1 @_ZNK14ByteThreadPool9IsRunningEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %23, label %.critedge, label %24

24:                                               ; preds = %22, %18
  %25 = call noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %25, label %.critedge, label %26

26:                                               ; preds = %24
  %27 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 1, i32 noundef 5) #6
  %28 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 5) #6
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %26
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #6
  br label %32

.loopexit:                                        ; preds = %45
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %31

.loopexit.split-lp:                               ; preds = %32
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %31

31:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  resume { ptr, i32 } %lpad.phi

32:                                               ; preds = %30, %26
  invoke void @_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(9) %2)
          to label %33 unwind label %.loopexit.split-lp

33:                                               ; preds = %32
  %34 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_addEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 1, i32 noundef 5) #6
  br label %18, !llvm.loop !35

.critedge:                                        ; preds = %22, %24
  %35 = call noundef zeroext i1 @_ZNKSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  br i1 %35, label %.lr.ph, label %.critedge2

.lr.ph:                                           ; preds = %.critedge, %46
  %36 = call noundef zeroext i1 @_ZNK14ByteThreadPool9IsRunningEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %36, label %37, label %.critedge2

37:                                               ; preds = %.lr.ph
  %38 = call noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %38, label %.critedge2, label %39

39:                                               ; preds = %37
  %40 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_addEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef 1, i32 noundef 5) #6
  %41 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef 5) #6
  %42 = load i32, ptr %9, align 4, !tbaa !14
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %39
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  br label %45

45:                                               ; preds = %44, %39
  invoke void @_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(9) %2)
          to label %46 unwind label %.loopexit

46:                                               ; preds = %45
  %47 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef 1, i32 noundef 5) #6
  %48 = call noundef zeroext i1 @_ZNKSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  br i1 %48, label %.lr.ph, label %.critedge2, !llvm.loop !37

.critedge2:                                       ; preds = %37, %46, %.lr.ph, %.critedge
  %49 = call noundef zeroext i1 @_ZNKSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  br i1 %49, label %.thread, label %50

50:                                               ; preds = %.critedge2
  %51 = call noundef zeroext i1 @_ZNK14ByteThreadPool9IsRunningEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %51, label %52, label %.thread

52:                                               ; preds = %50
  %53 = call noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %53, label %.thread, label %54

.thread:                                          ; preds = %.critedge2, %52, %50
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %65

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  %56 = load ptr, ptr %55, align 8, !tbaa !38
  call void @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  %.not = icmp eq ptr %56, null
  br i1 %.not, label %65, label %57

57:                                               ; preds = %54
  %58 = load i64, ptr %16, align 8, !tbaa !39
  %59 = load ptr, ptr %56, align 8, !tbaa !40
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = load ptr, ptr %60, align 8
  call void %61(ptr noundef nonnull align 8 dereferenceable(8) %56, i64 noundef %58)
  %62 = load ptr, ptr %56, align 8, !tbaa !40
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load ptr, ptr %63, align 8
  call void %64(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  br label %65

65:                                               ; preds = %.thread, %57, %54
  %66 = call noundef zeroext i1 @_ZNK14ByteThreadPool8IsExitedEv(ptr noundef nonnull align 8 dereferenceable(392) %5)
  br i1 %66, label %._crit_edge, label %17, !llvm.loop !42

._crit_edge:                                      ; preds = %65, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %67 = getelementptr inbounds i8, ptr %5, i64 136
  call void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %3, ptr noundef nonnull align 8 dereferenceable(40) %67)
  %68 = getelementptr inbounds i8, ptr %5, i64 128
  %69 = call noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %68, i32 noundef 1, i32 noundef 5) #6
  %70 = call noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %68, i32 noundef 5) #6
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %._crit_edge
  %73 = getelementptr inbounds i8, ptr %5, i64 320
  call void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48) %73) #6
  br label %74

74:                                               ; preds = %72, %._crit_edge
  call void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  ret ptr null
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNKSt13__atomic_baseIiE4loadESt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIiE9fetch_subEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZNSt18condition_variable10notify_allEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

declare void @_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIiE9fetch_addEiSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt11unique_lockISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #2 align 2

attributes #0 = { mustprogress 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 = { 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 #3 = { alwaysinline 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !7, i64 64}
!6 = !{!"_ZTS14BytePoolThread", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !7, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !10, i64 8, !8, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!14 = !{!15, !11, i64 124}
!15 = !{!"_ZTS14ByteThreadPool", !12, i64 0, !16, i64 32, !16, i64 33, !19, i64 40, !11, i64 120, !11, i64 124, !25, i64 128, !25, i64 132, !27, i64 136, !29, i64 176, !29, i64 224, !29, i64 272, !29, i64 320, !31, i64 368}
!16 = !{!"_ZTSSt6atomicIbE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIbE", !18, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{!"_ZTSSt5queueIP8ByteTaskSt5dequeIS1_SaIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt5dequeIP8ByteTaskSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt11_Deque_baseIP8ByteTaskSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseIP8ByteTaskSaIS1_EE11_Deque_implE", !23, i64 0}
!23 = !{!"_ZTSNSt11_Deque_baseIP8ByteTaskSaIS1_EE16_Deque_impl_dataE", !7, i64 0, !10, i64 8, !24, i64 16, !24, i64 48}
!24 = !{!"_ZTSSt15_Deque_iteratorIP8ByteTaskRS1_PS1_E", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!25 = !{!"_ZTSSt6atomicIiE", !26, i64 0}
!26 = !{!"_ZTSSt13__atomic_baseIiE", !11, i64 0}
!27 = !{!"_ZTSSt5mutex", !28, i64 0}
!28 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!29 = !{!"_ZTSSt18condition_variable", !30, i64 0}
!30 = !{!"_ZTSSt9__condvar", !8, i64 0}
!31 = !{!"_ZTSSt6vectorIP14BytePoolThreadSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIP14BytePoolThreadSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIP14BytePoolThreadSaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP14BytePoolThreadSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = !{!7, !7, i64 0}
!39 = !{!6, !10, i64 8}
!40 = !{!41, !41, i64 0}
!41 = !{!"vtable pointer", !9, i64 0}
!42 = distinct !{!42, !36}


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