; LLVM IR from NervanaSystems/ngraph :: src/ngraph (validation_util)

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

%"class.std::tuple" = type { %"struct.std::_Tuple_impl.base", [4 x i8] }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.17" }>
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Tuple_impl.15", %"struct.std::_Head_base.16" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.ngraph::PartialShape" }
%"class.ngraph::PartialShape" = type { i8, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Head_base.16" = type { %"class.ngraph::PartialShape" }
%"struct.std::_Head_base.17" = type { %"class.ngraph::element::Type" }
%"class.ngraph::element::Type" = type { i32 }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl" }
%"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl" = type { %"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%struct.ChannelShapedInputSpec = type { %"class.ngraph::element::Type", %"class.ngraph::PartialShape", %"class.std::__cxx11::basic_string" }
%"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::allocator.10" = type { i8 }
%"class.std::allocator.20" = type { i8 }

@.str.65 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL31infer_batch_norm_forward_helperPKN6ngraph4NodeENS_7element4TypeERKNS_12PartialShapeERKSt6vectorI22ChannelShapedInputSpecSaIS9_EE(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ngraph24infer_batch_norm_forwardEPKNS_4NodeENS_7element4TypeES4_S4_RKNS_12PartialShapeES7_S7_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8 %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7) #3 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.ngraph::element::Type", align 4
  %18 = alloca %"class.std::vector.18", align 8
  %19 = alloca %"class.std::initializer_list", align 8
  %20 = alloca [2 x %struct.ChannelShapedInputSpec], align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::allocator.10", align 1
  %25 = alloca i1, align 1
  %26 = alloca i1, align 1
  %27 = alloca %"class.std::allocator.10", align 1
  %28 = alloca i1, align 1
  %29 = alloca i1, align 1
  %30 = alloca i1, align 1
  %31 = alloca %"class.std::allocator.20", align 1
  store ptr %0, ptr %9, align 8
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %2, i64 4, i1 false), !tbaa.struct !9
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %20) #6
  store i1 true, ptr %30, align 1
  store ptr %20, ptr %21, align 8
  %34 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %20, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !9
  store i1 true, ptr %26, align 1
  %35 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %20, i32 0, i32 1
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN6ngraph12PartialShapeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %37 unwind label %62

37:                                               ; preds = %8
  store i1 true, ptr %25, align 1
  %38 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %20, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.65, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %39 unwind label %66

39:                                               ; preds = %37
  store i1 false, ptr %25, align 1
  store i1 false, ptr %26, align 1
  %40 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %20, i64 1
  store ptr %40, ptr %21, align 8
  %41 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %40, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !9
  store i1 true, ptr %29, align 1
  %42 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %40, i32 0, i32 1
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN6ngraph12PartialShapeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %44 unwind label %70

44:                                               ; preds = %39
  store i1 true, ptr %28, align 1
  %45 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %40, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.66, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %46 unwind label %74

46:                                               ; preds = %44
  store i1 false, ptr %28, align 1
  store i1 false, ptr %29, align 1
  store i1 false, ptr %30, align 1
  %47 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %47, align 8, !tbaa !12
  %48 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 2, ptr %48, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  call void @_ZNSaI22ChannelShapedInputSpecEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  %49 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %52 = load i64, ptr %51, align 8
  invoke void @_ZNSt6vectorI22ChannelShapedInputSpecSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr %50, i64 %52, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %53 unwind label %78

53:                                               ; preds = %46
  invoke void @_ZL31infer_batch_norm_forward_helperPKN6ngraph4NodeENS_7element4TypeERKNS_12PartialShapeERKSt6vectorI22ChannelShapedInputSpecSaIS9_EE(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %0, ptr noundef %32, ptr noundef %17, ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %54 unwind label %82

54:                                               ; preds = %53
  call void @_ZNSt6vectorI22ChannelShapedInputSpecSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @_ZNSt15__new_allocatorI22ChannelShapedInputSpecED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  %55 = getelementptr inbounds [2 x %struct.ChannelShapedInputSpec], ptr %20, i32 0, i32 0
  %56 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %55, i64 2
  br label %57

57:                                               ; preds = %57, %54
  %58 = phi ptr [ %56, %54 ], [ %59, %57 ]
  %59 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %58, i64 -1
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %59) #6
  %60 = icmp eq ptr %59, %55
  br i1 %60, label %61, label %57

61:                                               ; preds = %57
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #6
  ret void

62:                                               ; preds = %8
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %22, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %23, align 4
  br label %106

66:                                               ; preds = %37
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %22, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %23, align 4
  br label %102

70:                                               ; preds = %39
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %22, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %23, align 4
  br label %98

74:                                               ; preds = %44
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %22, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %23, align 4
  br label %94

78:                                               ; preds = %46
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %22, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %23, align 4
  br label %86

82:                                               ; preds = %53
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %22, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %23, align 4
  call void @_ZNSt6vectorI22ChannelShapedInputSpecSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %86

86:                                               ; preds = %82, %78
  call void @_ZNSt15__new_allocatorI22ChannelShapedInputSpecED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  %87 = getelementptr inbounds [2 x %struct.ChannelShapedInputSpec], ptr %20, i32 0, i32 0
  %88 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %87, i64 2
  br label %89

89:                                               ; preds = %89, %86
  %90 = phi ptr [ %88, %86 ], [ %91, %89 ]
  %91 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %90, i64 -1
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %91) #6
  %92 = icmp eq ptr %91, %87
  br i1 %92, label %93, label %89

93:                                               ; preds = %89
  br label %94

94:                                               ; preds = %93, %74
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  %95 = load i1, ptr %28, align 1
  br i1 %95, label %96, label %97

96:                                               ; preds = %94
  call void @_ZN6ngraph12PartialShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  br label %97

97:                                               ; preds = %96, %94
  br label %98

98:                                               ; preds = %97, %70
  %99 = load i1, ptr %29, align 1
  br i1 %99, label %100, label %101

100:                                              ; preds = %98
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %41) #6
  br label %101

101:                                              ; preds = %100, %98
  br label %102

102:                                              ; preds = %101, %66
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  %103 = load i1, ptr %25, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @_ZN6ngraph12PartialShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %105

105:                                              ; preds = %104, %102
  br label %106

106:                                              ; preds = %105, %62
  %107 = load i1, ptr %26, align 1
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %34) #6
  br label %109

109:                                              ; preds = %108, %106
  %110 = load i1, ptr %30, align 1
  br i1 %110, label %111, label %119

111:                                              ; preds = %109
  %112 = load ptr, ptr %21, align 8
  %113 = icmp eq ptr %20, %112
  br i1 %113, label %118, label %114

114:                                              ; preds = %114, %111
  %115 = phi ptr [ %112, %111 ], [ %116, %114 ]
  %116 = getelementptr inbounds %struct.ChannelShapedInputSpec, ptr %115, i64 -1
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %116) #6
  %117 = icmp eq ptr %116, %20
  br i1 %117, label %118, label %114

118:                                              ; preds = %114, %111
  br label %119

119:                                              ; preds = %118, %109
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #6
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %22, align 8
  %122 = load i32, ptr %23, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

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

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

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


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

%"class.std::tuple" = type { %"struct.std::_Tuple_impl.base", [4 x i8] }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.14", %"struct.std::_Head_base.17" }>
%"struct.std::_Tuple_impl.14" = type { %"struct.std::_Tuple_impl.15", %"struct.std::_Head_base.16" }
%"struct.std::_Tuple_impl.15" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.ngraph::PartialShape" }
%"class.ngraph::PartialShape" = type { i8, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl" }
%"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl" = type { %"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ngraph::Dimension, std::allocator<ngraph::Dimension>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Head_base.16" = type { %"class.ngraph::PartialShape" }
%"struct.std::_Head_base.17" = type { %"class.ngraph::element::Type" }
%"class.ngraph::element::Type" = type { i32 }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl" }
%"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl" = type { %"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ChannelShapedInputSpec, std::allocator<ChannelShapedInputSpec>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ChannelShapedInputSpec = type { %"class.ngraph::element::Type", %"class.ngraph::PartialShape", %"class.std::__cxx11::basic_string" }
%"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::allocator.10" = type { i8 }
%"class.std::allocator.20" = type { i8 }

@.str.65 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ngraph24infer_batch_norm_forwardEPKNS_4NodeENS_7element4TypeES4_S4_RKNS_12PartialShapeES7_S7_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8 %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.ngraph::element::Type", align 4
  %10 = alloca %"class.std::vector.18", align 8
  %11 = alloca [2 x %struct.ChannelShapedInputSpec], align 8
  %12 = alloca %"class.std::allocator.10", align 1
  %13 = alloca %"class.std::allocator.10", align 1
  %14 = alloca %"class.std::allocator.20", align 1
  %15 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %15, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %11) #5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %16, ptr %11, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %11, i64 8
  invoke void @_ZN6ngraph12PartialShapeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %18 unwind label %30

18:                                               ; preds = %8
  %19 = getelementptr inbounds i8, ptr %11, i64 40
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.65, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %20 unwind label %41

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %11, i64 72
  %22 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %22, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %11, i64 80
  invoke void @_ZN6ngraph12PartialShapeC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %24 unwind label %32

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %11, i64 112
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.66, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %26 unwind label %39

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSaI22ChannelShapedInputSpecEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt6vectorI22ChannelShapedInputSpecSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr nonnull %11, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %27 unwind label %34

27:                                               ; preds = %26
  invoke void @_ZL31infer_batch_norm_forward_helperPKN6ngraph4NodeENS_7element4TypeERKNS_12PartialShapeERKSt6vectorI22ChannelShapedInputSpecSaIS9_EE(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %0, ptr noundef %1, ptr noundef nonnull %9, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %28 unwind label %36

28:                                               ; preds = %27
  call void @_ZNSt6vectorI22ChannelShapedInputSpecSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @_ZNSt15__new_allocatorI22ChannelShapedInputSpecED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  %29 = getelementptr inbounds i8, ptr %11, i64 72
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %29) #5
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %9) #5
  ret void

30:                                               ; preds = %8
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %.thread63

32:                                               ; preds = %20
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

34:                                               ; preds = %26
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %.thread69

36:                                               ; preds = %27
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI22ChannelShapedInputSpecSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %.thread69

.thread69:                                        ; preds = %36, %34
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @_ZNSt15__new_allocatorI22ChannelShapedInputSpecED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  %38 = getelementptr inbounds i8, ptr %11, i64 72
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %38) #5
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  br label %.loopexit

39:                                               ; preds = %24
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @_ZN6ngraph12PartialShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  br label %.loopexit.loopexit

41:                                               ; preds = %18
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @_ZN6ngraph12PartialShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %.thread63

.thread63:                                        ; preds = %30, %41
  %.pn.pn.pn.pn.pn.ph = phi { ptr, i32 } [ %31, %30 ], [ %42, %41 ]
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %11) #5
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %32, %39
  %.pn.pn.pn.ph = phi { ptr, i32 } [ %33, %32 ], [ %40, %39 ]
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %21) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @_ZN22ChannelShapedInputSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.thread69, %.thread63
  %.pn.pn.pn.pn.pn5968 = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.ph, %.thread63 ], [ %.pn, %.thread69 ], [ %.pn.pn.pn.ph, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @_ZN6ngraph7element4TypeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %9) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn5968
}

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

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

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


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