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

; 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"

%"struct.dali::TensorListShape" = type { %"struct.dali::TensorListShapeBase.base", i32 }
%"struct.dali::TensorListShapeBase.base" = type <{ %"class.std::vector.93", i32 }>
%"class.std::vector.93" = type { %"struct.std::_Vector_base.94" }
%"struct.std::_Vector_base.94" = 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::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector.112" }
%"class.dali::SmallVector.112" = type { %union.anon.115, i64 }
%union.anon.115 = type { %struct.anon.116, [32 x i8] }
%struct.anon.116 = type { ptr, i64 }
%"class.std::vector.117" = type { %"struct.std::_Vector_base.118" }
%"struct.std::_Vector_base.118" = type { %"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.119" = type { i8 }
%"class.dali::NormalizeBase" = type { %"class.dali::StatelessOperator", %"struct.dali::TensorListShape", %"struct.dali::TensorListShape", %"struct.dali::TensorListView", %"struct.dali::TensorListView", %"class.dali::TensorList", %"class.dali::TensorList", i8, i8, i8, i8, i8, i8, i8, float, float, float, i32, i32, i32, %"class.std::vector.28", i64 }
%"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.79" }
%"class.dali::OpSpec" = type { %"class.std::__cxx11::basic_string", ptr, %"class.std::vector.49", %"class.std::map.54", %"class.std::vector.59", %"class.std::map.54", %"class.std::map.64", %"class.std::vector.69", %"class.std::vector.69", %"class.std::map.74" }
%"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.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = 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.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = 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.54" = type { %"class.std::_Rb_tree.55" }
%"class.std::_Rb_tree.55" = 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.64" = type { %"class.std::_Rb_tree.65" }
%"class.std::_Rb_tree.65" = 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.69" = type { %"struct.std::_Vector_base.70" }
%"struct.std::_Vector_base.70" = 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.74" = type { %"class.std::_Rb_tree.75" }
%"class.std::_Rb_tree.75" = 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.79" = type { %"class.std::_Hashtable.80" }
%"class.std::_Hashtable.80" = 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 }
%"struct.dali::TensorListView" = type { %"struct.dali::TensorListViewBase" }
%"struct.dali::TensorListViewBase" = type { %"struct.dali::TensorListShape", %"class.std::vector.98" }
%"class.std::vector.98" = type { %"struct.std::_Vector_base.99" }
%"struct.std::_Vector_base.99" = 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 }
%"class.dali::TensorList" = type { %"class.dali::Buffer", %"class.std::vector.106", %"class.dali::TensorList<dali::CPUBackend>::State", i8, i32, i32, i32, %"class.dali::TypeInfo", %"struct.dali::TensorListShape", %"class.dali::TensorLayout", %"class.dali::AccessOrder", %"class.dali::CUDASharedEvent" }
%"class.dali::Buffer" = type <{ ptr, %"class.dali::TypeInfo", %"class.std::shared_ptr", %"class.std::function.103", i64, i64, i32, [4 x i8], %"class.dali::AccessOrder", i8, i8, [6 x i8] }>
%"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.103" = 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.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = type { %"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::Tensor<dali::CPUBackend>, std::allocator<dali::Tensor<dali::CPUBackend>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.dali::TensorList<dali::CPUBackend>::State" = type { i8, i8 }
%"class.dali::TypeInfo" = type { ptr, i32, i64, %"class.std::basic_string_view" }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.dali::TensorLayout" = type { [16 x i8] }
%"class.dali::AccessOrder" = type <{ ptr, i32, [4 x i8] }>
%"class.dali::CUDASharedEvent" = type { %"class.std::shared_ptr" }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = 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 }

@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv = external hidden unnamed_addr constant [59 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [19 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

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 @_ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv(ptr noundef nonnull align 8 dereferenceable(1296) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.dali::TensorListShape", align 8
  %6 = alloca %"struct.dali::TensorShape", align 8
  %7 = alloca i1, align 1
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.dali::TensorListShape", align 8
  %12 = alloca %"class.std::vector.117", align 8
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [1 x %"struct.dali::TensorShape"], align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::allocator.119", align 1
  %17 = alloca %"struct.dali::TensorListShape", align 8
  %18 = alloca %"class.std::vector.117", align 8
  %19 = alloca %"class.std::initializer_list", align 8
  %20 = alloca [1 x %"struct.dali::TensorShape"], align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::allocator.119", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %24 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 1
  %25 = call noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %24)
  store i32 %25, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  %26 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 11
  %27 = load i8, ptr %26, align 4, !tbaa !11, !range !86, !noundef !87
  %28 = trunc i8 %27 to i1
  store i1 false, ptr %7, align 1
  store i1 false, ptr %8, align 1
  br i1 %28, label %29, label %33

29:                                               ; preds = %1
  %30 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #5
  store i1 true, ptr %7, align 1
  %31 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  call void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind writable sret(%"struct.dali::TensorShape") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %31, i64 noundef 0)
  store i1 true, ptr %8, align 1
  invoke void @_ZN4dali18uniform_list_shapeILin2ENS_11TensorShapeILin1EEELin1ELin1EEENS_15TensorListShapeIXT2_EEEiRKT0_(ptr dead_on_unwind writable sret(%"struct.dali::TensorListShape") align 8 %5, i32 noundef %30, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %32 unwind label %52

32:                                               ; preds = %29
  br label %36

33:                                               ; preds = %1
  %34 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  invoke void @_ZN4dali15TensorListShapeILin1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %35 unwind label %52

35:                                               ; preds = %33
  br label %36

36:                                               ; preds = %35, %32
  %37 = load i1, ptr %8, align 1
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  br label %39

39:                                               ; preds = %38, %36
  %40 = load i1, ptr %7, align 1
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #5
  br label %42

42:                                               ; preds = %41, %39
  store ptr %5, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 5
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE8set_typeIfEEvv(ptr noundef nonnull align 8 dereferenceable(304) %43)
          to label %44 unwind label %62

44:                                               ; preds = %42
  %45 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 6
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE8set_typeIfEEvv(ptr noundef nonnull align 8 dereferenceable(304) %45)
          to label %46 unwind label %62

46:                                               ; preds = %44
  %47 = call noundef zeroext i1 @_ZNK4dali13NormalizeBaseINS_10CPUBackendEE14ShouldCalcMeanEv(ptr noundef nonnull align 8 dereferenceable(1248) %23) #5
  br i1 %47, label %48, label %66

48:                                               ; preds = %46
  %49 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 5
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %49, ptr noundef nonnull align 8 dereferenceable(32) %50)
          to label %51 unwind label %62

51:                                               ; preds = %48
  br label %156

52:                                               ; preds = %33, %29
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  %56 = load i1, ptr %8, align 1
  br i1 %56, label %57, label %58

57:                                               ; preds = %52
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  br label %58

58:                                               ; preds = %57, %52
  %59 = load i1, ptr %7, align 1
  br i1 %59, label %60, label %61

60:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #5
  br label %61

61:                                               ; preds = %60, %58
  br label %254

62:                                               ; preds = %245, %188, %174, %158, %149, %92, %78, %48, %44, %42
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  br label %253

66:                                               ; preds = %46
  %67 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 7
  %68 = load i8, ptr %67, align 8, !tbaa !88, !range !86, !noundef !87
  %69 = trunc i8 %68 to i1
  br i1 %69, label %70, label %88

70:                                               ; preds = %66
  %71 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 11
  %72 = load i8, ptr %71, align 4, !tbaa !11, !range !86, !noundef !87
  %73 = trunc i8 %72 to i1
  %74 = xor i1 %73, true
  br i1 %74, label %75, label %76

75:                                               ; preds = %70
  br label %78

76:                                               ; preds = %70
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.31, i32 noundef 174, ptr noundef @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %75
  %79 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  %80 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 3
  %81 = getelementptr inbounds %"struct.dali::TensorListViewBase", ptr %80, i32 0, i32 0
  %82 = invoke noundef zeroext i1 @_ZN4dalieqILin1ELin1EEEbRKNS_15TensorListShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(32) %79, ptr noundef nonnull align 8 dereferenceable(32) %81)
          to label %83 unwind label %62

83:                                               ; preds = %78
  br i1 %82, label %84, label %85

84:                                               ; preds = %83
  br label %87

85:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.31, i32 noundef 176, ptr noundef @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

86:                                               ; No predecessors!
  br label %87

87:                                               ; preds = %86, %84
  br label %155

88:                                               ; preds = %66
  %89 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 9
  %90 = load i8, ptr %89, align 2, !tbaa !89, !range !86, !noundef !87
  %91 = trunc i8 %90 to i1
  br i1 %91, label %92, label %154

92:                                               ; preds = %88
  %93 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  %94 = invoke noundef zeroext i1 @_ZN4dali10is_uniformILin1EEEbRKNS_15TensorListShapeIXT_EEE(ptr noundef nonnull align 8 dereferenceable(32) %93)
          to label %95 unwind label %62

95:                                               ; preds = %92
  br i1 %94, label %96, label %149

96:                                               ; preds = %95
  %97 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #5
  store ptr %14, ptr %15, align 8
  %98 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  invoke void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind writable sret(%"struct.dali::TensorShape") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %98, i64 noundef 0)
          to label %99 unwind label %116

99:                                               ; preds = %96
  %100 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %100, align 8, !tbaa !90
  %101 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 1, ptr %101, align 8, !tbaa !92
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @_ZNSaIN4dali11TensorShapeILin1EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  %102 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8
  %104 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %105 = load i64, ptr %104, align 8
  invoke void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr %103, i64 %105, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %106 unwind label %127

106:                                              ; preds = %99
  invoke void @_ZN4dali15TensorListShapeILin1EEC2ERKSt6vectorINS_11TensorShapeILin1EEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %107 unwind label %131

107:                                              ; preds = %106
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %97, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %108 unwind label %135

108:                                              ; preds = %107
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  %109 = getelementptr inbounds [1 x %"struct.dali::TensorShape"], ptr %14, i32 0, i32 0
  %110 = getelementptr inbounds %"struct.dali::TensorShape", ptr %109, i64 1
  br label %111

111:                                              ; preds = %111, %108
  %112 = phi ptr [ %110, %108 ], [ %113, %111 ]
  %113 = getelementptr inbounds %"struct.dali::TensorShape", ptr %112, i64 -1
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %113) #5
  %114 = icmp eq ptr %113, %109
  br i1 %114, label %115, label %111

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %153

116:                                              ; preds = %96
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %9, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %10, align 4
  %120 = load ptr, ptr %15, align 8
  %121 = icmp eq ptr %14, %120
  br i1 %121, label %126, label %122

122:                                              ; preds = %122, %116
  %123 = phi ptr [ %120, %116 ], [ %124, %122 ]
  %124 = getelementptr inbounds %"struct.dali::TensorShape", ptr %123, i64 -1
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %124) #5
  %125 = icmp eq ptr %124, %14
  br i1 %125, label %126, label %122

126:                                              ; preds = %122, %116
  br label %148

127:                                              ; preds = %99
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %9, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %10, align 4
  br label %140

131:                                              ; preds = %106
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  br label %139

135:                                              ; preds = %107
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %139

139:                                              ; preds = %135, %131
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %140

140:                                              ; preds = %139, %127
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  %141 = getelementptr inbounds [1 x %"struct.dali::TensorShape"], ptr %14, i32 0, i32 0
  %142 = getelementptr inbounds %"struct.dali::TensorShape", ptr %141, i64 1
  br label %143

143:                                              ; preds = %143, %140
  %144 = phi ptr [ %142, %140 ], [ %145, %143 ]
  %145 = getelementptr inbounds %"struct.dali::TensorShape", ptr %144, i64 -1
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %145) #5
  %146 = icmp eq ptr %145, %141
  br i1 %146, label %147, label %143

147:                                              ; preds = %143
  br label %148

148:                                              ; preds = %147, %126
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %253

149:                                              ; preds = %95
  %150 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 5
  %151 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %150, ptr noundef nonnull align 8 dereferenceable(32) %151)
          to label %152 unwind label %62

152:                                              ; preds = %149
  br label %153

153:                                              ; preds = %152, %115
  br label %154

154:                                              ; preds = %153, %88
  br label %155

155:                                              ; preds = %154, %87
  br label %156

156:                                              ; preds = %155, %51
  %157 = call noundef zeroext i1 @_ZNK4dali13NormalizeBaseINS_10CPUBackendEE16ShouldCalcStdDevEv(ptr noundef nonnull align 8 dereferenceable(1248) %23) #5
  br i1 %157, label %158, label %162

158:                                              ; preds = %156
  %159 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 6
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %159, ptr noundef nonnull align 8 dereferenceable(32) %160)
          to label %161 unwind label %62

161:                                              ; preds = %158
  br label %252

162:                                              ; preds = %156
  %163 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 8
  %164 = load i8, ptr %163, align 1, !tbaa !93, !range !86, !noundef !87
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %179

166:                                              ; preds = %162
  %167 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 11
  %168 = load i8, ptr %167, align 4, !tbaa !11, !range !86, !noundef !87
  %169 = trunc i8 %168 to i1
  %170 = xor i1 %169, true
  br i1 %170, label %171, label %172

171:                                              ; preds = %166
  br label %174

172:                                              ; preds = %166
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.31, i32 noundef 189, ptr noundef @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

173:                                              ; No predecessors!
  br label %174

174:                                              ; preds = %173, %171
  %175 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 6
  %176 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 4
  %177 = getelementptr inbounds %"struct.dali::TensorListViewBase", ptr %176, i32 0, i32 0
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %175, ptr noundef nonnull align 8 dereferenceable(32) %177)
          to label %178 unwind label %62

178:                                              ; preds = %174
  br label %251

179:                                              ; preds = %162
  %180 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 10
  %181 = load i8, ptr %180, align 1, !tbaa !94, !range !86, !noundef !87
  %182 = trunc i8 %181 to i1
  br i1 %182, label %183, label %184

183:                                              ; preds = %179
  br label %186

184:                                              ; preds = %179
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.31, i32 noundef 193, ptr noundef @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

185:                                              ; No predecessors!
  br label %186

186:                                              ; preds = %185, %183
  %187 = call noundef zeroext i1 @_ZNK4dali13NormalizeBaseINS_10CPUBackendEE15IsFullReductionEv(ptr noundef nonnull align 8 dereferenceable(1248) %23) #5
  br i1 %187, label %250, label %188

188:                                              ; preds = %186
  %189 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  %190 = invoke noundef zeroext i1 @_ZN4dali10is_uniformILin1EEEbRKNS_15TensorListShapeIXT_EEE(ptr noundef nonnull align 8 dereferenceable(32) %189)
          to label %191 unwind label %62

191:                                              ; preds = %188
  br i1 %190, label %192, label %245

192:                                              ; preds = %191
  %193 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %20) #5
  store ptr %20, ptr %21, align 8
  %194 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  invoke void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind writable sret(%"struct.dali::TensorShape") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %194, i64 noundef 0)
          to label %195 unwind label %212

195:                                              ; preds = %192
  %196 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %196, align 8, !tbaa !90
  %197 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 1, ptr %197, align 8, !tbaa !92
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  call void @_ZNSaIN4dali11TensorShapeILin1EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  %198 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8
  %200 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %201 = load i64, ptr %200, align 8
  invoke void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr %199, i64 %201, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %202 unwind label %223

202:                                              ; preds = %195
  invoke void @_ZN4dali15TensorListShapeILin1EEC2ERKSt6vectorINS_11TensorShapeILin1EEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %203 unwind label %227

203:                                              ; preds = %202
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %193, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %204 unwind label %231

204:                                              ; preds = %203
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  %205 = getelementptr inbounds [1 x %"struct.dali::TensorShape"], ptr %20, i32 0, i32 0
  %206 = getelementptr inbounds %"struct.dali::TensorShape", ptr %205, i64 1
  br label %207

207:                                              ; preds = %207, %204
  %208 = phi ptr [ %206, %204 ], [ %209, %207 ]
  %209 = getelementptr inbounds %"struct.dali::TensorShape", ptr %208, i64 -1
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %209) #5
  %210 = icmp eq ptr %209, %205
  br i1 %210, label %211, label %207

211:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %249

212:                                              ; preds = %192
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %9, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %10, align 4
  %216 = load ptr, ptr %21, align 8
  %217 = icmp eq ptr %20, %216
  br i1 %217, label %222, label %218

218:                                              ; preds = %218, %212
  %219 = phi ptr [ %216, %212 ], [ %220, %218 ]
  %220 = getelementptr inbounds %"struct.dali::TensorShape", ptr %219, i64 -1
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %220) #5
  %221 = icmp eq ptr %220, %20
  br i1 %221, label %222, label %218

222:                                              ; preds = %218, %212
  br label %244

223:                                              ; preds = %195
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %9, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %10, align 4
  br label %236

227:                                              ; preds = %202
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %9, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %10, align 4
  br label %235

231:                                              ; preds = %203
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %9, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %10, align 4
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %235

235:                                              ; preds = %231, %227
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  br label %236

236:                                              ; preds = %235, %223
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  %237 = getelementptr inbounds [1 x %"struct.dali::TensorShape"], ptr %20, i32 0, i32 0
  %238 = getelementptr inbounds %"struct.dali::TensorShape", ptr %237, i64 1
  br label %239

239:                                              ; preds = %239, %236
  %240 = phi ptr [ %238, %236 ], [ %241, %239 ]
  %241 = getelementptr inbounds %"struct.dali::TensorShape", ptr %240, i64 -1
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %241) #5
  %242 = icmp eq ptr %241, %237
  br i1 %242, label %243, label %239

243:                                              ; preds = %239
  br label %244

244:                                              ; preds = %243, %222
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %253

245:                                              ; preds = %191
  %246 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 6
  %247 = getelementptr inbounds %"class.dali::NormalizeBase", ptr %23, i32 0, i32 2
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %246, ptr noundef nonnull align 8 dereferenceable(32) %247)
          to label %248 unwind label %62

248:                                              ; preds = %245
  br label %249

249:                                              ; preds = %248, %211
  br label %250

250:                                              ; preds = %249, %186
  br label %251

251:                                              ; preds = %250, %178
  br label %252

252:                                              ; preds = %251, %161
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

253:                                              ; preds = %244, %148, %62
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  br label %254

254:                                              ; preds = %253, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %255

255:                                              ; preds = %254
  %256 = load ptr, ptr %9, align 8
  %257 = load i32, ptr %10, align 4
  %258 = insertvalue { ptr, i32 } poison, ptr %256, 0
  %259 = insertvalue { ptr, i32 } %258, i32 %257, 1
  resume { ptr, i32 } %259
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali18uniform_list_shapeILin2ENS_11TensorShapeILin1EEELin1ELin1EEENS_15TensorListShapeIXT2_EEEiRKT0_(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListShape") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(56)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorShape") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #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 #1 align 2

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dalieqILin1ELin1EEEbRKNS_15TensorListShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dali10is_uniformILin1EEEbRKNS_15TensorListShapeIXT_EEE(ptr noundef nonnull align 8 dereferenceable(32)) #1

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { noreturn nounwind "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 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !74, i64 1188}
!12 = !{!"_ZTSN4dali13NormalizeBaseINS_10CPUBackendEEE", !13, i64 0, !51, i64 400, !51, i64 432, !57, i64 464, !57, i64 520, !63, i64 576, !63, i64 880, !74, i64 1184, !74, i64 1185, !74, i64 1186, !74, i64 1187, !74, i64 1188, !74, i64 1189, !74, i64 1190, !50, i64 1192, !50, i64 1196, !50, i64 1200, !10, i64 1204, !66, i64 1208, !66, i64 1212, !82, i64 1216, !19, i64 1240}
!13 = !{!"_ZTSN4dali17StatelessOperatorINS_10CPUBackendEEE", !14, i64 0}
!14 = !{!"_ZTSN4dali8OperatorINS_10CPUBackendEEE", !15, i64 0}
!15 = !{!"_ZTSN4dali12OperatorBaseE", !16, i64 8, !10, i64 336, !10, i64 340, !46, i64 344}
!16 = !{!"_ZTSN4dali6OpSpecE", !17, i64 0, !6, i64 32, !20, i64 40, !24, i64 64, !32, i64 112, !24, i64 136, !36, i64 184, !39, i64 232, !39, i64 256, !43, i64 280}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt6vectorISt10shared_ptrIN4dali8ArgumentEESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4dali8ArgumentEESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4dali8ArgumentEESaIS3_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4dali8ArgumentEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4lessIvESaISt4pairIKS5_iEEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESt10_Select1stIS8_ESt4lessIvESaIS8_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESt10_Select1stIS8_ESt4lessIvESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessIvE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !19, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIvESaISt4pairIKS5_S5_EEE", !37, i64 0}
!37 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIvESaIS8_EE", !38, i64 0}
!38 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIvESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !27, i64 0, !29, i64 8}
!39 = !{!"_ZTSSt6vectorIN4dali6OpSpec15InOutDeviceDescESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIN4dali6OpSpec15InOutDeviceDescESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN4dali6OpSpec15InOutDeviceDescESaIS2_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN4dali6OpSpec15InOutDeviceDescESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSSt3mapIN4dali6OpSpec15InOutDeviceDescEiSt4lessIvESaISt4pairIKS2_iEEE", !44, i64 0}
!44 = !{!"_ZTSSt8_Rb_treeIN4dali6OpSpec15InOutDeviceDescESt4pairIKS2_iESt10_Select1stIS5_ESt4lessIvESaIS5_EE", !45, i64 0}
!45 = !{!"_ZTSNSt8_Rb_treeIN4dali6OpSpec15InOutDeviceDescESt4pairIKS2_iESt10_Select1stIS5_ESt4lessIvESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !27, i64 0, !29, i64 8}
!46 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt3anySt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S6_EEE", !47, i64 0}
!47 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !48, i64 16, !19, i64 24, !49, i64 32, !6, i64 48}
!48 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!49 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !50, i64 0, !19, i64 8}
!50 = !{!"float", !7, i64 0}
!51 = !{!"_ZTSN4dali15TensorListShapeILin1EEE", !52, i64 0, !10, i64 28}
!52 = !{!"_ZTSN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EEE", !53, i64 0, !10, i64 24}
!53 = !{!"_ZTSSt6vectorIlSaIlEE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!57 = !{!"_ZTSN4dali14TensorListViewINS_10StorageCPUEKfLin1EEE", !58, i64 0}
!58 = !{!"_ZTSN4dali18TensorListViewBaseINS_10StorageCPUEKfLin1EEE", !51, i64 0, !59, i64 32}
!59 = !{!"_ZTSSt6vectorIPKfSaIS1_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseIPKfSaIS1_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIPKfSaIS1_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIPKfSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!63 = !{!"_ZTSN4dali10TensorListINS_10CPUBackendEEE", !64, i64 0, !75, i64 144, !79, i64 168, !74, i64 170, !10, i64 172, !10, i64 176, !10, i64 180, !65, i64 184, !51, i64 224, !80, i64 256, !73, i64 272, !81, i64 288}
!64 = !{!"_ZTSN4dali6BufferINS_10CPUBackendEEE", !65, i64 8, !68, i64 48, !71, i64 64, !19, i64 96, !19, i64 104, !10, i64 112, !73, i64 120, !74, i64 136, !74, i64 137}
!65 = !{!"_ZTSN4dali8TypeInfoE", !6, i64 0, !66, i64 8, !19, i64 16, !67, i64 24}
!66 = !{!"_ZTS13_DALIDataType", !7, i64 0}
!67 = !{!"_ZTSSt17basic_string_viewIcSt11char_traitsIcEE", !19, i64 0, !6, i64 8}
!68 = !{!"_ZTSSt10shared_ptrIvE", !69, i64 0}
!69 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !70, i64 8}
!70 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!71 = !{!"_ZTSSt8functionIFSt10shared_ptrIhEmEE", !72, i64 0, !6, i64 24}
!72 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!73 = !{!"_ZTSN4dali11AccessOrderE", !6, i64 0, !10, i64 8}
!74 = !{!"bool", !7, i64 0}
!75 = !{!"_ZTSSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE", !76, i64 0}
!76 = !{!"_ZTSSt12_Vector_baseIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE", !77, i64 0}
!77 = !{!"_ZTSNSt12_Vector_baseIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE12_Vector_implE", !78, i64 0}
!78 = !{!"_ZTSNSt12_Vector_baseIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!79 = !{!"_ZTSN4dali10TensorListINS_10CPUBackendEE5StateE", !74, i64 0, !74, i64 1}
!80 = !{!"_ZTSN4dali12TensorLayoutE", !7, i64 0}
!81 = !{!"_ZTSN4dali15CUDASharedEventE", !68, i64 0}
!82 = !{!"_ZTSSt6vectorIiSaIiEE", !83, i64 0}
!83 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !84, i64 0}
!84 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !85, i64 0}
!85 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!86 = !{i8 0, i8 2}
!87 = !{}
!88 = !{!12, !74, i64 1184}
!89 = !{!12, !74, i64 1186}
!90 = !{!91, !6, i64 0}
!91 = !{!"_ZTSSt16initializer_listIN4dali11TensorShapeILin1EEEE", !6, i64 0, !19, i64 8}
!92 = !{!91, !19, i64 8}
!93 = !{!12, !74, i64 1185}
!94 = !{!12, !74, i64 1187}


; 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"

%"struct.dali::TensorListShape" = type { %"struct.dali::TensorListShapeBase.base", i32 }
%"struct.dali::TensorListShapeBase.base" = type <{ %"class.std::vector.93", i32 }>
%"class.std::vector.93" = type { %"struct.std::_Vector_base.94" }
%"struct.std::_Vector_base.94" = 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::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector.112" }
%"class.dali::SmallVector.112" = type { %union.anon.115, i64 }
%union.anon.115 = type { %struct.anon.116, [32 x i8] }
%struct.anon.116 = type { ptr, i64 }
%"class.std::vector.117" = type { %"struct.std::_Vector_base.118" }
%"struct.std::_Vector_base.118" = type { %"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl" }
%"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl" = type { %"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<dali::TensorShape<DynamicDimensions>, std::allocator<dali::TensorShape<DynamicDimensions>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.119" = type { i8 }

@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv = external hidden unnamed_addr constant [59 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [19 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

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 @_ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv(ptr noundef nonnull align 8 dereferenceable(1296) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.dali::TensorListShape", align 8
  %3 = alloca %"struct.dali::TensorShape", align 8
  %4 = alloca %"struct.dali::TensorListShape", align 8
  %5 = alloca %"class.std::vector.117", align 8
  %6 = alloca [1 x %"struct.dali::TensorShape"], align 8
  %7 = alloca %"class.std::allocator.119", align 1
  %8 = alloca %"struct.dali::TensorListShape", align 8
  %9 = alloca %"class.std::vector.117", align 8
  %10 = alloca [1 x %"struct.dali::TensorShape"], align 8
  %11 = alloca %"class.std::allocator.119", align 1
  %12 = getelementptr inbounds i8, ptr %0, i64 400
  %13 = tail call noundef i32 @_ZNK4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EE11num_samplesEv(ptr noundef nonnull align 8 dereferenceable(28) %12)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 1188
  %15 = load i8, ptr %14, align 4, !tbaa !5, !range !84, !noundef !85
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %19

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #5
  %18 = getelementptr inbounds i8, ptr %0, i64 432
  call void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorShape") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %18, i64 noundef 0)
  invoke void @_ZN4dali18uniform_list_shapeILin2ENS_11TensorShapeILin1EEELin1ELin1EEENS_15TensorListShapeIXT2_EEEiRKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorListShape") align 8 %2, i32 noundef %13, ptr noundef nonnull align 8 dereferenceable(56) %3)
          to label %21 unwind label %27

19:                                               ; preds = %1
  %20 = getelementptr inbounds i8, ptr %0, i64 432
  call void @_ZN4dali15TensorListShapeILin1EEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %20)
  br label %.critedge

21:                                               ; preds = %17
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #5
  br label %.critedge

.critedge:                                        ; preds = %19, %21
  %22 = getelementptr inbounds i8, ptr %0, i64 576
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE8set_typeIfEEvv(ptr noundef nonnull align 8 dereferenceable(304) %22)
          to label %23 unwind label %29

23:                                               ; preds = %.critedge
  %24 = getelementptr inbounds i8, ptr %0, i64 880
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE8set_typeIfEEvv(ptr noundef nonnull align 8 dereferenceable(304) %24)
          to label %25 unwind label %29

25:                                               ; preds = %23
  %26 = call noundef zeroext i1 @_ZNK4dali13NormalizeBaseINS_10CPUBackendEE14ShouldCalcMeanEv(ptr noundef nonnull align 8 dereferenceable(1248) %0) #5
  br i1 %26, label %.invoke41, label %31

27:                                               ; preds = %17
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #5
  br label %.critedge38

29:                                               ; preds = %.invoke41, %.invoke, %87, %49, %39, %23, %.critedge
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %107

31:                                               ; preds = %25
  %32 = getelementptr inbounds i8, ptr %0, i64 1184
  %33 = load i8, ptr %32, align 8, !tbaa !86, !range !84, !noundef !85
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %35, label %45

35:                                               ; preds = %31
  %36 = load i8, ptr %14, align 4, !tbaa !5, !range !84, !noundef !85
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.31, i32 noundef 174, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %0, i64 432
  %41 = getelementptr inbounds i8, ptr %0, i64 464
  %42 = invoke noundef zeroext i1 @_ZN4dalieqILin1ELin1EEEbRKNS_15TensorListShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %43 unwind label %29

43:                                               ; preds = %39
  br i1 %42, label %68, label %44

44:                                               ; preds = %43
  call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.31, i32 noundef 176, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

45:                                               ; preds = %31
  %46 = getelementptr inbounds i8, ptr %0, i64 1186
  %47 = load i8, ptr %46, align 2, !tbaa !87, !range !84, !noundef !85
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %49, label %68

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 432
  %51 = invoke noundef zeroext i1 @_ZN4dali10is_uniformILin1EEEbRKNS_15TensorListShapeIXT_EEE(ptr noundef nonnull align 8 dereferenceable(32) %50)
          to label %52 unwind label %29

52:                                               ; preds = %49
  br i1 %51, label %53, label %.invoke41

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #5
  invoke void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorShape") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef 0)
          to label %54 unwind label %58

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaIN4dali11TensorShapeILin1EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr nonnull %6, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %55 unwind label %60

55:                                               ; preds = %54
  invoke void @_ZN4dali15TensorListShapeILin1EEC2ERKSt6vectorINS_11TensorShapeILin1EEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %56 unwind label %62

56:                                               ; preds = %55
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %22, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %57 unwind label %64

57:                                               ; preds = %56
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %68

58:                                               ; preds = %53
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit40

60:                                               ; preds = %54
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit40.loopexit

62:                                               ; preds = %55
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %56
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %66

66:                                               ; preds = %64, %62
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %.loopexit40.loopexit

.loopexit40.loopexit:                             ; preds = %66, %60
  %.pn.pn = phi { ptr, i32 } [ %.pn, %66 ], [ %61, %60 ]
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  br label %.loopexit40

.loopexit40:                                      ; preds = %.loopexit40.loopexit, %58
  %.pn.pn.pn = phi { ptr, i32 } [ %59, %58 ], [ %.pn.pn, %.loopexit40.loopexit ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %107

.invoke41:                                        ; preds = %25, %52
  %67 = phi ptr [ %50, %52 ], [ %2, %25 ]
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %22, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %68 unwind label %29

68:                                               ; preds = %.invoke41, %43, %57, %45
  %69 = call noundef zeroext i1 @_ZNK4dali13NormalizeBaseINS_10CPUBackendEE16ShouldCalcStdDevEv(ptr noundef nonnull align 8 dereferenceable(1248) %0) #5
  br i1 %69, label %.invoke, label %70

70:                                               ; preds = %68
  %71 = getelementptr inbounds i8, ptr %0, i64 1185
  %72 = load i8, ptr %71, align 1, !tbaa !88, !range !84, !noundef !85
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %74, label %80

74:                                               ; preds = %70
  %75 = load i8, ptr %14, align 4, !tbaa !5, !range !84, !noundef !85
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %78

77:                                               ; preds = %74
  call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.31, i32 noundef 189, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

78:                                               ; preds = %74
  %79 = getelementptr inbounds i8, ptr %0, i64 520
  br label %.invoke

80:                                               ; preds = %70
  %81 = getelementptr inbounds i8, ptr %0, i64 1187
  %82 = load i8, ptr %81, align 1, !tbaa !89, !range !84, !noundef !85
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.31, i32 noundef 193, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4dali9NormalizeINS_10CPUBackendEE16AllocTempStorageEv) #6
  unreachable

85:                                               ; preds = %80
  %86 = call noundef zeroext i1 @_ZNK4dali13NormalizeBaseINS_10CPUBackendEE15IsFullReductionEv(ptr noundef nonnull align 8 dereferenceable(1248) %0) #5
  br i1 %86, label %106, label %87

87:                                               ; preds = %85
  %88 = getelementptr inbounds i8, ptr %0, i64 432
  %89 = invoke noundef zeroext i1 @_ZN4dali10is_uniformILin1EEEbRKNS_15TensorListShapeIXT_EEE(ptr noundef nonnull align 8 dereferenceable(32) %88)
          to label %90 unwind label %29

90:                                               ; preds = %87
  br i1 %89, label %91, label %.invoke

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #5
  invoke void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind nonnull writable sret(%"struct.dali::TensorShape") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %88, i64 noundef 0)
          to label %92 unwind label %96

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @_ZNSaIN4dali11TensorShapeILin1EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr nonnull %10, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %93 unwind label %98

93:                                               ; preds = %92
  invoke void @_ZN4dali15TensorListShapeILin1EEC2ERKSt6vectorINS_11TensorShapeILin1EEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %94 unwind label %100

94:                                               ; preds = %93
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %24, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %95 unwind label %102

95:                                               ; preds = %94
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  br label %106

96:                                               ; preds = %91
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

98:                                               ; preds = %92
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

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

102:                                              ; preds = %94
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %104

104:                                              ; preds = %102, %100
  %.pn30 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @_ZNSt6vectorIN4dali11TensorShapeILin1EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %104, %98
  %.pn30.pn = phi { ptr, i32 } [ %.pn30, %104 ], [ %99, %98 ]
  call void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %96
  %.pn30.pn.pn = phi { ptr, i32 } [ %97, %96 ], [ %.pn30.pn, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  br label %107

.invoke:                                          ; preds = %90, %68, %78
  %105 = phi ptr [ %79, %78 ], [ %2, %68 ], [ %88, %90 ]
  invoke void @_ZN4dali10TensorListINS_10CPUBackendEE6ResizeERKNS_15TensorListShapeILin1EEE(ptr noundef nonnull align 8 dereferenceable(304) %24, ptr noundef nonnull align 8 dereferenceable(32) %105)
          to label %106 unwind label %29

106:                                              ; preds = %.invoke, %95, %85
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret void

107:                                              ; preds = %.loopexit, %.loopexit40, %29
  %.pn34 = phi { ptr, i32 } [ %30, %29 ], [ %.pn30.pn.pn, %.loopexit ], [ %.pn.pn.pn, %.loopexit40 ]
  call void @_ZN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %.critedge38

.critedge38:                                      ; preds = %27, %107
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %107 ], [ %28, %27 ]
  resume { ptr, i32 } %.pn34.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali18uniform_list_shapeILin2ENS_11TensorShapeILin1EEELin1ELin1EEENS_15TensorListShapeIXT2_EEEiRKT0_(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorListShape") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4dali15TensorListShapeILin1EEixEl(ptr dead_on_unwind noalias writable sret(%"struct.dali::TensorShape") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) 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 #1 align 2

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dalieqILin1ELin1EEEbRKNS_15TensorListShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dali10is_uniformILin1EEEbRKNS_15TensorListShapeIXT_EEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN4dali11TensorShapeILin1EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { noreturn nounwind "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 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !72, i64 1188}
!6 = !{!"_ZTSN4dali13NormalizeBaseINS_10CPUBackendEEE", !7, i64 0, !49, i64 400, !49, i64 432, !55, i64 464, !55, i64 520, !61, i64 576, !61, i64 880, !72, i64 1184, !72, i64 1185, !72, i64 1186, !72, i64 1187, !72, i64 1188, !72, i64 1189, !72, i64 1190, !48, i64 1192, !48, i64 1196, !48, i64 1200, !43, i64 1204, !64, i64 1208, !64, i64 1212, !80, i64 1216, !16, i64 1240}
!7 = !{!"_ZTSN4dali17StatelessOperatorINS_10CPUBackendEEE", !8, i64 0}
!8 = !{!"_ZTSN4dali8OperatorINS_10CPUBackendEEE", !9, i64 0}
!9 = !{!"_ZTSN4dali12OperatorBaseE", !10, i64 8, !43, i64 336, !43, i64 340, !44, i64 344}
!10 = !{!"_ZTSN4dali6OpSpecE", !11, i64 0, !13, i64 32, !17, i64 40, !21, i64 64, !29, i64 112, !21, i64 136, !33, i64 184, !36, i64 232, !36, i64 256, !40, i64 280}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !16, i64 8, !14, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"long", !14, i64 0}
!17 = !{!"_ZTSSt6vectorISt10shared_ptrIN4dali8ArgumentEESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4dali8ArgumentEESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4dali8ArgumentEESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4dali8ArgumentEESaIS3_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!21 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4lessIvESaISt4pairIKS5_iEEE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESt10_Select1stIS8_ESt4lessIvESaIS8_EE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESt10_Select1stIS8_ESt4lessIvESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !24, i64 0, !26, i64 8}
!24 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIvEE", !25, i64 0}
!25 = !{!"_ZTSSt4lessIvE"}
!26 = !{!"_ZTSSt15_Rb_tree_header", !27, i64 0, !16, i64 32}
!27 = !{!"_ZTSSt18_Rb_tree_node_base", !28, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!28 = !{!"_ZTSSt14_Rb_tree_color", !14, i64 0}
!29 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiESaIS7_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!33 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIvESaISt4pairIKS5_S5_EEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIvESaIS8_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIvESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !24, i64 0, !26, i64 8}
!36 = !{!"_ZTSSt6vectorIN4dali6OpSpec15InOutDeviceDescESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN4dali6OpSpec15InOutDeviceDescESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4dali6OpSpec15InOutDeviceDescESaIS2_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4dali6OpSpec15InOutDeviceDescESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!40 = !{!"_ZTSSt3mapIN4dali6OpSpec15InOutDeviceDescEiSt4lessIvESaISt4pairIKS2_iEEE", !41, i64 0}
!41 = !{!"_ZTSSt8_Rb_treeIN4dali6OpSpec15InOutDeviceDescESt4pairIKS2_iESt10_Select1stIS5_ESt4lessIvESaIS5_EE", !42, i64 0}
!42 = !{!"_ZTSNSt8_Rb_treeIN4dali6OpSpec15InOutDeviceDescESt4pairIKS2_iESt10_Select1stIS5_ESt4lessIvESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !24, i64 0, !26, i64 8}
!43 = !{!"int", !14, i64 0}
!44 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt3anySt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S6_EEE", !45, i64 0}
!45 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St3anyESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE", !13, i64 0, !16, i64 8, !46, i64 16, !16, i64 24, !47, i64 32, !13, i64 48}
!46 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!47 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !48, i64 0, !16, i64 8}
!48 = !{!"float", !14, i64 0}
!49 = !{!"_ZTSN4dali15TensorListShapeILin1EEE", !50, i64 0, !43, i64 28}
!50 = !{!"_ZTSN4dali19TensorListShapeBaseINS_15TensorListShapeILin1EEELin1EEE", !51, i64 0, !43, i64 24}
!51 = !{!"_ZTSSt6vectorIlSaIlEE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!55 = !{!"_ZTSN4dali14TensorListViewINS_10StorageCPUEKfLin1EEE", !56, i64 0}
!56 = !{!"_ZTSN4dali18TensorListViewBaseINS_10StorageCPUEKfLin1EEE", !49, i64 0, !57, i64 32}
!57 = !{!"_ZTSSt6vectorIPKfSaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIPKfSaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIPKfSaIS1_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIPKfSaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!61 = !{!"_ZTSN4dali10TensorListINS_10CPUBackendEEE", !62, i64 0, !73, i64 144, !77, i64 168, !72, i64 170, !43, i64 172, !43, i64 176, !43, i64 180, !63, i64 184, !49, i64 224, !78, i64 256, !71, i64 272, !79, i64 288}
!62 = !{!"_ZTSN4dali6BufferINS_10CPUBackendEEE", !63, i64 8, !66, i64 48, !69, i64 64, !16, i64 96, !16, i64 104, !43, i64 112, !71, i64 120, !72, i64 136, !72, i64 137}
!63 = !{!"_ZTSN4dali8TypeInfoE", !13, i64 0, !64, i64 8, !16, i64 16, !65, i64 24}
!64 = !{!"_ZTS13_DALIDataType", !14, i64 0}
!65 = !{!"_ZTSSt17basic_string_viewIcSt11char_traitsIcEE", !16, i64 0, !13, i64 8}
!66 = !{!"_ZTSSt10shared_ptrIvE", !67, i64 0}
!67 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !13, i64 0, !68, i64 8}
!68 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !13, i64 0}
!69 = !{!"_ZTSSt8functionIFSt10shared_ptrIhEmEE", !70, i64 0, !13, i64 24}
!70 = !{!"_ZTSSt14_Function_base", !14, i64 0, !13, i64 16}
!71 = !{!"_ZTSN4dali11AccessOrderE", !13, i64 0, !43, i64 8}
!72 = !{!"bool", !14, i64 0}
!73 = !{!"_ZTSSt6vectorIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE", !74, i64 0}
!74 = !{!"_ZTSSt12_Vector_baseIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE", !75, i64 0}
!75 = !{!"_ZTSNSt12_Vector_baseIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE12_Vector_implE", !76, i64 0}
!76 = !{!"_ZTSNSt12_Vector_baseIN4dali6TensorINS0_10CPUBackendEEESaIS3_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!77 = !{!"_ZTSN4dali10TensorListINS_10CPUBackendEE5StateE", !72, i64 0, !72, i64 1}
!78 = !{!"_ZTSN4dali12TensorLayoutE", !14, i64 0}
!79 = !{!"_ZTSN4dali15CUDASharedEventE", !66, i64 0}
!80 = !{!"_ZTSSt6vectorIiSaIiEE", !81, i64 0}
!81 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !82, i64 0}
!82 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !83, i64 0}
!83 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!84 = !{i8 0, i8 2}
!85 = !{}
!86 = !{!6, !72, i64 1184}
!87 = !{!6, !72, i64 1186}
!88 = !{!6, !72, i64 1185}
!89 = !{!6, !72, i64 1187}


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