; LLVM IR from NVIDIA/DALI :: dali/operators/reader/parser (sequence_parser)

; 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::TensorLayout" = type { [16 x 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::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.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"class.std::allocator.18" = type { i8 }
%"class.std::shared_ptr.39" = type { %"class.std::__shared_ptr.40" }
%"class.std::__shared_ptr.40" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.dali::TensorShape.35" = type { %"struct.dali::TensorShapeBase.36" }
%"struct.dali::TensorShapeBase.36" = type { %"class.dali::DeviceArray" }
%"class.dali::DeviceArray" = type { [3 x i64] }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.45" = type { i8 }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector.25" }
%"class.dali::SmallVector.25" = type { %union.anon.28, i64 }
%union.anon.28 = type { %struct.anon.29, [32 x i8] }
%struct.anon.29 = type { ptr, i64 }
%"class.dali::Tensor" = type { %"class.dali::Buffer.base", %"struct.dali::TensorShape", %"class.dali::DALIMeta", %"class.dali::CUDASharedEvent" }
%"class.dali::Buffer.base" = type <{ ptr, %"class.dali::TypeInfo", %"class.std::shared_ptr.22", %"class.std::function", i64, i64, i32, [4 x i8], %"class.dali::AccessOrder", i8, i8 }>
%"class.dali::TypeInfo" = type { ptr, i32, i64, %"class.std::basic_string_view" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::shared_ptr.22" = type { %"class.std::__shared_ptr.23" }
%"class.std::__shared_ptr.23" = type { ptr, %"class.std::__shared_count" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.dali::DALIMeta" = type <{ %"class.dali::TensorLayout", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.22" }
%"struct.dali::TensorSequence" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.dali::SequenceParser" = type <{ %"class.dali::Parser", i32, [4 x i8] }>
%"class.dali::Parser" = type { ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali14SequenceParser5ParseERKNS_14TensorSequenceEPNS_15SampleWorkspaceE(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.dali::CPUBackend", align 1
  %9 = alloca %"class.dali::TensorLayout", align 1
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::unique_ptr", align 8
  %13 = alloca %"class.std::unique_ptr", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator.18", align 1
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca i1, align 1
  %23 = alloca %"class.std::shared_ptr.39", align 8
  %24 = alloca %"struct.dali::TensorShape.35", align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca %"class.std::vector.43", align 8
  %30 = alloca %"class.std::initializer_list", align 8
  %31 = alloca [4 x i64], align 8
  %32 = alloca %"class.std::allocator.45", align 1
  %33 = alloca %"struct.dali::TensorShape", align 8
  %34 = alloca %"class.dali::Tensor", align 8
  %35 = alloca i64, align 8
  %36 = alloca %"class.dali::Tensor", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::unique_ptr", align 8
  %39 = alloca %"class.std::unique_ptr", align 8
  %40 = alloca ptr, align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca ptr, align 8
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator.18", align 1
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca i1, align 1
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::__cxx11::basic_string", align 8
  %49 = alloca %"class.std::__cxx11::basic_string", align 8
  %50 = alloca %"class.std::allocator.18", align 1
  %51 = alloca %"class.std::__cxx11::basic_string", align 8
  %52 = alloca %"class.std::allocator.18", align 1
  %53 = alloca %"class.std::__cxx11::basic_string", align 8
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca %"class.std::allocator.18", align 1
  %57 = alloca %"class.std::__cxx11::basic_string", align 8
  %58 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNK4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(568) %60, i32 noundef 0)
  store ptr %61, ptr %7, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  call void @_ZN4dali12TensorLayoutC2EPKc(ptr noundef nonnull align 1 dereferenceable(16) %9, ptr noundef @.str)
  call void @_ZN4dali6TensorINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(272) %62, ptr noundef nonnull align 1 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.dali::TensorSequence", ptr %63, i32 0, i32 0
  %65 = call noundef i64 @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #9
  store i64 %65, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #9
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.dali::TensorSequence", ptr %66, i32 0, i32 0
  %68 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef 0) #9
  call void @_ZNK4dali6TensorINS_10CPUBackendEE13GetSourceInfoB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(272) %68)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.dali::TensorSequence", ptr %69, i32 0, i32 0
  %71 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef 0) #9
  %72 = invoke noundef ptr @_ZNK4dali6BufferINS_10CPUBackendEE4dataIhEEPKT_v(ptr noundef nonnull align 8 dereferenceable(138) %71)
          to label %73 unwind label %85

73:                                               ; preds = %3
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.dali::TensorSequence", ptr %74, i32 0, i32 0
  %76 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 0) #9
  %77 = invoke noundef i64 @_ZNK4dali6BufferINS_10CPUBackendEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(138) %76)
          to label %78 unwind label %85

78:                                               ; preds = %73
  %79 = getelementptr inbounds %"class.dali::SequenceParser", ptr %59, i32 0, i32 1
  %80 = load i32, ptr %79, align 8, !tbaa !11
  invoke void @_ZN4dali12ImageFactory11CreateImageEPKhmNS_13DALIImageTypeE(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %13, ptr noundef %72, i64 noundef %77, i32 noundef %80)
          to label %81 unwind label %85

81:                                               ; preds = %78
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  %83 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  invoke void @_ZN4dali5Image6DecodeEv(ptr noundef nonnull align 8 dereferenceable(104) %83)
          to label %84 unwind label %89

84:                                               ; preds = %81
  br label %133

85:                                               ; preds = %78, %73, %3
  %86 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %14, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %93

89:                                               ; preds = %81
  %90 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %14, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %15, align 4
  br label %93

93:                                               ; preds = %89, %85
  %94 = load i32, ptr %15, align 4
  %95 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %96 = icmp eq i32 %94, %95
  br i1 %96, label %97, label %231

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %98 = load ptr, ptr %14, align 8
  %99 = call ptr @__cxa_begin_catch(ptr %98) #9
  store ptr %99, ptr %16, align 8
  store i1 true, ptr %22, align 1
  %100 = call ptr @__cxa_allocate_exception(i64 80) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !15
  %103 = getelementptr inbounds ptr, ptr %102, i64 2
  %104 = load ptr, ptr %103, align 8
  %105 = call noundef ptr %104(ptr noundef nonnull align 8 dereferenceable(8) %101) #9
  store ptr %105, ptr %18, align 8, !tbaa !5
  invoke void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 1 dereferenceable(9) @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %106 unwind label %110

106:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %107 unwind label %114

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #9
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21)
          to label %108 unwind label %118

108:                                              ; preds = %107
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %100, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %109 unwind label %122

109:                                              ; preds = %108
  store i1 false, ptr %22, align 1
  invoke void @__cxa_throw(ptr %100, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #10
          to label %405 unwind label %122

110:                                              ; preds = %97
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %14, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %15, align 4
  br label %128

114:                                              ; preds = %106
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %14, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %15, align 4
  br label %127

118:                                              ; preds = %107
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %14, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %15, align 4
  br label %126

122:                                              ; preds = %109, %108
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %14, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  br label %126

126:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %127

127:                                              ; preds = %126, %114
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  br label %128

128:                                              ; preds = %127, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #9
  %129 = load i1, ptr %22, align 1
  br i1 %129, label %130, label %131

130:                                              ; preds = %128
  call void @__cxa_free_exception(ptr %100) #9
  br label %131

131:                                              ; preds = %130, %128
  invoke void @__cxa_end_catch()
          to label %132 unwind label %402

132:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %231

133:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %134 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  invoke void @_ZNK4dali5Image8GetImageEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.39") align 8 %23, ptr noundef nonnull align 8 dereferenceable(104) %134)
          to label %135 unwind label %177

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #9
  %136 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  invoke void @_ZNK4dali5Image8GetShapeEv(ptr dead_on_unwind writable sret(%"struct.dali::TensorShape.35") align 8 %24, ptr noundef nonnull align 8 dereferenceable(104) %136)
          to label %137 unwind label %181

137:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 0)
          to label %139 unwind label %185

139:                                              ; preds = %137
  %140 = load i64, ptr %138, align 8, !tbaa !9
  store i64 %140, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1)
          to label %142 unwind label %189

142:                                              ; preds = %139
  %143 = load i64, ptr %141, align 8, !tbaa !9
  store i64 %143, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 2)
          to label %145 unwind label %193

145:                                              ; preds = %142
  %146 = load i64, ptr %144, align 8, !tbaa !9
  store i64 %146, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %147 = invoke noundef i64 @_ZN4dali6volumeINS_11TensorShapeILi3EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %148 unwind label %197

148:                                              ; preds = %145
  store i64 %147, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #9
  %149 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %149, ptr %31, align 8, !tbaa !9
  %150 = getelementptr inbounds i64, ptr %31, i64 1
  %151 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %151, ptr %150, align 8, !tbaa !9
  %152 = getelementptr inbounds i64, ptr %31, i64 2
  %153 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %153, ptr %152, align 8, !tbaa !9
  %154 = getelementptr inbounds i64, ptr %31, i64 3
  %155 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %155, ptr %154, align 8, !tbaa !9
  %156 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 0
  store ptr %31, ptr %156, align 8, !tbaa !17
  %157 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 1
  store i64 4, ptr %157, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #9
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  %158 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  %160 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %161 = load i64, ptr %160, align 8
  invoke void @_ZNSt6vectorIlSaIlEEC2ESt16initializer_listIlERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr %159, i64 %161, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %162 unwind label %201

162:                                              ; preds = %148
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #9
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %33) #9
  invoke void @_ZN4dali11TensorShapeILin1EEC2ISt6vectorIlSaIlEEvEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %164 unwind label %205

164:                                              ; preds = %162
  invoke void @_ZN4dali6TensorINS_10CPUBackendEE6ResizeERKNS_11TensorShapeILin1EEE13_DALIDataType(ptr noundef nonnull align 8 dereferenceable(272) %163, ptr noundef nonnull align 8 dereferenceable(56) %33, i32 noundef 0)
          to label %165 unwind label %209

165:                                              ; preds = %164
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %33) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 272, ptr %34) #9
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN4dali6TensorINS_10CPUBackendEE14SubspaceTensorEl(ptr dead_on_unwind writable sret(%"class.dali::Tensor") align 8 %34, ptr noundef nonnull align 8 dereferenceable(272) %166, i64 noundef 0)
          to label %167 unwind label %214

167:                                              ; preds = %165
  %168 = invoke noundef ptr @_ZN4dali6BufferINS_10CPUBackendEE16raw_mutable_dataEv(ptr noundef nonnull align 8 dereferenceable(138) %34)
          to label %169 unwind label %218

169:                                              ; preds = %167
  %170 = call noundef ptr @_ZNKSt12__shared_ptrIhLN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  %171 = load i64, ptr %28, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %168, ptr align 1 %170, i64 %171, i1 false)
  call void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272) %34) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr %34) #9
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #9
  call void @_ZNSt12__shared_ptrIhLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  store i64 1, ptr %35, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %390, %169
  %173 = load i64, ptr %35, align 8, !tbaa !9
  %174 = load i64, ptr %10, align 8, !tbaa !9
  %175 = icmp slt i64 %173, %174
  br i1 %175, label %232, label %176

176:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %395

177:                                              ; preds = %133
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %14, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %15, align 4
  br label %230

181:                                              ; preds = %135
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %14, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %15, align 4
  br label %229

185:                                              ; preds = %137
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %14, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %15, align 4
  br label %228

189:                                              ; preds = %139
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %14, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %15, align 4
  br label %227

193:                                              ; preds = %142
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %14, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %15, align 4
  br label %226

197:                                              ; preds = %145
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %14, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %15, align 4
  br label %225

201:                                              ; preds = %148
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %14, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #9
  br label %224

205:                                              ; preds = %162
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %14, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %15, align 4
  br label %213

209:                                              ; preds = %164
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %14, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %15, align 4
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %33) #9
  br label %213

213:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 56, ptr %33) #9
  br label %223

214:                                              ; preds = %165
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %14, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %15, align 4
  br label %222

218:                                              ; preds = %167
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %14, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %15, align 4
  call void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272) %34) #9
  br label %222

222:                                              ; preds = %218, %214
  call void @llvm.lifetime.end.p0(i64 272, ptr %34) #9
  br label %223

223:                                              ; preds = %222, %213
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  br label %224

224:                                              ; preds = %223, %201
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  br label %225

225:                                              ; preds = %224, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %226

226:                                              ; preds = %225, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %227

227:                                              ; preds = %226, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %228

228:                                              ; preds = %227, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %229

229:                                              ; preds = %228, %181
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #9
  call void @_ZNSt12__shared_ptrIhLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #9
  br label %230

230:                                              ; preds = %229, %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  br label %231

231:                                              ; preds = %230, %132, %93
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #9
  br label %396

232:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 272, ptr %36) #9
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = load i64, ptr %35, align 8, !tbaa !9
  call void @_ZN4dali6TensorINS_10CPUBackendEE14SubspaceTensorEl(ptr dead_on_unwind writable sret(%"class.dali::Tensor") align 8 %36, ptr noundef nonnull align 8 dereferenceable(272) %233, i64 noundef %234)
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #9
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.dali::TensorSequence", ptr %235, i32 0, i32 0
  %237 = load i64, ptr %35, align 8, !tbaa !9
  %238 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %237) #9
  invoke void @_ZNK4dali6TensorINS_10CPUBackendEE13GetSourceInfoB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef nonnull align 8 dereferenceable(272) %238)
          to label %239 unwind label %258

239:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.dali::TensorSequence", ptr %240, i32 0, i32 0
  %242 = load i64, ptr %35, align 8, !tbaa !9
  %243 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %242) #9
  %244 = invoke noundef ptr @_ZNK4dali6BufferINS_10CPUBackendEE4dataIhEEPKT_v(ptr noundef nonnull align 8 dereferenceable(138) %243)
          to label %245 unwind label %262

245:                                              ; preds = %239
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.dali::TensorSequence", ptr %246, i32 0, i32 0
  %248 = load i64, ptr %35, align 8, !tbaa !9
  %249 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %248) #9
  %250 = invoke noundef i64 @_ZNK4dali6BufferINS_10CPUBackendEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(138) %249)
          to label %251 unwind label %262

251:                                              ; preds = %245
  %252 = getelementptr inbounds %"class.dali::SequenceParser", ptr %59, i32 0, i32 1
  %253 = load i32, ptr %252, align 8, !tbaa !11
  invoke void @_ZN4dali12ImageFactory11CreateImageEPKhmNS_13DALIImageTypeE(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %39, ptr noundef %244, i64 noundef %250, i32 noundef %253)
          to label %254 unwind label %262

254:                                              ; preds = %251
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  %256 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  invoke void @_ZN4dali5Image6DecodeEv(ptr noundef nonnull align 8 dereferenceable(104) %256)
          to label %257 unwind label %266

257:                                              ; preds = %254
  br label %310

258:                                              ; preds = %232
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %14, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %15, align 4
  br label %394

262:                                              ; preds = %251, %245, %239
  %263 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %14, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %270

266:                                              ; preds = %254
  %267 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %14, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %15, align 4
  br label %270

270:                                              ; preds = %266, %262
  %271 = load i32, ptr %15, align 4
  %272 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %273 = icmp eq i32 %271, %272
  br i1 %273, label %274, label %393

274:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %275 = load ptr, ptr %14, align 8
  %276 = call ptr @__cxa_begin_catch(ptr %275) #9
  store ptr %276, ptr %40, align 8
  store i1 true, ptr %46, align 1
  %277 = call ptr @__cxa_allocate_exception(i64 80) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %278 = load ptr, ptr %40, align 8, !tbaa !5
  %279 = load ptr, ptr %278, align 8, !tbaa !15
  %280 = getelementptr inbounds ptr, ptr %279, i64 2
  %281 = load ptr, ptr %280, align 8
  %282 = call noundef ptr %281(ptr noundef nonnull align 8 dereferenceable(8) %278) #9
  store ptr %282, ptr %42, align 8, !tbaa !5
  invoke void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %41, ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 1 dereferenceable(9) @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %283 unwind label %287

283:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %284 unwind label %291

284:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #9
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %45)
          to label %285 unwind label %295

285:                                              ; preds = %284
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %277, ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef %43, ptr noundef nonnull align 8 dereferenceable(32) %45)
          to label %286 unwind label %299

286:                                              ; preds = %285
  store i1 false, ptr %46, align 1
  invoke void @__cxa_throw(ptr %277, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #10
          to label %405 unwind label %299

287:                                              ; preds = %274
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %14, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %15, align 4
  br label %305

291:                                              ; preds = %283
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %14, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %15, align 4
  br label %304

295:                                              ; preds = %284
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %14, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %15, align 4
  br label %303

299:                                              ; preds = %286, %285
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %14, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #9
  br label %303

303:                                              ; preds = %299, %295
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  br label %304

304:                                              ; preds = %303, %291
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #9
  br label %305

305:                                              ; preds = %304, %287
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #9
  %306 = load i1, ptr %46, align 1
  br i1 %306, label %307, label %308

307:                                              ; preds = %305
  call void @__cxa_free_exception(ptr %277) #9
  br label %308

308:                                              ; preds = %307, %305
  invoke void @__cxa_end_catch()
          to label %309 unwind label %402

309:                                              ; preds = %308
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %393

310:                                              ; preds = %257
  %311 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  %312 = invoke noundef ptr @_ZN4dali6BufferINS_10CPUBackendEE12mutable_dataIhEEPT_v(ptr noundef nonnull align 8 dereferenceable(138) %36)
          to label %313 unwind label %331

313:                                              ; preds = %310
  invoke void @_ZNK4dali5Image8GetImageIhEEvPT_(ptr noundef nonnull align 8 dereferenceable(104) %311, ptr noundef %312)
          to label %314 unwind label %331

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314
  %316 = invoke noundef zeroext i1 @_ZNK4dali6BufferINS_10CPUBackendEE11shares_dataEv(ptr noundef nonnull align 8 dereferenceable(138) %36)
          to label %317 unwind label %331

317:                                              ; preds = %315
  br i1 %316, label %387, label %318

318:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %50)
          to label %319 unwind label %335

319:                                              ; preds = %318
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %48, ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef @.str.5)
          to label %320 unwind label %339

320:                                              ; preds = %319
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %47, ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef @.str.6)
          to label %321 unwind label %343

321:                                              ; preds = %320
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %52) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %52)
          to label %322 unwind label %349

322:                                              ; preds = %321
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %53) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %53, ptr noundef @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %323 unwind label %353

323:                                              ; preds = %322
  %324 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %325 unwind label %357

325:                                              ; preds = %323
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #9
  store i1 true, ptr %58, align 1
  %326 = call ptr @__cxa_allocate_exception(i64 80) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %54) #9
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %54, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %327 unwind label %362

327:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %56)
          to label %328 unwind label %366

328:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 32, ptr %57) #9
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %57)
          to label %329 unwind label %370

329:                                              ; preds = %328
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %326, ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef %55, ptr noundef nonnull align 8 dereferenceable(32) %57)
          to label %330 unwind label %374

330:                                              ; preds = %329
  store i1 false, ptr %58, align 1
  invoke void @__cxa_throw(ptr %326, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #10
          to label %405 unwind label %374

331:                                              ; preds = %315, %313, %310
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %14, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %15, align 4
  br label %393

335:                                              ; preds = %318
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %14, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %15, align 4
  br label %348

339:                                              ; preds = %319
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %14, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %15, align 4
  br label %347

343:                                              ; preds = %320
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %14, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #9
  br label %347

347:                                              ; preds = %343, %339
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #9
  br label %348

348:                                              ; preds = %347, %335
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #9
  br label %386

349:                                              ; preds = %321
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %14, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #9
  br label %385

353:                                              ; preds = %322
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %14, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %15, align 4
  br label %361

357:                                              ; preds = %323
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %14, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #9
  br label %361

361:                                              ; preds = %357, %353
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #9
  br label %384

362:                                              ; preds = %325
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %14, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %15, align 4
  br label %380

366:                                              ; preds = %327
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %14, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %15, align 4
  br label %379

370:                                              ; preds = %328
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %14, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %15, align 4
  br label %378

374:                                              ; preds = %330, %329
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %14, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #9
  br label %378

378:                                              ; preds = %374, %370
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #9
  br label %379

379:                                              ; preds = %378, %366
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #9
  br label %380

380:                                              ; preds = %379, %362
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #9
  %381 = load i1, ptr %58, align 1
  br i1 %381, label %382, label %383

382:                                              ; preds = %380
  call void @__cxa_free_exception(ptr %326) #9
  br label %383

383:                                              ; preds = %382, %380
  br label %384

384:                                              ; preds = %383, %361
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #9
  br label %385

385:                                              ; preds = %384, %349
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #9
  br label %386

386:                                              ; preds = %385, %348
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #9
  br label %393

387:                                              ; preds = %317
  br label %388

388:                                              ; preds = %387
  br label %389

389:                                              ; preds = %388
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #9
  call void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272) %36) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr %36) #9
  br label %390

390:                                              ; preds = %389
  %391 = load i64, ptr %35, align 8, !tbaa !9
  %392 = add nsw i64 %391, 1
  store i64 %392, ptr %35, align 8, !tbaa !9
  br label %172, !llvm.loop !20

393:                                              ; preds = %386, %331, %309, %270
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  br label %394

394:                                              ; preds = %393, %258
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #9
  call void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272) %36) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %396

395:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  ret void

396:                                              ; preds = %394, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %397

397:                                              ; preds = %396
  %398 = load ptr, ptr %14, align 8
  %399 = load i32, ptr %15, align 4
  %400 = insertvalue { ptr, i32 } poison, ptr %398, 0
  %401 = insertvalue { ptr, i32 } %400, i32 %399, 1
  resume { ptr, i32 } %401

402:                                              ; preds = %308, %131
  %403 = landingpad { ptr, i32 }
          catch ptr null
  %404 = extractvalue { ptr, i32 } %403, 0
  call void @__clang_call_terminate(ptr %404) #11
  unreachable

405:                                              ; preds = %330, %286, %109
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali6TensorINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 1 dereferenceable(16)) #2 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK4dali6TensorINS_10CPUBackendEE13GetSourceInfoB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(272)) #2 align 2

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

declare void @_ZN4dali12ImageFactory11CreateImageEPKhmNS_13DALIImageTypeE(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef, i64 noundef, i32 noundef) #4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali6BufferINS_10CPUBackendEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(138)) #5 align 2

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

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

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

declare void @_ZN4dali5Image6DecodeEv(ptr noundef nonnull align 8 dereferenceable(104)) #4

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr)

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(32)) #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali13DALIExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

declare void @__cxa_free_exception(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #7

declare void @_ZNK4dali5Image8GetImageEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.39") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #4

declare void @_ZNK4dali5Image8GetShapeEv(ptr dead_on_unwind writable sret(%"struct.dali::TensorShape.35") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4dali6volumeINS_11TensorShapeILi3EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali6TensorINS_10CPUBackendEE6ResizeERKNS_11TensorShapeILin1EEE13_DALIDataType(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali6TensorINS_10CPUBackendEE14SubspaceTensorEl(ptr dead_on_unwind noalias writable sret(%"class.dali::Tensor") align 8, ptr noundef nonnull align 8 dereferenceable(272), i64 noundef) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4dali6BufferINS_10CPUBackendEE11shares_dataEv(ptr noundef nonnull align 8 dereferenceable(138)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #0

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind memory(none) }
attributes #7 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTSN4dali14SequenceParserE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN4dali6ParserINS_14TensorSequenceEEE"}
!14 = !{!"_ZTSN4dali13DALIImageTypeE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSSt16initializer_listIlE", !6, i64 0, !10, i64 8}
!19 = !{!18, !10, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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

%"class.dali::TensorLayout" = type { [16 x 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::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.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"class.std::allocator.18" = type { i8 }
%"class.std::shared_ptr.39" = type { %"class.std::__shared_ptr.40" }
%"class.std::__shared_ptr.40" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.dali::TensorShape.35" = type { %"struct.dali::TensorShapeBase.36" }
%"struct.dali::TensorShapeBase.36" = type { %"class.dali::DeviceArray" }
%"class.dali::DeviceArray" = type { [3 x i64] }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.45" = type { i8 }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector.25" }
%"class.dali::SmallVector.25" = type { %union.anon.28, i64 }
%union.anon.28 = type { %struct.anon.29, [32 x i8] }
%struct.anon.29 = type { ptr, i64 }
%"class.dali::Tensor" = type { %"class.dali::Buffer.base", %"struct.dali::TensorShape", %"class.dali::DALIMeta", %"class.dali::CUDASharedEvent" }
%"class.dali::Buffer.base" = type <{ ptr, %"class.dali::TypeInfo", %"class.std::shared_ptr.22", %"class.std::function", i64, i64, i32, [4 x i8], %"class.dali::AccessOrder", i8, i8 }>
%"class.dali::TypeInfo" = type { ptr, i32, i64, %"class.std::basic_string_view" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::shared_ptr.22" = type { %"class.std::__shared_ptr.23" }
%"class.std::__shared_ptr.23" = type { ptr, %"class.std::__shared_count" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.dali::DALIMeta" = type <{ %"class.dali::TensorLayout", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr.22" }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [99 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.3 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [99 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali14SequenceParser5ParseERKNS_14TensorSequenceEPNS_15SampleWorkspaceE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.dali::TensorLayout", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::unique_ptr", align 8
  %7 = alloca %"class.std::unique_ptr", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.18", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::shared_ptr.39", align 8
  %14 = alloca %"struct.dali::TensorShape.35", align 8
  %15 = alloca %"class.std::vector.43", align 8
  %16 = alloca [4 x i64], align 8
  %17 = alloca %"class.std::allocator.45", align 1
  %18 = alloca %"struct.dali::TensorShape", align 8
  %19 = alloca %"class.dali::Tensor", align 8
  %20 = alloca %"class.dali::Tensor", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::unique_ptr", align 8
  %23 = alloca %"class.std::unique_ptr", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.18", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.18", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.18", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator.18", align 1
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZNK4dali13WorkspaceBaseINS_6TensorESt13add_pointer_tE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(568) %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN4dali12TensorLayoutC2EPKc(ptr noundef nonnull align 1 dereferenceable(16) %4, ptr noundef nonnull @.str)
  call void @_ZN4dali6TensorINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(272) %40, ptr noundef nonnull align 1 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  %41 = call noundef i64 @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  %42 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #9
  call void @_ZNK4dali6TensorINS_10CPUBackendEE13GetSourceInfoB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(272) %42)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %43 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #9
  %44 = invoke noundef ptr @_ZNK4dali6BufferINS_10CPUBackendEE4dataIhEEPKT_v(ptr noundef nonnull align 8 dereferenceable(138) %43)
          to label %45 unwind label %53

45:                                               ; preds = %3
  %46 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #9
  %47 = call noundef i64 @_ZNK4dali6BufferINS_10CPUBackendEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(138) %46)
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  %49 = load i32, ptr %48, align 8, !tbaa !5
  invoke void @_ZN4dali12ImageFactory11CreateImageEPKhmNS_13DALIImageTypeE(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %7, ptr noundef %44, i64 noundef %47, i32 noundef %49)
          to label %50 unwind label %53

50:                                               ; preds = %45
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %52 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  invoke void @_ZN4dali5Image6DecodeEv(ptr noundef nonnull align 8 dereferenceable(104) %52)
          to label %82 unwind label %55

53:                                               ; preds = %45, %3
  %54 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %57

55:                                               ; preds = %50
  %56 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  %.039 = extractvalue { ptr, i32 } %.pn, 0
  %.044 = extractvalue { ptr, i32 } %.pn, 1
  %58 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #9
  %59 = icmp eq i32 %.044, %58
  br i1 %59, label %60, label %124

60:                                               ; preds = %57
  %61 = call ptr @__cxa_begin_catch(ptr %.039) #9
  %62 = call ptr @__cxa_allocate_exception(i64 80) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %63 = load ptr, ptr %61, align 8, !tbaa !11
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef ptr %65(ptr noundef nonnull align 8 dereferenceable(8) %61) #9
  store ptr %66, ptr %9, align 8, !tbaa !13
  invoke void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(9) @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %67 unwind label %.thread

67:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %68 unwind label %72

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #9
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12)
          to label %69 unwind label %74

69:                                               ; preds = %68
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %62, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull %10, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %70 unwind label %76

70:                                               ; preds = %69
  invoke void @__cxa_throw(ptr nonnull %62, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #10
          to label %230 unwind label %76

.thread:                                          ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
  %.342108 = extractvalue { ptr, i32 } %71, 0
  %.347109 = extractvalue { ptr, i32 } %71, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %80

72:                                               ; preds = %67
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %79

74:                                               ; preds = %68
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

76:                                               ; preds = %70, %69
  %.071 = phi i1 [ false, %70 ], [ true, %69 ]
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %78

78:                                               ; preds = %76, %74
  %.172 = phi i1 [ %.071, %76 ], [ true, %74 ]
  %.pn76 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %79

79:                                               ; preds = %72, %78
  %.273 = phi i1 [ %.172, %78 ], [ true, %72 ]
  %.pn76.pn = phi { ptr, i32 } [ %.pn76, %78 ], [ %73, %72 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  %.342 = extractvalue { ptr, i32 } %.pn76.pn, 0
  %.347 = extractvalue { ptr, i32 } %.pn76.pn, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br i1 %.273, label %80, label %81

80:                                               ; preds = %.thread, %79
  %.347113 = phi i32 [ %.347109, %.thread ], [ %.347, %79 ]
  %.342111 = phi ptr [ %.342108, %.thread ], [ %.342, %79 ]
  call void @__cxa_free_exception(ptr %62) #9
  br label %81

81:                                               ; preds = %80, %79
  %.347112 = phi i32 [ %.347113, %80 ], [ %.347, %79 ]
  %.342110 = phi ptr [ %.342111, %80 ], [ %.342, %79 ]
  invoke void @__cxa_end_catch()
          to label %124 unwind label %227

82:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  %83 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  invoke void @_ZNK4dali5Image8GetImageEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.39") align 8 %13, ptr noundef nonnull align 8 dereferenceable(104) %83)
          to label %84 unwind label %105

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  %85 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  invoke void @_ZNK4dali5Image8GetShapeEv(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorShape.35") align 8 %14, ptr noundef nonnull align 8 dereferenceable(104) %85)
          to label %86 unwind label %107

86:                                               ; preds = %84
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 0)
  %88 = load i64, ptr %87, align 8, !tbaa !15
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 1)
  %90 = load i64, ptr %89, align 8, !tbaa !15
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 2)
  %92 = load i64, ptr %91, align 8, !tbaa !15
  %93 = invoke noundef i64 @_ZN4dali6volumeINS_11TensorShapeILi3EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %94 unwind label %109

94:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #9
  store i64 %41, ptr %16, align 8, !tbaa !15
  %95 = getelementptr inbounds i8, ptr %16, i64 8
  store i64 %88, ptr %95, align 8, !tbaa !15
  %96 = getelementptr inbounds i8, ptr %16, i64 16
  store i64 %90, ptr %96, align 8, !tbaa !15
  %97 = getelementptr inbounds i8, ptr %16, i64 24
  store i64 %92, ptr %97, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #9
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt6vectorIlSaIlEEC2ESt16initializer_listIlERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr nonnull %16, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %98 unwind label %111

98:                                               ; preds = %94
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %18) #9
  invoke void @_ZN4dali11TensorShapeILin1EEC2ISt6vectorIlSaIlEEvEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %99 unwind label %113

99:                                               ; preds = %98
  invoke void @_ZN4dali6TensorINS_10CPUBackendEE6ResizeERKNS_11TensorShapeILin1EEE13_DALIDataType(ptr noundef nonnull align 8 dereferenceable(272) %40, ptr noundef nonnull align 8 dereferenceable(56) %18, i32 noundef 0)
          to label %100 unwind label %115

100:                                              ; preds = %99
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %19) #9
  invoke void @_ZN4dali6TensorINS_10CPUBackendEE14SubspaceTensorEl(ptr dead_on_unwind nonnull writable sret(%"class.dali::Tensor") align 8 %19, ptr noundef nonnull align 8 dereferenceable(272) %40, i64 noundef 0)
          to label %101 unwind label %118

101:                                              ; preds = %100
  %102 = call noundef ptr @_ZN4dali6BufferINS_10CPUBackendEE16raw_mutable_dataEv(ptr noundef nonnull align 8 dereferenceable(138) %19)
  %103 = call noundef ptr @_ZNKSt12__shared_ptrIhLN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %102, ptr align 1 %103, i64 %93, i1 false)
  call void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272) %19) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %19) #9
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt12__shared_ptrIhLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  %104 = icmp sgt i64 %41, 1
  br i1 %104, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %220, %101
  ret void

105:                                              ; preds = %82
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %123

107:                                              ; preds = %84
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %122

109:                                              ; preds = %86
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %122

111:                                              ; preds = %94
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  br label %121

113:                                              ; preds = %98
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %117

115:                                              ; preds = %99
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #9
  br label %117

117:                                              ; preds = %115, %113
  %.pn80 = phi { ptr, i32 } [ %116, %115 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #9
  br label %120

118:                                              ; preds = %100
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %19) #9
  br label %120

120:                                              ; preds = %118, %117
  %.pn82 = phi { ptr, i32 } [ %119, %118 ], [ %.pn80, %117 ]
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  br label %121

121:                                              ; preds = %120, %111
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %120 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %122

122:                                              ; preds = %109, %121, %107
  %.pn82.pn.pn.pn = phi { ptr, i32 } [ %108, %107 ], [ %.pn82.pn, %121 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt12__shared_ptrIhLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #9
  br label %123

123:                                              ; preds = %122, %105
  %.pn82.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn82.pn.pn.pn, %122 ], [ %106, %105 ]
  %.9 = extractvalue { ptr, i32 } %.pn82.pn.pn.pn.pn, 0
  %.953 = extractvalue { ptr, i32 } %.pn82.pn.pn.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %124

124:                                              ; preds = %81, %123, %57
  %.1054 = phi i32 [ %.953, %123 ], [ %.044, %57 ], [ %.347112, %81 ]
  %.10 = phi ptr [ %.9, %123 ], [ %.039, %57 ], [ %.342110, %81 ]
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %224

.lr.ph:                                           ; preds = %101, %220
  %.043127 = phi i64 [ %221, %220 ], [ 1, %101 ]
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %20) #9
  call void @_ZN4dali6TensorINS_10CPUBackendEE14SubspaceTensorEl(ptr dead_on_unwind nonnull writable sret(%"class.dali::Tensor") align 8 %20, ptr noundef nonnull align 8 dereferenceable(272) %40, i64 noundef %.043127)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #9
  %125 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.043127) #9
  invoke void @_ZNK4dali6TensorINS_10CPUBackendEE13GetSourceInfoB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(272) %125)
          to label %126 unwind label %136

126:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  %127 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.043127) #9
  %128 = invoke noundef ptr @_ZNK4dali6BufferINS_10CPUBackendEE4dataIhEEPKT_v(ptr noundef nonnull align 8 dereferenceable(138) %127)
          to label %129 unwind label %140

129:                                              ; preds = %126
  %130 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNKSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.043127) #9
  %131 = call noundef i64 @_ZNK4dali6BufferINS_10CPUBackendEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(138) %130)
  %132 = load i32, ptr %48, align 8, !tbaa !5
  invoke void @_ZN4dali12ImageFactory11CreateImageEPKhmNS_13DALIImageTypeE(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %23, ptr noundef %128, i64 noundef %131, i32 noundef %132)
          to label %133 unwind label %140

133:                                              ; preds = %129
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  %135 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  invoke void @_ZN4dali5Image6DecodeEv(ptr noundef nonnull align 8 dereferenceable(104) %135)
          to label %169 unwind label %142

136:                                              ; preds = %.lr.ph
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  %139 = extractvalue { ptr, i32 } %137, 1
  br label %223

140:                                              ; preds = %129, %126
  %141 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  br label %144

142:                                              ; preds = %133
  %143 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %144

144:                                              ; preds = %142, %140
  %.pn88 = phi { ptr, i32 } [ %143, %142 ], [ %141, %140 ]
  %.11 = extractvalue { ptr, i32 } %.pn88, 0
  %.1155 = extractvalue { ptr, i32 } %.pn88, 1
  %145 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #9
  %146 = icmp eq i32 %.1155, %145
  br i1 %146, label %147, label %222

147:                                              ; preds = %144
  %148 = call ptr @__cxa_begin_catch(ptr %.11) #9
  %149 = call ptr @__cxa_allocate_exception(i64 80) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #9
  %150 = load ptr, ptr %148, align 8, !tbaa !11
  %151 = getelementptr inbounds i8, ptr %150, i64 16
  %152 = load ptr, ptr %151, align 8
  %153 = call noundef ptr %152(ptr noundef nonnull align 8 dereferenceable(8) %148) #9
  store ptr %153, ptr %25, align 8, !tbaa !13
  invoke void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 1 dereferenceable(9) @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %154 unwind label %.thread114

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %155 unwind label %159

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #9
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %28)
          to label %156 unwind label %161

156:                                              ; preds = %155
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %149, ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull %26, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %157 unwind label %163

157:                                              ; preds = %156
  invoke void @__cxa_throw(ptr nonnull %149, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #10
          to label %230 unwind label %163

.thread114:                                       ; preds = %147
  %158 = landingpad { ptr, i32 }
          cleanup
  %.14117 = extractvalue { ptr, i32 } %158, 0
  %.1458118 = extractvalue { ptr, i32 } %158, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #9
  br label %167

159:                                              ; preds = %154
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %166

161:                                              ; preds = %155
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %157, %156
  %.035 = phi i1 [ false, %157 ], [ true, %156 ]
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  br label %165

165:                                              ; preds = %163, %161
  %.pn90 = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  %.136 = phi i1 [ %.035, %163 ], [ true, %161 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %166

166:                                              ; preds = %159, %165
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %165 ], [ %160, %159 ]
  %.237 = phi i1 [ %.136, %165 ], [ true, %159 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  %.14 = extractvalue { ptr, i32 } %.pn90.pn, 0
  %.1458 = extractvalue { ptr, i32 } %.pn90.pn, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #9
  br i1 %.237, label %167, label %168

167:                                              ; preds = %.thread114, %166
  %.1458122 = phi i32 [ %.1458118, %.thread114 ], [ %.1458, %166 ]
  %.14120 = phi ptr [ %.14117, %.thread114 ], [ %.14, %166 ]
  call void @__cxa_free_exception(ptr %149) #9
  br label %168

168:                                              ; preds = %167, %166
  %.1458121 = phi i32 [ %.1458122, %167 ], [ %.1458, %166 ]
  %.14119 = phi ptr [ %.14120, %167 ], [ %.14, %166 ]
  invoke void @__cxa_end_catch()
          to label %222 unwind label %227

169:                                              ; preds = %133
  %170 = call noundef ptr @_ZNKSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  %171 = invoke noundef ptr @_ZN4dali6BufferINS_10CPUBackendEE12mutable_dataIhEEPT_v(ptr noundef nonnull align 8 dereferenceable(138) %20)
          to label %172 unwind label %188

172:                                              ; preds = %169
  invoke void @_ZNK4dali5Image8GetImageIhEEvPT_(ptr noundef nonnull align 8 dereferenceable(104) %170, ptr noundef %171)
          to label %173 unwind label %188

173:                                              ; preds = %172
  %174 = call noundef zeroext i1 @_ZNK4dali6BufferINS_10CPUBackendEE11shares_dataEv(ptr noundef nonnull align 8 dereferenceable(138) %20)
  br i1 %174, label %220, label %175

175:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %176 unwind label %192

176:                                              ; preds = %175
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.5)
          to label %177 unwind label %194

177:                                              ; preds = %176
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @.str.6)
          to label %178 unwind label %196

178:                                              ; preds = %177
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %179 unwind label %200

179:                                              ; preds = %178
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %35, ptr noundef nonnull @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %180 unwind label %202

180:                                              ; preds = %179
  %181 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %182 unwind label %204

182:                                              ; preds = %180
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #9
  %183 = call ptr @__cxa_allocate_exception(i64 80) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %36) #9
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %36, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %184 unwind label %.thread123

184:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %38) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %185 unwind label %208

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %39) #9
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %39)
          to label %186 unwind label %210

186:                                              ; preds = %185
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %183, ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull %37, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %187 unwind label %212

187:                                              ; preds = %186
  invoke void @__cxa_throw(ptr nonnull %183, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #10
          to label %230 unwind label %212

188:                                              ; preds = %172, %169
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  %191 = extractvalue { ptr, i32 } %189, 1
  br label %222

192:                                              ; preds = %175
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %199

194:                                              ; preds = %176
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %198

196:                                              ; preds = %177
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  br label %198

198:                                              ; preds = %196, %194
  %.pn94 = phi { ptr, i32 } [ %197, %196 ], [ %195, %194 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  br label %199

199:                                              ; preds = %198, %192
  %.pn94.pn = phi { ptr, i32 } [ %.pn94, %198 ], [ %193, %192 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #9
  br label %219

200:                                              ; preds = %178
  %201 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #9
  br label %218

202:                                              ; preds = %179
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %206

204:                                              ; preds = %180
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  br label %206

206:                                              ; preds = %204, %202
  %.pn97 = phi { ptr, i32 } [ %205, %204 ], [ %203, %202 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #9
  br label %217

.thread123:                                       ; preds = %182
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #9
  br label %216

208:                                              ; preds = %184
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %215

210:                                              ; preds = %185
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %214

212:                                              ; preds = %187, %186
  %.0 = phi i1 [ false, %187 ], [ true, %186 ]
  %213 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  br label %214

214:                                              ; preds = %212, %210
  %.pn99 = phi { ptr, i32 } [ %213, %212 ], [ %211, %210 ]
  %.1 = phi i1 [ %.0, %212 ], [ true, %210 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #9
  br label %215

215:                                              ; preds = %208, %214
  %.pn99.pn = phi { ptr, i32 } [ %.pn99, %214 ], [ %209, %208 ]
  %.2 = phi i1 [ %.1, %214 ], [ true, %208 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %38) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #9
  br i1 %.2, label %216, label %217

216:                                              ; preds = %.thread123, %215
  %.pn99.pn.pn126 = phi { ptr, i32 } [ %207, %.thread123 ], [ %.pn99.pn, %215 ]
  call void @__cxa_free_exception(ptr %183) #9
  br label %217

217:                                              ; preds = %215, %216, %206
  %.pn99.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn126, %216 ], [ %.pn99.pn, %215 ], [ %.pn97, %206 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  br label %218

218:                                              ; preds = %217, %200
  %.pn99.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn.pn, %217 ], [ %201, %200 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #9
  br label %219

219:                                              ; preds = %218, %199
  %.pn99.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn.pn.pn, %218 ], [ %.pn94.pn, %199 ]
  %.23 = extractvalue { ptr, i32 } %.pn99.pn.pn.pn.pn.pn, 0
  %.2367 = extractvalue { ptr, i32 } %.pn99.pn.pn.pn.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #9
  br label %222

220:                                              ; preds = %173
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #9
  call void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272) %20) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %20) #9
  %221 = add nuw nsw i64 %.043127, 1
  %exitcond.not = icmp eq i64 %221, %41
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

222:                                              ; preds = %168, %219, %188, %144
  %.2468 = phi i32 [ %.2367, %219 ], [ %191, %188 ], [ %.1155, %144 ], [ %.1458121, %168 ]
  %.24 = phi ptr [ %.23, %219 ], [ %190, %188 ], [ %.11, %144 ], [ %.14119, %168 ]
  call void @_ZNSt10unique_ptrIN4dali5ImageESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  br label %223

223:                                              ; preds = %222, %136
  %.2569 = phi i32 [ %.2468, %222 ], [ %139, %136 ]
  %.25 = phi ptr [ %.24, %222 ], [ %138, %136 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #9
  call void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272) %20) #9
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %20) #9
  br label %224

224:                                              ; preds = %223, %124
  %.2670 = phi i32 [ %.2569, %223 ], [ %.1054, %124 ]
  %.26 = phi ptr [ %.25, %223 ], [ %.10, %124 ]
  %225 = insertvalue { ptr, i32 } poison, ptr %.26, 0
  %226 = insertvalue { ptr, i32 } %225, i32 %.2670, 1
  resume { ptr, i32 } %226

227:                                              ; preds = %168, %81
  %228 = landingpad { ptr, i32 }
          catch ptr null
  %229 = extractvalue { ptr, i32 } %228, 0
  call void @__clang_call_terminate(ptr %229) #11
  unreachable

230:                                              ; preds = %187, %157, %70
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK4dali6TensorINS_10CPUBackendEE13GetSourceInfoB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #2 align 2

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

declare void @_ZN4dali12ImageFactory11CreateImageEPKhmNS_13DALIImageTypeE(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali6BufferINS_10CPUBackendEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(138)) local_unnamed_addr #5 align 2

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

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

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

declare void @_ZN4dali5Image6DecodeEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJPKcA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES9_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali13DALIExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5 align 2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #7

declare void @_ZNK4dali5Image8GetImageEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.39") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4

declare void @_ZNK4dali5Image8GetShapeEv(ptr dead_on_unwind writable sret(%"struct.dali::TensorShape.35") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4dali6volumeINS_11TensorShapeILi3EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali6TensorINS_10CPUBackendEE14SubspaceTensorEl(ptr dead_on_unwind noalias writable sret(%"class.dali::Tensor") align 8, ptr noundef nonnull align 8 dereferenceable(272), i64 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress 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) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali6TensorINS_10CPUBackendEED2Ev(ptr noundef nonnull align 8 dereferenceable(272)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree nosync nounwind memory(none) }
attributes #7 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 8}
!6 = !{!"_ZTSN4dali14SequenceParserE", !7, i64 0, !8, i64 8}
!7 = !{!"_ZTSN4dali6ParserINS_14TensorSequenceEEE"}
!8 = !{!"_ZTSN4dali13DALIImageTypeE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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