; LLVM IR from ermig1979/Simd :: src/Test (TestSynetNormalize)

; 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.Test::FuncSNLF2" = type { ptr, %"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] }

@__const._ZN4Test36SynetNormalizeLayerForwardV2AutoTestERKNS_9FuncSNLF2ES2_.formats = external hidden unnamed_addr constant [2 x i32], align 4
@_ZN4Test1CE = external global i32, align 4
@_ZN4Test1WE = external global i32, align 4

; 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
declare dso_local noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestERKNS_9FuncSNLF2ES2_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca [2 x i32], align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.Test::FuncSNLF2", align 8
  %9 = alloca i1, align 1
  %10 = alloca %"struct.Test::FuncSNLF2", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i1, align 1
  %14 = alloca %"struct.Test::FuncSNLF2", align 8
  %15 = alloca i1, align 1
  %16 = alloca %"struct.Test::FuncSNLF2", align 8
  %17 = alloca i1, align 1
  %18 = alloca %"struct.Test::FuncSNLF2", align 8
  %19 = alloca i1, align 1
  %20 = alloca %"struct.Test::FuncSNLF2", align 8
  %21 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  store i8 1, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const._ZN4Test36SynetNormalizeLayerForwardV2AutoTestERKNS_9FuncSNLF2ES2_.formats, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %22

22:                                               ; preds = %104, %2
  %23 = load i32, ptr %7, align 4, !tbaa !11
  %24 = icmp slt i32 %23, 2
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %153

26:                                               ; preds = %22
  %27 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %28 = trunc i8 %27 to i1
  store i1 false, ptr %9, align 1
  store i1 false, ptr %13, align 1
  br i1 %28, label %29, label %43

29:                                               ; preds = %26
  %30 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !11
  %31 = sext i32 %30 to i64
  %32 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = load i32, ptr %7, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !15
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %38)
  store i1 true, ptr %9, align 1
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %39)
          to label %40 unwind label %107

40:                                               ; preds = %29
  store i1 true, ptr %13, align 1
  %41 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 1, i64 noundef %31, i64 noundef %33, i32 noundef %37, i32 noundef 1, ptr noundef %8, ptr noundef %10)
          to label %42 unwind label %111

42:                                               ; preds = %40
  br label %43

43:                                               ; preds = %42, %26
  %44 = phi i1 [ false, %26 ], [ %41, %42 ]
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %5, align 1, !tbaa !9
  %46 = load i1, ptr %13, align 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br label %48

48:                                               ; preds = %47, %43
  %49 = load i1, ptr %9, align 1
  br i1 %49, label %50, label %51

50:                                               ; preds = %48
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %51

51:                                               ; preds = %50, %48
  %52 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %53 = trunc i8 %52 to i1
  store i1 false, ptr %15, align 1
  store i1 false, ptr %17, align 1
  br i1 %53, label %54, label %68

54:                                               ; preds = %51
  %55 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !11
  %56 = sext i32 %55 to i64
  %57 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !11
  %58 = sext i32 %57 to i64
  %59 = load i32, ptr %7, align 4, !tbaa !11
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !15
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull align 8 dereferenceable(40) %63)
  store i1 true, ptr %15, align 1
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(40) %64)
          to label %65 unwind label %122

65:                                               ; preds = %54
  store i1 true, ptr %17, align 1
  %66 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 8, i64 noundef %56, i64 noundef %58, i32 noundef %62, i32 noundef 1, ptr noundef %14, ptr noundef %16)
          to label %67 unwind label %126

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %67, %51
  %69 = phi i1 [ false, %51 ], [ %66, %67 ]
  %70 = zext i1 %69 to i8
  store i8 %70, ptr %5, align 1, !tbaa !9
  %71 = load i1, ptr %17, align 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %73

73:                                               ; preds = %72, %68
  %74 = load i1, ptr %15, align 1
  br i1 %74, label %75, label %76

75:                                               ; preds = %73
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  br label %76

76:                                               ; preds = %75, %73
  %77 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %78 = trunc i8 %77 to i1
  store i1 false, ptr %19, align 1
  store i1 false, ptr %21, align 1
  br i1 %78, label %79, label %95

79:                                               ; preds = %76
  %80 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !11
  %81 = sub nsw i32 %80, 9
  %82 = sext i32 %81 to i64
  %83 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !11
  %84 = add nsw i32 %83, 9
  %85 = sext i32 %84 to i64
  %86 = load i32, ptr %7, align 4, !tbaa !11
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !15
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 8 dereferenceable(40) %90)
  store i1 true, ptr %19, align 1
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(40) %91)
          to label %92 unwind label %137

92:                                               ; preds = %79
  store i1 true, ptr %21, align 1
  %93 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 7, i64 noundef %82, i64 noundef %85, i32 noundef %89, i32 noundef 0, ptr noundef %18, ptr noundef %20)
          to label %94 unwind label %141

94:                                               ; preds = %92
  br label %95

95:                                               ; preds = %94, %76
  %96 = phi i1 [ false, %76 ], [ %93, %94 ]
  %97 = zext i1 %96 to i8
  store i8 %97, ptr %5, align 1, !tbaa !9
  %98 = load i1, ptr %21, align 1
  br i1 %98, label %99, label %100

99:                                               ; preds = %95
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  br label %100

100:                                              ; preds = %99, %95
  %101 = load i1, ptr %19, align 1
  br i1 %101, label %102, label %103

102:                                              ; preds = %100
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  br label %103

103:                                              ; preds = %102, %100
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %7, align 4, !tbaa !11
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %7, align 4, !tbaa !11
  br label %22, !llvm.loop !17

107:                                              ; preds = %29
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %11, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %12, align 4
  br label %118

111:                                              ; preds = %40
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  %115 = load i1, ptr %13, align 1
  br i1 %115, label %116, label %117

116:                                              ; preds = %111
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #5
  br label %117

117:                                              ; preds = %116, %111
  br label %118

118:                                              ; preds = %117, %107
  %119 = load i1, ptr %9, align 1
  br i1 %119, label %120, label %121

120:                                              ; preds = %118
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %121

121:                                              ; preds = %120, %118
  br label %152

122:                                              ; preds = %54
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %11, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %12, align 4
  br label %133

126:                                              ; preds = %65
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  %130 = load i1, ptr %17, align 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %126
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %132

132:                                              ; preds = %131, %126
  br label %133

133:                                              ; preds = %132, %122
  %134 = load i1, ptr %15, align 1
  br i1 %134, label %135, label %136

135:                                              ; preds = %133
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #5
  br label %136

136:                                              ; preds = %135, %133
  br label %152

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

141:                                              ; preds = %92
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %11, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %12, align 4
  %145 = load i1, ptr %21, align 1
  br i1 %145, label %146, label %147

146:                                              ; preds = %141
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  br label %147

147:                                              ; preds = %146, %141
  br label %148

148:                                              ; preds = %147, %137
  %149 = load i1, ptr %19, align 1
  br i1 %149, label %150, label %151

150:                                              ; preds = %148
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  br label %151

151:                                              ; preds = %150, %148
  br label %152

152:                                              ; preds = %151, %136, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %156

153:                                              ; preds = %25
  %154 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %155 = trunc i8 %154 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret i1 %155

156:                                              ; preds = %152
  %157 = load ptr, ptr %11, align 8
  %158 = load i32, ptr %12, align 4
  %159 = insertvalue { ptr, i32 } poison, ptr %157, 0
  %160 = insertvalue { ptr, i32 } %159, i32 %158, 1
  resume { ptr, i32 } %160
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

%"struct.Test::FuncSNLF2" = type { ptr, %"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] }

@__const._ZN4Test36SynetNormalizeLayerForwardV2AutoTestERKNS_9FuncSNLF2ES2_.formats = external hidden unnamed_addr constant [2 x i32], align 4
@_ZN4Test1CE = external local_unnamed_addr global i32, align 4
@_ZN4Test1WE = external local_unnamed_addr global i32, align 4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestERKNS_9FuncSNLF2ES2_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.Test::FuncSNLF2", align 8
  %4 = alloca %"struct.Test::FuncSNLF2", align 8
  %5 = alloca %"struct.Test::FuncSNLF2", align 8
  %6 = alloca %"struct.Test::FuncSNLF2", align 8
  %7 = alloca %"struct.Test::FuncSNLF2", align 8
  %8 = alloca %"struct.Test::FuncSNLF2", align 8
  %9 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !5
  %10 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %11 = load i32, ptr @__const._ZN4Test36SynetNormalizeLayerForwardV2AutoTestERKNS_9FuncSNLF2ES2_.formats, align 4, !tbaa !9
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %0)
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %12 unwind label %58

12:                                               ; preds = %2
  %13 = sext i32 %10 to i64
  %14 = sext i32 %9 to i64
  %15 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 1, i64 noundef %14, i64 noundef %13, i32 noundef %11, i32 noundef 1, ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %.critedge unwind label %60

.critedge:                                        ; preds = %12
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #3
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #3
  br i1 %15, label %16, label %.critedge49.1

16:                                               ; preds = %.critedge
  %17 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !5
  %18 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %0)
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %19 unwind label %62

19:                                               ; preds = %16
  %20 = sext i32 %18 to i64
  %21 = sext i32 %17 to i64
  %22 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 8, i64 noundef %21, i64 noundef %20, i32 noundef %11, i32 noundef 1, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %.critedge47 unwind label %64

.critedge47:                                      ; preds = %19
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #3
  br i1 %22, label %23, label %.critedge49.1

23:                                               ; preds = %.critedge47
  %24 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !5
  %25 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %0)
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %26 unwind label %66

26:                                               ; preds = %23
  %27 = add nsw i32 %25, 9
  %28 = sext i32 %27 to i64
  %29 = add nsw i32 %24, -9
  %30 = sext i32 %29 to i64
  %31 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 7, i64 noundef %30, i64 noundef %28, i32 noundef %11, i32 noundef 0, ptr noundef nonnull %7, ptr noundef nonnull %8)
          to label %.critedge49 unwind label %68

.critedge49:                                      ; preds = %26
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #3
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #3
  br i1 %31, label %32, label %.critedge49.1

32:                                               ; preds = %.critedge49
  %33 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !5
  %34 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZN4Test36SynetNormalizeLayerForwardV2AutoTestERKNS_9FuncSNLF2ES2_.formats, i64 4), align 4, !tbaa !9
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %0)
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %36 unwind label %58

36:                                               ; preds = %32
  %37 = sext i32 %34 to i64
  %38 = sext i32 %33 to i64
  %39 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 1, i64 noundef %38, i64 noundef %37, i32 noundef %35, i32 noundef 1, ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %.critedge.1 unwind label %60

.critedge.1:                                      ; preds = %36
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #3
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #3
  br i1 %39, label %40, label %.critedge49.1

40:                                               ; preds = %.critedge.1
  %41 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !5
  %42 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %0)
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %43 unwind label %62

43:                                               ; preds = %40
  %44 = sext i32 %42 to i64
  %45 = sext i32 %41 to i64
  %46 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 8, i64 noundef %45, i64 noundef %44, i32 noundef %35, i32 noundef 1, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %.critedge47.1 unwind label %64

.critedge47.1:                                    ; preds = %43
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #3
  br i1 %46, label %47, label %.critedge49.1

47:                                               ; preds = %.critedge47.1
  %48 = load i32, ptr @_ZN4Test1CE, align 4, !tbaa !5
  %49 = load i32, ptr @_ZN4Test1WE, align 4, !tbaa !5
  call void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %0)
  invoke void @_ZN4Test9FuncSNLF2C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %50 unwind label %66

50:                                               ; preds = %47
  %51 = add nsw i32 %49, 9
  %52 = sext i32 %51 to i64
  %53 = add nsw i32 %48, -9
  %54 = sext i32 %53 to i64
  %55 = invoke noundef zeroext i1 @_ZN4Test36SynetNormalizeLayerForwardV2AutoTestEmmm20SimdTensorFormatTypeiNS_9FuncSNLF2ES1_(i64 noundef 7, i64 noundef %54, i64 noundef %52, i32 noundef %35, i32 noundef 0, ptr noundef nonnull %7, ptr noundef nonnull %8)
          to label %56 unwind label %68

56:                                               ; preds = %50
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #3
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #3
  br label %.critedge49.1

.critedge49.1:                                    ; preds = %.critedge, %.critedge47, %56, %.critedge47.1, %.critedge.1, %.critedge49
  %57 = phi i1 [ %55, %56 ], [ false, %.critedge47.1 ], [ false, %.critedge49 ], [ false, %.critedge.1 ], [ false, %.critedge47 ], [ false, %.critedge ]
  ret i1 %57

58:                                               ; preds = %32, %2
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %70

60:                                               ; preds = %36, %12
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #3
  br label %70

62:                                               ; preds = %40, %16
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %70

64:                                               ; preds = %43, %19
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #3
  br label %70

66:                                               ; preds = %47, %23
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %50, %26
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #3
  br label %70

70:                                               ; preds = %68, %66, %64, %62, %60, %58
  %.sink = phi ptr [ %3, %58 ], [ %3, %60 ], [ %5, %62 ], [ %5, %64 ], [ %7, %66 ], [ %7, %68 ]
  %.pn43.pn = phi { ptr, i32 } [ %59, %58 ], [ %61, %60 ], [ %63, %62 ], [ %65, %64 ], [ %67, %66 ], [ %69, %68 ]
  call void @_ZN4Test9FuncSNLF2D2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.sink) #3
  resume { ptr, i32 } %.pn43.pn
}

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,SCCPPass,SROAPass,SimplifyCFGPass