; LLVM IR from NVIDIA/DALI :: dali/core/exec/tasking (scheduler)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.dali::tasking::Task" = type { %"class.dali::tasking::CompletionEvent.base", i32, %"class.std::shared_ptr", ptr, ptr, %"class.dali::tasking::TaskResults", double, %"class.std::function", %"class.dali::SmallVector.5", %"class.dali::SmallVector.0", %"class.dali::SmallVector.10" }
%"class.dali::tasking::CompletionEvent.base" = type <{ %"class.dali::tasking::Waitable", %"struct.std::atomic" }>
%"class.dali::tasking::Waitable" = type { ptr, %"class.std::enable_shared_from_this", %"class.dali::SmallVector" }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.dali::SmallVector" = type { %union.anon, i64 }
%union.anon = type { %struct.anon, [112 x i8] }
%struct.anon = type { ptr, i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.dali::tasking::TaskResults" = type <{ %"class.dali::SmallVector.0", i8, i8, [6 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.dali::SmallVector.5" = type { %union.anon.8, i64 }
%union.anon.8 = type { %struct.anon.9, [48 x i8] }
%struct.anon.9 = type { ptr, i64 }
%"class.dali::SmallVector.0" = type { %union.anon.3, i64 }
%union.anon.3 = type { %struct.anon.4, [48 x i8] }
%struct.anon.4 = type { ptr, i64 }
%"class.dali::SmallVector.10" = type { %union.anon.13, i64 }
%union.anon.13 = type { %struct.anon.14, [48 x i8] }
%struct.anon.14 = type { ptr, i64 }
%"class.std::shared_ptr.15" = type { %"class.std::__shared_ptr.16" }
%"class.std::__shared_ptr.16" = type { ptr, %"class.std::__shared_count" }
%"class.dali::tasking::Scheduler" = type <{ %"class.std::mutex", %"class.std::condition_variable", %"class.std::condition_variable", %"class.dali::tasking::detail::TaskList", %"class.std::priority_queue", i8, [7 x i8] }>
%"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.dali::tasking::detail::TaskList" = type { %"class.std::shared_ptr", ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<dali::tasking::Task>, std::allocator<std::shared_ptr<dali::tasking::Task>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<dali::tasking::Task>, std::allocator<std::shared_ptr<dali::tasking::Task>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<dali::tasking::Task>, std::allocator<std::shared_ptr<dali::tasking::Task>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<dali::tasking::Task>, std::allocator<std::shared_ptr<dali::tasking::Task>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali7tasking9Scheduler24AcquireAllAndMoveToReadyERSt10shared_ptrINS0_4TaskEE = external hidden unnamed_addr constant [70 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN4dali7tasking9Scheduler24AcquireAllAndMoveToReadyERSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(193) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  %18 = getelementptr inbounds %"class.dali::tasking::Task", ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = icmp sle i32 %19, 1
  br i1 %20, label %21, label %22

21:                                               ; preds = %2
  br label %24

22:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 23, ptr noundef @__PRETTY_FUNCTION__._ZN4dali7tasking9Scheduler24AcquireAllAndMoveToReadyERSt10shared_ptrINS0_4TaskEE) #7
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  %27 = getelementptr inbounds %"class.dali::tasking::Task", ptr %26, i32 0, i32 8
  store ptr %27, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72) %28)
          to label %30 unwind label %105

30:                                               ; preds = %24
  store ptr %29, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72) %31)
          to label %33 unwind label %105

33:                                               ; preds = %30
  store ptr %32, ptr %8, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %53, %33
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = icmp ne ptr %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  store i32 2, ptr %9, align 4
  br label %56

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %40, ptr %10, align 8, !tbaa !5
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  %43 = load ptr, ptr %42, align 8, !tbaa !33
  %44 = getelementptr inbounds ptr, ptr %43, i64 0
  %45 = load ptr, ptr %44, align 8
  %46 = invoke noundef zeroext i1 %45(ptr noundef nonnull align 8 dereferenceable(160) %42)
          to label %47 unwind label %105

47:                                               ; preds = %39
  br i1 %46, label %49, label %48

48:                                               ; preds = %47
  store i1 false, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %50

49:                                               ; preds = %47
  store i32 0, ptr %9, align 4
  br label %50

50:                                               ; preds = %49, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %51 = load i32, ptr %9, align 4
  switch i32 %51, label %56 [
    i32 0, label %52
  ]

52:                                               ; preds = %50
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.std::shared_ptr.15", ptr %54, i32 1
  store ptr %55, ptr %7, align 8, !tbaa !5
  br label %34

56:                                               ; preds = %50, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %57 = load i32, ptr %9, align 4
  switch i32 %57, label %108 [
    i32 2, label %58
    i32 1, label %103
  ]

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %59) #6
  %61 = getelementptr inbounds %"class.dali::tasking::Task", ptr %60, i32 0, i32 8
  store ptr %61, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72) %62)
          to label %64 unwind label %105

64:                                               ; preds = %58
  store ptr %63, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72) %65)
          to label %67 unwind label %105

67:                                               ; preds = %64
  store ptr %66, ptr %13, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %86, %67
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = icmp ne ptr %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %89

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %74, ptr %14, align 8, !tbaa !5
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %75) #6
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = invoke noundef zeroext i1 @_ZN4dali7tasking8Waitable10TryAcquireERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(160) %76, ptr noundef nonnull align 8 dereferenceable(16) %77)
          to label %79 unwind label %105

79:                                               ; preds = %73
  br i1 %78, label %85, label %80

80:                                               ; preds = %79
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.2)
          to label %82 unwind label %105

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %84 unwind label %105

84:                                               ; preds = %82
  call void @abort() #7
  unreachable

85:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.std::shared_ptr.15", ptr %87, i32 1
  store ptr %88, ptr %12, align 8, !tbaa !5
  br label %68

89:                                               ; preds = %72
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %90) #6
  %92 = getelementptr inbounds %"class.dali::tasking::Task", ptr %91, i32 0, i32 8
  invoke void @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(72) %92)
          to label %93 unwind label %105

93:                                               ; preds = %89
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %94) #6
  %96 = getelementptr inbounds %"class.dali::tasking::Task", ptr %95, i32 0, i32 1
  store i32 2, ptr %96, align 4, !tbaa !9
  %97 = getelementptr inbounds %"class.dali::tasking::Scheduler", ptr %15, i32 0, i32 3
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4dali7tasking6detail8TaskList6RemoveERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 8 dereferenceable(16) %98)
          to label %99 unwind label %105

99:                                               ; preds = %93
  %100 = getelementptr inbounds %"class.dali::tasking::Scheduler", ptr %15, i32 0, i32 4
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt14priority_queueISt10shared_ptrIN4dali7tasking4TaskEESt6vectorIS4_SaIS4_EENS2_9Scheduler16TaskPriorityLessEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(25) %100, ptr noundef nonnull align 8 dereferenceable(16) %101)
          to label %102 unwind label %105

102:                                              ; preds = %99
  store i1 true, ptr %3, align 1
  br label %103

103:                                              ; preds = %102, %56
  %104 = load i1, ptr %3, align 1
  ret i1 %104

105:                                              ; preds = %99, %93, %89, %82, %80, %73, %64, %58, %39, %30, %24
  %106 = landingpad { ptr, i32 }
          catch ptr null
  %107 = extractvalue { ptr, i32 } %106, 0
  call void @__clang_call_terminate(ptr %107) #7
  unreachable

108:                                              ; preds = %56
  unreachable
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72)) #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dali7tasking8Waitable10TryAcquireERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 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)) #3

; Function Attrs: noreturn nounwind
declare void @abort() #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali7tasking6detail8TaskList6RemoveERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt10shared_ptrIN4dali7tasking4TaskEESt6vectorIS4_SaIS4_EENS2_9Scheduler16TaskPriorityLessEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(16)) #5 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 = { noreturn 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noinline noreturn nounwind uwtable "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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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, !22, i64 164}
!10 = !{!"_ZTSN4dali7tasking4TaskE", !11, i64 0, !22, i64 164, !23, i64 168, !6, i64 184, !6, i64 192, !26, i64 200, !28, i64 280, !29, i64 288, !31, i64 320, !27, i64 392, !32, i64 464}
!11 = !{!"_ZTSN4dali7tasking15CompletionEventE", !12, i64 0, !19, i64 160}
!12 = !{!"_ZTSN4dali7tasking8WaitableE", !13, i64 8, !17, i64 24}
!13 = !{!"_ZTSSt23enable_shared_from_thisIN4dali7tasking8WaitableEE", !14, i64 0}
!14 = !{!"_ZTSSt8weak_ptrIN4dali7tasking8WaitableEE", !15, i64 0}
!15 = !{!"_ZTSSt10__weak_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!17 = !{!"_ZTSN4dali11SmallVectorISt8weak_ptrINS_7tasking4TaskEELm8ESaIS4_EEE", !7, i64 0, !18, i64 128}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt6atomicIbE", !20, i64 0}
!20 = !{!"_ZTSSt13__atomic_baseIbE", !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN4dali7tasking9TaskStateE", !7, i64 0}
!23 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !25, i64 8}
!25 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!26 = !{!"_ZTSN4dali7tasking11TaskResultsE", !27, i64 0, !21, i64 72, !21, i64 73}
!27 = !{!"_ZTSN4dali11SmallVectorISt10shared_ptrINS_7tasking10TaskResultEELm4ESaIS4_EEE", !7, i64 0, !18, i64 64}
!28 = !{!"double", !7, i64 0}
!29 = !{!"_ZTSSt8functionIFvPN4dali7tasking4TaskEEE", !30, i64 0, !6, i64 24}
!30 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!31 = !{!"_ZTSN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EEE", !7, i64 0, !18, i64 64}
!32 = !{!"_ZTSN4dali11SmallVectorISt10shared_ptrINS_7tasking10ReleasableEELm4ESaIS4_EEE", !7, i64 0, !18, i64 64}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !8, i64 0}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali7tasking9Scheduler24AcquireAllAndMoveToReadyERSt10shared_ptrINS0_4TaskEE = external hidden unnamed_addr constant [70 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN4dali7tasking9Scheduler24AcquireAllAndMoveToReadyERSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(193) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %4 = getelementptr inbounds i8, ptr %3, i64 164
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp slt i32 %5, 2
  br i1 %6, label %8, label %7

7:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 23, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali7tasking9Scheduler24AcquireAllAndMoveToReadyERSt10shared_ptrINS0_4TaskEE) #6
  unreachable

8:                                                ; preds = %2
  %9 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %10 = getelementptr inbounds i8, ptr %9, i64 320
  %11 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72) %10)
          to label %12 unwind label %.loopexit.split-lp.loopexit.split-lp

12:                                               ; preds = %8
  %13 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72) %10)
          to label %.preheader33 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader33:                                     ; preds = %12
  %.not41 = icmp eq ptr %11, %13
  br i1 %.not41, label %._crit_edge, label %.lr.ph

14:                                               ; preds = %20
  %15 = getelementptr inbounds i8, ptr %.02542, i64 16
  %.not = icmp eq ptr %15, %13
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader33, %14
  %.02542 = phi ptr [ %15, %14 ], [ %11, %.preheader33 ]
  %16 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %.02542) #5
  %17 = load ptr, ptr %16, align 8, !tbaa !32
  %18 = load ptr, ptr %17, align 8
  %19 = invoke noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(160) %16)
          to label %20 unwind label %.loopexit.split-lp.loopexit

20:                                               ; preds = %.lr.ph
  br i1 %19, label %14, label %.loopexit37

._crit_edge:                                      ; preds = %14, %.preheader33
  %21 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %22 = getelementptr inbounds i8, ptr %21, i64 320
  %23 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72) %22)
          to label %24 unwind label %.loopexit.split-lp.loopexit.split-lp

24:                                               ; preds = %._crit_edge
  %25 = invoke noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72) %22)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader:                                       ; preds = %24
  %.not2944 = icmp eq ptr %23, %25
  br i1 %.not2944, label %._crit_edge47, label %.lr.ph46

26:                                               ; preds = %32
  %27 = getelementptr inbounds i8, ptr %.02645, i64 16
  %.not29 = icmp eq ptr %27, %25
  br i1 %.not29, label %._crit_edge47, label %.lr.ph46

._crit_edge47:                                    ; preds = %26, %.preheader
  %28 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %29 = getelementptr inbounds i8, ptr %28, i64 320
  invoke void @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(72) %29)
          to label %38 unwind label %.loopexit.split-lp.loopexit.split-lp

.lr.ph46:                                         ; preds = %.preheader, %26
  %.02645 = phi ptr [ %27, %26 ], [ %23, %.preheader ]
  %30 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %.02645) #5
  %31 = invoke noundef zeroext i1 @_ZN4dali7tasking8Waitable10TryAcquireERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(160) %30, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %32 unwind label %.loopexit

32:                                               ; preds = %.lr.ph46
  br i1 %31, label %26, label %33

33:                                               ; preds = %32
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.2)
          to label %35 unwind label %.loopexit.split-lp.loopexit.split-lp

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %37 unwind label %.loopexit.split-lp.loopexit.split-lp

37:                                               ; preds = %35
  tail call void @abort() #6
  unreachable

38:                                               ; preds = %._crit_edge47
  %39 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %40 = getelementptr inbounds i8, ptr %39, i64 164
  store i32 2, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN4dali7tasking6detail8TaskList6RemoveERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(16) %1)
  %42 = getelementptr inbounds i8, ptr %0, i64 160
  invoke void @_ZNSt14priority_queueISt10shared_ptrIN4dali7tasking4TaskEESt6vectorIS4_SaIS4_EENS2_9Scheduler16TaskPriorityLessEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(25) %42, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %.loopexit37 unwind label %.loopexit.split-lp.loopexit.split-lp

.loopexit37:                                      ; preds = %20, %38
  %.not40 = phi i1 [ true, %38 ], [ false, %20 ]
  ret i1 %.not40

.loopexit:                                        ; preds = %.lr.ph46
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.lr.ph
  %lpad.loopexit34 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %38, %._crit_edge47, %35, %33, %24, %._crit_edge, %12, %8
  %lpad.loopexit.split-lp35 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit34, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp35, %.loopexit.split-lp.loopexit.split-lp ]
  %43 = extractvalue { ptr, i32 } %lpad.phi, 0
  tail call void @__clang_call_terminate(ptr %43) #6
  unreachable
}

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dali7tasking8Waitable10TryAcquireERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 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: noreturn nounwind
declare void @abort() local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali7tasking6detail8TaskList6RemoveERKSt10shared_ptrINS0_4TaskEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueISt10shared_ptrIN4dali7tasking4TaskEESt6vectorIS4_SaIS4_EENS2_9Scheduler16TaskPriorityLessEE4pushEOS4_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 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 = { noreturn 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 #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 = { noinline noreturn nounwind uwtable "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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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 164}
!6 = !{!"_ZTSN4dali7tasking4TaskE", !7, i64 0, !21, i64 164, !22, i64 168, !12, i64 184, !12, i64 192, !25, i64 200, !27, i64 280, !28, i64 288, !30, i64 320, !26, i64 392, !31, i64 464}
!7 = !{!"_ZTSN4dali7tasking15CompletionEventE", !8, i64 0, !18, i64 160}
!8 = !{!"_ZTSN4dali7tasking8WaitableE", !9, i64 8, !16, i64 24}
!9 = !{!"_ZTSSt23enable_shared_from_thisIN4dali7tasking8WaitableEE", !10, i64 0}
!10 = !{!"_ZTSSt8weak_ptrIN4dali7tasking8WaitableEE", !11, i64 0}
!11 = !{!"_ZTSSt10__weak_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !15, i64 8}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!16 = !{!"_ZTSN4dali11SmallVectorISt8weak_ptrINS_7tasking4TaskEELm8ESaIS4_EEE", !13, i64 0, !17, i64 128}
!17 = !{!"long", !13, i64 0}
!18 = !{!"_ZTSSt6atomicIbE", !19, i64 0}
!19 = !{!"_ZTSSt13__atomic_baseIbE", !20, i64 0}
!20 = !{!"bool", !13, i64 0}
!21 = !{!"_ZTSN4dali7tasking9TaskStateE", !13, i64 0}
!22 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !24, i64 8}
!24 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!25 = !{!"_ZTSN4dali7tasking11TaskResultsE", !26, i64 0, !20, i64 72, !20, i64 73}
!26 = !{!"_ZTSN4dali11SmallVectorISt10shared_ptrINS_7tasking10TaskResultEELm4ESaIS4_EEE", !13, i64 0, !17, i64 64}
!27 = !{!"double", !13, i64 0}
!28 = !{!"_ZTSSt8functionIFvPN4dali7tasking4TaskEEE", !29, i64 0, !12, i64 24}
!29 = !{!"_ZTSSt14_Function_base", !13, i64 0, !12, i64 16}
!30 = !{!"_ZTSN4dali11SmallVectorISt10shared_ptrINS_7tasking8WaitableEELm4ESaIS4_EEE", !13, i64 0, !17, i64 64}
!31 = !{!"_ZTSN4dali11SmallVectorISt10shared_ptrINS_7tasking10ReleasableEELm4ESaIS4_EEE", !13, i64 0, !17, i64 64}
!32 = !{!33, !33, i64 0}
!33 = !{!"vtable pointer", !14, i64 0}


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