; LLVM IR from NVIDIA/DALI :: dali/pipeline/workspace (sample_workspace)

; 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.dali::CPUBackend" = type { i8 }
%"class.dali::GPUBackend" = type { i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.21 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.21 = type { i64, [8 x i8] }
%"class.std::shared_ptr.56" = type { %"class.std::__shared_ptr.57" }
%"class.std::__shared_ptr.57" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.dali::ArgumentWorkspace::ArgumentInputBuffers" = type { %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.56" }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali14MakeSampleViewERNS_15SampleWorkspaceERNS_9WorkspaceEii(ptr noundef nonnull align 8 dereferenceable(576) %0, ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %2, i32 noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.dali::AccessOrder", align 8
  %10 = alloca { ptr, i32 }, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.dali::CPUBackend", align 1
  %15 = alloca ptr, align 8
  %16 = alloca %"class.dali::GPUBackend", align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.dali::CPUBackend", align 1
  %21 = alloca ptr, align 8
  %22 = alloca %"class.dali::GPUBackend", align 1
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::shared_ptr.56", align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4dali15SampleWorkspace5ClearEv(ptr noundef nonnull align 8 dereferenceable(576) %31)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4dali15SampleWorkspace12set_data_idxEi(ptr noundef nonnull align 8 dereferenceable(576) %32, i32 noundef %33)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4dali15SampleWorkspace14set_thread_idxEi(ptr noundef nonnull align 8 dereferenceable(576) %34, i32 noundef %35)
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %37)
  store { ptr, i32 } %38, ptr %10, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %10, i64 12, i1 false)
  %39 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 1
  %42 = load i32, ptr %41, align 8
  call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE16set_output_orderENS_11AccessOrderE(ptr noundef nonnull align 8 dereferenceable(568) %36, ptr %40, i32 %42)
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13HasThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %44)
  br i1 %45, label %46, label %49

46:                                               ; preds = %4
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call noundef nonnull align 1 ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13GetThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %47)
  br label %50

49:                                               ; preds = %4
  br label %50

50:                                               ; preds = %49, %46
  %51 = phi ptr [ %48, %46 ], [ null, %49 ]
  call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE13SetThreadPoolEPNS_10ThreadPoolE(ptr noundef nonnull align 8 dereferenceable(568) %43, ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %52)
  store i32 %53, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %82, %50
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %85

59:                                               ; preds = %54
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %60, i32 noundef %61)
  br i1 %62, label %63, label %72

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE18UnsafeMutableInputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %64, i32 noundef %65)
  store ptr %66, ptr %13, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10CPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %68, i64 noundef %70)
  call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %67, ptr noundef %71)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %81

72:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE18UnsafeMutableInputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %73, i32 noundef %74)
  store ptr %75, ptr %15, align 8, !tbaa !5
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10GPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %77, i64 noundef %79)
  call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %76, ptr noundef %80)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %81

81:                                               ; preds = %72, %63
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %12, align 4, !tbaa !9
  br label %54, !llvm.loop !11

85:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %86)
  store i32 %87, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %116, %85
  %89 = load i32, ptr %18, align 4, !tbaa !9
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %119

93:                                               ; preds = %88
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %94, i32 noundef %95)
  br i1 %96, label %97, label %106

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %98, i32 noundef %99)
  store ptr %100, ptr %19, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10CPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %102, i64 noundef %104)
  call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %101, ptr noundef %105)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %115

106:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load i32, ptr %18, align 4, !tbaa !9
  %109 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %107, i32 noundef %108)
  store ptr %109, ptr %21, align 8, !tbaa !5
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10GPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %111, i64 noundef %113)
  call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %110, ptr noundef %114)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %115

115:                                              ; preds = %106, %97
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %18, align 4, !tbaa !9
  br label %88, !llvm.loop !13

119:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = call noundef nonnull align 8 dereferenceable(200) ptr @_ZNK4dali17ArgumentWorkspace14ArgumentInputsEv(ptr noundef nonnull align 8 dereferenceable(256) %120)
  store ptr %121, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %122 = load ptr, ptr %23, align 8, !tbaa !5
  %123 = call noundef ptr @_ZNK4dali11SmallVectorINS_17ArgumentWorkspace20ArgumentInputBuffersELm4ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(200) %122)
  store ptr %123, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %124 = load ptr, ptr %23, align 8, !tbaa !5
  %125 = call noundef ptr @_ZNK4dali11SmallVectorINS_17ArgumentWorkspace20ArgumentInputBuffersELm4ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(200) %124)
  store ptr %125, ptr %25, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %140, %119
  %127 = load ptr, ptr %24, align 8, !tbaa !5
  %128 = load ptr, ptr %25, align 8, !tbaa !5
  %129 = icmp ne ptr %127, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %147

131:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %132 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %132, ptr %26, align 8, !tbaa !5
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = load ptr, ptr %26, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.dali::ArgumentWorkspace::ArgumentInputBuffers", ptr %134, i32 0, i32 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %135)
  %136 = load ptr, ptr %26, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.dali::ArgumentWorkspace::ArgumentInputBuffers", ptr %136, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %137) #6
  %138 = invoke noundef i32 @_ZN4dali17ArgumentWorkspace16AddArgumentInputENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %133, ptr noundef %27, ptr noundef %28)
          to label %139 unwind label %143

139:                                              ; preds = %131
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %140

140:                                              ; preds = %139
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.dali::ArgumentWorkspace::ArgumentInputBuffers", ptr %141, i32 1
  store ptr %142, ptr %24, align 8, !tbaa !5
  br label %126

143:                                              ; preds = %131
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %29, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %30, align 4
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %148

147:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void

148:                                              ; preds = %143
  %149 = load ptr, ptr %29, align 8
  %150 = load i32, ptr %30, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE13SetThreadPoolEPNS_10ThreadPoolE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) #4 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5

; Function Attrs: inlinehint mustprogress 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 zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress 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_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.21 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.21 = type { i64, [8 x i8] }
%"class.std::shared_ptr.56" = type { %"class.std::__shared_ptr.57" }
%"class.std::__shared_ptr.57" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali14MakeSampleViewERNS_15SampleWorkspaceERNS_9WorkspaceEii(ptr noundef nonnull align 8 dereferenceable(576) %0, ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::shared_ptr.56", align 8
  tail call void @_ZN4dali15SampleWorkspace5ClearEv(ptr noundef nonnull align 8 dereferenceable(576) %0)
  tail call void @_ZN4dali15SampleWorkspace12set_data_idxEi(ptr noundef nonnull align 8 dereferenceable(576) %0, i32 noundef %2)
  tail call void @_ZN4dali15SampleWorkspace14set_thread_idxEi(ptr noundef nonnull align 8 dereferenceable(576) %0, i32 noundef %3)
  %7 = tail call { ptr, i32 } @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12output_orderEv(ptr noundef nonnull align 8 dereferenceable(664) %1)
  %.fca.0.extract = extractvalue { ptr, i32 } %7, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %7, 1
  tail call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE16set_output_orderENS_11AccessOrderE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr %.fca.0.extract, i32 %.fca.1.extract)
  %8 = tail call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13HasThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %1)
  br i1 %8, label %9, label %11

9:                                                ; preds = %4
  %10 = tail call noundef nonnull align 1 ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13GetThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %1)
  br label %11

11:                                               ; preds = %4, %9
  %12 = phi ptr [ %10, %9 ], [ null, %4 ]
  tail call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE13SetThreadPoolEPNS_10ThreadPoolE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %12)
  %13 = tail call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE8NumInputEv(ptr noundef nonnull align 8 dereferenceable(664) %1)
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11
  %15 = sext i32 %2 to i64
  br label %19

._crit_edge:                                      ; preds = %27, %11
  %16 = tail call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE9NumOutputEv(ptr noundef nonnull align 8 dereferenceable(664) %1)
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %._crit_edge
  %18 = sext i32 %2 to i64
  br label %32

19:                                               ; preds = %.lr.ph, %27
  %.057 = phi i32 [ 0, %.lr.ph ], [ %28, %27 ]
  %20 = tail call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %.057)
  br i1 %20, label %21, label %24

21:                                               ; preds = %19
  %22 = tail call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE18UnsafeMutableInputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %.057)
  %23 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10CPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %22, i64 noundef %15)
  tail call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef nonnull %23)
  br label %27

24:                                               ; preds = %19
  %25 = tail call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE18UnsafeMutableInputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %.057)
  %26 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10GPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %25, i64 noundef %15)
  tail call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef nonnull %26)
  br label %27

27:                                               ; preds = %21, %24
  %28 = add nuw nsw i32 %.057, 1
  %exitcond.not = icmp eq i32 %28, %13
  br i1 %exitcond.not, label %._crit_edge, label %19, !llvm.loop !5

._crit_edge61:                                    ; preds = %40, %._crit_edge
  %29 = tail call noundef nonnull align 8 dereferenceable(200) ptr @_ZNK4dali17ArgumentWorkspace14ArgumentInputsEv(ptr noundef nonnull align 8 dereferenceable(256) %1)
  %30 = tail call noundef ptr @_ZNK4dali11SmallVectorINS_17ArgumentWorkspace20ArgumentInputBuffersELm4ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(200) %29)
  %31 = tail call noundef ptr @_ZNK4dali11SmallVectorINS_17ArgumentWorkspace20ArgumentInputBuffersELm4ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(200) %29)
  %.not62 = icmp eq ptr %30, %31
  br i1 %.not62, label %._crit_edge66, label %.lr.ph65

32:                                               ; preds = %.lr.ph60, %40
  %.05558 = phi i32 [ 0, %.lr.ph60 ], [ %41, %40 ]
  %33 = tail call noundef zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %.05558)
  br i1 %33, label %34, label %37

34:                                               ; preds = %32
  %35 = tail call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %.05558)
  %36 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10CPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %35, i64 noundef %18)
  tail call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef nonnull %36)
  br label %40

37:                                               ; preds = %32
  %38 = tail call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10GPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef %.05558)
  %39 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZN4dali10TensorListINS_10GPUBackendEE13tensor_handleEm(ptr noundef nonnull align 8 dereferenceable(304) %38, i64 noundef %18)
  tail call void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef nonnull %39)
  br label %40

40:                                               ; preds = %34, %37
  %41 = add nuw nsw i32 %.05558, 1
  %exitcond67.not = icmp eq i32 %41, %16
  br i1 %exitcond67.not, label %._crit_edge61, label %32, !llvm.loop !7

._crit_edge66:                                    ; preds = %44, %._crit_edge61
  ret void

.lr.ph65:                                         ; preds = %._crit_edge61, %44
  %.05663 = phi ptr [ %45, %44 ], [ %30, %._crit_edge61 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %.05663)
  %42 = getelementptr inbounds i8, ptr %.05663, i64 32
  call void @_ZNSt10shared_ptrIN4dali10TensorListINS0_10CPUBackendEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %42) #4
  %43 = invoke noundef i32 @_ZN4dali17ArgumentWorkspace16AddArgumentInputENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrINS_10TensorListINS_10CPUBackendEEEE(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %44 unwind label %46

44:                                               ; preds = %.lr.ph65
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  %45 = getelementptr inbounds i8, ptr %.05663, i64 48
  %.not = icmp eq ptr %45, %31
  br i1 %.not, label %._crit_edge66, label %.lr.ph65

46:                                               ; preds = %.lr.ph65
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4dali10TensorListINS0_10CPUBackendEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  resume { ptr, i32 } %47
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress 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 zeroext i1 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE11InputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE8AddInputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress 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_ptrE12OutputIsTypeINS_10CPUBackendEEEbi(ptr noundef nonnull align 8 dereferenceable(664), i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10CPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE9AddOutputEPNS1_INS_10GPUBackendEEE(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { 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 #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 = { 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 = distinct !{!7, !6}


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