; LLVM IR from NVIDIA/DALI :: dali/operators/image/mask/grid_mask.ll (ZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceE)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.dali::CPUBackend" = type { i8 }
%"struct.dali::TensorListShape" = type { %"struct.dali::TensorListShapeBase.base", i32 }
%"struct.dali::TensorListShapeBase.base" = type <{ %"class.std::vector.63", i32 }>
%"class.std::vector.63" = type { %"struct.std::_Vector_base.64" }
%"struct.std::_Vector_base.64" = 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 }
%"struct.dali::TensorListView" = type { %"struct.dali::TensorListViewBase" }
%"struct.dali::TensorListViewBase" = type { %"struct.dali::TensorListShape", %"class.std::vector.135" }
%"class.std::vector.135" = type { %"struct.std::_Vector_base.136" }
%"struct.std::_Vector_base.136" = type { %"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.140" = type { %"struct.dali::TensorListViewBase.141" }
%"struct.dali::TensorListViewBase.141" = type { %"struct.dali::TensorListShape", %"class.std::vector.142" }
%"class.std::vector.142" = type { %"struct.std::_Vector_base.143" }
%"struct.std::_Vector_base.143" = type { %"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function.147" = 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.anon = type { i32, ptr, ptr, ptr }
%"struct.dali::TensorListView.150" = type { %"struct.dali::TensorListViewBase.151" }
%"struct.dali::TensorListViewBase.151" = type { %"struct.dali::TensorListShape", %"class.std::vector.152" }
%"class.std::vector.152" = type { %"struct.std::_Vector_base.153" }
%"struct.std::_Vector_base.153" = type { %"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl" }
%"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.157" = type { %"struct.dali::TensorListViewBase.158" }
%"struct.dali::TensorListViewBase.158" = type { %"struct.dali::TensorListShape", %"class.std::vector.159" }
%"class.std::vector.159" = type { %"struct.std::_Vector_base.160" }
%"struct.std::_Vector_base.160" = type { %"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl" }
%"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl" = type { %"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.164 = type { i32, ptr, ptr, ptr }
%"struct.dali::TensorListView.165" = type { %"struct.dali::TensorListViewBase.166" }
%"struct.dali::TensorListViewBase.166" = type { %"struct.dali::TensorListShape", %"class.std::vector.167" }
%"class.std::vector.167" = type { %"struct.std::_Vector_base.168" }
%"struct.std::_Vector_base.168" = type { %"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl" }
%"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.172" = type { %"struct.dali::TensorListViewBase.173" }
%"struct.dali::TensorListViewBase.173" = type { %"struct.dali::TensorListShape", %"class.std::vector.174" }
%"class.std::vector.174" = type { %"struct.std::_Vector_base.175" }
%"struct.std::_Vector_base.175" = type { %"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl" }
%"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl" = type { %"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.179 = type { i32, ptr, ptr, ptr }
%"struct.dali::TensorListView.180" = type { %"struct.dali::TensorListViewBase.181" }
%"struct.dali::TensorListViewBase.181" = type { %"struct.dali::TensorListShape", %"class.std::vector.182" }
%"class.std::vector.182" = type { %"struct.std::_Vector_base.183" }
%"struct.std::_Vector_base.183" = type { %"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl" }
%"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.187" = type { %"struct.dali::TensorListViewBase.188" }
%"struct.dali::TensorListViewBase.188" = type { %"struct.dali::TensorListShape", %"class.std::vector.189" }
%"class.std::vector.189" = type { %"struct.std::_Vector_base.190" }
%"struct.std::_Vector_base.190" = type { %"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl" }
%"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl" = type { %"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.194 = type { i32, ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.19 = external hidden unnamed_addr constant [90 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64)

; 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)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJA25_c13_DALIDataTypeEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 1 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(4)) #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) #4

; 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 #2 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef nonnull align 8 dereferenceable(664) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.dali::CPUBackend", align 1
  %7 = alloca ptr, align 8
  %8 = alloca %"class.dali::CPUBackend", align 1
  %9 = alloca %"struct.dali::TensorListShape", align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.dali::TensorListView", align 8
  %14 = alloca %"struct.dali::TensorListView.140", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::function.147", align 8
  %17 = alloca %class.anon, align 8
  %18 = alloca %"struct.dali::TensorListView.150", align 8
  %19 = alloca %"struct.dali::TensorListView.157", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::function.147", align 8
  %22 = alloca %class.anon.164, align 8
  %23 = alloca %"struct.dali::TensorListView.165", align 8
  %24 = alloca %"struct.dali::TensorListView.172", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::function.147", align 8
  %27 = alloca %class.anon.179, align 8
  %28 = alloca %"struct.dali::TensorListView.180", align 8
  %29 = alloca %"struct.dali::TensorListView.187", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::function.147", align 8
  %32 = alloca %class.anon.194, align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5InputINS_10CPUBackendEEERKDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %41, i32 noundef 0)
  store ptr %42, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %43, i32 noundef 0)
  store ptr %44, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE9GetLayoutEv(ptr noundef nonnull align 8 dereferenceable(304) %46)
  call void @_ZN4dali10TensorListINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(304) %45, ptr noundef nonnull align 1 dereferenceable(16) %47)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %48)
  call void @_ZN4dali15TensorListShapeILin1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13GetThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %50)
          to label %52 unwind label %56

52:                                               ; preds = %2
  store ptr %51, ptr %10, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = invoke noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE4typeEv(ptr noundef nonnull align 8 dereferenceable(304) %53)
          to label %55 unwind label %56

55:                                               ; preds = %52
  switch i32 %54, label %308 [
    i32 0, label %60
    i32 5, label %122
    i32 6, label %184
    i32 9, label %246
  ]

56:                                               ; preds = %52, %2
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %11, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %12, align 4
  br label %346

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #6
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIKhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView") align 8 %13, ptr noundef nonnull align 8 dereferenceable(304) %61)
          to label %62 unwind label %74

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #6
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView.140") align 8 %14, ptr noundef nonnull align 8 dereferenceable(304) %63)
          to label %64 unwind label %78

64:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %99, %64
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %67)
          to label %69 unwind label %82

69:                                               ; preds = %65
  %70 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %68)
          to label %71 unwind label %82

71:                                               ; preds = %69
  %72 = icmp slt i32 %66, %70
  br i1 %72, label %86, label %73

73:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %112

74:                                               ; preds = %60
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  br label %121

78:                                               ; preds = %62
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %11, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %12, align 4
  br label %120

82:                                               ; preds = %69, %65
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %11, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %12, align 4
  br label %111

86:                                               ; preds = %71
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  %88 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 0
  %89 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %89, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 1
  store ptr %40, ptr %90, align 8, !tbaa !13
  %91 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 2
  store ptr %14, ptr %91, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 3
  store ptr %13, ptr %92, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %93 unwind label %102

93:                                               ; preds = %86
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %9, i64 noundef %95)
          to label %97 unwind label %106

97:                                               ; preds = %93
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %87, ptr noundef %16, i64 noundef %96, i1 noundef zeroext false)
          to label %98 unwind label %106

98:                                               ; preds = %97
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %15, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %15, align 4, !tbaa !9
  br label %65, !llvm.loop !14

102:                                              ; preds = %86
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %11, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %12, align 4
  br label %110

106:                                              ; preds = %97, %93
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %111

111:                                              ; preds = %110, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %119

112:                                              ; preds = %73
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %113, i1 noundef zeroext true)
          to label %114 unwind label %115

114:                                              ; preds = %112
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #6
  br label %345

115:                                              ; preds = %112
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %11, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %12, align 4
  br label %119

119:                                              ; preds = %115, %111
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  br label %120

120:                                              ; preds = %119, %78
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #6
  br label %121

121:                                              ; preds = %120, %74
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #6
  br label %346

122:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #6
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIKsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView.150") align 8 %18, ptr noundef nonnull align 8 dereferenceable(304) %123)
          to label %124 unwind label %136

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 56, ptr %19) #6
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView.157") align 8 %19, ptr noundef nonnull align 8 dereferenceable(304) %125)
          to label %126 unwind label %140

126:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %161, %126
  %128 = load i32, ptr %20, align 4, !tbaa !9
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %129)
          to label %131 unwind label %144

131:                                              ; preds = %127
  %132 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %130)
          to label %133 unwind label %144

133:                                              ; preds = %131
  %134 = icmp slt i32 %128, %132
  br i1 %134, label %148, label %135

135:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %174

136:                                              ; preds = %122
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %11, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %12, align 4
  br label %183

140:                                              ; preds = %124
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %11, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %12, align 4
  br label %182

144:                                              ; preds = %131, %127
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %11, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %12, align 4
  br label %173

148:                                              ; preds = %133
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  %150 = getelementptr inbounds %class.anon.164, ptr %22, i32 0, i32 0
  %151 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %151, ptr %150, align 8, !tbaa !16
  %152 = getelementptr inbounds %class.anon.164, ptr %22, i32 0, i32 1
  store ptr %40, ptr %152, align 8, !tbaa !18
  %153 = getelementptr inbounds %class.anon.164, ptr %22, i32 0, i32 2
  store ptr %19, ptr %153, align 8, !tbaa !5
  %154 = getelementptr inbounds %class.anon.164, ptr %22, i32 0, i32 3
  store ptr %18, ptr %154, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %155 unwind label %164

155:                                              ; preds = %148
  %156 = load i32, ptr %20, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %9, i64 noundef %157)
          to label %159 unwind label %168

159:                                              ; preds = %155
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %149, ptr noundef %21, i64 noundef %158, i1 noundef zeroext false)
          to label %160 unwind label %168

160:                                              ; preds = %159
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %20, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %20, align 4, !tbaa !9
  br label %127, !llvm.loop !19

164:                                              ; preds = %148
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %11, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %12, align 4
  br label %172

168:                                              ; preds = %159, %155
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %11, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %172

172:                                              ; preds = %168, %164
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %173

173:                                              ; preds = %172, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %181

174:                                              ; preds = %135
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %175, i1 noundef zeroext true)
          to label %176 unwind label %177

176:                                              ; preds = %174
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #6
  br label %345

177:                                              ; preds = %174
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %11, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %12, align 4
  br label %181

181:                                              ; preds = %177, %173
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #6
  br label %182

182:                                              ; preds = %181, %140
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  br label %183

183:                                              ; preds = %182, %136
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #6
  br label %346

184:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 56, ptr %23) #6
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIKiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView.165") align 8 %23, ptr noundef nonnull align 8 dereferenceable(304) %185)
          to label %186 unwind label %198

186:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #6
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView.172") align 8 %24, ptr noundef nonnull align 8 dereferenceable(304) %187)
          to label %188 unwind label %202

188:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %223, %188
  %190 = load i32, ptr %25, align 4, !tbaa !9
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %191)
          to label %193 unwind label %206

193:                                              ; preds = %189
  %194 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %192)
          to label %195 unwind label %206

195:                                              ; preds = %193
  %196 = icmp slt i32 %190, %194
  br i1 %196, label %210, label %197

197:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %236

198:                                              ; preds = %184
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %11, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %12, align 4
  br label %245

202:                                              ; preds = %186
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %11, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %12, align 4
  br label %244

206:                                              ; preds = %193, %189
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %11, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %12, align 4
  br label %235

210:                                              ; preds = %195
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  %212 = getelementptr inbounds %class.anon.179, ptr %27, i32 0, i32 0
  %213 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %213, ptr %212, align 8, !tbaa !20
  %214 = getelementptr inbounds %class.anon.179, ptr %27, i32 0, i32 1
  store ptr %40, ptr %214, align 8, !tbaa !22
  %215 = getelementptr inbounds %class.anon.179, ptr %27, i32 0, i32 2
  store ptr %24, ptr %215, align 8, !tbaa !5
  %216 = getelementptr inbounds %class.anon.179, ptr %27, i32 0, i32 3
  store ptr %23, ptr %216, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %217 unwind label %226

217:                                              ; preds = %210
  %218 = load i32, ptr %25, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %9, i64 noundef %219)
          to label %221 unwind label %230

221:                                              ; preds = %217
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %211, ptr noundef %26, i64 noundef %220, i1 noundef zeroext false)
          to label %222 unwind label %230

222:                                              ; preds = %221
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %25, align 4, !tbaa !9
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %25, align 4, !tbaa !9
  br label %189, !llvm.loop !23

226:                                              ; preds = %210
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %11, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %12, align 4
  br label %234

230:                                              ; preds = %221, %217
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %11, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %234

234:                                              ; preds = %230, %226
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %235

235:                                              ; preds = %234, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %243

236:                                              ; preds = %197
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %237, i1 noundef zeroext true)
          to label %238 unwind label %239

238:                                              ; preds = %236
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #6
  br label %345

239:                                              ; preds = %236
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %11, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %12, align 4
  br label %243

243:                                              ; preds = %239, %235
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %24) #6
  br label %244

244:                                              ; preds = %243, %202
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #6
  br label %245

245:                                              ; preds = %244, %198
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #6
  br label %346

246:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 56, ptr %28) #6
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIKfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView.180") align 8 %28, ptr noundef nonnull align 8 dereferenceable(304) %247)
          to label %248 unwind label %260

248:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 56, ptr %29) #6
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN4dali4viewIfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind writable sret(%"struct.dali::TensorListView.187") align 8 %29, ptr noundef nonnull align 8 dereferenceable(304) %249)
          to label %250 unwind label %264

250:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %285, %250
  %252 = load i32, ptr %30, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %253)
          to label %255 unwind label %268

255:                                              ; preds = %251
  %256 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %254)
          to label %257 unwind label %268

257:                                              ; preds = %255
  %258 = icmp slt i32 %252, %256
  br i1 %258, label %272, label %259

259:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %298

260:                                              ; preds = %246
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %11, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %12, align 4
  br label %307

264:                                              ; preds = %248
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %11, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %12, align 4
  br label %306

268:                                              ; preds = %255, %251
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %11, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %12, align 4
  br label %297

272:                                              ; preds = %257
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  %274 = getelementptr inbounds %class.anon.194, ptr %32, i32 0, i32 0
  %275 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %275, ptr %274, align 8, !tbaa !24
  %276 = getelementptr inbounds %class.anon.194, ptr %32, i32 0, i32 1
  store ptr %40, ptr %276, align 8, !tbaa !26
  %277 = getelementptr inbounds %class.anon.194, ptr %32, i32 0, i32 2
  store ptr %29, ptr %277, align 8, !tbaa !5
  %278 = getelementptr inbounds %class.anon.194, ptr %32, i32 0, i32 3
  store ptr %28, ptr %278, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %279 unwind label %288

279:                                              ; preds = %272
  %280 = load i32, ptr %30, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %9, i64 noundef %281)
          to label %283 unwind label %292

283:                                              ; preds = %279
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %273, ptr noundef %31, i64 noundef %282, i1 noundef zeroext false)
          to label %284 unwind label %292

284:                                              ; preds = %283
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %30, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %30, align 4, !tbaa !9
  br label %251, !llvm.loop !27

288:                                              ; preds = %272
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %11, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %12, align 4
  br label %296

292:                                              ; preds = %283, %279
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %11, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %12, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %296

296:                                              ; preds = %292, %288
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  br label %297

297:                                              ; preds = %296, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %305

298:                                              ; preds = %259
  %299 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %299, i1 noundef zeroext true)
          to label %300 unwind label %301

300:                                              ; preds = %298
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %28) #6
  br label %345

301:                                              ; preds = %298
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %11, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %12, align 4
  br label %305

305:                                              ; preds = %301, %297
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #6
  br label %306

306:                                              ; preds = %305, %264
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %28) #6
  br label %307

307:                                              ; preds = %306, %260
  call void @llvm.lifetime.end.p0(i64 56, ptr %28) #6
  br label %346

308:                                              ; preds = %55
  store i1 true, ptr %39, align 1
  %309 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = invoke noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE4typeEv(ptr noundef nonnull align 8 dereferenceable(304) %310)
          to label %312 unwind label %318

312:                                              ; preds = %308
  store i32 %311, ptr %35, align 4, !tbaa !28
  invoke void @_ZN4dali11make_stringIJA25_c13_DALIDataTypeEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %34, ptr noundef nonnull align 1 dereferenceable(25) @.str.17, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %313 unwind label %318

313:                                              ; preds = %312
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %314 unwind label %322

314:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %315 unwind label %326

315:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %38)
          to label %316 unwind label %330

316:                                              ; preds = %315
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %309, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef %36, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %317 unwind label %334

317:                                              ; preds = %316
  store i1 false, ptr %39, align 1
  invoke void @__cxa_throw(ptr %309, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #7
          to label %352 unwind label %334

318:                                              ; preds = %312, %308
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %11, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %12, align 4
  br label %341

322:                                              ; preds = %313
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %11, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %12, align 4
  br label %340

326:                                              ; preds = %314
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %11, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %12, align 4
  br label %339

330:                                              ; preds = %315
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %11, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %12, align 4
  br label %338

334:                                              ; preds = %317, %316
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %11, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  br label %338

338:                                              ; preds = %334, %330
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  br label %339

339:                                              ; preds = %338, %326
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %340

340:                                              ; preds = %339, %322
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #6
  br label %341

341:                                              ; preds = %340, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #6
  %342 = load i1, ptr %39, align 1
  br i1 %342, label %343, label %344

343:                                              ; preds = %341
  call void @__cxa_free_exception(ptr %309) #6
  br label %344

344:                                              ; preds = %343, %341
  br label %346

345:                                              ; preds = %300, %238, %176, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

346:                                              ; preds = %344, %307, %245, %183, %121, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %347

347:                                              ; preds = %346
  %348 = load ptr, ptr %11, align 8
  %349 = load i32, ptr %12, align 4
  %350 = insertvalue { ptr, i32 } poison, ptr %348, 0
  %351 = insertvalue { ptr, i32 } %350, i32 %349, 1
  resume { ptr, i32 } %351

352:                                              ; preds = %317
  unreachable
}

declare void @_ZN4dali10TensorListINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(304), ptr noundef nonnull align 1 dereferenceable(16)) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.140") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

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

declare void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, i64 noundef, i1 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28), i64 noundef) #2 align 2

declare void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224), i1 noundef zeroext) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.150") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.157") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.165") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.172") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.180") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.187") align 8, ptr noundef nonnull align 8 dereferenceable(304)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_0", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_1", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!17, !6, i64 8}
!19 = distinct !{!19, !15}
!20 = !{!21, !10, i64 0}
!21 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_2", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!21, !6, i64 8}
!23 = distinct !{!23, !15}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_3", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!25, !6, i64 8}
!27 = distinct !{!27, !15}
!28 = !{!29, !29, i64 0}
!29 = !{!"_ZTS13_DALIDataType", !7, i64 0}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.dali::TensorListShape" = type { %"struct.dali::TensorListShapeBase.base", i32 }
%"struct.dali::TensorListShapeBase.base" = type <{ %"class.std::vector.63", i32 }>
%"class.std::vector.63" = type { %"struct.std::_Vector_base.64" }
%"struct.std::_Vector_base.64" = 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 }
%"struct.dali::TensorListView" = type { %"struct.dali::TensorListViewBase" }
%"struct.dali::TensorListViewBase" = type { %"struct.dali::TensorListShape", %"class.std::vector.135" }
%"class.std::vector.135" = type { %"struct.std::_Vector_base.136" }
%"struct.std::_Vector_base.136" = type { %"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.140" = type { %"struct.dali::TensorListViewBase.141" }
%"struct.dali::TensorListViewBase.141" = type { %"struct.dali::TensorListShape", %"class.std::vector.142" }
%"class.std::vector.142" = type { %"struct.std::_Vector_base.143" }
%"struct.std::_Vector_base.143" = type { %"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char *, std::allocator<unsigned char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function.147" = 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.anon = type { i32, ptr, ptr, ptr }
%"struct.dali::TensorListView.150" = type { %"struct.dali::TensorListViewBase.151" }
%"struct.dali::TensorListViewBase.151" = type { %"struct.dali::TensorListShape", %"class.std::vector.152" }
%"class.std::vector.152" = type { %"struct.std::_Vector_base.153" }
%"struct.std::_Vector_base.153" = type { %"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl" }
%"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const short *, std::allocator<const short *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.157" = type { %"struct.dali::TensorListViewBase.158" }
%"struct.dali::TensorListViewBase.158" = type { %"struct.dali::TensorListShape", %"class.std::vector.159" }
%"class.std::vector.159" = type { %"struct.std::_Vector_base.160" }
%"struct.std::_Vector_base.160" = type { %"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl" }
%"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl" = type { %"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<short *, std::allocator<short *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.164 = type { i32, ptr, ptr, ptr }
%"struct.dali::TensorListView.165" = type { %"struct.dali::TensorListViewBase.166" }
%"struct.dali::TensorListViewBase.166" = type { %"struct.dali::TensorListShape", %"class.std::vector.167" }
%"class.std::vector.167" = type { %"struct.std::_Vector_base.168" }
%"struct.std::_Vector_base.168" = type { %"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl" }
%"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const int *, std::allocator<const int *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.172" = type { %"struct.dali::TensorListViewBase.173" }
%"struct.dali::TensorListViewBase.173" = type { %"struct.dali::TensorListShape", %"class.std::vector.174" }
%"class.std::vector.174" = type { %"struct.std::_Vector_base.175" }
%"struct.std::_Vector_base.175" = type { %"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl" }
%"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl" = type { %"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int *, std::allocator<int *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.179 = type { i32, ptr, ptr, ptr }
%"struct.dali::TensorListView.180" = type { %"struct.dali::TensorListViewBase.181" }
%"struct.dali::TensorListViewBase.181" = type { %"struct.dali::TensorListShape", %"class.std::vector.182" }
%"class.std::vector.182" = type { %"struct.std::_Vector_base.183" }
%"struct.std::_Vector_base.183" = type { %"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl" }
%"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const float *, std::allocator<const float *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.dali::TensorListView.187" = type { %"struct.dali::TensorListViewBase.188" }
%"struct.dali::TensorListViewBase.188" = type { %"struct.dali::TensorListShape", %"class.std::vector.189" }
%"class.std::vector.189" = type { %"struct.std::_Vector_base.190" }
%"struct.std::_Vector_base.190" = type { %"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl" }
%"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl" = type { %"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.194 = type { i32, ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.19 = external hidden unnamed_addr constant [90 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; 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 #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJA25_c13_DALIDataTypeEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 1 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #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 #4

; 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 #2 align 2

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef nonnull align 8 dereferenceable(664) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.dali::TensorListShape", align 8
  %4 = alloca %"struct.dali::TensorListView", align 8
  %5 = alloca %"struct.dali::TensorListView.140", align 8
  %6 = alloca %"class.std::function.147", align 8
  %7 = alloca %class.anon, align 8
  %8 = alloca %"struct.dali::TensorListView.150", align 8
  %9 = alloca %"struct.dali::TensorListView.157", align 8
  %10 = alloca %"class.std::function.147", align 8
  %11 = alloca %class.anon.164, align 8
  %12 = alloca %"struct.dali::TensorListView.165", align 8
  %13 = alloca %"struct.dali::TensorListView.172", align 8
  %14 = alloca %"class.std::function.147", align 8
  %15 = alloca %class.anon.179, align 8
  %16 = alloca %"struct.dali::TensorListView.180", align 8
  %17 = alloca %"struct.dali::TensorListView.187", align 8
  %18 = alloca %"class.std::function.147", align 8
  %19 = alloca %class.anon.194, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = tail call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE5InputINS_10CPUBackendEEERKDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef 0)
  %27 = tail call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef 0)
  %28 = tail call noundef nonnull align 1 dereferenceable(16) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE9GetLayoutEv(ptr noundef nonnull align 8 dereferenceable(304) %26)
  tail call void @_ZN4dali10TensorListINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(304) %27, ptr noundef nonnull align 1 dereferenceable(16) %28)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  %29 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %27)
  call void @_ZN4dali15TensorListShapeILin1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %29)
  %30 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13GetThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %1)
          to label %31 unwind label %33

31:                                               ; preds = %2
  %32 = call noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE4typeEv(ptr noundef nonnull align 8 dereferenceable(304) %26)
  switch i32 %32, label %175 [
    i32 0, label %35
    i32 5, label %70
    i32 6, label %105
    i32 9, label %140
  ]

33:                                               ; preds = %2
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %195

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #6
  invoke void @_ZN4dali4viewIKhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView") align 8 %4, ptr noundef nonnull align 8 dereferenceable(304) %26)
          to label %36 unwind label %47

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #6
  invoke void @_ZN4dali4viewIhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView.140") align 8 %5, ptr noundef nonnull align 8 dereferenceable(304) %27)
          to label %.preheader unwind label %49

.preheader:                                       ; preds = %36
  %37 = getelementptr inbounds i8, ptr %7, i64 8
  %38 = getelementptr inbounds i8, ptr %7, i64 16
  %39 = getelementptr inbounds i8, ptr %7, i64 24
  br label %40

40:                                               ; preds = %.preheader, %58
  %indvars.iv126 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next127, %58 ]
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %26)
  %42 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %41)
          to label %43 unwind label %51

43:                                               ; preds = %40
  %44 = sext i32 %42 to i64
  %45 = icmp slt i64 %indvars.iv126, %44
  br i1 %45, label %53, label %46

46:                                               ; preds = %43
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %30, i1 noundef zeroext true)
          to label %64 unwind label %65

47:                                               ; preds = %35
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %69

49:                                               ; preds = %36
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %68

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %67

53:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %54 = trunc nuw nsw i64 %indvars.iv126 to i32
  store i32 %54, ptr %7, align 8, !tbaa !5
  store ptr %0, ptr %37, align 8, !tbaa !11
  store ptr %5, ptr %38, align 8, !tbaa !12
  store ptr %4, ptr %39, align 8, !tbaa !12
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %55 unwind label %59

55:                                               ; preds = %53
  %56 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef %indvars.iv126)
          to label %57 unwind label %61

57:                                               ; preds = %55
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %30, ptr noundef nonnull %6, i64 noundef %56, i1 noundef zeroext false)
          to label %58 unwind label %61

58:                                               ; preds = %57
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  br label %40, !llvm.loop !13

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %57, %55
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %63

63:                                               ; preds = %61, %59
  %.pn98 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %67

64:                                               ; preds = %46
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #6
  br label %194

65:                                               ; preds = %46
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %67

67:                                               ; preds = %51, %63, %65
  %.pn98.pn.pn = phi { ptr, i32 } [ %66, %65 ], [ %.pn98, %63 ], [ %52, %51 ]
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #6
  br label %68

68:                                               ; preds = %67, %49
  %.pn98.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn, %67 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKhLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #6
  br label %69

69:                                               ; preds = %68, %47
  %.pn98.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn, %68 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #6
  br label %195

70:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #6
  invoke void @_ZN4dali4viewIKsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView.150") align 8 %8, ptr noundef nonnull align 8 dereferenceable(304) %26)
          to label %71 unwind label %82

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #6
  invoke void @_ZN4dali4viewIsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView.157") align 8 %9, ptr noundef nonnull align 8 dereferenceable(304) %27)
          to label %.preheader116 unwind label %84

.preheader116:                                    ; preds = %71
  %72 = getelementptr inbounds i8, ptr %11, i64 8
  %73 = getelementptr inbounds i8, ptr %11, i64 16
  %74 = getelementptr inbounds i8, ptr %11, i64 24
  br label %75

75:                                               ; preds = %.preheader116, %93
  %indvars.iv123 = phi i64 [ 0, %.preheader116 ], [ %indvars.iv.next124, %93 ]
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %26)
  %77 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %76)
          to label %78 unwind label %86

78:                                               ; preds = %75
  %79 = sext i32 %77 to i64
  %80 = icmp slt i64 %indvars.iv123, %79
  br i1 %80, label %88, label %81

81:                                               ; preds = %78
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %30, i1 noundef zeroext true)
          to label %99 unwind label %100

82:                                               ; preds = %70
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %104

84:                                               ; preds = %71
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %103

86:                                               ; preds = %75
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %102

88:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  %89 = trunc nuw nsw i64 %indvars.iv123 to i32
  store i32 %89, ptr %11, align 8, !tbaa !15
  store ptr %0, ptr %72, align 8, !tbaa !17
  store ptr %9, ptr %73, align 8, !tbaa !12
  store ptr %8, ptr %74, align 8, !tbaa !12
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %90 unwind label %94

90:                                               ; preds = %88
  %91 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef %indvars.iv123)
          to label %92 unwind label %96

92:                                               ; preds = %90
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %30, ptr noundef nonnull %10, i64 noundef %91, i1 noundef zeroext false)
          to label %93 unwind label %96

93:                                               ; preds = %92
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  br label %75, !llvm.loop !18

94:                                               ; preds = %88
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %98

96:                                               ; preds = %92, %90
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %98

98:                                               ; preds = %96, %94
  %.pn92 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %102

99:                                               ; preds = %81
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  br label %194

100:                                              ; preds = %81
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %102

102:                                              ; preds = %86, %98, %100
  %.pn92.pn.pn = phi { ptr, i32 } [ %101, %100 ], [ %.pn92, %98 ], [ %87, %86 ]
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #6
  br label %103

103:                                              ; preds = %102, %84
  %.pn92.pn.pn.pn = phi { ptr, i32 } [ %.pn92.pn.pn, %102 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKsLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  br label %104

104:                                              ; preds = %103, %82
  %.pn92.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn92.pn.pn.pn, %103 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  br label %195

105:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %12) #6
  invoke void @_ZN4dali4viewIKiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView.165") align 8 %12, ptr noundef nonnull align 8 dereferenceable(304) %26)
          to label %106 unwind label %117

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #6
  invoke void @_ZN4dali4viewIiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView.172") align 8 %13, ptr noundef nonnull align 8 dereferenceable(304) %27)
          to label %.preheader117 unwind label %119

.preheader117:                                    ; preds = %106
  %107 = getelementptr inbounds i8, ptr %15, i64 8
  %108 = getelementptr inbounds i8, ptr %15, i64 16
  %109 = getelementptr inbounds i8, ptr %15, i64 24
  br label %110

110:                                              ; preds = %.preheader117, %128
  %indvars.iv120 = phi i64 [ 0, %.preheader117 ], [ %indvars.iv.next121, %128 ]
  %111 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %26)
  %112 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %111)
          to label %113 unwind label %121

113:                                              ; preds = %110
  %114 = sext i32 %112 to i64
  %115 = icmp slt i64 %indvars.iv120, %114
  br i1 %115, label %123, label %116

116:                                              ; preds = %113
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %30, i1 noundef zeroext true)
          to label %134 unwind label %135

117:                                              ; preds = %105
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %139

119:                                              ; preds = %106
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %138

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

123:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  %124 = trunc nuw nsw i64 %indvars.iv120 to i32
  store i32 %124, ptr %15, align 8, !tbaa !19
  store ptr %0, ptr %107, align 8, !tbaa !21
  store ptr %13, ptr %108, align 8, !tbaa !12
  store ptr %12, ptr %109, align 8, !tbaa !12
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %125 unwind label %129

125:                                              ; preds = %123
  %126 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef %indvars.iv120)
          to label %127 unwind label %131

127:                                              ; preds = %125
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %30, ptr noundef nonnull %14, i64 noundef %126, i1 noundef zeroext false)
          to label %128 unwind label %131

128:                                              ; preds = %127
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  br label %110, !llvm.loop !22

129:                                              ; preds = %123
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %133

131:                                              ; preds = %127, %125
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %133

133:                                              ; preds = %131, %129
  %.pn86 = phi { ptr, i32 } [ %132, %131 ], [ %130, %129 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %137

134:                                              ; preds = %116
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %12) #6
  br label %194

135:                                              ; preds = %116
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %137

137:                                              ; preds = %121, %133, %135
  %.pn86.pn.pn = phi { ptr, i32 } [ %136, %135 ], [ %.pn86, %133 ], [ %122, %121 ]
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #6
  br label %138

138:                                              ; preds = %137, %119
  %.pn86.pn.pn.pn = phi { ptr, i32 } [ %.pn86.pn.pn, %137 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKiLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  br label %139

139:                                              ; preds = %138, %117
  %.pn86.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn86.pn.pn.pn, %138 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %12) #6
  br label %195

140:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %16) #6
  invoke void @_ZN4dali4viewIKfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView.180") align 8 %16, ptr noundef nonnull align 8 dereferenceable(304) %26)
          to label %141 unwind label %152

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #6
  invoke void @_ZN4dali4viewIfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListView.187") align 8 %17, ptr noundef nonnull align 8 dereferenceable(304) %27)
          to label %.preheader118 unwind label %154

.preheader118:                                    ; preds = %141
  %142 = getelementptr inbounds i8, ptr %19, i64 8
  %143 = getelementptr inbounds i8, ptr %19, i64 16
  %144 = getelementptr inbounds i8, ptr %19, i64 24
  br label %145

145:                                              ; preds = %.preheader118, %163
  %indvars.iv = phi i64 [ 0, %.preheader118 ], [ %indvars.iv.next, %163 ]
  %146 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKR4dali10TensorListINS_10CPUBackendEE5shapeEv(ptr noundef nonnull align 8 dereferenceable(304) %26)
  %147 = invoke noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %146)
          to label %148 unwind label %156

148:                                              ; preds = %145
  %149 = sext i32 %147 to i64
  %150 = icmp slt i64 %indvars.iv, %149
  br i1 %150, label %158, label %151

151:                                              ; preds = %148
  invoke void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %30, i1 noundef zeroext true)
          to label %169 unwind label %170

152:                                              ; preds = %140
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %174

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

156:                                              ; preds = %145
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %172

158:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  %159 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %159, ptr %19, align 8, !tbaa !23
  store ptr %0, ptr %142, align 8, !tbaa !25
  store ptr %17, ptr %143, align 8, !tbaa !12
  store ptr %16, ptr %144, align 8, !tbaa !12
  invoke void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %160 unwind label %164

160:                                              ; preds = %158
  %161 = invoke noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef %indvars.iv)
          to label %162 unwind label %166

162:                                              ; preds = %160
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %30, ptr noundef nonnull %18, i64 noundef %161, i1 noundef zeroext false)
          to label %163 unwind label %166

163:                                              ; preds = %162
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %145, !llvm.loop !26

164:                                              ; preds = %158
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %162, %160
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %168

168:                                              ; preds = %166, %164
  %.pn = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %172

169:                                              ; preds = %151
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #6
  br label %194

170:                                              ; preds = %151
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %172

172:                                              ; preds = %156, %168, %170
  %.pn.pn.pn = phi { ptr, i32 } [ %171, %170 ], [ %.pn, %168 ], [ %157, %156 ]
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  br label %173

173:                                              ; preds = %172, %154
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %172 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  call void @_ZN4dali18TensorListViewBaseINS_10StorageCPUEKfLin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #6
  br label %174

174:                                              ; preds = %173, %152
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %173 ], [ %153, %152 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #6
  br label %195

175:                                              ; preds = %31
  %176 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  %177 = call noundef i32 @_ZNK4dali10TensorListINS_10CPUBackendEE4typeEv(ptr noundef nonnull align 8 dereferenceable(304) %26)
  store i32 %177, ptr %22, align 4, !tbaa !27
  invoke void @_ZN4dali11make_stringIJA25_c13_DALIDataTypeEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 1 dereferenceable(25) @.str.17, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %178 unwind label %.thread

178:                                              ; preds = %175
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %179 unwind label %.thread113

179:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %180 unwind label %185

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %25)
          to label %181 unwind label %187

181:                                              ; preds = %180
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %176, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull %23, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %182 unwind label %189

182:                                              ; preds = %181
  invoke void @__cxa_throw(ptr nonnull %176, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #7
          to label %196 unwind label %189

.thread:                                          ; preds = %175
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  br label %193

.thread113:                                       ; preds = %178
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  br label %193

185:                                              ; preds = %179
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %192

187:                                              ; preds = %180
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %191

189:                                              ; preds = %182, %181
  %.0 = phi i1 [ false, %182 ], [ true, %181 ]
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %191

191:                                              ; preds = %189, %187
  %.pn104 = phi { ptr, i32 } [ %190, %189 ], [ %188, %187 ]
  %.1 = phi i1 [ %.0, %189 ], [ true, %187 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %192

192:                                              ; preds = %185, %191
  %.pn104.pn = phi { ptr, i32 } [ %.pn104, %191 ], [ %186, %185 ]
  %.2 = phi i1 [ %.1, %191 ], [ true, %185 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  br i1 %.2, label %193, label %195

193:                                              ; preds = %.thread113, %.thread, %192
  %.pn104.pn.pn.pn112 = phi { ptr, i32 } [ %183, %.thread ], [ %.pn104.pn, %192 ], [ %184, %.thread113 ]
  call void @__cxa_free_exception(ptr %176) #6
  br label %195

194:                                              ; preds = %169, %134, %99, %64
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret void

195:                                              ; preds = %192, %193, %174, %139, %104, %69, %33
  %.pn104.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn104.pn.pn.pn112, %193 ], [ %.pn104.pn, %192 ], [ %.pn.pn.pn.pn.pn, %174 ], [ %.pn86.pn.pn.pn.pn, %139 ], [ %.pn92.pn.pn.pn.pn, %104 ], [ %.pn98.pn.pn.pn.pn, %69 ], [ %34, %33 ]
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn104.pn.pn.pn.pn

196:                                              ; preds = %182
  unreachable
}

declare void @_ZN4dali10TensorListINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(304), ptr noundef nonnull align 1 dereferenceable(16)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIhLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.140") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

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

declare void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11tensor_sizeEl(ptr noundef nonnull align 8 dereferenceable(28), i64 noundef) local_unnamed_addr #2 align 2

declare void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224), i1 noundef zeroext) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.150") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIsLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.157") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.165") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIiLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.172") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIKfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERKNS_10TensorListIS6_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.180") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4viewIfLin1ENS_10CPUBackendEEENS_14TensorListViewINS_6detail15storage_tag_mapIT1_E4typeET_XT0_EEERNS_10TensorListIS5_EE(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListView.187") align 8, ptr noundef nonnull align 8 dereferenceable(304)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviEEC2IZN4dali11GridMaskCpu7RunImplERNS3_9WorkspaceEE3$_3vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

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

!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, !7, i64 0}
!6 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_0", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_1", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!17 = !{!16, !10, i64 8}
!18 = distinct !{!18, !14}
!19 = !{!20, !7, i64 0}
!20 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_2", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!21 = !{!20, !10, i64 8}
!22 = distinct !{!22, !14}
!23 = !{!24, !7, i64 0}
!24 = !{!"_ZTSZN4dali11GridMaskCpu7RunImplERNS_9WorkspaceEE3$_3", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!25 = !{!24, !10, i64 8}
!26 = distinct !{!26, !14}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTS13_DALIDataType", !8, i64 0}


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