; LLVM IR from NVIDIA/DALI :: dali/pipeline/executor/executor2/exec_node_task.ll (ZN4dali5exec26OpTask5RunOpEv)

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

%"struct.dali::DomainTimeRange" = type { i8 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.166" = type { %"class.std::__shared_ptr.167" }
%"class.std::__shared_ptr.167" = type { ptr, %"class.std::__shared_count" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.dali::GPUBackend" = type { i8 }
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.3" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.dali::CPUBackend" = type { i8 }
%"class.dali::exec2::OpTask" = type { %"class.dali::exec2::ExecNodeTask", i8, ptr, %"class.dali::SmallVector.6" }
%"class.dali::exec2::ExecNodeTask" = type { ptr, ptr, %"struct.dali::exec2::WorkspaceParams", %"class.std::unique_ptr", %"class.dali::CUDASharedEvent" }
%"struct.dali::exec2::WorkspaceParams" = type <{ ptr, %"class.std::shared_ptr", i32, [4 x i8] }>
%"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.2" }
%"struct.std::_Head_base.2" = type { ptr }
%"class.dali::SmallVector.6" = type { %union.anon.9, i64 }
%union.anon.9 = type { %struct.anon.10 }
%struct.anon.10 = type { ptr, i64 }
%"struct.dali::exec2::OpTask::Meta" = type { %struct.anon.12 }
%struct.anon.12 = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", 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.dali::exec2::ExecNode" = type { %"class.dali::SmallVector.13", %"class.dali::SmallVector.18", %"class.std::shared_ptr.23", %"class.std::shared_ptr.23", %"class.std::unique_ptr.26", %"struct.dali::exec2::ExecEnv", %"class.std::__cxx11::basic_string", i32, i8, i8, i8, %"class.std::shared_ptr.34", %"class.std::shared_ptr.34", %"class.std::shared_ptr.34", %"class.std::unique_ptr", i8, %"class.dali::CUDASharedEvent", %"class.std::any" }
%"class.dali::SmallVector.13" = type { %union.anon.16, i64 }
%union.anon.16 = type { %struct.anon.17, [48 x i8] }
%struct.anon.17 = type { ptr, i64 }
%"class.dali::SmallVector.18" = type { %union.anon.21, i64 }
%union.anon.21 = type { %struct.anon.22, [176 x i8] }
%struct.anon.22 = type { ptr, i64 }
%"class.std::shared_ptr.23" = type { %"class.std::__shared_ptr.24" }
%"class.std::__shared_ptr.24" = type { ptr, %"class.std::__shared_count" }
%"class.std::unique_ptr.26" = type { %"struct.std::__uniq_ptr_data.27" }
%"struct.std::__uniq_ptr_data.27" = type { %"class.std::__uniq_ptr_impl.28" }
%"class.std::__uniq_ptr_impl.28" = type { %"class.std::tuple.29" }
%"class.std::tuple.29" = type { %"struct.std::_Tuple_impl.30" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base.33" }
%"struct.std::_Head_base.33" = type { ptr }
%"struct.dali::exec2::ExecEnv" = type { ptr, %"class.dali::AccessOrder" }
%"class.std::shared_ptr.34" = type { %"class.std::__shared_ptr.35" }
%"class.std::__shared_ptr.35" = type { ptr, %"class.std::__shared_count" }
%"class.std::any" = type { ptr, %"union.std::any::_Storage" }
%"union.std::any::_Storage" = type { ptr }
%"struct.dali::IterationData" = type { i64, i32, %"class.dali::OperatorTraces", %"class.std::shared_ptr.166" }
%"class.dali::OperatorTraces" = type { %"class.std::mutex", %"class.std::map.169" }
%"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.169" = type { %"class.std::_Rb_tree.170" }
%"class.std::_Rb_tree.170" = 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 }

@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 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 uwtable
define dso_local void @_ZN4dali5exec26OpTask5RunOpEv(ptr noundef nonnull align 8 dereferenceable(112) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.dali::DomainTimeRange", align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::shared_ptr", align 8
  %7 = alloca %"class.std::shared_ptr.166", align 8
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca %"class.dali::AccessOrder", align 8
  %11 = alloca { ptr, i32 }, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.dali::GPUBackend", align 1
  %15 = alloca %"class.dali::CUDASharedEvent", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.dali::CPUBackend", align 1
  %18 = alloca %"class.dali::AccessOrder", align 8
  %19 = alloca { ptr, i32 }, align 8
  %20 = alloca %"class.dali::CUDASharedEvent", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  %22 = getelementptr inbounds %"class.dali::exec2::OpTask", ptr %21, i32 0, i32 1
  %23 = load i8, ptr %22, align 8, !tbaa !9, !range !29, !noundef !30
  %24 = trunc i8 %23 to i1
  br i1 %24, label %54, label %25

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #8
  %26 = getelementptr inbounds %"class.dali::exec2::OpTask", ptr %21, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !31
  %28 = getelementptr inbounds %"struct.dali::exec2::OpTask::Meta", ptr %27, i32 0, i32 0
  %29 = getelementptr inbounds %struct.anon.12, ptr %28, i32 0, i32 2
  %30 = getelementptr inbounds %"class.dali::exec2::OpTask", ptr %21, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !31
  %32 = getelementptr inbounds %"struct.dali::exec2::OpTask::Meta", ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds %struct.anon.12, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 8, !tbaa !32
  call void @_ZN4dali15DomainTimeRangeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef %34)
  %35 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !37
  %37 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %36, i32 0, i32 4
  %38 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  %39 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %40 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  %41 = load ptr, ptr %38, align 8, !tbaa !38
  %42 = getelementptr inbounds ptr, ptr %41, i64 3
  %43 = load ptr, ptr %42, align 8
  invoke void %43(ptr noundef nonnull align 8 dereferenceable(400) %38, ptr noundef nonnull align 8 dereferenceable(664) %40)
          to label %44 unwind label %50

44:                                               ; preds = %25
  invoke void @_ZN4dali5exec26OpTask17ResetInputLayoutsEv(ptr noundef nonnull align 8 dereferenceable(112) %21)
          to label %45 unwind label %50

45:                                               ; preds = %44
  %46 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %47 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  %48 = invoke noundef zeroext i1 @_ZN4dali19PropagateSourceInfoERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(664) %47)
          to label %49 unwind label %50

49:                                               ; preds = %45
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  br label %54

50:                                               ; preds = %45, %44, %25
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %4, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %5, align 4
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  br label %190

54:                                               ; preds = %49, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #8
  %55 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %56 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #8
  call void @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE16GetIterationDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(664) %56)
  %57 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  br label %61

59:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.8, i32 noundef 313, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv) #9
  unreachable

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %58
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %62 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %63 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %62) #8
  call void @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE16GetIterationDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(664) %63)
  %64 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  %65 = getelementptr inbounds %"struct.dali::IterationData", ptr %64, i32 0, i32 3
  call void @_ZNSt10shared_ptrIN4dali10CheckpointEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %65) #8
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  %66 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  br i1 %66, label %67, label %103

67:                                               ; preds = %61
  %68 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !37
  %70 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %69, i32 0, i32 4
  %71 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #8
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  %73 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !37
  %75 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %74, i32 0, i32 6
  %76 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %75) #8
  %77 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %78 = extractvalue { i64, ptr } %76, 0
  store i64 %78, ptr %77, align 8
  %79 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %80 = extractvalue { i64, ptr } %76, 1
  store ptr %80, ptr %79, align 8
  %81 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %82 = load i64, ptr %81, align 8
  %83 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8
  %85 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN4dali10Checkpoint15GetOpCheckpointESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(144) %72, i64 %82, ptr %84)
          to label %86 unwind label %99

86:                                               ; preds = %67
  %87 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %88 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %87) #8
  %89 = invoke { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %88)
          to label %90 unwind label %99

90:                                               ; preds = %86
  store { ptr, i32 } %89, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %11, i64 12, i1 false)
  %91 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8
  %93 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %94 = load i32, ptr %93, align 8
  %95 = load ptr, ptr %71, align 8, !tbaa !38
  %96 = getelementptr inbounds ptr, ptr %95, i64 8
  %97 = load ptr, ptr %96, align 8
  invoke void %97(ptr noundef nonnull align 8 dereferenceable(400) %71, ptr noundef nonnull align 8 dereferenceable(64) %85, ptr %92, i32 %94)
          to label %98 unwind label %99

98:                                               ; preds = %90
  br label %103

99:                                               ; preds = %90, %86, %67
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %4, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %5, align 4
  call void @_ZNSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %190

103:                                              ; preds = %98, %61
  call void @_ZNSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  %104 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %105 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %104) #8
  %106 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE10has_streamEv(ptr noundef nonnull align 8 dereferenceable(664) %105)
  br i1 %106, label %107, label %189

107:                                              ; preds = %103
  %108 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %109 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %108) #8
  %110 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9has_eventEv(ptr noundef nonnull align 8 dereferenceable(664) %109)
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  br label %114

112:                                              ; preds = %107
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.8, i32 noundef 318, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv) #9
  unreachable

113:                                              ; No predecessors!
  br label %114

114:                                              ; preds = %113, %111
  %115 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 4
  %116 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %117 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %116) #8
  %118 = call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5eventEv(ptr noundef nonnull align 8 dereferenceable(664) %117)
  %119 = call noundef zeroext i1 @_ZNK4dali15CUDASharedEventeqEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef %118) #8
  br i1 %119, label %120, label %121

120:                                              ; preds = %114
  br label %123

121:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.8, i32 noundef 319, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv) #9
  unreachable

122:                                              ; No predecessors!
  br label %123

123:                                              ; preds = %122, %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !40
  br label %124

124:                                              ; preds = %177, %123
  %125 = load i32, ptr %12, align 4, !tbaa !40
  %126 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %127 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %126) #8
  %128 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %127)
  %129 = icmp slt i32 %125, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %181

131:                                              ; preds = %124
  %132 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %133 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %132) #8
  %134 = load i32, ptr %12, align 4, !tbaa !40
  %135 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %133, i32 noundef %134)
  br i1 %135, label %136, label %148

136:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %137 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %138 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %137) #8
  %139 = load i32, ptr %12, align 4, !tbaa !40
  %140 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %138, i32 noundef %139)
  store ptr %140, ptr %13, align 8, !tbaa !5
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 4
  call void @_ZN4dali15CUDASharedEventC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %142) #8
  invoke void @_ZN4dali10TensorListINS_10GPUBackendEE15set_ready_eventENS_15CUDASharedEventE(ptr noundef nonnull align 8 dereferenceable(304) %141, ptr noundef %15)
          to label %143 unwind label %144

143:                                              ; preds = %136
  call void @_ZN4dali15CUDASharedEventD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %176

144:                                              ; preds = %136
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %4, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %5, align 4
  call void @_ZN4dali15CUDASharedEventD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %180

148:                                              ; preds = %131
  %149 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %150 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %149) #8
  %151 = load i32, ptr %12, align 4, !tbaa !40
  %152 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %150, i32 noundef %151)
  br i1 %152, label %153, label %175

153:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %154 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %155 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %154) #8
  %156 = load i32, ptr %12, align 4, !tbaa !40
  %157 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %155, i32 noundef %156)
  store ptr %157, ptr %16, align 8, !tbaa !5
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = call noundef zeroext i1 @_ZNK4dali10TensorListINS_10CPUBackendEE9is_pinnedEv(ptr noundef nonnull align 8 dereferenceable(304) %158)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  br i1 %159, label %160, label %164

160:                                              ; preds = %153
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %161)
  store { ptr, i32 } %162, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %19, i64 12, i1 false)
  %163 = call noundef zeroext i1 @_ZNK4dali11AccessOrder9is_deviceEv(ptr noundef nonnull align 8 dereferenceable(12) %18) #8
  br label %164

164:                                              ; preds = %160, %153
  %165 = phi i1 [ false, %153 ], [ %163, %160 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br i1 %165, label %166, label %174

166:                                              ; preds = %164
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 4
  call void @_ZN4dali15CUDASharedEventC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %168) #8
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE15set_ready_eventENS_15CUDASharedEventE(ptr noundef nonnull align 8 dereferenceable(304) %167, ptr noundef %20)
          to label %169 unwind label %170

169:                                              ; preds = %166
  call void @_ZN4dali15CUDASharedEventD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  br label %174

170:                                              ; preds = %166
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %4, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %5, align 4
  call void @_ZN4dali15CUDASharedEventD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %180

174:                                              ; preds = %169, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %175

175:                                              ; preds = %174, %148
  br label %176

176:                                              ; preds = %175, %143
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %12, align 4, !tbaa !40
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %12, align 4, !tbaa !40
  br label %124, !llvm.loop !41

180:                                              ; preds = %170, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %190

181:                                              ; preds = %130
  %182 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %183 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %182) #8
  %184 = call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5eventEv(ptr noundef nonnull align 8 dereferenceable(664) %183)
  %185 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %21, i32 0, i32 3
  %186 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %185) #8
  %187 = call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6streamEv(ptr noundef nonnull align 8 dereferenceable(664) %186)
  %188 = call i32 @cudaEventRecord(ptr noundef %184, ptr noundef %187)
  call void @_Z9CUDA_CALLI9cudaErrorEvT_(i32 noundef %188)
  br label %189

189:                                              ; preds = %181, %103
  ret void

190:                                              ; preds = %180, %99, %50
  %191 = load ptr, ptr %4, align 8
  %192 = load i32, ptr %5, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664)) #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE10has_streamEv(ptr noundef nonnull align 8 dereferenceable(664)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9has_eventEv(ptr noundef nonnull align 8 dereferenceable(664)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664)) #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9CUDA_CALLI9cudaErrorEvT_(i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali15DomainTimeRangeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #1 align 2

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

declare noundef zeroext i1 @_ZN4dali19PropagateSourceInfoERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(664)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE16GetIterationDataEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(664)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali13IterationDataELN9__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_accessIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN4dali10CheckpointEEC2ERKS2_(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 noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10CheckpointELN9__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_accessIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN4dali10Checkpoint15GetOpCheckpointESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(144), i64, ptr) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) #2 align 2

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

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

declare i32 @cudaEventRecord(ptr noundef, ptr noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__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 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 #8 = { nounwind }
attributes #9 = { 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, !26, i64 72}
!10 = !{!"_ZTSN4dali5exec26OpTaskE", !11, i64 0, !26, i64 72, !6, i64 80, !27, i64 88}
!11 = !{!"_ZTSN4dali5exec212ExecNodeTaskE", !6, i64 0, !6, i64 8, !12, i64 16, !17, i64 48, !23, i64 56}
!12 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !6, i64 0, !13, i64 8, !16, i64 24}
!13 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !14, i64 0}
!14 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !6, i64 0}
!23 = !{!"_ZTSN4dali15CUDASharedEventE", !24, i64 0}
!24 = !{!"_ZTSSt10shared_ptrIvE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN4dali11SmallVectorIiLm4ESaIiEEE", !7, i64 0, !28, i64 16}
!28 = !{!"long", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!10, !6, i64 80}
!32 = !{!33, !16, i64 96}
!33 = !{!"_ZTSN4dali5exec26OpTask4MetaE", !34, i64 0}
!34 = !{!"_ZTSN4dali5exec26OpTask4MetaUt_E", !35, i64 0, !35, i64 32, !35, i64 64, !16, i64 96}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !36, i64 0, !28, i64 8, !7, i64 16}
!36 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!37 = !{!11, !6, i64 8}
!38 = !{!39, !39, i64 0}
!39 = !{!"vtable pointer", !8, i64 0}
!40 = !{!16, !16, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.dali::DomainTimeRange" = type { i8 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.166" = type { %"class.std::__shared_ptr.167" }
%"class.std::__shared_ptr.167" = type { ptr, %"class.std::__shared_count" }
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.3" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>

@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 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 uwtable
define dso_local void @_ZN4dali5exec26OpTask5RunOpEv(ptr noundef nonnull align 8 dereferenceable(112) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.dali::DomainTimeRange", align 1
  %3 = alloca %"class.std::shared_ptr", align 8
  %4 = alloca %"class.std::shared_ptr.166", align 8
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %"class.dali::CUDASharedEvent", align 8
  %7 = alloca %"class.dali::AccessOrder", align 8
  %8 = alloca %"class.dali::CUDASharedEvent", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !28, !noundef !29
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %34, label %12

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #7
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  %14 = load ptr, ptr %13, align 8, !tbaa !30
  %15 = getelementptr inbounds i8, ptr %14, i64 64
  %16 = getelementptr inbounds i8, ptr %14, i64 96
  %17 = load i32, ptr %16, align 8, !tbaa !31
  call void @_ZN4dali15DomainTimeRangeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !36
  %20 = getelementptr inbounds i8, ptr %19, i64 304
  %21 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %23 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %24 = load ptr, ptr %21, align 8, !tbaa !37
  %25 = getelementptr inbounds i8, ptr %24, i64 24
  %26 = load ptr, ptr %25, align 8
  invoke void %26(ptr noundef nonnull align 8 dereferenceable(400) %21, ptr noundef nonnull align 8 dereferenceable(664) %23)
          to label %27 unwind label %32

27:                                               ; preds = %12
  invoke void @_ZN4dali5exec26OpTask17ResetInputLayoutsEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
          to label %28 unwind label %32

28:                                               ; preds = %27
  %29 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %30 = invoke noundef zeroext i1 @_ZN4dali19PropagateSourceInfoERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(664) %29)
          to label %31 unwind label %32

31:                                               ; preds = %28
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  br label %34

32:                                               ; preds = %28, %27, %12
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4dali15DomainTimeRangeD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #7
  br label %107

34:                                               ; preds = %31, %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %35 = getelementptr inbounds i8, ptr %0, i64 48
  %36 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE16GetIterationDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %3, ptr noundef nonnull align 8 dereferenceable(664) %36)
  %37 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.8, i32 noundef 313, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv) #8
  unreachable

39:                                               ; preds = %34
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %40 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  call void @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE16GetIterationDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %5, ptr noundef nonnull align 8 dereferenceable(664) %40)
  %41 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  %42 = getelementptr inbounds i8, ptr %41, i64 104
  call void @_ZNSt10shared_ptrIN4dali10CheckpointEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %42) #7
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  %43 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br i1 %43, label %44, label %64

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !36
  %47 = getelementptr inbounds i8, ptr %46, i64 304
  %48 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  %49 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  %50 = load ptr, ptr %45, align 8, !tbaa !36
  %51 = getelementptr inbounds i8, ptr %50, i64 336
  %52 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %51) #7
  %53 = extractvalue { i64, ptr } %52, 0
  %54 = extractvalue { i64, ptr } %52, 1
  %55 = invoke noundef nonnull align 8 dereferenceable(64) ptr @_ZN4dali10Checkpoint15GetOpCheckpointESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(144) %49, i64 %53, ptr %54)
          to label %56 unwind label %62

56:                                               ; preds = %44
  %57 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %58 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %57)
  %.fca.0.extract9 = extractvalue { ptr, i32 } %58, 0
  %.fca.1.extract10 = extractvalue { ptr, i32 } %58, 1
  %59 = load ptr, ptr %48, align 8, !tbaa !37
  %60 = getelementptr inbounds i8, ptr %59, i64 64
  %61 = load ptr, ptr %60, align 8
  invoke void %61(ptr noundef nonnull align 8 dereferenceable(400) %48, ptr noundef nonnull align 8 dereferenceable(64) %55, ptr %.fca.0.extract9, i32 %.fca.1.extract10)
          to label %64 unwind label %62

62:                                               ; preds = %56, %44
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %107

64:                                               ; preds = %56, %39
  call void @_ZNSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  %65 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %66 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE10has_streamEv(ptr noundef nonnull align 8 dereferenceable(664) %65)
  br i1 %66, label %67, label %106

67:                                               ; preds = %64
  %68 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %69 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9has_eventEv(ptr noundef nonnull align 8 dereferenceable(664) %68)
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.8, i32 noundef 318, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv) #8
  unreachable

71:                                               ; preds = %67
  %72 = getelementptr inbounds i8, ptr %0, i64 56
  %73 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %74 = call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5eventEv(ptr noundef nonnull align 8 dereferenceable(664) %73)
  %75 = call noundef zeroext i1 @_ZNK4dali15CUDASharedEventeqEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef %74) #7
  br i1 %75, label %.preheader, label %79

.preheader:                                       ; preds = %71
  %76 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %77 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %76)
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  br label %85

79:                                               ; preds = %71
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.8, i32 noundef 319, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask5RunOpEv) #8
  unreachable

._crit_edge:                                      ; preds = %101, %.preheader
  %80 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %81 = call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5eventEv(ptr noundef nonnull align 8 dereferenceable(664) %80)
  %82 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %83 = call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6streamEv(ptr noundef nonnull align 8 dereferenceable(664) %82)
  %84 = call i32 @cudaEventRecord(ptr noundef %81, ptr noundef %83)
  call void @_Z9CUDA_CALLI9cudaErrorEvT_(i32 noundef %84)
  br label %106

85:                                               ; preds = %.lr.ph, %101
  %.02123 = phi i32 [ 0, %.lr.ph ], [ %102, %101 ]
  %86 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %87 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %86, i32 noundef %.02123)
  %88 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br i1 %87, label %89, label %91

89:                                               ; preds = %85
  %90 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %88, i32 noundef %.02123)
  call void @_ZN4dali15CUDASharedEventC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %72) #7
  call void @_ZN4dali10TensorListINS_10GPUBackendEE15set_ready_eventENS_15CUDASharedEventE(ptr noundef nonnull align 8 dereferenceable(304) %90, ptr noundef nonnull %6)
  call void @_ZN4dali15CUDASharedEventD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %101

91:                                               ; preds = %85
  %92 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %88, i32 noundef %.02123)
  br i1 %92, label %93, label %101

93:                                               ; preds = %91
  %94 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %95 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %94, i32 noundef %.02123)
  %96 = call noundef zeroext i1 @_ZNK4dali10TensorListINS_10CPUBackendEE9is_pinnedEv(ptr noundef nonnull align 8 dereferenceable(304) %95)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  br i1 %96, label %97, label %.critedge

97:                                               ; preds = %93
  %98 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %95)
  %.fca.0.extract = extractvalue { ptr, i32 } %98, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %98, 1
  store ptr %.fca.0.extract, ptr %7, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %99 = call noundef zeroext i1 @_ZNK4dali11AccessOrder9is_deviceEv(ptr noundef nonnull align 8 dereferenceable(12) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  call void @_ZN4dali15CUDASharedEventC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %72) #7
  call void @_ZN4dali10TensorListINS_10CPUBackendEE15set_ready_eventENS_15CUDASharedEventE(ptr noundef nonnull align 8 dereferenceable(304) %95, ptr noundef nonnull %8)
  call void @_ZN4dali15CUDASharedEventD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %101

.critedge:                                        ; preds = %93
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %101

101:                                              ; preds = %97, %100, %.critedge, %89, %91
  %102 = add nuw nsw i32 %.02123, 1
  %103 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %104 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %103)
  %105 = icmp slt i32 %102, %104
  br i1 %105, label %85, label %._crit_edge, !llvm.loop !39

106:                                              ; preds = %._crit_edge, %64
  ret void

107:                                              ; preds = %62, %32
  %.pn = phi { ptr, i32 } [ %63, %62 ], [ %33, %32 ]
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(664) ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEdeEv(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 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE10has_streamEv(ptr noundef nonnull align 8 dereferenceable(664)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9CUDA_CALLI9cudaErrorEvT_(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali15DomainTimeRangeC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #1 align 2

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

declare noundef zeroext i1 @_ZN4dali19PropagateSourceInfoERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(664)) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali13IterationDataELN9__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_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 void @_ZNSt10shared_ptrIN4dali10CheckpointEEC2ERKS2_(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 noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10CheckpointELN9__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_accessIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN4dali10Checkpoint15GetOpCheckpointESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(144), i64, ptr) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2 align 2

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

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

declare i32 @cudaEventRecord(ptr noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 #7 = { nounwind }
attributes #8 = { 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, !25, i64 72}
!6 = !{!"_ZTSN4dali5exec26OpTaskE", !7, i64 0, !25, i64 72, !8, i64 80, !26, i64 88}
!7 = !{!"_ZTSN4dali5exec212ExecNodeTaskE", !8, i64 0, !8, i64 8, !11, i64 16, !16, i64 48, !22, i64 56}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !8, i64 0, !12, i64 8, !15, i64 24}
!12 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !8, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !8, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali9WorkspaceESt14default_deleteIS1_ELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIN4dali9WorkspaceESt14default_deleteIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali9WorkspaceESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPN4dali9WorkspaceELb0EE", !8, i64 0}
!22 = !{!"_ZTSN4dali15CUDASharedEventE", !23, i64 0}
!23 = !{!"_ZTSSt10shared_ptrIvE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !8, i64 0, !14, i64 8}
!25 = !{!"bool", !9, i64 0}
!26 = !{!"_ZTSN4dali11SmallVectorIiLm4ESaIiEEE", !9, i64 0, !27, i64 16}
!27 = !{!"long", !9, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!6, !8, i64 80}
!31 = !{!32, !15, i64 96}
!32 = !{!"_ZTSN4dali5exec26OpTask4MetaE", !33, i64 0}
!33 = !{!"_ZTSN4dali5exec26OpTask4MetaUt_E", !34, i64 0, !34, i64 32, !34, i64 64, !15, i64 96}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !35, i64 0, !27, i64 8, !9, i64 16}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!36 = !{!7, !8, i64 8}
!37 = !{!38, !38, i64 0}
!38 = !{!"vtable pointer", !10, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


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