; 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::CPUBackend" = type { i8 }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"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.dali::GPUBackend" = type { i8 }
%"class.std::shared_ptr.158" = type { %"class.std::__shared_ptr.159" }
%"class.std::__shared_ptr.159" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = 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::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.std::any" = type { ptr, %"union.std::any::_Storage" }
%"union.std::any::_Storage" = type { ptr }
%"struct.dali::exec2::ExecEdge" = type <{ ptr, ptr, i32, i32, i32, i8, [3 x i8] }>

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664)) #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664)) #3 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) #4

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) #3 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) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec221ClearWorkspacePayloadERNS_9WorkspaceERNS0_8ExecNodeE(ptr noundef nonnull align 8 dereferenceable(664) %0, ptr noundef nonnull align 8 dereferenceable(472) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.dali::CPUBackend", align 1
  %9 = alloca ptr, align 8
  %10 = alloca %"class.dali::AccessOrder", align 8
  %11 = alloca { ptr, i32 }, align 8
  %12 = alloca %"class.dali::AccessOrder", align 8
  %13 = alloca { ptr, i32 }, align 8
  %14 = alloca %"class.dali::AccessOrder", align 8
  %15 = alloca { ptr, i32 }, align 8
  %16 = alloca %"class.std::shared_ptr.152", align 8
  %17 = alloca %"class.dali::CPUBackend", align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.dali::GPUBackend", align 1
  %22 = alloca ptr, align 8
  %23 = alloca %"class.dali::AccessOrder", align 8
  %24 = alloca { ptr, i32 }, align 8
  %25 = alloca %"class.dali::AccessOrder", align 8
  %26 = alloca { ptr, i32 }, align 8
  %27 = alloca %"class.dali::AccessOrder", align 8
  %28 = alloca { ptr, i32 }, align 8
  %29 = alloca %"class.std::shared_ptr.158", align 8
  %30 = alloca %"class.dali::GPUBackend", align 1
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca %"class.std::shared_ptr.152", align 8
  %34 = alloca %"class.dali::AccessOrder", align 8
  %35 = alloca { ptr, i32 }, align 8
  %36 = alloca %"class.dali::AccessOrder", align 8
  %37 = alloca { ptr, i32 }, align 8
  %38 = alloca %"class.dali::AccessOrder", align 8
  %39 = alloca { ptr, i32 }, align 8
  %40 = alloca %"class.std::shared_ptr.152", align 8
  %41 = alloca i32, align 4
  %42 = alloca %"class.std::shared_ptr.152", align 8
  %43 = alloca %"class.dali::CPUBackend", align 1
  %44 = alloca %"class.std::shared_ptr.158", align 8
  %45 = alloca %"class.dali::GPUBackend", align 1
  %46 = alloca %"class.std::shared_ptr", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9has_eventEv(ptr noundef nonnull align 8 dereferenceable(664) %47)
  br i1 %48, label %49, label %52

49:                                               ; preds = %2
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5eventEv(ptr noundef nonnull align 8 dereferenceable(664) %50)
  br label %53

52:                                               ; preds = %2
  br label %53

53:                                               ; preds = %52, %49
  %54 = phi ptr [ %51, %49 ], [ null, %52 ]
  store ptr %54, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %158, %53
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %57)
  %59 = icmp slt i32 %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %162

61:                                               ; preds = %55
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %62, i32 noundef %63)
  br i1 %64, label %65, label %110

65:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8InputPtrINS_10CPUBackendEEERKS2_INS1_IT_EEEiS6_(ptr noundef nonnull align 8 dereferenceable(664) %66, i32 noundef %67)
  store ptr %68, ptr %7, align 8, !tbaa !5
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %69) #7
  br i1 %70, label %71, label %109

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %72) #7
  store ptr %73, ptr %9, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  br i1 %75, label %76, label %95

76:                                               ; preds = %71
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %77, i32 0, i32 0
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %78, i64 noundef %80)
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.dali::exec2::ExecEdge", ptr %82, i32 0, i32 5
  %84 = load i8, ptr %83, align 4, !tbaa !11, !range !15, !noundef !16
  %85 = trunc i8 %84 to i1
  br i1 %85, label %95, label %86

86:                                               ; preds = %76
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZNK4dali10TensorListINS_10CPUBackendEE9is_pinnedEv(ptr noundef nonnull align 8 dereferenceable(304) %87)
  br i1 %88, label %89, label %95

89:                                               ; preds = %86
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %90)
  store { ptr, i32 } %91, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %11, i64 12, i1 false)
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %92)
  store { ptr, i32 } %93, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %13, i64 12, i1 false)
  %94 = call noundef zeroext i1 @_ZNK4dali11AccessOrderneERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %12) #7
  br label %95

95:                                               ; preds = %89, %86, %76, %71
  %96 = phi i1 [ false, %86 ], [ false, %76 ], [ false, %71 ], [ %94, %89 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br i1 %96, label %97, label %101

97:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %98)
  store { ptr, i32 } %99, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %15, i64 12, i1 false)
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %14, ptr noundef %100)
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %101

101:                                              ; preds = %97, %95
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr null) #7
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8SetInputINS_10CPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %102, i32 noundef %103, ptr noundef %16)
          to label %104 unwind label %105

104:                                              ; preds = %101
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %109

105:                                              ; preds = %101
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %18, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %161

109:                                              ; preds = %104, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %157

110:                                              ; preds = %61
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %111, i32 noundef %112)
  br i1 %113, label %114, label %156

114:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = load i32, ptr %6, align 4, !tbaa !9
  %117 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8InputPtrINS_10GPUBackendEEERKS2_INS1_IT_EEEiS6_(ptr noundef nonnull align 8 dereferenceable(664) %115, i32 noundef %116)
  store ptr %117, ptr %20, align 8, !tbaa !5
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %118) #7
  br i1 %119, label %120, label %155

120:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %121) #7
  store ptr %122, ptr %22, align 8, !tbaa !5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  br i1 %124, label %125, label %141

125:                                              ; preds = %120
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.dali::exec2::ExecNode", ptr %126, i32 0, i32 0
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %127, i64 noundef %129)
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.dali::exec2::ExecEdge", ptr %131, i32 0, i32 5
  %133 = load i8, ptr %132, align 4, !tbaa !11, !range !15, !noundef !16
  %134 = trunc i8 %133 to i1
  br i1 %134, label %141, label %135

135:                                              ; preds = %125
  %136 = load ptr, ptr %22, align 8, !tbaa !5
  %137 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %136)
  store { ptr, i32 } %137, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %24, i64 12, i1 false)
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %138)
  store { ptr, i32 } %139, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %26, i64 12, i1 false)
  %140 = call noundef zeroext i1 @_ZNK4dali11AccessOrderneERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %23, ptr noundef nonnull align 8 dereferenceable(12) %25) #7
  br label %141

141:                                              ; preds = %135, %125, %120
  %142 = phi i1 [ false, %125 ], [ false, %120 ], [ %140, %135 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br i1 %142, label %143, label %147

143:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %144 = load ptr, ptr %22, align 8, !tbaa !5
  %145 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %144)
  store { ptr, i32 } %145, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %28, i64 12, i1 false)
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %27, ptr noundef %146)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %147

147:                                              ; preds = %143, %141
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr null) #7
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8SetInputINS_10GPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %148, i32 noundef %149, ptr noundef %29)
          to label %150 unwind label %151

150:                                              ; preds = %147
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %155

151:                                              ; preds = %147
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %18, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %161

155:                                              ; preds = %150, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %156

156:                                              ; preds = %155, %110
  br label %157

157:                                              ; preds = %156, %109
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %6, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %6, align 4, !tbaa !9
  br label %55, !llvm.loop !17

161:                                              ; preds = %151, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %273

162:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %221, %162
  %164 = load i32, ptr %31, align 4, !tbaa !9
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %165)
  %167 = icmp slt i32 %164, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %229

169:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = load i32, ptr %31, align 4, !tbaa !9
  call void @_ZNK4dali17ArgumentWorkspace16ArgumentInputPtrEi(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.152") align 8 %33, ptr noundef nonnull align 8 dereferenceable(256) %170, i32 noundef %171)
  store ptr %33, ptr %32, align 8, !tbaa !5
  %172 = load ptr, ptr %32, align 8, !tbaa !5
  %173 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %172) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  br i1 %173, label %174, label %191

174:                                              ; preds = %169
  %175 = load ptr, ptr %32, align 8, !tbaa !5
  %176 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %175) #7
  %177 = invoke noundef zeroext i1 @_ZNK4dali10TensorListINS_10CPUBackendEE9is_pinnedEv(ptr noundef nonnull align 8 dereferenceable(304) %176)
          to label %178 unwind label %200

178:                                              ; preds = %174
  br i1 %177, label %179, label %191

179:                                              ; preds = %178
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %191

182:                                              ; preds = %179
  %183 = load ptr, ptr %32, align 8, !tbaa !5
  %184 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %183) #7
  %185 = invoke { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %184)
          to label %186 unwind label %204

186:                                              ; preds = %182
  store { ptr, i32 } %185, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %35, i64 12, i1 false)
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = invoke { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %187)
          to label %189 unwind label %208

189:                                              ; preds = %186
  store { ptr, i32 } %188, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %37, i64 12, i1 false)
  %190 = call noundef zeroext i1 @_ZNK4dali11AccessOrderneERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %34, ptr noundef nonnull align 8 dereferenceable(12) %36) #7
  br label %191

191:                                              ; preds = %189, %179, %178, %169
  %192 = phi i1 [ false, %179 ], [ false, %178 ], [ false, %169 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  br i1 %192, label %193, label %217

193:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #7
  %194 = load ptr, ptr %32, align 8, !tbaa !5
  %195 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %194) #7
  %196 = invoke { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %195)
          to label %197 unwind label %213

197:                                              ; preds = %193
  store { ptr, i32 } %196, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %39, i64 12, i1 false)
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %38, ptr noundef %198)
          to label %199 unwind label %213

199:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  br label %217

200:                                              ; preds = %174
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %18, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %19, align 4
  br label %228

204:                                              ; preds = %182
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %18, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %19, align 4
  br label %212

208:                                              ; preds = %186
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %18, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  br label %212

212:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  br label %228

213:                                              ; preds = %197, %193
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %18, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #7
  br label %228

217:                                              ; preds = %199, %191
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = load i32, ptr %31, align 4, !tbaa !9
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr null) #7
  invoke void @_ZN4dali17ArgumentWorkspace16SetArgumentInputEiSt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %218, i32 noundef %219, ptr noundef %40)
          to label %220 unwind label %224

220:                                              ; preds = %217
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #7
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %31, align 4, !tbaa !9
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %31, align 4, !tbaa !9
  br label %163, !llvm.loop !19

224:                                              ; preds = %217
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %18, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #7
  br label %228

228:                                              ; preds = %224, %213, %212, %200
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %273

229:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %262, %229
  %231 = load i32, ptr %41, align 4, !tbaa !9
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %232)
  %234 = icmp slt i32 %231, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %266

236:                                              ; preds = %230
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = load i32, ptr %41, align 4, !tbaa !9
  %239 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %237, i32 noundef %238)
  br i1 %239, label %240, label %248

240:                                              ; preds = %236
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = load i32, ptr %41, align 4, !tbaa !9
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr null) #7
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9SetOutputINS_10CPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %241, i32 noundef %242, ptr noundef %42)
          to label %243 unwind label %244

243:                                              ; preds = %240
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #7
  br label %261

244:                                              ; preds = %240
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %18, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #7
  br label %265

248:                                              ; preds = %236
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = load i32, ptr %41, align 4, !tbaa !9
  %251 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %249, i32 noundef %250)
  br i1 %251, label %252, label %260

252:                                              ; preds = %248
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = load i32, ptr %41, align 4, !tbaa !9
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr null) #7
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9SetOutputINS_10GPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %253, i32 noundef %254, ptr noundef %44)
          to label %255 unwind label %256

255:                                              ; preds = %252
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %44) #7
  br label %260

256:                                              ; preds = %252
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %18, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %44) #7
  br label %265

260:                                              ; preds = %255, %248
  br label %261

261:                                              ; preds = %260, %243
  br label %262

262:                                              ; preds = %261
  %263 = load i32, ptr %41, align 4, !tbaa !9
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %41, align 4, !tbaa !9
  br label %230, !llvm.loop !20

265:                                              ; preds = %256, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %273

266:                                              ; preds = %235
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZNSt10shared_ptrIN4dali13IterationDataEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr null) #7
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE19InjectIterationDataES2_INS_13IterationDataEE(ptr noundef nonnull align 8 dereferenceable(664) %267, ptr noundef %46)
          to label %268 unwind label %269

268:                                              ; preds = %266
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void

269:                                              ; preds = %266
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %18, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %46) #7
  br label %273

273:                                              ; preds = %269, %265, %228, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %274

274:                                              ; preds = %273
  %275 = load ptr, ptr %18, align 8
  %276 = load i32, ptr %19, align 4
  %277 = insertvalue { ptr, i32 } poison, ptr %275, 0
  %278 = insertvalue { ptr, i32 } %277, i32 %276, 1
  resume { ptr, i32 } %278
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 = { 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 = { 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, !14, i64 28}
!12 = !{!"_ZTSN4dali5exec28ExecEdgeE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !13, i64 24, !14, i64 28}
!13 = !{!"_ZTSN4dali13StorageDeviceE", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


; 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::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.158" = type { %"class.std::__shared_ptr.159" }
%"class.std::__shared_ptr.159" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #3 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 #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5exec221ClearWorkspacePayloadERNS_9WorkspaceERNS0_8ExecNodeE(ptr noundef nonnull align 8 dereferenceable(664) %0, ptr noundef nonnull align 8 dereferenceable(472) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.dali::AccessOrder", align 8
  %4 = alloca %"class.dali::AccessOrder", align 8
  %5 = alloca %"class.dali::AccessOrder", align 8
  %6 = alloca %"class.std::shared_ptr.152", align 8
  %7 = alloca %"class.dali::AccessOrder", align 8
  %8 = alloca %"class.dali::AccessOrder", align 8
  %9 = alloca %"class.dali::AccessOrder", align 8
  %10 = alloca %"class.std::shared_ptr.158", align 8
  %11 = alloca %"class.std::shared_ptr.152", align 8
  %12 = alloca %"class.dali::AccessOrder", align 8
  %13 = alloca %"class.dali::AccessOrder", align 8
  %14 = alloca %"class.dali::AccessOrder", align 8
  %15 = alloca %"class.std::shared_ptr.152", align 8
  %16 = alloca %"class.std::shared_ptr.152", align 8
  %17 = alloca %"class.std::shared_ptr.158", align 8
  %18 = alloca %"class.std::shared_ptr", align 8
  %19 = tail call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9has_eventEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  br i1 %19, label %20, label %22

20:                                               ; preds = %2
  %21 = tail call noundef ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5eventEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  br label %22

22:                                               ; preds = %2, %20
  %23 = phi ptr [ %21, %20 ], [ null, %2 ]
  %24 = tail call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %.preheader117

.lr.ph:                                           ; preds = %22
  %.not = icmp eq ptr %23, null
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.255.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.251.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  br label %37

.preheader117:                                    ; preds = %86, %22
  %26 = call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph123, label %.preheader

.lr.ph123:                                        ; preds = %.preheader117
  %.not126 = icmp eq ptr %23, null
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  br i1 %.not126, label %.lr.ph123.split.us, label %.lr.ph123.split

.lr.ph123.split.us:                               ; preds = %.lr.ph123, %32
  %.0106122.us = phi i32 [ %33, %32 ], [ 0, %.lr.ph123 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZNK4dali17ArgumentWorkspace16ArgumentInputPtrEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.152") align 8 %11, ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %.0106122.us)
  %28 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  br i1 %28, label %29, label %.critedge5.us

29:                                               ; preds = %.lr.ph123.split.us
  %30 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  %31 = call noundef zeroext i1 @_ZNK4dali10TensorListINS_10CPUBackendEE9is_pinnedEv(ptr noundef nonnull align 8 dereferenceable(304) %30)
  br label %.critedge5.us

.critedge5.us:                                    ; preds = %29, %.lr.ph123.split.us
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr null) #6
  invoke void @_ZN4dali17ArgumentWorkspace16SetArgumentInputEiSt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %.0106122.us, ptr noundef nonnull %15)
          to label %32 unwind label %.split.us

32:                                               ; preds = %.critedge5.us
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %33 = add nuw nsw i32 %.0106122.us, 1
  %34 = call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %.lr.ph123.split.us, label %.preheader, !llvm.loop !5

.split.us:                                        ; preds = %.critedge5.us
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %113

37:                                               ; preds = %.lr.ph, %86
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %86 ]
  %38 = trunc nuw nsw i64 %indvars.iv to i32
  %39 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %38)
  br i1 %39, label %40, label %63

40:                                               ; preds = %37
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8InputPtrINS_10CPUBackendEEERKS2_INS1_IT_EEEiS6_(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %38)
  %42 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #6
  br i1 %42, label %43, label %86

43:                                               ; preds = %40
  %44 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  br i1 %.not, label %.critedge, label %45

45:                                               ; preds = %43
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %1, i64 noundef %indvars.iv)
  %47 = load ptr, ptr %46, align 8, !tbaa !7
  %48 = getelementptr inbounds i8, ptr %47, i64 28
  %49 = load i8, ptr %48, align 4, !tbaa !11, !range !16, !noundef !17
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %.critedge, label %51

51:                                               ; preds = %45
  %52 = call noundef zeroext i1 @_ZNK4dali10TensorListINS_10CPUBackendEE9is_pinnedEv(ptr noundef nonnull align 8 dereferenceable(304) %44)
  br i1 %52, label %53, label %.critedge

53:                                               ; preds = %51
  %54 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %44)
  %.fca.0.extract52 = extractvalue { ptr, i32 } %54, 0
  %.fca.1.extract53 = extractvalue { ptr, i32 } %54, 1
  store ptr %.fca.0.extract52, ptr %3, align 8
  store i32 %.fca.1.extract53, ptr %.sroa.255.0..sroa_idx, align 8
  %55 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  %.fca.0.extract48 = extractvalue { ptr, i32 } %55, 0
  %.fca.1.extract49 = extractvalue { ptr, i32 } %55, 1
  store ptr %.fca.0.extract48, ptr %4, align 8
  store i32 %.fca.1.extract49, ptr %.sroa.251.0..sroa_idx, align 8
  %56 = call noundef zeroext i1 @_ZNK4dali11AccessOrderneERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br i1 %56, label %57, label %59

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %58 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %44)
  %.fca.0.extract44 = extractvalue { ptr, i32 } %58, 0
  %.fca.1.extract45 = extractvalue { ptr, i32 } %58, 1
  store ptr %.fca.0.extract44, ptr %5, align 8
  store i32 %.fca.1.extract45, ptr %.sroa.247.0..sroa_idx, align 8
  call void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %59

.critedge:                                        ; preds = %43, %45, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %59

59:                                               ; preds = %.critedge, %57, %53
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8SetInputINS_10CPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %38, ptr noundef nonnull %6)
          to label %60 unwind label %61

60:                                               ; preds = %59
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %86

61:                                               ; preds = %59
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %130

63:                                               ; preds = %37
  %64 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %38)
  br i1 %64, label %65, label %86

65:                                               ; preds = %63
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8InputPtrINS_10GPUBackendEEERKS2_INS1_IT_EEEiS6_(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %38)
  %67 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %66) #6
  br i1 %67, label %68, label %86

68:                                               ; preds = %65
  %69 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %66) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  br i1 %.not, label %.critedge2, label %70

70:                                               ; preds = %68
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIPNS_5exec28ExecEdgeELm8ESaIS3_EEixEl(ptr noundef nonnull align 8 dereferenceable(72) %1, i64 noundef %indvars.iv)
  %72 = load ptr, ptr %71, align 8, !tbaa !7
  %73 = getelementptr inbounds i8, ptr %72, i64 28
  %74 = load i8, ptr %73, align 4, !tbaa !11, !range !16, !noundef !17
  %75 = trunc nuw i8 %74 to i1
  br i1 %75, label %.critedge2, label %76

76:                                               ; preds = %70
  %77 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %69)
  %.fca.0.extract34 = extractvalue { ptr, i32 } %77, 0
  %.fca.1.extract35 = extractvalue { ptr, i32 } %77, 1
  store ptr %.fca.0.extract34, ptr %7, align 8
  store i32 %.fca.1.extract35, ptr %.sroa.237.0..sroa_idx, align 8
  %78 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  %.fca.0.extract30 = extractvalue { ptr, i32 } %78, 0
  %.fca.1.extract31 = extractvalue { ptr, i32 } %78, 1
  store ptr %.fca.0.extract30, ptr %8, align 8
  store i32 %.fca.1.extract31, ptr %.sroa.233.0..sroa_idx, align 8
  %79 = call noundef zeroext i1 @_ZNK4dali11AccessOrderneERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br i1 %79, label %80, label %82

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %81 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10GPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %69)
  %.fca.0.extract26 = extractvalue { ptr, i32 } %81, 0
  %.fca.1.extract27 = extractvalue { ptr, i32 } %81, 1
  store ptr %.fca.0.extract26, ptr %9, align 8
  store i32 %.fca.1.extract27, ptr %.sroa.229.0..sroa_idx, align 8
  call void @_ZNK4dali11AccessOrder4waitEP10CUevent_st(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %82

.critedge2:                                       ; preds = %68, %70
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %82

82:                                               ; preds = %.critedge2, %80, %76
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8SetInputINS_10GPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %38, ptr noundef nonnull %10)
          to label %83 unwind label %84

83:                                               ; preds = %82
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %86

84:                                               ; preds = %82
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %130

86:                                               ; preds = %65, %83, %40, %60, %63
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %87 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next, %88
  br i1 %89, label %37, label %.preheader117, !llvm.loop !18

.preheader:                                       ; preds = %108, %32, %.preheader117
  %90 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %.lr.ph125, label %._crit_edge

.lr.ph123.split:                                  ; preds = %.lr.ph123, %108
  %.0106122 = phi i32 [ %109, %108 ], [ 0, %.lr.ph123 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZNK4dali17ArgumentWorkspace16ArgumentInputPtrEi(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.152") align 8 %11, ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %.0106122)
  %92 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  br i1 %92, label %93, label %.critedge5

93:                                               ; preds = %.lr.ph123.split
  %94 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  %95 = call noundef zeroext i1 @_ZNK4dali10TensorListINS_10CPUBackendEE9is_pinnedEv(ptr noundef nonnull align 8 dereferenceable(304) %94)
  br i1 %95, label %96, label %.critedge5

96:                                               ; preds = %93
  %97 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  %98 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %97)
  %.fca.0.extract15 = extractvalue { ptr, i32 } %98, 0
  %.fca.1.extract16 = extractvalue { ptr, i32 } %98, 1
  store ptr %.fca.0.extract15, ptr %12, align 8
  store i32 %.fca.1.extract16, ptr %.sroa.218.0..sroa_idx, align 8
  %99 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  %.fca.0.extract11 = extractvalue { ptr, i32 } %99, 0
  %.fca.1.extract12 = extractvalue { ptr, i32 } %99, 1
  store ptr %.fca.0.extract11, ptr %13, align 8
  store i32 %.fca.1.extract12, ptr %.sroa.214.0..sroa_idx, align 8
  %100 = call noundef zeroext i1 @_ZNK4dali11AccessOrderneERKS0_(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br i1 %100, label %101, label %107

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %102 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  %103 = call { ptr, i32 } @_ZNK4dali10TensorListINS_10CPUBackendEE5orderEv(ptr noundef nonnull align 8 dereferenceable(304) %102)
  %.fca.0.extract = extractvalue { ptr, i32 } %103, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %103, 1
  store ptr %.fca.0.extract, ptr %14, 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) %14, ptr noundef nonnull %23)
          to label %104 unwind label %105

104:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %107

105:                                              ; preds = %101
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %114

.critedge5:                                       ; preds = %.lr.ph123.split, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %107

107:                                              ; preds = %.critedge5, %104, %96
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr null) #6
  invoke void @_ZN4dali17ArgumentWorkspace16SetArgumentInputEiSt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %.0106122, ptr noundef nonnull %15)
          to label %108 unwind label %.split

108:                                              ; preds = %107
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %109 = add nuw nsw i32 %.0106122, 1
  %110 = call noundef i32 @_ZNK4dali17ArgumentWorkspace16NumArgumentInputEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %.lr.ph123.split, label %.preheader, !llvm.loop !5

.split:                                           ; preds = %107
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %113

113:                                              ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %112, %.split ], [ %36, %.split.us ]
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %114

114:                                              ; preds = %113, %105
  %.pn111 = phi { ptr, i32 } [ %.us-phi, %113 ], [ %106, %105 ]
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %130

._crit_edge:                                      ; preds = %126, %.preheader
  call void @_ZNSt10shared_ptrIN4dali13IterationDataEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr null) #6
  call void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE19InjectIterationDataES2_INS_13IterationDataEE(ptr noundef nonnull align 8 dereferenceable(664) %0, ptr noundef nonnull %18)
  call void @_ZNSt12__shared_ptrIN4dali13IterationDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  ret void

.lr.ph125:                                        ; preds = %.preheader, %126
  %.0124 = phi i32 [ %127, %126 ], [ 0, %.preheader ]
  %115 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %.0124)
  br i1 %115, label %116, label %120

116:                                              ; preds = %.lr.ph125
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9SetOutputINS_10CPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %.0124, ptr noundef nonnull %16)
          to label %117 unwind label %118

117:                                              ; preds = %116
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %126

118:                                              ; preds = %116
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %130

120:                                              ; preds = %.lr.ph125
  %121 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10GPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %.0124)
  br i1 %121, label %122, label %126

122:                                              ; preds = %120
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10GPUBackendEEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr null) #6
  invoke void @_ZN4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9SetOutputINS_10GPUBackendEEEviS2_INS1_IT_EEES6_(ptr noundef nonnull align 8 dereferenceable(664) %0, i32 noundef %.0124, ptr noundef nonnull %17)
          to label %123 unwind label %124

123:                                              ; preds = %122
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %126

124:                                              ; preds = %122
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10GPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %130

126:                                              ; preds = %117, %123, %120
  %127 = add nuw nsw i32 %.0124, 1
  %128 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %0)
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %.lr.ph125, label %._crit_edge, !llvm.loop !19

130:                                              ; preds = %118, %124, %61, %84, %114
  %.pn114.pn = phi { ptr, i32 } [ %.pn111, %114 ], [ %62, %61 ], [ %85, %84 ], [ %119, %118 ], [ %125, %124 ]
  resume { ptr, i32 } %.pn114.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !15, i64 28}
!12 = !{!"_ZTSN4dali5exec28ExecEdgeE", !8, i64 0, !8, i64 8, !13, i64 16, !13, i64 20, !14, i64 24, !15, i64 28}
!13 = !{!"int", !9, i64 0}
!14 = !{!"_ZTSN4dali13StorageDeviceE", !9, i64 0}
!15 = !{!"bool", !9, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass