; LLVM IR from NVIDIA/DALI :: dali/operators/math/expressions (arithmetic)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.dali::CPUBackend" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.117" = type { ptr }
%"class.std::tuple.123" = type { %"struct.std::_Tuple_impl.124" }
%"struct.std::_Tuple_impl.124" = type { %"struct.std::_Tuple_impl.125", %"struct.std::_Head_base.127" }
%"struct.std::_Tuple_impl.125" = type { %"struct.std::_Head_base.126" }
%"struct.std::_Head_base.126" = type { %"class.std::vector.43" }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Head_base.127" = type { %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple.128" = type { %"struct.std::_Tuple_impl.129" }
%"struct.std::_Tuple_impl.129" = type { %"struct.std::_Tuple_impl.130", %"struct.std::_Head_base.132" }
%"struct.std::_Tuple_impl.130" = type { %"struct.std::_Head_base.131" }
%"struct.std::_Head_base.131" = type { ptr }
%"struct.std::_Head_base.132" = type { ptr }
%"class.std::function.133" = 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 <{ ptr, i64, i32, [4 x i8] }>
%"class.dali::expr::ArithmeticGenericOp" = type { %"class.dali::StatelessOperator", %"class.std::unique_ptr", %"struct.dali::TensorListShape", i8, i32, %"class.dali::TensorLayout", %"class.std::vector.38", %"class.std::vector.43", %"class.std::vector.48", %"class.std::vector.53", %"class.dali::expr::ConstantStorage", %"struct.dali::expr::ExprImplCache" }
%"class.dali::StatelessOperator" = type { %"class.dali::Operator" }
%"class.dali::Operator" = type { %"class.dali::OperatorBase" }
%"class.dali::OperatorBase" = type { ptr, %"class.dali::OpSpec", i32, i32, %"class.std::unordered_map" }
%"class.dali::OpSpec" = type { %"class.std::__cxx11::basic_string", ptr, %"class.std::vector", %"class.std::map", %"class.std::vector.6", %"class.std::map", %"class.std::map.11", %"class.std::vector.16", %"class.std::vector.16", %"class.std::map.21" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<dali::Argument>, std::allocator<std::shared_ptr<dali::Argument>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, int>, std::allocator<std::pair<std::__cxx11::basic_string<char>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.11" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::OpSpec::InOutDeviceDesc, std::allocator<dali::OpSpec::InOutDeviceDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<dali::OpSpec::InOutDeviceDesc, std::pair<const dali::OpSpec::InOutDeviceDesc, int>, std::_Select1st<std::pair<const dali::OpSpec::InOutDeviceDesc, int>>, std::less<void>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<dali::OpSpec::InOutDeviceDesc, std::pair<const dali::OpSpec::InOutDeviceDesc, int>, std::_Select1st<std::pair<const dali::OpSpec::InOutDeviceDesc, int>>, std::less<void>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.32" }
%"struct.std::_Head_base.32" = type { ptr }
%"struct.dali::TensorListShape" = type { %"struct.dali::TensorListShapeBase.base", i32 }
%"struct.dali::TensorListShapeBase.base" = type <{ %"class.std::vector.33", i32 }>
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.dali::TensorLayout" = type { [16 x i8] }
%"class.std::vector.48" = type { %"struct.std::_Vector_base.49" }
%"struct.std::_Vector_base.49" = type { %"struct.std::_Vector_base<dali::expr::ExprImplTask, std::allocator<dali::expr::ExprImplTask>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::expr::ExprImplTask, std::allocator<dali::expr::ExprImplTask>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::expr::ExprImplTask, std::allocator<dali::expr::ExprImplTask>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::expr::ExprImplTask, std::allocator<dali::expr::ExprImplTask>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = type { %"struct.std::_Vector_base<std::vector<dali::expr::SampleDesc>, std::allocator<std::vector<dali::expr::SampleDesc>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<dali::expr::SampleDesc>, std::allocator<std::vector<dali::expr::SampleDesc>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<dali::expr::SampleDesc>, std::allocator<std::vector<dali::expr::SampleDesc>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<dali::expr::SampleDesc>, std::allocator<std::vector<dali::expr::SampleDesc>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.dali::expr::ConstantStorage" = type { %"class.dali::Tensor", %"class.dali::Tensor", %"class.dali::Tensor" }
%"class.dali::Tensor" = type { %"class.dali::Buffer.base", %"struct.dali::TensorShape", %"class.dali::DALIMeta", %"class.dali::CUDASharedEvent" }
%"class.dali::Buffer.base" = type <{ ptr, %"class.dali::TypeInfo", %"class.std::shared_ptr", %"class.std::function", i64, i64, i32, [4 x i8], %"class.dali::AccessOrder", i8, i8 }>
%"class.dali::TypeInfo" = type { ptr, i32, i64, %"class.std::basic_string_view" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector" }
%"class.dali::SmallVector" = type { %union.anon.58, i64 }
%union.anon.58 = type { %struct.anon, [32 x i8] }
%struct.anon = type { ptr, i64 }
%"class.dali::DALIMeta" = type <{ %"class.dali::TensorLayout", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr" }
%"struct.dali::expr::ExprImplCache" = type { %"class.std::map.59" }
%"class.std::map.59" = type { %"class.std::_Rb_tree.60" }
%"class.std::_Rb_tree.60" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<dali::expr::ExprImplBase>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<dali::expr::ExprImplBase>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<dali::expr::ExprImplBase>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<dali::expr::ExprImplBase>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.dali::expr::SampleDesc" = type { %"struct.dali::expr::OutputData", %"class.dali::SmallVector.118" }
%"struct.dali::expr::OutputData" = type { ptr, i32, %"struct.dali::TensorShape", %"struct.dali::TensorShape" }
%"class.dali::SmallVector.118" = type { %union.anon.121, i64 }
%union.anon.121 = type { %struct.anon.122, [368 x i8] }
%struct.anon.122 = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali4expr19ArithmeticGenericOpINS_10CPUBackendEE7RunImplERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(1424) %0, ptr noundef nonnull align 8 dereferenceable(664) %1) unnamed_addr #1 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 i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.117", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.117", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::tuple.123", align 8
  %19 = alloca %"class.std::tuple.128", align 8
  %20 = alloca %"class.std::tuple.123", align 8
  %21 = alloca %"class.std::tuple.128", align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca %"class.std::function.133", align 8
  %25 = alloca %class.anon, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8
  %29 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 9
  %30 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 8
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 10
  %33 = getelementptr inbounds %"class.dali::OperatorBase", ptr %28, i32 0, i32 1
  call void @_ZN4dali4expr21PrepareSamplesPerTaskINS_10CPUBackendEEEvRSt6vectorIS3_INS0_10SampleDescESaIS4_EESaIS6_EERKS3_INS0_12ExprImplTaskESaISA_EERNS_9WorkspaceERKNS0_15ConstantStorageIT_EERKNS_6OpSpecE(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(664) %31, ptr noundef nonnull align 8 dereferenceable(816) %32, ptr noundef nonnull align 8 dereferenceable(328) %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13GetThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %34)
  store ptr %35, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %36, i32 noundef 0)
  %38 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 5
  call void @_ZN4dali10TensorListINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(304) %37, ptr noundef nonnull align 1 dereferenceable(16) %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %39 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 9
  store ptr %39, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call ptr @_ZNSt6vectorIS_IN4dali4expr10SampleDescESaIS2_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = call ptr @_ZNSt6vectorIS_IN4dali4expr10SampleDescESaIS2_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %72, %2
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIN4dali4expr10SampleDescESaIS4_EES1_IS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %74

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIN4dali4expr10SampleDescESaIS4_EES1_IS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  store ptr %50, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %51, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = call ptr @_ZNKSt6vectorIN4dali4expr10SampleDescESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #6
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.117", ptr %14, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = call ptr @_ZNKSt6vectorIN4dali4expr10SampleDescESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.117", ptr %15, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  br label %58

58:                                               ; preds = %69, %49
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4dali4expr10SampleDescESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %59, label %61, label %60

60:                                               ; preds = %58
  store i32 4, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %71

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %62 = call noundef nonnull align 8 dereferenceable(520) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4dali4expr10SampleDescESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  store ptr %62, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.dali::expr::SampleDesc", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %"struct.dali::expr::OutputData", ptr %64, i32 0, i32 2
  %66 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %65) #6
  store i32 %66, ptr %17, align 4, !tbaa !9
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %68 = load i32, ptr %67, align 4, !tbaa !9
  store i32 %68, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %69

69:                                               ; preds = %61
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN4dali4expr10SampleDescESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br label %58

71:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %72

72:                                               ; preds = %71
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIN4dali4expr10SampleDescESaIS4_EES1_IS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %46

74:                                               ; preds = %48
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %77, label %82

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #6
  %78 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 2
  call void @_ZN4dali4expr13GetTiledCoverERKNS_15TensorListShapeILin1EEEii(ptr dead_on_unwind writable sret(%"class.std::tuple.123") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %78, i32 noundef 4096, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %79 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 6
  %80 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 7
  call void @_ZSt3tieIJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEESt5tupleIJDpRT_EESC_(ptr dead_on_unwind writable sret(%"class.std::tuple.128") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 8 dereferenceable(24) %80) #6
  %81 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRSt6vectorIN4dali4expr8TileDescESaIS3_EERS0_INS2_9TileRangeESaIS7_EEEEaSIS5_S9_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSB_E4typeEOS_IJSE_SF_EE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @_ZNSt11_Tuple_implILm0EJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #6
  br label %87

82:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #6
  %83 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 2
  call void @_ZN4dali4expr19GetOneTilePerSampleERKNS_15TensorListShapeILin1EEE(ptr dead_on_unwind writable sret(%"class.std::tuple.123") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %83)
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %84 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 6
  %85 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 7
  call void @_ZSt3tieIJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEESt5tupleIJDpRT_EESC_(ptr dead_on_unwind writable sret(%"class.std::tuple.128") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(24) %85) #6
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRSt6vectorIN4dali4expr8TileDescESaIS3_EERS0_INS2_9TileRangeESaIS7_EEEEaSIS5_S9_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSB_E4typeEOS_IJSE_SF_EE(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(48) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @_ZNSt11_Tuple_implILm0EJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #6
  br label %87

87:                                               ; preds = %82, %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE17GetInputBatchSizeEi(ptr noundef nonnull align 8 dereferenceable(664) %88, i32 noundef 0)
  store i32 %89, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 0, ptr %23, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %106, %87
  %91 = load i64, ptr %23, align 8, !tbaa !11
  %92 = getelementptr inbounds %"class.dali::expr::ArithmeticGenericOp", ptr %28, i32 0, i32 7
  %93 = call noundef i64 @_ZNKSt6vectorIN4dali4expr9TileRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #6
  %94 = icmp ult i64 %91, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %90
  store i32 6, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %113

96:                                               ; preds = %90
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  %98 = getelementptr inbounds %class.anon, ptr %25, i32 0, i32 0
  store ptr %28, ptr %98, align 8, !tbaa !13
  %99 = getelementptr inbounds %class.anon, ptr %25, i32 0, i32 1
  %100 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %100, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds %class.anon, ptr %25, i32 0, i32 2
  %102 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %102, ptr %101, align 8, !tbaa !16
  call void @"_ZNSt8functionIFviEEC2IZN4dali4expr19ArithmeticGenericOpINS3_10CPUBackendEE7RunImplERNS3_9WorkspaceEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(20) %25)
  %103 = load i64, ptr %23, align 8, !tbaa !11
  %104 = sub i64 0, %103
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %97, ptr noundef %24, i64 noundef %104, i1 noundef zeroext false)
          to label %105 unwind label %109

105:                                              ; preds = %96
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %23, align 8, !tbaa !11
  %108 = add i64 %107, 1
  store i64 %108, ptr %23, align 8, !tbaa !11
  br label %90, !llvm.loop !17

109:                                              ; preds = %96
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %26, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %27, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %115

113:                                              ; preds = %95
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %114, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

115:                                              ; preds = %109
  %116 = load ptr, ptr %26, align 8
  %117 = load i32, ptr %27, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4expr21PrepareSamplesPerTaskINS_10CPUBackendEEEvRSt6vectorIS3_INS0_10SampleDescESaIS4_EESaIS6_EERKS3_INS0_12ExprImplTaskESaISA_EERNS_9WorkspaceERKNS0_15ConstantStorageIT_EERKNS_6OpSpecE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(664), ptr noundef nonnull align 8 dereferenceable(816), ptr noundef nonnull align 8 dereferenceable(328)) #1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEESt5tupleIJDpRT_EESC_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.128") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRSt6vectorIN4dali4expr8TileDescESaIS3_EERS0_INS2_9TileRangeESaIS7_EEEEaSIS5_S9_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSB_E4typeEOS_IJSE_SF_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

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

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

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

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

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

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

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

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

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

!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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSZN4dali4expr19ArithmeticGenericOpINS_10CPUBackendEE7RunImplERNS_9WorkspaceEE3$_0", !6, i64 0, !12, i64 8, !10, i64 16}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !10, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.117" = type { ptr }
%"class.std::tuple.123" = type { %"struct.std::_Tuple_impl.124" }
%"struct.std::_Tuple_impl.124" = type { %"struct.std::_Tuple_impl.125", %"struct.std::_Head_base.127" }
%"struct.std::_Tuple_impl.125" = type { %"struct.std::_Head_base.126" }
%"struct.std::_Head_base.126" = type { %"class.std::vector.43" }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::expr::TileRange, std::allocator<dali::expr::TileRange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Head_base.127" = type { %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::expr::TileDesc, std::allocator<dali::expr::TileDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::tuple.128" = type { %"struct.std::_Tuple_impl.129" }
%"struct.std::_Tuple_impl.129" = type { %"struct.std::_Tuple_impl.130", %"struct.std::_Head_base.132" }
%"struct.std::_Tuple_impl.130" = type { %"struct.std::_Head_base.131" }
%"struct.std::_Head_base.131" = type { ptr }
%"struct.std::_Head_base.132" = type { ptr }
%"class.std::function.133" = 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 <{ ptr, i64, i32, [4 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali4expr19ArithmeticGenericOpINS_10CPUBackendEE7RunImplERNS_9WorkspaceE(ptr noundef nonnull align 8 dereferenceable(1424) %0, ptr noundef nonnull align 8 dereferenceable(664) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.117", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.117", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::tuple.123", align 8
  %10 = alloca %"class.std::tuple.128", align 8
  %11 = alloca %"class.std::tuple.123", align 8
  %12 = alloca %"class.std::tuple.128", align 8
  %13 = alloca %"class.std::function.133", align 8
  %14 = alloca %class.anon, align 8
  %15 = getelementptr inbounds i8, ptr %0, i64 536
  %16 = getelementptr inbounds i8, ptr %0, i64 512
  %17 = getelementptr inbounds i8, ptr %0, i64 560
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN4dali4expr21PrepareSamplesPerTaskINS_10CPUBackendEEEvRSt6vectorIS3_INS0_10SampleDescESaIS4_EESaIS6_EERKS3_INS0_12ExprImplTaskESaISA_EERNS_9WorkspaceERKNS0_15ConstantStorageIT_EERKNS_6OpSpecE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(664) %1, ptr noundef nonnull align 8 dereferenceable(816) %17, ptr noundef nonnull align 8 dereferenceable(328) %18)
  %19 = tail call noundef nonnull align 8 dereferenceable(224) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE13GetThreadPoolEv(ptr noundef nonnull align 8 dereferenceable(664) %1)
  %20 = tail call noundef nonnull align 8 dereferenceable(304) ptr @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE6OutputINS_10CPUBackendEEERDaiT_(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef 0)
  %21 = getelementptr inbounds i8, ptr %0, i64 448
  tail call void @_ZN4dali10TensorListINS_10CPUBackendEE9SetLayoutERKNS_12TensorLayoutE(ptr noundef nonnull align 8 dereferenceable(304) %20, ptr noundef nonnull align 1 dereferenceable(16) %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %22 = tail call ptr @_ZNSt6vectorIS_IN4dali4expr10SampleDescESaIS2_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  store ptr %22, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %23 = tail call ptr @_ZNSt6vectorIS_IN4dali4expr10SampleDescESaIS2_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  store ptr %23, ptr %5, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIN4dali4expr10SampleDescESaIS4_EES1_IS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %24, label %.lr.ph20, label %._crit_edge21.thread

._crit_edge21.thread:                             ; preds = %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %39

._crit_edge21:                                    ; preds = %._crit_edge
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %25 = icmp eq i32 %.pre, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br i1 %25, label %39, label %44

.lr.ph20:                                         ; preds = %2, %._crit_edge
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIN4dali4expr10SampleDescESaIS4_EES1_IS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %27 = call ptr @_ZNKSt6vectorIN4dali4expr10SampleDescESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  store ptr %27, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %28 = call ptr @_ZNKSt6vectorIN4dali4expr10SampleDescESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  store ptr %28, ptr %7, align 8
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4dali4expr10SampleDescESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIN4dali4expr10SampleDescESaIS4_EES1_IS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIN4dali4expr10SampleDescESaIS4_EES1_IS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %31, label %.lr.ph20, label %._crit_edge21

.lr.ph:                                           ; preds = %.lr.ph20, %.lr.ph
  %32 = call noundef nonnull align 8 dereferenceable(520) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN4dali4expr10SampleDescESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %33) #6
  store i32 %34, ptr %8, align 4, !tbaa !5
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %36 = load i32, ptr %35, align 4, !tbaa !5
  store i32 %36, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN4dali4expr10SampleDescESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN4dali4expr10SampleDescESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %38, label %.lr.ph, label %._crit_edge

39:                                               ; preds = %._crit_edge21.thread, %._crit_edge21
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #6
  %40 = getelementptr inbounds i8, ptr %0, i64 408
  call void @_ZN4dali4expr13GetTiledCoverERKNS_15TensorListShapeILin1EEEii(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.123") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %40, i32 noundef 4096, i32 noundef 64)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %41 = getelementptr inbounds i8, ptr %0, i64 464
  %42 = getelementptr inbounds i8, ptr %0, i64 488
  call void @_ZSt3tieIJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEESt5tupleIJDpRT_EESC_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.128") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRSt6vectorIN4dali4expr8TileDescESaIS3_EERS0_INS2_9TileRangeESaIS7_EEEEaSIS5_S9_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSB_E4typeEOS_IJSE_SF_EE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @_ZNSt11_Tuple_implILm0EJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  br label %49

44:                                               ; preds = %._crit_edge21
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #6
  %45 = getelementptr inbounds i8, ptr %0, i64 408
  call void @_ZN4dali4expr19GetOneTilePerSampleERKNS_15TensorListShapeILin1EEE(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.123") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %45)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %46 = getelementptr inbounds i8, ptr %0, i64 464
  %47 = getelementptr inbounds i8, ptr %0, i64 488
  call void @_ZSt3tieIJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEESt5tupleIJDpRT_EESC_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.128") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRSt6vectorIN4dali4expr8TileDescESaIS3_EERS0_INS2_9TileRangeESaIS7_EEEEaSIS5_S9_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSB_E4typeEOS_IJSE_SF_EE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt11_Tuple_implILm0EJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #6
  br label %49

49:                                               ; preds = %44, %39
  %50 = call noundef i32 @_ZNK4dali13WorkspaceBaseINS_10TensorListESt10shared_ptrE17GetInputBatchSizeEi(ptr noundef nonnull align 8 dereferenceable(664) %1, i32 noundef 0)
  %51 = getelementptr inbounds i8, ptr %0, i64 488
  %52 = call noundef i64 @_ZNKSt6vectorIN4dali4expr9TileRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %.not = icmp eq i64 %52, 0
  br i1 %.not, label %._crit_edge25, label %.lr.ph24

.lr.ph24:                                         ; preds = %49
  %53 = getelementptr inbounds i8, ptr %14, i64 8
  %54 = getelementptr inbounds i8, ptr %14, i64 16
  br label %55

._crit_edge25:                                    ; preds = %57, %49
  call void @_ZN4dali10ThreadPool6RunAllEb(ptr noundef nonnull align 8 dereferenceable(224) %19, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret void

55:                                               ; preds = %.lr.ph24, %57
  %.022 = phi i64 [ 0, %.lr.ph24 ], [ %58, %57 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  store ptr %0, ptr %14, align 8, !tbaa !9
  store i64 %.022, ptr %53, align 8, !tbaa !13
  store i32 %50, ptr %54, align 8, !tbaa !14
  call void @"_ZNSt8functionIFviEEC2IZN4dali4expr19ArithmeticGenericOpINS3_10CPUBackendEE7RunImplERNS3_9WorkspaceEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(20) %14)
  %56 = sub i64 0, %.022
  invoke void @_ZN4dali10ThreadPool7AddWorkESt8functionIFviEElb(ptr noundef nonnull align 8 dereferenceable(224) %19, ptr noundef nonnull %13, i64 noundef %56, i1 noundef zeroext false)
          to label %57 unwind label %61

57:                                               ; preds = %55
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  %58 = add nuw i64 %.022, 1
  %59 = call noundef i64 @_ZNKSt6vectorIN4dali4expr9TileRangeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %55, label %._crit_edge25, !llvm.loop !15

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  resume { ptr, i32 } %62
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali4expr21PrepareSamplesPerTaskINS_10CPUBackendEEEvRSt6vectorIS3_INS0_10SampleDescESaIS4_EESaIS6_EERKS3_INS0_12ExprImplTaskESaISA_EERNS_9WorkspaceERKNS0_15ConstantStorageIT_EERKNS_6OpSpecE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(664), ptr noundef nonnull align 8 dereferenceable(816), ptr noundef nonnull align 8 dereferenceable(328)) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJSt6vectorIN4dali4expr8TileDescESaIS3_EES0_INS2_9TileRangeESaIS6_EEEESt5tupleIJDpRT_EESC_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.128") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRSt6vectorIN4dali4expr8TileDescESaIS3_EERS0_INS2_9TileRangeESaIS7_EEEEaSIS5_S9_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSB_E4typeEOS_IJSE_SF_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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


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