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

; 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.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.std::unordered_set" = type { %"class.std::_Hashtable.179" }
%"class.std::_Hashtable.179" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::hash.183" = type { i8 }
%"struct.std::equal_to.186" = type { i8 }
%"class.std::allocator.198" = type { i8 }
%class.anon.201 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"class.dali::CPUBackend" = type { i8 }
%"class.dali::GPUBackend" = type { i8 }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::shared_ptr.152" = type { %"class.std::__shared_ptr.153" }
%"class.std::__shared_ptr.153" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"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::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::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::__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::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::exec2::ExecNodeTask::OperatorIO" = type { %"class.std::shared_ptr.152", %"class.dali::AccessOrder" }
%"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 }
%"class.std::shared_ptr.166" = type { %"class.std::__shared_ptr.167" }
%"class.std::__shared_ptr.167" = type { ptr, %"class.std::__shared_count" }

@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec26OpTask18SetWorkspaceInputsEv = external hidden unnamed_addr constant [47 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 @_ZN4dali5exec26OpTask18SetWorkspaceInputsEv(ptr noundef nonnull align 8 dereferenceable(112) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.dali::AccessOrder", align 8
  %5 = alloca { ptr, i32 }, align 8
  %6 = alloca %"class.std::unordered_set", align 8
  %7 = alloca %"struct.std::hash.183", align 1
  %8 = alloca %"struct.std::equal_to.186", align 1
  %9 = alloca %"class.std::allocator.198", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::unordered_set", align 8
  %13 = alloca %"struct.std::hash.183", align 1
  %14 = alloca %"struct.std::equal_to.186", align 1
  %15 = alloca %"class.std::allocator.198", align 1
  %16 = alloca ptr, align 8
  %17 = alloca %class.anon.201, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.dali::CPUBackend", align 1
  %20 = alloca %"class.dali::GPUBackend", align 1
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.std::pair", align 8
  %25 = alloca %"class.std::shared_ptr.152", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %28 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.dali::AccessOrder", align 8
  %31 = alloca { ptr, i32 }, align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %34 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %35 = alloca ptr, align 8
  %36 = alloca %"class.dali::AccessOrder", align 8
  %37 = alloca { ptr, i32 }, align 8
  %38 = alloca %"class.std::shared_ptr", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %39 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !9
  %40 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %41 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %42 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %41)
  %43 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %44 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  %45 = call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %44)
  %46 = add nsw i32 %42, %45
  %47 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %48, i32 0, i32 0
  %50 = call noundef i64 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72) %49)
  %51 = trunc i64 %50 to i32
  %52 = icmp eq i32 %46, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %1
  br label %56

54:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.8, i32 noundef 337, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask18SetWorkspaceInputsEv) #9
  unreachable

55:                                               ; No predecessors!
  br label %56

56:                                               ; preds = %55, %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #8
  %57 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %58 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  %59 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %58)
  store { ptr, i32 } %59, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %5, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #8
  %60 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %61 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #8
  %62 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %61)
  %63 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %64 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  %65 = call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %64)
  %66 = add nsw i32 %62, %65
  %67 = sext i32 %66 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #8
  call void @_ZNSaIP10CUevent_stEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2EmRKS3_RKS5_RKS6_(ptr noundef nonnull align 8 dereferenceable(56) %6, i64 noundef %67, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %68 unwind label %103

68:                                               ; preds = %56
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr %12) #8
  %69 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %70 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %69) #8
  %71 = invoke noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %70)
          to label %72 unwind label %107

72:                                               ; preds = %68
  %73 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %74 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #8
  %75 = invoke noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %74)
          to label %76 unwind label %107

76:                                               ; preds = %72
  %77 = add nsw i32 %71, %75
  %78 = sext i32 %77 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  call void @_ZNSaIP10CUevent_stEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2EmRKS3_RKS5_RKS6_(ptr noundef nonnull align 8 dereferenceable(56) %12, i64 noundef %78, ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %79 unwind label %111

79:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %80 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %81, i32 0, i32 4
  %83 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %82) #8
  %84 = invoke noundef nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400) %83)
          to label %85 unwind label %115

85:                                               ; preds = %79
  %86 = invoke noundef nonnull align 8 dereferenceable(608) ptr @_ZNK4dali6OpSpec9GetSchemaEv(ptr noundef nonnull align 8 dereferenceable(328) %84)
          to label %87 unwind label %115

87:                                               ; preds = %85
  store ptr %86, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #8
  %88 = getelementptr inbounds %class.anon.201, ptr %17, i32 0, i32 0
  store ptr %39, ptr %88, align 8, !tbaa !26
  %89 = getelementptr inbounds %class.anon.201, ptr %17, i32 0, i32 1
  store ptr %3, ptr %89, align 8, !tbaa !5
  %90 = getelementptr inbounds %class.anon.201, ptr %17, i32 0, i32 2
  store ptr %4, ptr %90, align 8, !tbaa !5
  %91 = getelementptr inbounds %class.anon.201, ptr %17, i32 0, i32 3
  store ptr %12, ptr %91, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.anon.201, ptr %17, i32 0, i32 4
  store ptr %6, ptr %92, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.anon.201, ptr %17, i32 0, i32 5
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %94, ptr %93, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %145, %87
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %98 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %97) #8
  %99 = invoke noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %98)
          to label %100 unwind label %119

100:                                              ; preds = %95
  %101 = icmp slt i32 %96, %99
  br i1 %101, label %123, label %102

102:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %150

103:                                              ; preds = %56
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %10, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %343

107:                                              ; preds = %72, %68
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %10, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %11, align 4
  br label %342

111:                                              ; preds = %76
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %10, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %342

115:                                              ; preds = %85, %79
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %10, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %11, align 4
  br label %341

119:                                              ; preds = %141, %132, %129, %123, %95
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %10, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %340

123:                                              ; preds = %100
  %124 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %125 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %124) #8
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = invoke noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %125, i32 noundef %126)
          to label %128 unwind label %119

128:                                              ; preds = %123
  br i1 %127, label %129, label %132

129:                                              ; preds = %128
  %130 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10CPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48) %17, i32 noundef %130)
          to label %131 unwind label %119

131:                                              ; preds = %129
  br label %144

132:                                              ; preds = %128
  %133 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %134 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %133) #8
  %135 = load i32, ptr %18, align 4, !tbaa !9
  %136 = invoke noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %134, i32 noundef %135)
          to label %137 unwind label %119

137:                                              ; preds = %132
  br i1 %136, label %138, label %139

138:                                              ; preds = %137
  br label %141

139:                                              ; preds = %137
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 378, ptr noundef @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask18SetWorkspaceInputsEv) #9
  unreachable

140:                                              ; No predecessors!
  br label %141

141:                                              ; preds = %140, %138
  %142 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10GPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48) %17, i32 noundef %142)
          to label %143 unwind label %119

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143, %131
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %18, align 4, !tbaa !9
  %148 = load i32, ptr %3, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %3, align 4, !tbaa !9
  br label %95, !llvm.loop !28

150:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %196, %150
  %152 = load i32, ptr %21, align 4, !tbaa !9
  %153 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %154 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %153) #8
  %155 = invoke noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %154)
          to label %156 unwind label %159

156:                                              ; preds = %151
  %157 = icmp slt i32 %152, %155
  br i1 %157, label %163, label %158

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %207

159:                                              ; preds = %151
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %10, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %11, align 4
  br label %206

163:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %164 = load i32, ptr %3, align 4, !tbaa !9
  %165 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK4dali5exec212ExecNodeTask9TaskInputINS_10CPUBackendEEERKDai(ptr noundef nonnull align 8 dereferenceable(72) %39, i32 noundef %164)
          to label %166 unwind label %181

166:                                              ; preds = %163
  store ptr %165, ptr %22, align 8, !tbaa !5
  %167 = load ptr, ptr %22, align 8, !tbaa !5
  %168 = invoke noundef ptr @_ZNK4dali5exec212ExecNodeTask10OperatorIOINS_10CPUBackendEE5eventEv(ptr noundef nonnull align 8 dereferenceable(32) %167)
          to label %169 unwind label %181

169:                                              ; preds = %166
  %170 = icmp ne ptr %168, null
  br i1 %170, label %171, label %189

171:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %172 = load ptr, ptr %22, align 8, !tbaa !5
  %173 = invoke noundef ptr @_ZNK4dali5exec212ExecNodeTask10OperatorIOINS_10CPUBackendEE5eventEv(ptr noundef nonnull align 8 dereferenceable(32) %172)
          to label %174 unwind label %185

174:                                              ; preds = %171
  store ptr %173, ptr %23, align 8, !tbaa !5
  %175 = invoke { ptr, i8 } @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %176 unwind label %185

176:                                              ; preds = %174
  %177 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 0
  %178 = extractvalue { ptr, i8 } %175, 0
  store ptr %178, ptr %177, align 8
  %179 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 1
  %180 = extractvalue { ptr, i8 } %175, 1
  store i8 %180, ptr %179, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %189

181:                                              ; preds = %166, %163
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %10, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %11, align 4
  br label %205

185:                                              ; preds = %174, %171
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %10, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %205

189:                                              ; preds = %176, %169
  %190 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %191 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %190) #8
  %192 = load i32, ptr %21, align 4, !tbaa !9
  %193 = load ptr, ptr %22, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.dali::exec2::ExecNodeTask::OperatorIO", ptr %193, i32 0, i32 0
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %194) #8
  invoke void @_ZN4dali17ArgumentWorkspace16SetArgumentInputEiSt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %191, i32 noundef %192, ptr noundef %25)
          to label %195 unwind label %201

195:                                              ; preds = %189
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %21, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %21, align 4, !tbaa !9
  %199 = load i32, ptr %3, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %3, align 4, !tbaa !9
  br label %151, !llvm.loop !30

201:                                              ; preds = %189
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %10, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #8
  br label %205

205:                                              ; preds = %201, %185, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %206

206:                                              ; preds = %205, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %340

207:                                              ; preds = %158
  %208 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !31
  %210 = invoke noundef i32 @_ZNK4dali7tasking4Task9NumInputsEv(ptr noundef nonnull align 8 dereferenceable(536) %209)
          to label %211 unwind label %220

211:                                              ; preds = %207
  %212 = load i32, ptr %3, align 4, !tbaa !9
  %213 = icmp sgt i32 %210, %212
  br i1 %213, label %214, label %224

214:                                              ; preds = %211
  %215 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !31
  %217 = load i32, ptr %3, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %3, align 4, !tbaa !9
  invoke void @_ZNK4dali7tasking4Task13GetInputValueIvEET_i(ptr noundef nonnull align 8 dereferenceable(536) %216, i32 noundef %217)
          to label %219 unwind label %220

219:                                              ; preds = %214
  br label %224

220:                                              ; preds = %315, %309, %303, %301, %295, %289, %283, %214, %207
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %10, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %11, align 4
  br label %340

224:                                              ; preds = %219, %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %225 = load ptr, ptr %26, align 8, !tbaa !5
  %226 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %225) #8
  %227 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %228 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %227, i32 0, i32 0
  store ptr %226, ptr %228, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %229 = load ptr, ptr %26, align 8, !tbaa !5
  %230 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %229) #8
  %231 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %28, i32 0, i32 0
  %232 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %231, i32 0, i32 0
  store ptr %230, ptr %232, align 8
  br label %233

233:                                              ; preds = %245, %224
  %234 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP10CUevent_stLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  br i1 %234, label %236, label %235

235:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %256

236:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  store ptr %238, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %239 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %240 unwind label %247

240:                                              ; preds = %236
  store { ptr, i32 } %239, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %31, i64 12, i1 false)
  %241 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %30, ptr noundef %241)
          to label %242 unwind label %247

242:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  %243 = invoke noundef i64 @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %244 unwind label %251

244:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %245

245:                                              ; preds = %244
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br label %233

247:                                              ; preds = %240, %236
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %10, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %255

251:                                              ; preds = %242
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %10, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %11, align 4
  br label %255

255:                                              ; preds = %251, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %340

256:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store ptr %6, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %257 = load ptr, ptr %32, align 8, !tbaa !5
  %258 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %257) #8
  %259 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %33, i32 0, i32 0
  %260 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %259, i32 0, i32 0
  store ptr %258, ptr %260, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %261 = load ptr, ptr %32, align 8, !tbaa !5
  %262 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %261) #8
  %263 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %34, i32 0, i32 0
  %264 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %263, i32 0, i32 0
  store ptr %262, ptr %264, align 8
  br label %265

265:                                              ; preds = %277, %256
  %266 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP10CUevent_stLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  br i1 %266, label %268, label %267

267:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %283

268:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  %270 = load ptr, ptr %269, align 8, !tbaa !5
  store ptr %270, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  %271 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %272 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %271) #8
  %273 = invoke { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %272)
          to label %274 unwind label %279

274:                                              ; preds = %268
  store { ptr, i32 } %273, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %37, i64 12, i1 false)
  %275 = load ptr, ptr %35, align 8, !tbaa !5
  invoke void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %36, ptr noundef %275)
          to label %276 unwind label %279

276:                                              ; preds = %274
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %277

277:                                              ; preds = %276
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  br label %265

279:                                              ; preds = %274, %268
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %10, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %340

283:                                              ; preds = %267
  %284 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %285 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %284) #8
  %286 = invoke noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %285)
          to label %287 unwind label %220

287:                                              ; preds = %283
  %288 = icmp ne i32 %286, 0
  br i1 %288, label %289, label %339

289:                                              ; preds = %287
  %290 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %291 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %290) #8
  %292 = invoke noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %291)
          to label %293 unwind label %220

293:                                              ; preds = %289
  %294 = icmp sgt i32 %292, 0
  br i1 %294, label %295, label %303

295:                                              ; preds = %293
  %296 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %297 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %296) #8
  %298 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %299 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %298) #8
  %300 = invoke noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE17GetInputBatchSizeEi(ptr noundef nonnull align 8 dereferenceable(664) %299, i32 noundef 0)
          to label %301 unwind label %220

301:                                              ; preds = %295
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13SetBatchSizesEi(ptr noundef nonnull align 8 dereferenceable(664) %297, i32 noundef %300)
          to label %302 unwind label %220

302:                                              ; preds = %301
  br label %338

303:                                              ; preds = %293
  %304 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %305 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %304) #8
  %306 = invoke noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %305)
          to label %307 unwind label %220

307:                                              ; preds = %303
  %308 = icmp sgt i32 %306, 0
  br i1 %308, label %309, label %318

309:                                              ; preds = %307
  %310 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %311 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %310) #8
  %312 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %313 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %312) #8
  %314 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali17ArgumentWorkspace13ArgumentInputEi(ptr noundef nonnull align 8 dereferenceable(256) %313, i32 noundef 0)
          to label %315 unwind label %220

315:                                              ; preds = %309
  %316 = call noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(304) %314) #8
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13SetBatchSizesEi(ptr noundef nonnull align 8 dereferenceable(664) %311, i32 noundef %316)
          to label %317 unwind label %220

317:                                              ; preds = %315
  br label %337

318:                                              ; preds = %307
  %319 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %320 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %319) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #8
  %321 = getelementptr inbounds %"class.dali::exec2::ExecNodeTask", ptr %39, i32 0, i32 3
  %322 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %321) #8
  invoke void @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE16GetIterationDataEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %38, ptr noundef nonnull align 8 dereferenceable(664) %322)
          to label %323 unwind label %328

323:                                              ; preds = %318
  %324 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #8
  %325 = getelementptr inbounds %"struct.dali::IterationData", ptr %324, i32 0, i32 1
  %326 = load i32, ptr %325, align 8, !tbaa !32
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13SetBatchSizesEi(ptr noundef nonnull align 8 dereferenceable(664) %320, i32 noundef %326)
          to label %327 unwind label %332

327:                                              ; preds = %323
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  br label %337

328:                                              ; preds = %318
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %10, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %11, align 4
  br label %336

332:                                              ; preds = %323
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %10, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %11, align 4
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #8
  br label %336

336:                                              ; preds = %332, %328
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  br label %340

337:                                              ; preds = %327, %317
  br label %338

338:                                              ; preds = %337, %302
  br label %339

339:                                              ; preds = %338, %287
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #8
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  ret void

340:                                              ; preds = %336, %279, %255, %220, %206, %119
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  br label %341

341:                                              ; preds = %340, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #8
  br label %342

342:                                              ; preds = %341, %111, %107
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #8
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #8
  br label %343

343:                                              ; preds = %342, %103
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %344

344:                                              ; preds = %343
  %345 = load ptr, ptr %10, align 8
  %346 = load i32, ptr %11, align 4
  %347 = insertvalue { ptr, i32 } poison, ptr %345, 0
  %348 = insertvalue { ptr, i32 } %347, i32 %346, 1
  resume { ptr, i32 } %348
}

; 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 nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400)) #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_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE17GetInputBatchSizeEi(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 @_ZNK4dali17ArgumentWorkspace13ArgumentInputEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(304)) #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 noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(608) ptr @_ZNK4dali6OpSpec9GetSchemaEv(ptr noundef nonnull align 8 dereferenceable(328)) #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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2EmRKS3_RKS5_RKS6_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10CPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10GPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZN4dali11AccessOrder4hostEv() #1 align 2

declare void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(56), 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 @_ZNSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN4dali5exec212ExecNodeTaskE", !6, i64 0, !6, i64 8, !13, i64 16, !17, i64 48, !23, i64 56}
!13 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !6, i64 0, !14, i64 8, !10, i64 24}
!14 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !15, i64 0}
!15 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, 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, !16, i64 8}
!26 = !{!27, !6, i64 0}
!27 = !{!"_ZTSZN4dali5exec26OpTask18SetWorkspaceInputsEvE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!12, !6, i64 0}
!32 = !{!33, !10, i64 8}
!33 = !{!"_ZTSN4dali13IterationDataE", !34, i64 0, !10, i64 8, !35, i64 16, !46, i64 104}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSN4dali14OperatorTracesE", !36, i64 0, !38, i64 40}
!36 = !{!"_ZTSSt5mutex", !37, i64 0}
!37 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!38 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IS5_S5_St4lessIvESaISt4pairIKS5_S5_EEES7_SaIS8_IS9_SC_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE13_Rb_tree_implISA_Lb1EEE", !41, i64 0, !43, i64 8}
!41 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !42, i64 0}
!42 = !{!"_ZTSSt4lessIvE"}
!43 = !{!"_ZTSSt15_Rb_tree_header", !44, i64 0, !34, i64 32}
!44 = !{!"_ZTSSt18_Rb_tree_node_base", !45, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!45 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!46 = !{!"_ZTSSt10shared_ptrIN4dali10CheckpointEE", !47, i64 0}
!47 = !{!"_ZTSSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, 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.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.std::unordered_set" = type { %"class.std::_Hashtable.179" }
%"class.std::_Hashtable.179" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::hash.183" = type { i8 }
%"struct.std::equal_to.186" = type { i8 }
%"class.std::allocator.198" = type { i8 }
%class.anon.201 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::shared_ptr.152" = type { %"class.std::__shared_ptr.153" }
%"class.std::__shared_ptr.153" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }

@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali5exec26OpTask18SetWorkspaceInputsEv = external hidden unnamed_addr constant [47 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 @_ZN4dali5exec26OpTask18SetWorkspaceInputsEv(ptr noundef nonnull align 8 dereferenceable(112) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.dali::AccessOrder", align 8
  %4 = alloca %"class.std::unordered_set", align 8
  %5 = alloca %"struct.std::hash.183", align 1
  %6 = alloca %"struct.std::equal_to.186", align 1
  %7 = alloca %"class.std::allocator.198", align 1
  %8 = alloca %"class.std::unordered_set", align 8
  %9 = alloca %"struct.std::hash.183", align 1
  %10 = alloca %"struct.std::equal_to.186", align 1
  %11 = alloca %"class.std::allocator.198", align 1
  %12 = alloca %class.anon.201, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::shared_ptr.152", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.dali::AccessOrder", align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"class.dali::AccessOrder", align 8
  %22 = alloca %"class.std::shared_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  %24 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %25 = tail call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %24)
  %26 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %27 = tail call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %26)
  %28 = add nsw i32 %27, %25
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = tail call noundef i64 @_ZNK4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(72) %30)
  %32 = trunc i64 %31 to i32
  %33 = icmp eq i32 %28, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.8, i32 noundef 337, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask18SetWorkspaceInputsEv) #8
  unreachable

35:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %36 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %37 = tail call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %36)
  %.fca.0.extract24 = extractvalue { ptr, i32 } %37, 0
  %.fca.1.extract25 = extractvalue { ptr, i32 } %37, 1
  store ptr %.fca.0.extract24, ptr %3, align 8
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %.fca.1.extract25, ptr %.sroa.227.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #7
  %38 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %39 = tail call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %38)
  %40 = tail call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %41 = tail call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %40)
  %42 = add nsw i32 %41, %39
  %43 = sext i32 %42 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIP10CUevent_stEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2EmRKS3_RKS5_RKS6_(ptr noundef nonnull align 8 dereferenceable(56) %4, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %44 unwind label %67

44:                                               ; preds = %35
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #7
  %45 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %46 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %45)
  %47 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %48 = invoke noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %47)
          to label %49 unwind label %69

49:                                               ; preds = %44
  %50 = add nsw i32 %48, %46
  %51 = sext i32 %50 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIP10CUevent_stEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2EmRKS3_RKS5_RKS6_(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %51, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %52 unwind label %71

52:                                               ; preds = %49
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  %53 = load ptr, ptr %29, align 8, !tbaa !9
  %54 = getelementptr inbounds i8, ptr %53, i64 304
  %55 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12OperatorBaseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %54) #7
  %56 = call noundef nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400) %55)
  %57 = invoke noundef nonnull align 8 dereferenceable(608) ptr @_ZNK4dali6OpSpec9GetSchemaEv(ptr noundef nonnull align 8 dereferenceable(328) %56)
          to label %58 unwind label %73

58:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #7
  store ptr %0, ptr %12, align 8, !tbaa !25
  %59 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %2, ptr %59, align 8, !tbaa !27
  %60 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %3, ptr %60, align 8, !tbaa !27
  %61 = getelementptr inbounds i8, ptr %12, i64 24
  store ptr %8, ptr %61, align 8, !tbaa !27
  %62 = getelementptr inbounds i8, ptr %12, i64 32
  store ptr %4, ptr %62, align 8, !tbaa !27
  %63 = getelementptr inbounds i8, ptr %12, i64 40
  store ptr %57, ptr %63, align 8, !tbaa !27
  %64 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %65 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %64)
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph, label %.preheader.preheader

67:                                               ; preds = %35
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %200

69:                                               ; preds = %44
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %199

71:                                               ; preds = %49
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIP10CUevent_stED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  br label %199

73:                                               ; preds = %52
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %198

75:                                               ; preds = %86, %81, %80, %.lr.ph
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %197

.lr.ph:                                           ; preds = %58, %87
  %.03649 = phi i32 [ %88, %87 ], [ 0, %58 ]
  %77 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %78 = invoke noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %77, i32 noundef %.03649)
          to label %79 unwind label %75

79:                                               ; preds = %.lr.ph
  br i1 %78, label %80, label %81

80:                                               ; preds = %79
  invoke void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10CPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48) %12, i32 noundef %.03649)
          to label %87 unwind label %75

81:                                               ; preds = %79
  %82 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %83 = invoke noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %82, i32 noundef %.03649)
          to label %84 unwind label %75

84:                                               ; preds = %81
  br i1 %83, label %86, label %85

85:                                               ; preds = %84
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 378, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali5exec26OpTask18SetWorkspaceInputsEv) #8
  unreachable

86:                                               ; preds = %84
  invoke void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10GPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48) %12, i32 noundef %.03649)
          to label %87 unwind label %75

87:                                               ; preds = %80, %86
  %88 = add nuw nsw i32 %.03649, 1
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %2, align 4, !tbaa !5
  %91 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %92 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %91)
  %93 = icmp slt i32 %88, %92
  br i1 %93, label %.lr.ph, label %.preheader.preheader, !llvm.loop !28

.preheader.preheader:                             ; preds = %87, %58
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %122
  %.037 = phi i32 [ %123, %122 ], [ 0, %.preheader.preheader ]
  %94 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %95 = invoke noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %94)
          to label %96 unwind label %103

96:                                               ; preds = %.preheader
  %97 = icmp slt i32 %.037, %95
  br i1 %97, label %105, label %98

98:                                               ; preds = %96
  %99 = load ptr, ptr %0, align 8, !tbaa !30
  %100 = call noundef i32 @_ZNK4dali7tasking4Task9NumInputsEv(ptr noundef nonnull align 8 dereferenceable(536) %99)
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = icmp sgt i32 %100, %101
  br i1 %102, label %128, label %133

103:                                              ; preds = %.preheader
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %197

105:                                              ; preds = %96
  %106 = load i32, ptr %2, align 4, !tbaa !5
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK4dali5exec212ExecNodeTask9TaskInputINS_10CPUBackendEEERKDai(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %106)
          to label %108 unwind label %116

108:                                              ; preds = %105
  %109 = invoke noundef ptr @_ZNK4dali5exec212ExecNodeTask10OperatorIOINS_10CPUBackendEE5eventEv(ptr noundef nonnull align 8 dereferenceable(32) %107)
          to label %110 unwind label %116

110:                                              ; preds = %108
  %.not40 = icmp eq ptr %109, null
  br i1 %.not40, label %120, label %111

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %112 = invoke noundef ptr @_ZNK4dali5exec212ExecNodeTask10OperatorIOINS_10CPUBackendEE5eventEv(ptr noundef nonnull align 8 dereferenceable(32) %107)
          to label %113 unwind label %118

113:                                              ; preds = %111
  store ptr %112, ptr %13, align 8, !tbaa !27
  %114 = invoke { ptr, i8 } @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %115 unwind label %118

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %120

116:                                              ; preds = %108, %105
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %197

118:                                              ; preds = %113, %111
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %197

120:                                              ; preds = %115, %110
  %121 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %107) #7
  invoke void @_ZN4dali17ArgumentWorkspace16SetArgumentInputEiSt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %121, i32 noundef %.037, ptr noundef nonnull %14)
          to label %122 unwind label %126

122:                                              ; preds = %120
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %123 = add nuw nsw i32 %.037, 1
  %124 = load i32, ptr %2, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %2, align 4, !tbaa !5
  br label %.preheader, !llvm.loop !31

126:                                              ; preds = %120
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %197

128:                                              ; preds = %98
  %129 = load ptr, ptr %0, align 8, !tbaa !30
  %130 = add nsw i32 %101, 1
  store i32 %130, ptr %2, align 4, !tbaa !5
  invoke void @_ZNK4dali7tasking4Task13GetInputValueIvEET_i(ptr noundef nonnull align 8 dereferenceable(536) %129, i32 noundef %101)
          to label %133 unwind label %131

131:                                              ; preds = %.invoke, %181, %176, %173, %128
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %197

133:                                              ; preds = %128, %98
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %134 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  store ptr %134, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %135 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  store ptr %135, ptr %16, align 8
  %136 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP10CUevent_stLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %136, label %.lr.ph50, label %._crit_edge

.lr.ph50:                                         ; preds = %133
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  br label %140

._crit_edge:                                      ; preds = %148, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %137 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  store ptr %137, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %138 = call ptr @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  store ptr %138, ptr %20, align 8
  %139 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP10CUevent_stLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %139, label %.lr.ph52, label %._crit_edge53

.lr.ph52:                                         ; preds = %._crit_edge
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  br label %158

140:                                              ; preds = %.lr.ph50, %148
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %142 = load ptr, ptr %141, align 8, !tbaa !27
  store ptr %142, ptr %17, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %143 = invoke { ptr, i32 } @_ZN4dali11AccessOrder4hostEv()
          to label %144 unwind label %151

144:                                              ; preds = %140
  %.fca.0.extract3 = extractvalue { ptr, i32 } %143, 0
  %.fca.1.extract4 = extractvalue { ptr, i32 } %143, 1
  store ptr %.fca.0.extract3, ptr %18, align 8
  store i32 %.fca.1.extract4, ptr %.sroa.26.0..sroa_idx, align 8
  %145 = load ptr, ptr %17, align 8, !tbaa !27
  invoke void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %18, ptr noundef %145)
          to label %146 unwind label %151

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  %147 = invoke noundef i64 @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %148 unwind label %153

148:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %150 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP10CUevent_stLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br i1 %150, label %140, label %._crit_edge

151:                                              ; preds = %144, %140
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %155

153:                                              ; preds = %146
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %155

155:                                              ; preds = %153, %151
  %.pn = phi { ptr, i32 } [ %154, %153 ], [ %152, %151 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %197

._crit_edge53:                                    ; preds = %163, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %156 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %157 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %156)
  %.not = icmp eq i32 %157, 0
  br i1 %.not, label %196, label %168

158:                                              ; preds = %.lr.ph52, %163
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %160 = load ptr, ptr %159, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  %161 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %162 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %161)
  %.fca.0.extract = extractvalue { ptr, i32 } %162, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %162, 1
  store ptr %.fca.0.extract, ptr %21, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef %160)
          to label %163 unwind label %166

163:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %165 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP10CUevent_stLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %165, label %158, label %._crit_edge53

166:                                              ; preds = %158
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %197

168:                                              ; preds = %._crit_edge53
  %169 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %170 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %169)
  %171 = icmp sgt i32 %170, 0
  %172 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br i1 %171, label %173, label %176

173:                                              ; preds = %168
  %174 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %175 = invoke noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE17GetInputBatchSizeEi(ptr noundef nonnull align 8 dereferenceable(664) %174, i32 noundef 0)
          to label %.invoke unwind label %131

176:                                              ; preds = %168
  %177 = invoke noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %172)
          to label %178 unwind label %131

178:                                              ; preds = %176
  %179 = icmp sgt i32 %177, 0
  %180 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br i1 %179, label %181, label %188

181:                                              ; preds = %178
  %182 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %183 = invoke noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali17ArgumentWorkspace13ArgumentInputEi(ptr noundef nonnull align 8 dereferenceable(256) %182, i32 noundef 0)
          to label %184 unwind label %131

184:                                              ; preds = %181
  %185 = call noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(304) %183) #7
  br label %.invoke

.invoke:                                          ; preds = %173, %184
  %186 = phi ptr [ %180, %184 ], [ %172, %173 ]
  %187 = phi i32 [ %185, %184 ], [ %175, %173 ]
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13SetBatchSizesEi(ptr noundef nonnull align 8 dereferenceable(664) %186, i32 noundef %187)
          to label %196 unwind label %131

188:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #7
  %189 = call noundef ptr @_ZNKSt10unique_ptrIN4dali9WorkspaceESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE16GetIterationDataEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %22, ptr noundef nonnull align 8 dereferenceable(664) %189)
  %190 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  %191 = getelementptr inbounds i8, ptr %190, i64 8
  %192 = load i32, ptr %191, align 8, !tbaa !32
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13SetBatchSizesEi(ptr noundef nonnull align 8 dereferenceable(664) %180, i32 noundef %192)
          to label %193 unwind label %194

193:                                              ; preds = %188
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  br label %196

194:                                              ; preds = %188
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  br label %197

196:                                              ; preds = %.invoke, %193, %._crit_edge53
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #7
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  ret void

197:                                              ; preds = %103, %126, %118, %116, %194, %166, %155, %131, %75
  %.pn44 = phi { ptr, i32 } [ %76, %75 ], [ %.pn, %155 ], [ %167, %166 ], [ %132, %131 ], [ %195, %194 ], [ %104, %103 ], [ %127, %126 ], [ %119, %118 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  br label %198

198:                                              ; preds = %197, %73
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %197 ], [ %74, %73 ]
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  br label %199

199:                                              ; preds = %198, %71, %69
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn44.pn, %198 ], [ %72, %71 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #7
  call void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  br label %200

200:                                              ; preds = %199, %67
  %.pn44.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn, %199 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn44.pn.pn.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 nonnull align 8 dereferenceable(328) ptr @_ZNK4dali12OperatorBase7GetSpecEv(ptr noundef nonnull align 8 dereferenceable(400)) 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_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE17GetInputBatchSizeEi(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 @_ZNK4dali17ArgumentWorkspace13ArgumentInputEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(304)) 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 noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(608) ptr @_ZNK4dali6OpSpec9GetSchemaEv(ptr noundef nonnull align 8 dereferenceable(328)) 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EEC2EmRKS3_RKS5_RKS6_(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10CPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN4dali5exec26OpTask18SetWorkspaceInputsEvENK3$_0clINS_10GPUBackendEEEDaiT_"(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK4dali5exec212ExecNodeTask9TaskInputINS_10CPUBackendEEERKDai(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali17ArgumentWorkspace16SetArgumentInputEiSt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i32 } @_ZN4dali11AccessOrder4hostEv() local_unnamed_addr #1 align 2

declare void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt13unordered_setIP10CUevent_stSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(56), 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 @_ZNSt8__detail14_Node_iteratorIP10CUevent_stLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN4dali5exec212ExecNodeTaskE", !11, i64 0, !11, i64 8, !12, i64 16, !16, i64 48, !22, i64 56}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSN4dali5exec215WorkspaceParamsE", !11, i64 0, !13, i64 8, !6, i64 24}
!13 = !{!"_ZTSSt10shared_ptrIN4dali13IterationDataEE", !14, i64 0}
!14 = !{!"_ZTSSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !11, 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", !11, i64 0}
!22 = !{!"_ZTSN4dali15CUDASharedEventE", !23, i64 0}
!23 = !{!"_ZTSSt10shared_ptrIvE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !15, i64 8}
!25 = !{!26, !11, i64 0}
!26 = !{!"_ZTSZN4dali5exec26OpTask18SetWorkspaceInputsEvE3$_0", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!27 = !{!11, !11, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !11, i64 0}
!31 = distinct !{!31, !29}
!32 = !{!33, !6, i64 8}
!33 = !{!"_ZTSN4dali13IterationDataE", !34, i64 0, !6, i64 8, !35, i64 16, !46, i64 104}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSN4dali14OperatorTracesE", !36, i64 0, !38, i64 40}
!36 = !{!"_ZTSSt5mutex", !37, i64 0}
!37 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!38 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IS5_S5_St4lessIvESaISt4pairIKS5_S5_EEES7_SaIS8_IS9_SC_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3mapIS5_S5_St4lessIvESaIS6_IS7_S5_EEEESt10_Select1stISE_ESA_SaISE_EE13_Rb_tree_implISA_Lb1EEE", !41, i64 0, !43, i64 8}
!41 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !42, i64 0}
!42 = !{!"_ZTSSt4lessIvE"}
!43 = !{!"_ZTSSt15_Rb_tree_header", !44, i64 0, !34, i64 32}
!44 = !{!"_ZTSSt18_Rb_tree_node_base", !45, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!45 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!46 = !{!"_ZTSSt10shared_ptrIN4dali10CheckpointEE", !47, i64 0}
!47 = !{!"_ZTSSt12__shared_ptrIN4dali10CheckpointELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !15, i64 8}


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