; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseSynet.ll (ZN4Simd4Base30SynetLrnLayerCrossChannelsNchwEPKfmmmS2_Pf)

; 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.Simd::Array" = type { ptr, i64 }

; 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base30SynetLrnLayerCrossChannelsNchwEPKfmmmS2_Pf(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca %"struct.Simd::Array", align 8
  %17 = alloca %"struct.Simd::Array", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = getelementptr inbounds float, ptr %28, i64 0
  %30 = load float, ptr %29, align 4, !tbaa !11
  store float %30, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = getelementptr inbounds float, ptr %31, i64 1
  %33 = load float, ptr %32, align 4, !tbaa !11
  store float %33, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds float, ptr %34, i64 2
  %36 = load float, ptr %35, align 4, !tbaa !11
  store float %36, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %37 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %37, i1 noundef zeroext true, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %38 = load i64, ptr %10, align 8, !tbaa !9
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %38, i1 noundef zeroext true, i64 noundef 8)
          to label %39 unwind label %45

39:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %80, %39
  %41 = load i64, ptr %20, align 8, !tbaa !9
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %49, label %44

44:                                               ; preds = %40
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %83

45:                                               ; preds = %6
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %18, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %19, align 4
  br label %187

49:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i64, ptr %20, align 8, !tbaa !9
  %52 = load i64, ptr %10, align 8, !tbaa !9
  %53 = mul i64 %51, %52
  %54 = getelementptr inbounds float, ptr %50, i64 %53
  store ptr %54, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %72, %49
  %56 = load i64, ptr %23, align 8, !tbaa !9
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %79

60:                                               ; preds = %55
  %61 = load ptr, ptr %22, align 8, !tbaa !5
  %62 = load i64, ptr %23, align 8, !tbaa !9
  %63 = getelementptr inbounds float, ptr %61, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !11
  %65 = invoke noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %64)
          to label %66 unwind label %75

66:                                               ; preds = %60
  %67 = load i64, ptr %23, align 8, !tbaa !9
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %67)
          to label %69 unwind label %75

69:                                               ; preds = %66
  %70 = load float, ptr %68, align 4, !tbaa !11
  %71 = fadd float %70, %65
  store float %71, ptr %68, align 4, !tbaa !11
  br label %72

72:                                               ; preds = %69
  %73 = load i64, ptr %23, align 8, !tbaa !9
  %74 = add i64 %73, 1
  store i64 %74, ptr %23, align 8, !tbaa !9
  br label %55, !llvm.loop !13

75:                                               ; preds = %66, %60
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %18, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %186

79:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %80

80:                                               ; preds = %79
  %81 = load i64, ptr %20, align 8, !tbaa !9
  %82 = add i64 %81, 1
  store i64 %82, ptr %20, align 8, !tbaa !9
  br label %40, !llvm.loop !15

83:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %182, %83
  %85 = load i64, ptr %24, align 8, !tbaa !9
  %86 = load i64, ptr %9, align 8, !tbaa !9
  %87 = icmp ult i64 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %185

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %90 = load i64, ptr %24, align 8, !tbaa !9
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = load i64, ptr %8, align 8, !tbaa !9
  %93 = sub i64 %91, %92
  %94 = icmp ult i64 %90, %93
  br i1 %94, label %95, label %101

95:                                               ; preds = %89
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = load i64, ptr %10, align 8, !tbaa !9
  %99 = mul i64 %97, %98
  %100 = getelementptr inbounds float, ptr %96, i64 %99
  br label %104

101:                                              ; preds = %89
  %102 = getelementptr inbounds %"struct.Simd::Array", ptr %17, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  br label %104

104:                                              ; preds = %101, %95
  %105 = phi ptr [ %100, %95 ], [ %103, %101 ]
  store ptr %105, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %106 = load i64, ptr %24, align 8, !tbaa !9
  %107 = load i64, ptr %8, align 8, !tbaa !9
  %108 = icmp ugt i64 %106, %107
  br i1 %108, label %109, label %117

109:                                              ; preds = %104
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i64, ptr %8, align 8, !tbaa !9
  %112 = add i64 %111, 1
  %113 = load i64, ptr %10, align 8, !tbaa !9
  %114 = mul i64 %112, %113
  %115 = sub i64 0, %114
  %116 = getelementptr inbounds float, ptr %110, i64 %115
  br label %120

117:                                              ; preds = %104
  %118 = getelementptr inbounds %"struct.Simd::Array", ptr %17, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  br label %120

120:                                              ; preds = %117, %109
  %121 = phi ptr [ %116, %109 ], [ %119, %117 ]
  store ptr %121, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %168, %120
  %123 = load i64, ptr %27, align 8, !tbaa !9
  %124 = load i64, ptr %10, align 8, !tbaa !9
  %125 = icmp ult i64 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %175

127:                                              ; preds = %122
  %128 = load ptr, ptr %25, align 8, !tbaa !5
  %129 = load i64, ptr %27, align 8, !tbaa !9
  %130 = getelementptr inbounds float, ptr %128, i64 %129
  %131 = load float, ptr %130, align 4, !tbaa !11
  %132 = invoke noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %131)
          to label %133 unwind label %171

133:                                              ; preds = %127
  %134 = load i64, ptr %27, align 8, !tbaa !9
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %134)
          to label %136 unwind label %171

136:                                              ; preds = %133
  %137 = load float, ptr %135, align 4, !tbaa !11
  %138 = fadd float %137, %132
  store float %138, ptr %135, align 4, !tbaa !11
  %139 = load ptr, ptr %26, align 8, !tbaa !5
  %140 = load i64, ptr %27, align 8, !tbaa !9
  %141 = getelementptr inbounds float, ptr %139, i64 %140
  %142 = load float, ptr %141, align 4, !tbaa !11
  %143 = invoke noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %142)
          to label %144 unwind label %171

144:                                              ; preds = %136
  %145 = load i64, ptr %27, align 8, !tbaa !9
  %146 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %145)
          to label %147 unwind label %171

147:                                              ; preds = %144
  %148 = load float, ptr %146, align 4, !tbaa !11
  %149 = fsub float %148, %143
  store float %149, ptr %146, align 4, !tbaa !11
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = load i64, ptr %27, align 8, !tbaa !9
  %152 = getelementptr inbounds float, ptr %150, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = load float, ptr %13, align 4, !tbaa !11
  %155 = load float, ptr %14, align 4, !tbaa !11
  %156 = load i64, ptr %27, align 8, !tbaa !9
  %157 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %156)
          to label %158 unwind label %171

158:                                              ; preds = %147
  %159 = load float, ptr %157, align 4, !tbaa !11
  %160 = call float @llvm.fmuladd.f32(float %155, float %159, float %154)
  %161 = load float, ptr %15, align 4, !tbaa !11
  %162 = invoke noundef float @_ZN4Simd4Base3PowEff(float noundef %160, float noundef %161)
          to label %163 unwind label %171

163:                                              ; preds = %158
  %164 = fmul float %153, %162
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load i64, ptr %27, align 8, !tbaa !9
  %167 = getelementptr inbounds float, ptr %165, i64 %166
  store float %164, ptr %167, align 4, !tbaa !11
  br label %168

168:                                              ; preds = %163
  %169 = load i64, ptr %27, align 8, !tbaa !9
  %170 = add i64 %169, 1
  store i64 %170, ptr %27, align 8, !tbaa !9
  br label %122, !llvm.loop !18

171:                                              ; preds = %158, %147, %144, %136, %133, %127
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %18, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %186

175:                                              ; preds = %126
  %176 = load i64, ptr %10, align 8, !tbaa !9
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds float, ptr %177, i64 %176
  store ptr %178, ptr %7, align 8, !tbaa !5
  %179 = load i64, ptr %10, align 8, !tbaa !9
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = getelementptr inbounds float, ptr %180, i64 %179
  store ptr %181, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %182

182:                                              ; preds = %175
  %183 = load i64, ptr %24, align 8, !tbaa !9
  %184 = add i64 %183, 1
  store i64 %184, ptr %24, align 8, !tbaa !9
  br label %84, !llvm.loop !19

185:                                              ; preds = %88
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void

186:                                              ; preds = %171, %75
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br label %187

187:                                              ; preds = %186, %45
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %188

188:                                              ; preds = %187
  %189 = load ptr, ptr %18, align 8
  %190 = load i32, ptr %19, align 4
  %191 = insertvalue { ptr, i32 } poison, ptr %189, 0
  %192 = insertvalue { ptr, i32 } %191, i32 %190, 1
  resume { ptr, i32 } %192
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef) #4

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd4Base3PowEff(float noundef, float noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { alwaysinline 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 = { alwaysinline 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; 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.Simd::Array" = type { ptr, i64 }

; 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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base30SynetLrnLayerCrossChannelsNchwEPKfmmmS2_Pf(ptr nocapture noundef readonly %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"struct.Simd::Array", align 8
  %8 = alloca %"struct.Simd::Array", align 8
  %9 = load float, ptr %4, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %4, i64 4
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %4, i64 8
  %13 = load float, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %3, i1 noundef zeroext true, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %3, i1 noundef zeroext true, i64 noundef 8)
          to label %.preheader62 unwind label %59

.preheader62:                                     ; preds = %6
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %.preheader, label %.lr.ph65

.lr.ph65:                                         ; preds = %.preheader62
  %.not74 = icmp eq i64 %3, 0
  br i1 %.not74, label %._crit_edge71, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph65, %._crit_edge.us
  %.05764.us = phi i64 [ %24, %._crit_edge.us ], [ 0, %.lr.ph65 ]
  %14 = mul i64 %.05764.us, %3
  %15 = getelementptr inbounds float, ptr %0, i64 %14
  br label %16

16:                                               ; preds = %.lr.ph.us, %16
  %.05663.us = phi i64 [ 0, %.lr.ph.us ], [ %23, %16 ]
  %17 = getelementptr inbounds float, ptr %15, i64 %.05663.us
  %18 = load float, ptr %17, align 4, !tbaa !5
  %19 = call noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %18)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %.05663.us)
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = fadd float %19, %21
  store float %22, ptr %20, align 4, !tbaa !5
  %23 = add nuw i64 %.05663.us, 1
  %exitcond.not = icmp eq i64 %23, %3
  br i1 %exitcond.not, label %._crit_edge.us, label %16, !llvm.loop !9

._crit_edge.us:                                   ; preds = %16
  %24 = add nuw i64 %.05764.us, 1
  %exitcond79.not = icmp eq i64 %24, %1
  br i1 %exitcond79.not, label %.preheader, label %.lr.ph.us, !llvm.loop !11

.preheader:                                       ; preds = %._crit_edge.us, %.preheader62
  %.not75 = icmp eq i64 %2, 0
  br i1 %.not75, label %._crit_edge71, label %.lr.ph70

.lr.ph70:                                         ; preds = %.preheader
  %25 = sub i64 %2, %1
  %26 = mul i64 %3, %1
  %.neg = xor i64 %1, -1
  %.neg61 = mul i64 %.neg, %3
  %.not76 = icmp eq i64 %3, 0
  br i1 %.not76, label %._crit_edge71, label %.lr.ph.us72

.lr.ph.us72:                                      ; preds = %.lr.ph70, %._crit_edge.us73
  %.05369.us = phi ptr [ %56, %._crit_edge.us73 ], [ %0, %.lr.ph70 ]
  %.05468.us = phi ptr [ %57, %._crit_edge.us73 ], [ %5, %.lr.ph70 ]
  %.05567.us = phi i64 [ %58, %._crit_edge.us73 ], [ 0, %.lr.ph70 ]
  %27 = icmp ult i64 %.05567.us, %25
  %28 = getelementptr inbounds float, ptr %.05369.us, i64 %26
  %29 = load ptr, ptr %8, align 8
  %30 = select i1 %27, ptr %28, ptr %29
  %31 = icmp ugt i64 %.05567.us, %1
  %32 = getelementptr inbounds float, ptr %.05369.us, i64 %.neg61
  %33 = select i1 %31, ptr %32, ptr %29
  br label %34

34:                                               ; preds = %.lr.ph.us72, %34
  %.066.us = phi i64 [ 0, %.lr.ph.us72 ], [ %55, %34 ]
  %35 = getelementptr inbounds float, ptr %30, i64 %.066.us
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = call noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %36)
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %.066.us)
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = fadd float %37, %39
  store float %40, ptr %38, align 4, !tbaa !5
  %41 = getelementptr inbounds float, ptr %33, i64 %.066.us
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = call noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %42)
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %.066.us)
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = fsub float %45, %43
  store float %46, ptr %44, align 4, !tbaa !5
  %47 = getelementptr inbounds float, ptr %.05369.us, i64 %.066.us
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %.066.us)
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = call float @llvm.fmuladd.f32(float %11, float %50, float %9)
  %52 = call noundef float @_ZN4Simd4Base3PowEff(float noundef %51, float noundef %13)
  %53 = fmul float %48, %52
  %54 = getelementptr inbounds float, ptr %.05468.us, i64 %.066.us
  store float %53, ptr %54, align 4, !tbaa !5
  %55 = add nuw i64 %.066.us, 1
  %exitcond80.not = icmp eq i64 %55, %3
  br i1 %exitcond80.not, label %._crit_edge.us73, label %34, !llvm.loop !12

._crit_edge.us73:                                 ; preds = %34
  %56 = getelementptr inbounds float, ptr %.05369.us, i64 %3
  %57 = getelementptr inbounds float, ptr %.05468.us, i64 %3
  %58 = add nuw i64 %.05567.us, 1
  %exitcond81.not = icmp eq i64 %58, %2
  br i1 %exitcond81.not, label %._crit_edge71, label %.lr.ph.us72, !llvm.loop !13

59:                                               ; preds = %6
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  resume { ptr, i32 } %60

._crit_edge71:                                    ; preds = %._crit_edge.us73, %.lr.ph65, %.lr.ph70, %.preheader
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef) local_unnamed_addr #4

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd4Base3PowEff(float noundef, float noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { alwaysinline 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 = { alwaysinline 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass