; LLVM IR from NVIDIA/DALI :: dali/pipeline/executor/executor2 (exec_graph)

; 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::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.85" = type { %"class.std::__shared_ptr.86" }
%"class.std::__shared_ptr.86" = type { ptr, %"class.std::__shared_count" }
%"struct.std::_List_iterator.168" = type { ptr }
%"class.dali::exec2::ExecGraph" = type { %"class.std::__cxx11::list", %"class.std::__cxx11::list.134", %"class.std::unordered_map.139", i8, i8, i8, i8, %"class.std::shared_ptr.8" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<dali::exec2::ExecNode, std::allocator<dali::exec2::ExecNode>>::_List_impl" }
%"struct.std::__cxx11::_List_base<dali::exec2::ExecNode, std::allocator<dali::exec2::ExecNode>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::__cxx11::list.134" = type { %"class.std::__cxx11::_List_base.135" }
%"class.std::__cxx11::_List_base.135" = type { %"struct.std::__cxx11::_List_base<dali::exec2::ExecEdge, std::allocator<dali::exec2::ExecEdge>>::_List_impl" }
%"struct.std::__cxx11::_List_base<dali::exec2::ExecEdge, std::allocator<dali::exec2::ExecEdge>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"class.std::unordered_map.139" = type { %"class.std::_Hashtable.140" }
%"class.std::_Hashtable.140" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.dali::exec2::WorkspaceParams" = type <{ ptr, %"class.std::shared_ptr.62", i32, [4 x i8] }>
%"class.std::shared_ptr.62" = type { %"class.std::__shared_ptr.63" }
%"class.std::__shared_ptr.63" = type { ptr, %"class.std::__shared_count" }
%"struct.dali::IterationData" = type { i64, i32, %"class.dali::OperatorTraces", %"class.std::shared_ptr.165" }
%"class.dali::OperatorTraces" = type { %"class.std::mutex", %"class.std::map.160" }
%"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::map.160" = type { %"class.std::_Rb_tree.161" }
%"class.std::_Rb_tree.161" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<void>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<void>>>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<void>>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::less<void>>>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::shared_ptr.165" = type { %"class.std::__shared_ptr.166" }
%"class.std::__shared_ptr.166" = type { ptr, %"class.std::__shared_count" }
%"class.dali::exec2::ExecNode" = type { %"class.dali::SmallVector", %"class.dali::SmallVector.3", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::unique_ptr", %"struct.dali::exec2::ExecEnv", %"class.std::__cxx11::basic_string", i32, i8, i8, i8, %"class.std::shared_ptr.8", %"class.std::shared_ptr.8", %"class.std::shared_ptr.8", %"class.std::unique_ptr.11", i8, %"class.dali::CUDASharedEvent", %"class.std::any" }
%"class.dali::SmallVector" = type { %union.anon.2, i64 }
%union.anon.2 = type { %struct.anon, [48 x i8] }
%struct.anon = type { ptr, i64 }
%"class.dali::SmallVector.3" = type { %union.anon.6, i64 }
%union.anon.6 = type { %struct.anon.7, [176 x i8] }
%struct.anon.7 = type { ptr, i64 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"struct.dali::exec2::ExecEnv" = type { ptr, %"class.dali::AccessOrder" }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unique_ptr.11" = type { %"struct.std::__uniq_ptr_data.12" }
%"struct.std::__uniq_ptr_data.12" = type { %"class.std::__uniq_ptr_impl.13" }
%"class.std::__uniq_ptr_impl.13" = type { %"class.std::tuple.14" }
%"class.std::tuple.14" = type { %"struct.std::_Tuple_impl.15" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Head_base.18" }
%"struct.std::_Head_base.18" = type { ptr }
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.19" }
%"class.std::shared_ptr.19" = type { %"class.std::__shared_ptr.20" }
%"class.std::__shared_ptr.20" = type { ptr, %"class.std::__shared_count" }
%"class.std::any" = type { ptr, %"union.std::any::_Storage" }
%"union.std::any::_Storage" = type { ptr }

@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZTISt11logic_error = external constant ptr
@.str.18 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZTISt13runtime_error = external constant 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
declare dso_local void @_ZN4dali5exec28ExecNode14CreateMainTaskERKNS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(472), ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali7tasking4Task9SubscribeERKSt10shared_ptrIS1_Ei(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec29ExecGraph16PrepareIterationERKNS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(28) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::shared_ptr.8", align 8
  %8 = alloca %"class.std::shared_ptr.8", align 8
  %9 = alloca %"class.std::shared_ptr.85", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.std::_List_iterator.168", align 8
  %12 = alloca %"struct.std::_List_iterator.168", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.std::_List_iterator.168", align 8
  %16 = alloca %"struct.std::_List_iterator.168", align 8
  %17 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  %19 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 0
  %20 = call noundef zeroext i1 @_ZNKSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br i1 %20, label %21, label %28

21:                                               ; preds = %2
  %22 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef @.str.17)
          to label %23 unwind label %24

23:                                               ; preds = %21
  call void @__cxa_throw(ptr %22, ptr @_ZTISt11logic_error, ptr @_ZNSt11logic_errorD1Ev) #7
  unreachable

24:                                               ; preds = %21
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %5, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %6, align 4
  call void @__cxa_free_exception(ptr %22) #6
  br label %141

28:                                               ; preds = %2
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.dali::exec2::WorkspaceParams", ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = icmp sle i32 %31, 0
  br i1 %32, label %33, label %40

33:                                               ; preds = %28
  %34 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef @.str.18)
          to label %35 unwind label %36

35:                                               ; preds = %33
  call void @__cxa_throw(ptr %34, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
  unreachable

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  call void @__cxa_free_exception(ptr %34) #6
  br label %141

40:                                               ; preds = %28
  call void @_ZN4dali5exec29ExecGraph4SortEv(ptr noundef nonnull align 8 dereferenceable(128) %18)
  call void @_ZN4dali5exec29ExecGraph8ValidateEv(ptr noundef nonnull align 8 dereferenceable(128) %18)
  call void @_ZN4dali5exec29ExecGraph7AnalyzeEv(ptr noundef nonnull align 8 dereferenceable(128) %18)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %41 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 7
  call void @_ZNSt10shared_ptrIN4dali7tasking4TaskEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.dali::exec2::WorkspaceParams", ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.dali::exec2::WorkspaceParams", ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !9
  invoke void @_ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.8") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %18, ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %46)
          to label %47 unwind label %59

47:                                               ; preds = %40
  %48 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 7
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4dali7tasking4TaskEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  %50 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 7
  %51 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %50) #6
  br i1 %51, label %52, label %68

52:                                               ; preds = %47
  %53 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br i1 %53, label %54, label %67

54:                                               ; preds = %52
  %55 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 7
  %56 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %55) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_4TaskEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %57 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %56, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %58 unwind label %63

58:                                               ; preds = %54
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %67

59:                                               ; preds = %40
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %5, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  br label %140

63:                                               ; preds = %54
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %5, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %140

67:                                               ; preds = %58, %52
  br label %76

68:                                               ; preds = %47
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.dali::exec2::WorkspaceParams", ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.dali::exec2::WorkspaceParams", ptr %72, i32 0, i32 1
  %74 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %73) #6
  %75 = getelementptr inbounds %"struct.dali::IterationData", ptr %74, i32 0, i32 1
  store i32 %71, ptr %75, align 8, !tbaa !15
  br label %76

76:                                               ; preds = %68, %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %77 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 0
  store ptr %77, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #6
  %80 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %11, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #6
  %83 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %12, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  br label %84

84:                                               ; preds = %94, %76
  %85 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %100

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %88 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  store ptr %88, ptr %13, align 8, !tbaa !5
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN4dali5exec28ExecNode8NextIterEv(ptr noundef nonnull align 8 dereferenceable(472) %89)
          to label %90 unwind label %96

90:                                               ; preds = %87
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4dali5exec28ExecNode14CreateMainTaskERKNS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(472) %91, ptr noundef nonnull align 8 dereferenceable(28) %92)
          to label %93 unwind label %96

93:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %94

94:                                               ; preds = %93
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %84

96:                                               ; preds = %90, %87
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %5, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %6, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %140

100:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %101 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 0
  store ptr %101, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #6
  %104 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %15, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #6
  %107 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %16, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  br label %108

108:                                              ; preds = %136, %100
  %109 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %109, label %111, label %110

110:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %138

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %112 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  store ptr %112, ptr %17, align 8, !tbaa !5
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN4dali5exec28ExecNode11AddDataDepsEv(ptr noundef nonnull align 8 dereferenceable(472) %113)
          to label %114 unwind label %131

114:                                              ; preds = %111
  %115 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN4dali5exec28ExecNode14CreateAuxTasksEv(ptr noundef nonnull align 8 dereferenceable(472) %115)
          to label %116 unwind label %131

116:                                              ; preds = %114
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %117, i32 0, i32 0
  %119 = invoke noundef zeroext i1 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(72) %118)
          to label %120 unwind label %131

120:                                              ; preds = %116
  br i1 %119, label %121, label %135

121:                                              ; preds = %120
  %122 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 7
  %123 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %122) #6
  br i1 %123, label %124, label %135

124:                                              ; preds = %121
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %125, i32 0, i32 12
  %127 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %126) #6
  %128 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 7
  %129 = invoke noundef ptr @_ZN4dali7tasking4Task9SubscribeERKSt10shared_ptrIS1_Ei(ptr noundef nonnull align 8 dereferenceable(536) %127, ptr noundef nonnull align 8 dereferenceable(16) %128, i32 noundef 0)
          to label %130 unwind label %131

130:                                              ; preds = %124
  br label %135

131:                                              ; preds = %124, %116, %114, %111
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %5, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %140

135:                                              ; preds = %130, %121, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %136

136:                                              ; preds = %135
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br label %108

138:                                              ; preds = %110
  %139 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %18, i32 0, i32 6
  store i8 1, ptr %139, align 1, !tbaa !31
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  ret void

140:                                              ; preds = %131, %96, %63, %59
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %141

141:                                              ; preds = %140, %36, %24
  %142 = load ptr, ptr %5, align 8
  %143 = load i32, ptr %6, align 4
  %144 = insertvalue { ptr, i32 } poison, ptr %142, 0
  %145 = insertvalue { ptr, i32 } %144, i32 %143, 1
  resume { ptr, i32 } %145
}

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @_ZN4dali5exec29ExecGraph4SortEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

declare void @_ZN4dali5exec29ExecGraph8ValidateEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

declare void @_ZN4dali5exec29ExecGraph7AnalyzeEv(ptr noundef nonnull align 8 dereferenceable(128)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !14, i64 24}
!10 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !6, i64 0, !11, i64 8, !14, i64 24}
!11 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !12, i64 0}
!12 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 8}
!16 = !{!"_ZTSN4dali13IterationDataE", !17, i64 0, !14, i64 8, !18, i64 16, !29, i64 104}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN4dali14OperatorTracesE", !19, i64 0, !21, i64 40}
!19 = !{!"_ZTSSt5mutex", !20, i64 0}
!20 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!21 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IS5_S5_St4lessIvESaISt4pairIKS5_S5_EEES7_SaIS8_IS9_SC_EEE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE13_Rb_tree_implISA_Lb1EEE", !24, i64 0, !26, i64 8}
!24 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !25, i64 0}
!25 = !{!"_ZTSSt4lessIvE"}
!26 = !{!"_ZTSSt15_Rb_tree_header", !27, i64 0, !17, i64 32}
!27 = !{!"_ZTSSt18_Rb_tree_node_base", !28, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!29 = !{!"_ZTSSt10shared_ptrIN4dali10CheckpointEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !13, i64 8}
!31 = !{!32, !46, i64 107}
!32 = !{!"_ZTSN4dali5exec29ExecGraphE", !33, i64 0, !38, i64 24, !41, i64 48, !46, i64 104, !46, i64 105, !46, i64 106, !46, i64 107, !47, i64 112}
!33 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EEE", !34, i64 0}
!34 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EEE", !35, i64 0}
!35 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EE10_List_implE", !36, i64 0}
!36 = !{!"_ZTSNSt8__detail17_List_node_headerE", !37, i64 0, !17, i64 16}
!37 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!38 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecEdgeESaIS3_EEE", !39, i64 0}
!39 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EEE", !40, i64 0}
!40 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EE10_List_implE", !36, i64 0}
!41 = !{!"_ZTSSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5exec28ExecNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_PN4dali5exec28ExecNodeEESaISA_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !43, i64 16, !17, i64 24, !44, i64 32, !6, i64 48}
!43 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!44 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !45, i64 0, !17, i64 8}
!45 = !{!"float", !7, i64 0}
!46 = !{!"bool", !7, i64 0}
!47 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !48, i64 0}
!48 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !13, i64 8}


; 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::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.85" = type { %"class.std::__shared_ptr.86" }
%"class.std::__shared_ptr.86" = type { ptr, %"class.std::__shared_count" }
%"struct.std::_List_iterator.168" = type { ptr }

@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@_ZTISt11logic_error = external constant ptr
@.str.18 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; 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
declare dso_local void @_ZN4dali5exec28ExecNode14CreateMainTaskERKNS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(472), ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4dali7tasking4Task9SubscribeERKSt10shared_ptrIS1_Ei(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec29ExecGraph16PrepareIterationERKNS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(28) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::shared_ptr.8", align 8
  %4 = alloca %"class.std::shared_ptr.8", align 8
  %5 = alloca %"class.std::shared_ptr.85", align 8
  %6 = alloca %"struct.std::_List_iterator.168", align 8
  %7 = alloca %"struct.std::_List_iterator.168", align 8
  %8 = alloca %"struct.std::_List_iterator.168", align 8
  %9 = alloca %"struct.std::_List_iterator.168", align 8
  %10 = tail call noundef zeroext i1 @_ZNKSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br i1 %10, label %11, label %16

11:                                               ; preds = %2
  %12 = tail call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull @.str.17)
          to label %13 unwind label %14

13:                                               ; preds = %11
  tail call void @__cxa_throw(ptr nonnull %12, ptr nonnull @_ZTISt11logic_error, ptr nonnull @_ZNSt11logic_errorD1Ev) #7
  unreachable

14:                                               ; preds = %11
  %15 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %12) #6
  br label %76

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %19 = icmp slt i32 %18, 1
  br i1 %19, label %20, label %25

20:                                               ; preds = %16
  %21 = tail call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull @.str.18)
          to label %22 unwind label %23

22:                                               ; preds = %20
  tail call void @__cxa_throw(ptr nonnull %21, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #7
  unreachable

23:                                               ; preds = %20
  %24 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %21) #6
  br label %76

25:                                               ; preds = %16
  tail call void @_ZN4dali5exec29ExecGraph4SortEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  tail call void @_ZN4dali5exec29ExecGraph8ValidateEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  tail call void @_ZN4dali5exec29ExecGraph7AnalyzeEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %26 = getelementptr inbounds i8, ptr %0, i64 112
  call void @_ZNSt10shared_ptrIN4dali7tasking4TaskEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = load i32, ptr %17, align 8, !tbaa !5
  invoke void @_ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.8") align 8 %4, ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef %28)
          to label %29 unwind label %38

29:                                               ; preds = %25
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4dali7tasking4TaskEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %31 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br i1 %31, label %32, label %42

32:                                               ; preds = %29
  %33 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  br i1 %33, label %34, label %46

34:                                               ; preds = %32
  %35 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt10shared_ptrIN4dali7tasking8WaitableEEC2INS1_4TaskEvEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  %36 = invoke noundef ptr @_ZN4dali7tasking4Task7SucceedERKSt10shared_ptrINS0_8WaitableEE(ptr noundef nonnull align 8 dereferenceable(536) %35, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %37 unwind label %40

37:                                               ; preds = %34
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %46

38:                                               ; preds = %25
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %75

40:                                               ; preds = %34
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali7tasking8WaitableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %75

42:                                               ; preds = %29
  %43 = load i32, ptr %17, align 8, !tbaa !5
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  store i32 %43, ptr %45, align 8, !tbaa !14
  br label %46

46:                                               ; preds = %32, %37, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %47 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %47, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %48 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %48, ptr %7, align 8
  %49 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %49, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %54, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %50 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %50, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %51 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %51, ptr %9, align 8
  %52 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %52, label %.lr.ph24, label %._crit_edge25

.lr.ph:                                           ; preds = %46, %54
  %53 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @_ZN4dali5exec28ExecNode8NextIterEv(ptr noundef nonnull align 8 dereferenceable(472) %53)
  invoke void @_ZN4dali5exec28ExecNode14CreateMainTaskERKNS0_15WorkspaceParamsE(ptr noundef nonnull align 8 dereferenceable(472) %53, ptr noundef nonnull align 8 dereferenceable(28) %1)
          to label %54 unwind label %57

54:                                               ; preds = %.lr.ph
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %56 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %56, label %.lr.ph, label %._crit_edge

57:                                               ; preds = %.lr.ph
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %75

._crit_edge25:                                    ; preds = %72, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %59 = getelementptr inbounds i8, ptr %0, i64 107
  store i8 1, ptr %59, align 1, !tbaa !30
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  ret void

.lr.ph24:                                         ; preds = %._crit_edge, %72
  %60 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  invoke void @_ZN4dali5exec28ExecNode11AddDataDepsEv(ptr noundef nonnull align 8 dereferenceable(472) %60)
          to label %61 unwind label %70

61:                                               ; preds = %.lr.ph24
  invoke void @_ZN4dali5exec28ExecNode14CreateAuxTasksEv(ptr noundef nonnull align 8 dereferenceable(472) %60)
          to label %62 unwind label %70

62:                                               ; preds = %61
  %63 = call noundef zeroext i1 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(72) %60)
  br i1 %63, label %64, label %72

64:                                               ; preds = %62
  %65 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br i1 %65, label %66, label %72

66:                                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %60, i64 392
  %68 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %67) #6
  %69 = invoke noundef ptr @_ZN4dali7tasking4Task9SubscribeERKSt10shared_ptrIS1_Ei(ptr noundef nonnull align 8 dereferenceable(536) %68, ptr noundef nonnull align 8 dereferenceable(16) %26, i32 noundef 0)
          to label %72 unwind label %70

70:                                               ; preds = %66, %61, %.lr.ph24
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %75

72:                                               ; preds = %66, %64, %62
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %74 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIN4dali5exec28ExecNodeEES5_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %74, label %.lr.ph24, label %._crit_edge25

75:                                               ; preds = %70, %57, %40, %38
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %71, %70 ], [ %41, %40 ], [ %39, %38 ]
  call void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %76

76:                                               ; preds = %75, %23, %14
  %.pn21 = phi { ptr, i32 } [ %15, %14 ], [ %24, %23 ], [ %.pn, %75 ]
  resume { ptr, i32 } %.pn21
}

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @_ZN4dali5exec29ExecGraph4SortEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

declare void @_ZN4dali5exec29ExecGraph8ValidateEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

declare void @_ZN4dali5exec29ExecGraph7AnalyzeEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn }

!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, !13, i64 24}
!6 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !7, i64 0, !10, i64 8, !13, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !11, i64 0}
!11 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !12, i64 8}
!12 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"_ZTSN4dali13IterationDataE", !16, i64 0, !13, i64 8, !17, i64 16, !28, i64 104}
!16 = !{!"long", !8, i64 0}
!17 = !{!"_ZTSN4dali14OperatorTracesE", !18, i64 0, !20, i64 40}
!18 = !{!"_ZTSSt5mutex", !19, i64 0}
!19 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!20 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IS5_S5_St4lessIvESaISt4pairIKS5_S5_EEES7_SaIS8_IS9_SC_EEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE13_Rb_tree_implISA_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessIvE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !16, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!28 = !{!"_ZTSSt10shared_ptrIN4dali10CheckpointEE", !29, i64 0}
!29 = !{!"_ZTSSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !12, i64 8}
!30 = !{!31, !45, i64 107}
!31 = !{!"_ZTSN4dali5exec29ExecGraphE", !32, i64 0, !37, i64 24, !40, i64 48, !45, i64 104, !45, i64 105, !45, i64 106, !45, i64 107, !46, i64 112}
!32 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EEE", !33, i64 0}
!33 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EEE", !34, i64 0}
!34 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecNodeESaIS3_EE10_List_implE", !35, i64 0}
!35 = !{!"_ZTSNSt8__detail17_List_node_headerE", !36, i64 0, !16, i64 16}
!36 = !{!"_ZTSNSt8__detail15_List_node_baseE", !7, i64 0, !7, i64 8}
!37 = !{!"_ZTSNSt7__cxx114listIN4dali5exec28ExecEdgeESaIS3_EEE", !38, i64 0}
!38 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EEE", !39, i64 0}
!39 = !{!"_ZTSNSt7__cxx1110_List_baseIN4dali5exec28ExecEdgeESaIS3_EE10_List_implE", !35, i64 0}
!40 = !{!"_ZTSSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPN4dali5exec28ExecNodeESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEE", !41, i64 0}
!41 = !{!"_ZTSSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_PN4dali5exec28ExecNodeEESaISA_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !7, i64 0, !16, i64 8, !42, i64 16, !16, i64 24, !43, i64 32, !7, i64 48}
!42 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!43 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !44, i64 0, !16, i64 8}
!44 = !{!"float", !8, i64 0}
!45 = !{!"bool", !8, i64 0}
!46 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !47, i64 0}
!47 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !12, i64 8}


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