; 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::vector.169" = type { %"struct.std::_Vector_base.170" }
%"struct.std::_Vector_base.170" = type { %"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_List_iterator.168" = type { ptr }
%class.anon.176 = type <{ %"class.std::vector.169", %"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" }
%"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 }
%"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 }
%"struct.std::pair.174" = type { ptr, ptr }

@_ZTIN4dali12OperatorBaseE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN4dali17BatchSizeProviderE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi = external hidden unnamed_addr constant [104 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector.169", 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 i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %class.anon.176, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %20 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %21 = getelementptr inbounds %"class.dali::exec2::ExecGraph", ptr %20, i32 0, i32 0
  store ptr %21, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %24 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %11, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %27 = getelementptr inbounds %"struct.std::_List_iterator.168", ptr %12, i32 0, i32 0
  store ptr %26, ptr %27, align 8
  br label %28

28:                                               ; preds = %66, %4
  %29 = 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 %29, label %31, label %30

30:                                               ; preds = %28
  store i32 2, ptr %13, align 4
  br label %68

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %32 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  store ptr %32, ptr %14, align 8, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %33, i32 0, i32 9
  %35 = load i8, ptr %34, align 1, !tbaa !11, !range !43, !noundef !44
  %36 = trunc i8 %35 to i1
  br i1 %36, label %38, label %37

37:                                               ; preds = %31
  store i32 2, ptr %13, align 4
  br label %63

38:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %39, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %40, i32 0, i32 4
  %42 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  %43 = icmp eq ptr %42, null
  br i1 %43, label %46, label %44

44:                                               ; preds = %38
  %45 = call ptr @__dynamic_cast(ptr %42, ptr @_ZTIN4dali12OperatorBaseE, ptr @_ZTIN4dali17BatchSizeProviderE, i64 -2) #6
  br label %47

46:                                               ; preds = %38
  br label %47

47:                                               ; preds = %46, %44
  %48 = phi ptr [ %45, %44 ], [ null, %46 ]
  store ptr %48, ptr %16, align 8, !tbaa !5
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE12emplace_backIJS4_S6_EEERS7_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %50 unwind label %57

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %52 = getelementptr inbounds %"struct.std::pair.174", ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !45
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %50
  br label %62

56:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.6, i32 noundef 234, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi) #7
  unreachable

57:                                               ; preds = %47
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %17, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %18, align 4
  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
  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 %90

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %55
  store i32 0, ptr %13, align 4
  br label %63

63:                                               ; preds = %62, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %64 = load i32, ptr %13, align 4
  switch i32 %64, label %68 [
    i32 0, label %65
  ]

65:                                               ; preds = %63
  br label %66

66:                                               ; preds = %65
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %28

68:                                               ; preds = %63, %30
  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 %69

69:                                               ; preds = %68
  %70 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br i1 %70, label %71, label %72

71:                                               ; preds = %69
  call void @_ZNSt10shared_ptrIN4dali7tasking4TaskEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #6
  store i32 1, ptr %13, align 4
  br label %89

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #6
  %73 = getelementptr inbounds %class.anon.176, ptr %19, i32 0, i32 0
  invoke void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %74 unwind label %80

74:                                               ; preds = %72
  %75 = getelementptr inbounds %class.anon.176, ptr %19, i32 0, i32 1
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt10shared_ptrIN4dali13IterationDataEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(16) %76) #6
  %77 = getelementptr inbounds %class.anon.176, ptr %19, i32 0, i32 2
  %78 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %78, ptr %77, align 8, !tbaa !47
  invoke void @"_ZN4dali7tasking4Task6CreateIZNS_5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiE3$_0EES5_IS1_EOT_d"(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.8") align 8 %0, ptr noundef nonnull align 8 dereferenceable(44) %19, double noundef 0.000000e+00)
          to label %79 unwind label %84

79:                                               ; preds = %74
  call void @"_ZZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(44) %19) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #6
  store i32 1, ptr %13, align 4
  br label %89

80:                                               ; preds = %72
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %17, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %18, align 4
  br label %88

84:                                               ; preds = %74
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %17, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %18, align 4
  call void @"_ZZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(44) %19) #6
  br label %88

88:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #6
  br label %90

89:                                               ; preds = %79, %71
  call void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  ret void

90:                                               ; preds = %88, %57
  call void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %17, align 8
  %93 = load i32, ptr %18, align 4
  %94 = insertvalue { ptr, i32 } poison, ptr %92, 0
  %95 = insertvalue { ptr, i32 } %94, i32 %93, 1
  resume { ptr, i32 } %95
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4dali7tasking4Task6CreateIZNS_5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiE3$_0EES5_IS1_EOT_d"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8, ptr noundef nonnull align 8 dereferenceable(44), double noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind willreturn memory(read) }
attributes #3 = { 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 #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 = { 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 nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !30, i64 373}
!12 = !{!"_ZTSN4dali5exec28ExecNodeE", !13, i64 0, !15, i64 72, !16, i64 272, !16, i64 288, !19, i64 304, !25, i64 312, !27, i64 336, !29, i64 368, !30, i64 372, !30, i64 373, !30, i64 374, !31, i64 376, !31, i64 392, !31, i64 408, !33, i64 424, !30, i64 432, !39, i64 440, !42, i64 456}
!13 = !{!"_ZTSN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEE", !7, i64 0, !14, i64 64}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEE", !7, i64 0, !14, i64 192}
!16 = !{!"_ZTSSt10shared_ptrIN4dali7tasking9SemaphoreEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!19 = !{!"_ZTSSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12OperatorBaseESt14default_deleteIS1_ELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12OperatorBaseESt14default_deleteIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12OperatorBaseELb0EE", !6, i64 0}
!25 = !{!"_ZTSN4dali5exec27ExecEnvE", !6, i64 0, !26, i64 8}
!26 = !{!"_ZTSN4dali11AccessOrderE", !6, i64 0, !10, i64 8}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !14, i64 8, !7, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!29 = !{!"_ZTSN4dali6OpTypeE", !7, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !32, i64 0}
!32 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!33 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !37, i64 0}
!37 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !38, i64 0}
!38 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !6, i64 0}
!39 = !{!"_ZTSN4dali15CUDASharedEventE", !40, i64 0}
!40 = !{!"_ZTSSt10shared_ptrIvE", !41, i64 0}
!41 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!42 = !{!"_ZTSSt3any", !6, i64 0, !7, i64 8}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!46, !6, i64 8}
!46 = !{!"_ZTSSt4pairIPN4dali5exec28ExecNodeEPNS0_17BatchSizeProviderEE", !6, i64 0, !6, i64 8}
!47 = !{!48, !10, i64 40}
!48 = !{!"_ZTSZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiE3$_0", !49, i64 0, !53, i64 24, !10, i64 40}
!49 = !{!"_ZTSSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !54, i64 0}
!54 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, 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::vector.169" = type { %"struct.std::_Vector_base.170" }
%"struct.std::_Vector_base.170" = type { %"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>, std::allocator<std::pair<dali::exec2::ExecNode *, dali::BatchSizeProvider *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_List_iterator.168" = type { ptr }
%class.anon.176 = type <{ %"class.std::vector.169", %"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" }

@_ZTIN4dali12OperatorBaseE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN4dali17BatchSizeProviderE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi = external hidden unnamed_addr constant [104 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.169", align 8
  %6 = alloca %"struct.std::_List_iterator.168", align 8
  %7 = alloca %"struct.std::_List_iterator.168", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %class.anon.176, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %11 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  store ptr %11, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %12 = call ptr @_ZNSt7__cxx114listIN4dali5exec28ExecNodeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  store ptr %12, ptr %7, align 8
  %13 = 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 %13, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %4, %34
  %14 = call noundef nonnull align 8 dereferenceable(472) ptr @_ZNKSt14_List_iteratorIN4dali5exec28ExecNodeEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %15 = getelementptr inbounds i8, ptr %14, i64 373
  %16 = load i8, ptr %15, align 1, !tbaa !5, !range !41, !noundef !42
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %18, label %.critedge

18:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store ptr %14, ptr %8, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %19 = getelementptr inbounds i8, ptr %14, i64 304
  %20 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %21 = icmp eq ptr %20, null
  br i1 %21, label %24, label %22

22:                                               ; preds = %18
  %23 = call ptr @__dynamic_cast(ptr nonnull %20, ptr nonnull @_ZTIN4dali12OperatorBaseE, ptr nonnull @_ZTIN4dali17BatchSizeProviderE, i64 -2) #6
  br label %24

24:                                               ; preds = %18, %22
  %25 = phi ptr [ %23, %22 ], [ null, %18 ]
  store ptr %25, ptr %9, align 8, !tbaa !43
  %26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE12emplace_backIJS4_S6_EEERS7_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %27 unwind label %32

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !44
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %31, label %34

31:                                               ; preds = %27
  call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.6, i32 noundef 234, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEi) #7
  unreachable

32:                                               ; preds = %24
  %33 = 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
  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 %50

34:                                               ; preds = %27
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIN4dali5exec28ExecNodeEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %36 = 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 %36, label %.lr.ph, label %.critedge

.critedge:                                        ; preds = %34, %.lr.ph, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %37 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br i1 %37, label %38, label %39

38:                                               ; preds = %.critedge
  call void @_ZNSt10shared_ptrIN4dali7tasking4TaskEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr null) #6
  br label %49

39:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #6
  invoke void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %40 unwind label %44

40:                                               ; preds = %39
  %41 = getelementptr inbounds i8, ptr %10, i64 24
  call void @_ZNSt10shared_ptrIN4dali13IterationDataEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  %42 = getelementptr inbounds i8, ptr %10, i64 40
  store i32 %3, ptr %42, align 8, !tbaa !46
  invoke void @"_ZN4dali7tasking4Task6CreateIZNS_5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiE3$_0EES5_IS1_EOT_d"(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.8") align 8 %0, ptr noundef nonnull align 8 dereferenceable(44) %10, double noundef 0.000000e+00)
          to label %43 unwind label %46

43:                                               ; preds = %40
  call void @"_ZZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(44) %10) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  br label %49

44:                                               ; preds = %39
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %40
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @"_ZZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(44) %10) #6
  br label %48

48:                                               ; preds = %46, %44
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  br label %50

49:                                               ; preds = %43, %38
  call void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret void

50:                                               ; preds = %48, %32
  %.pn.pn = phi { ptr, i32 } [ %.pn, %48 ], [ %33, %32 ]
  call void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN4dali7tasking4Task6CreateIZNS_5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiE3$_0EES5_IS1_EOT_d"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.8") align 8, ptr noundef nonnull align 8 dereferenceable(44), double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #3 = { 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 #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 = { 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 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, !28, i64 373}
!6 = !{!"_ZTSN4dali5exec28ExecNodeE", !7, i64 0, !11, i64 72, !12, i64 272, !12, i64 288, !16, i64 304, !22, i64 312, !25, i64 336, !27, i64 368, !28, i64 372, !28, i64 373, !28, i64 374, !29, i64 376, !29, i64 392, !29, i64 408, !31, i64 424, !28, i64 432, !37, i64 440, !40, i64 456}
!7 = !{!"_ZTSN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEE", !8, i64 0, !10, i64 64}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN4dali11SmallVectorINS_5exec214ExecOutputDescELm4ESaIS2_EEE", !8, i64 0, !10, i64 192}
!12 = !{!"_ZTSSt10shared_ptrIN4dali7tasking9SemaphoreEE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking9SemaphoreELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12OperatorBaseESt14default_deleteIS1_ELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12OperatorBaseESt14default_deleteIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12OperatorBaseESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12OperatorBaseELb0EE", !14, i64 0}
!22 = !{!"_ZTSN4dali5exec27ExecEnvE", !14, i64 0, !23, i64 8}
!23 = !{!"_ZTSN4dali11AccessOrderE", !14, i64 0, !24, i64 8}
!24 = !{!"int", !8, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !10, i64 8, !8, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!27 = !{!"_ZTSN4dali6OpTypeE", !8, i64 0}
!28 = !{!"bool", !8, i64 0}
!29 = !{!"_ZTSSt10shared_ptrIN4dali7tasking4TaskEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN4dali7tasking4TaskELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!31 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !35, i64 0}
!35 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !14, i64 0}
!37 = !{!"_ZTSN4dali15CUDASharedEventE", !38, i64 0}
!38 = !{!"_ZTSSt10shared_ptrIvE", !39, i64 0}
!39 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!40 = !{!"_ZTSSt3any", !14, i64 0, !8, i64 8}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!14, !14, i64 0}
!44 = !{!45, !14, i64 8}
!45 = !{!"_ZTSSt4pairIPN4dali5exec28ExecNodeEPNS0_17BatchSizeProviderEE", !14, i64 0, !14, i64 8}
!46 = !{!47, !24, i64 40}
!47 = !{!"_ZTSZN4dali5exec29ExecGraph14InferBatchSizeERKSt10shared_ptrINS_13IterationDataEEiE3$_0", !48, i64 0, !52, i64 24, !24, i64 40}
!48 = !{!"_ZTSSt6vectorISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseISt4pairIPN4dali5exec28ExecNodeEPNS1_17BatchSizeProviderEESaIS7_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!52 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !53, i64 0}
!53 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}


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