; LLVM IR from jingweizhanghuai/Morn :: src/wave (morn_wave_FFT)

; 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.MWave = type { i32, i32, [32 x ptr] }

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@__FUNCTION__.mWavePowerSpectrum = external hidden unnamed_addr constant [19 x i8], align 1

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

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1

declare void @mWaveRedefine(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare ptr @m_PropertyWrite(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

declare ptr @m_PropertyRead(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @mWavePowerSpectrum(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = icmp eq i32 %18, -1
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %20, %3
  br label %22

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = icmp slt i32 %23, 1
  br i1 %24, label %28, label %25

25:                                               ; preds = %22
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = icmp sgt i32 %26, 3
  br label %28

28:                                               ; preds = %25, %22
  %29 = phi i1 [ true, %22 ], [ %27, %25 ]
  %30 = zext i1 %29 to i32
  store i32 %30, ptr %13, align 4, !tbaa !9
  %31 = load i32, ptr %13, align 4, !tbaa !9
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %28
  %34 = load i32, ptr %13, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %34, i32 noundef -1, ptr noundef @.str, i32 noundef 403, ptr noundef @__FUNCTION__.mWavePowerSpectrum, ptr noundef @.str.1)
  br label %35

35:                                               ; preds = %33, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %45, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = ptrtoint ptr %42 to i64
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %45, label %46

45:                                               ; preds = %41, %38
  br label %70

46:                                               ; preds = %41
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.MWave, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds [32 x ptr], ptr %48, i64 0, i64 0
  %50 = icmp eq ptr %49, null
  br i1 %50, label %67, label %51

51:                                               ; preds = %46
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.MWave, ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds [32 x ptr], ptr %53, i64 0, i64 0
  %55 = ptrtoint ptr %54 to i64
  %56 = icmp eq i64 %55, -1
  br i1 %56, label %67, label %57

57:                                               ; preds = %51
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MWave, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !11
  %61 = icmp sle i32 %60, 0
  br i1 %61, label %67, label %62

62:                                               ; preds = %57
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.MWave, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !13
  %66 = icmp sle i32 %65, 0
  br label %67

67:                                               ; preds = %62, %57, %51, %46
  %68 = phi i1 [ true, %57 ], [ true, %51 ], [ true, %46 ], [ %66, %62 ]
  %69 = zext i1 %68 to i32
  br label %70

70:                                               ; preds = %67, %45
  %71 = phi i32 [ 1, %45 ], [ %69, %67 ]
  store i32 %71, ptr %14, align 4, !tbaa !9
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = load i32, ptr %14, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %75, i32 noundef -1, ptr noundef @.str, i32 noundef 404, ptr noundef @__FUNCTION__.mWavePowerSpectrum, ptr noundef @.str.1)
  br label %76

76:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = call ptr @m_PropertyRead(ptr noundef %79, ptr noundef @.str.2, ptr noundef %15, ptr noundef null)
  br label %81

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 1
  %84 = zext i1 %83 to i32
  store i32 %84, ptr %16, align 4, !tbaa !9
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %81
  %88 = load i32, ptr %16, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %88, i32 noundef -1, ptr noundef @.str, i32 noundef 406, ptr noundef @__FUNCTION__.mWavePowerSpectrum, ptr noundef @.str.1)
  br label %89

89:                                               ; preds = %87, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.MWave, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !13
  %95 = ashr i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !9
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = icmp eq ptr %96, null
  br i1 %97, label %102, label %98

98:                                               ; preds = %91
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = ptrtoint ptr %99 to i64
  %101 = icmp eq i64 %100, -1
  br i1 %101, label %102, label %104

102:                                              ; preds = %98, %91
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %103, ptr %5, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %102, %98
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.MWave, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8, !tbaa !11
  %109 = ashr i32 %108, 1
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MWave, ptr %111, i32 0, i32 2
  %113 = getelementptr inbounds [32 x ptr], ptr %112, i64 0, i64 0
  call void @mWaveRedefine(ptr noundef %105, i32 noundef %109, i32 noundef %110, ptr noundef %113)
  store i32 2, ptr %15, align 4, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = call ptr @m_PropertyWrite(ptr noundef %114, ptr noundef @.str.2, ptr noundef %15, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = call ptr @m_PropertyWrite(ptr noundef %116, ptr noundef @.str.3, ptr noundef %17, i32 noundef 4)
  %118 = load i32, ptr %6, align 4, !tbaa !9
  %119 = icmp eq i32 %118, 1
  br i1 %119, label %120, label %188

120:                                              ; preds = %104
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %184, %120
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.MWave, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !11
  %126 = icmp slt i32 %122, %125
  br i1 %126, label %127, label %187

127:                                              ; preds = %121
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.MWave, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = shl i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [32 x ptr], ptr %129, i64 0, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  store ptr %134, ptr %8, align 8, !tbaa !5
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.MWave, ptr %135, i32 0, i32 2
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = shl i32 %137, 1
  %139 = add nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [32 x ptr], ptr %136, i64 0, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  store ptr %142, ptr %9, align 8, !tbaa !5
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.MWave, ptr %143, i32 0, i32 2
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [32 x ptr], ptr %144, i64 0, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  store ptr %148, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %180, %127
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %153, label %183

153:                                              ; preds = %149
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i32, ptr %11, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds float, ptr %154, i64 %156
  %158 = load float, ptr %157, align 4, !tbaa !14
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load i32, ptr %11, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds float, ptr %159, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !14
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = load i32, ptr %11, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds float, ptr %164, i64 %166
  %168 = load float, ptr %167, align 4, !tbaa !14
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds float, ptr %169, i64 %171
  %173 = load float, ptr %172, align 4, !tbaa !14
  %174 = fmul float %168, %173
  %175 = call float @llvm.fmuladd.f32(float %158, float %163, float %174)
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds float, ptr %176, i64 %178
  store float %175, ptr %179, align 4, !tbaa !14
  br label %180

180:                                              ; preds = %153
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %11, align 4, !tbaa !9
  br label %149, !llvm.loop !16

183:                                              ; preds = %149
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %12, align 4, !tbaa !9
  br label %121, !llvm.loop !18

187:                                              ; preds = %121
  br label %339

188:                                              ; preds = %104
  %189 = load i32, ptr %6, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 2
  br i1 %190, label %191, label %262

191:                                              ; preds = %188
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %258, %191
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.MWave, ptr %194, i32 0, i32 0
  %196 = load i32, ptr %195, align 8, !tbaa !11
  %197 = icmp slt i32 %193, %196
  br i1 %197, label %198, label %261

198:                                              ; preds = %192
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.MWave, ptr %199, i32 0, i32 2
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = shl i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [32 x ptr], ptr %200, i64 0, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  store ptr %205, ptr %8, align 8, !tbaa !5
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.MWave, ptr %206, i32 0, i32 2
  %208 = load i32, ptr %12, align 4, !tbaa !9
  %209 = shl i32 %208, 1
  %210 = add nsw i32 %209, 1
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [32 x ptr], ptr %207, i64 0, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  store ptr %213, ptr %9, align 8, !tbaa !5
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.MWave, ptr %214, i32 0, i32 2
  %216 = load i32, ptr %12, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [32 x ptr], ptr %215, i64 0, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  store ptr %219, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %254, %198
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %7, align 4, !tbaa !9
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %224, label %257

224:                                              ; preds = %220
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = load i32, ptr %11, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds float, ptr %225, i64 %227
  %229 = load float, ptr %228, align 4, !tbaa !14
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  %231 = load i32, ptr %11, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds float, ptr %230, i64 %232
  %234 = load float, ptr %233, align 4, !tbaa !14
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = load i32, ptr %11, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds float, ptr %235, i64 %237
  %239 = load float, ptr %238, align 4, !tbaa !14
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds float, ptr %240, i64 %242
  %244 = load float, ptr %243, align 4, !tbaa !14
  %245 = fmul float %239, %244
  %246 = call float @llvm.fmuladd.f32(float %229, float %234, float %245)
  %247 = fpext float %246 to double
  %248 = call double @sqrt(double noundef %247) #5
  %249 = fptrunc double %248 to float
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = load i32, ptr %11, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds float, ptr %250, i64 %252
  store float %249, ptr %253, align 4, !tbaa !14
  br label %254

254:                                              ; preds = %224
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %11, align 4, !tbaa !9
  br label %220, !llvm.loop !19

257:                                              ; preds = %220
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %12, align 4, !tbaa !9
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %12, align 4, !tbaa !9
  br label %192, !llvm.loop !20

261:                                              ; preds = %192
  br label %338

262:                                              ; preds = %188
  %263 = load i32, ptr %6, align 4, !tbaa !9
  %264 = icmp eq i32 %263, 3
  br i1 %264, label %265, label %337

265:                                              ; preds = %262
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %266

266:                                              ; preds = %333, %265
  %267 = load i32, ptr %12, align 4, !tbaa !9
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.MWave, ptr %268, i32 0, i32 0
  %270 = load i32, ptr %269, align 8, !tbaa !11
  %271 = icmp slt i32 %267, %270
  br i1 %271, label %272, label %336

272:                                              ; preds = %266
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.MWave, ptr %273, i32 0, i32 2
  %275 = load i32, ptr %12, align 4, !tbaa !9
  %276 = shl i32 %275, 1
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [32 x ptr], ptr %274, i64 0, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !5
  store ptr %279, ptr %8, align 8, !tbaa !5
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.MWave, ptr %280, i32 0, i32 2
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = shl i32 %282, 1
  %284 = add nsw i32 %283, 1
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [32 x ptr], ptr %281, i64 0, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  store ptr %287, ptr %9, align 8, !tbaa !5
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.MWave, ptr %288, i32 0, i32 2
  %290 = load i32, ptr %12, align 4, !tbaa !9
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [32 x ptr], ptr %289, i64 0, i64 %291
  %293 = load ptr, ptr %292, align 8, !tbaa !5
  store ptr %293, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %329, %272
  %295 = load i32, ptr %11, align 4, !tbaa !9
  %296 = load i32, ptr %7, align 4, !tbaa !9
  %297 = icmp slt i32 %295, %296
  br i1 %297, label %298, label %332

298:                                              ; preds = %294
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds float, ptr %299, i64 %301
  %303 = load float, ptr %302, align 4, !tbaa !14
  %304 = load ptr, ptr %8, align 8, !tbaa !5
  %305 = load i32, ptr %11, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds float, ptr %304, i64 %306
  %308 = load float, ptr %307, align 4, !tbaa !14
  %309 = load ptr, ptr %9, align 8, !tbaa !5
  %310 = load i32, ptr %11, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds float, ptr %309, i64 %311
  %313 = load float, ptr %312, align 4, !tbaa !14
  %314 = load ptr, ptr %9, align 8, !tbaa !5
  %315 = load i32, ptr %11, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds float, ptr %314, i64 %316
  %318 = load float, ptr %317, align 4, !tbaa !14
  %319 = fmul float %313, %318
  %320 = call float @llvm.fmuladd.f32(float %303, float %308, float %319)
  %321 = fpext float %320 to double
  %322 = call double @log10(double noundef %321) #5
  %323 = fdiv double %322, 2.000000e+00
  %324 = fptrunc double %323 to float
  %325 = load ptr, ptr %10, align 8, !tbaa !5
  %326 = load i32, ptr %11, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds float, ptr %325, i64 %327
  store float %324, ptr %328, align 4, !tbaa !14
  br label %329

329:                                              ; preds = %298
  %330 = load i32, ptr %11, align 4, !tbaa !9
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %11, align 4, !tbaa !9
  br label %294, !llvm.loop !21

332:                                              ; preds = %294
  br label %333

333:                                              ; preds = %332
  %334 = load i32, ptr %12, align 4, !tbaa !9
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %12, align 4, !tbaa !9
  br label %266, !llvm.loop !22

336:                                              ; preds = %266
  br label %337

337:                                              ; preds = %336, %262
  br label %338

338:                                              ; preds = %337, %261
  br label %339

339:                                              ; preds = %338, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: nounwind
declare double @log10(double noundef) #4

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

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"MWave", !10, i64 0, !10, i64 4, !7, i64 8}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


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

@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@__FUNCTION__.mWavePowerSpectrum = external hidden unnamed_addr constant [19 x i8], align 1

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

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

declare void @mWaveRedefine(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @m_PropertyWrite(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare ptr @m_PropertyRead(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @mWavePowerSpectrum(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = icmp eq i32 %2, -1
  %spec.store.select = select i1 %6, i32 1, i32 %2
  %7 = add i32 %spec.store.select, -4
  %8 = icmp ult i32 %7, -3
  br i1 %8, label %9, label %10

9:                                                ; preds = %3
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 403, ptr noundef nonnull @__FUNCTION__.mWavePowerSpectrum, ptr noundef nonnull @.str.1) #6
  br label %10

10:                                               ; preds = %9, %3
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %11 [
    i64 -1, label %.critedge
    i64 0, label %.critedge
  ]

11:                                               ; preds = %10
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = icmp eq ptr %12, inttoptr (i64 -1 to ptr)
  br i1 %13, label %.critedge, label %14

14:                                               ; preds = %11
  %15 = load i32, ptr %0, align 8, !tbaa !5
  %16 = icmp slt i32 %15, 1
  br i1 %16, label %.critedge, label %17

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !10
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %21, label %.critedge

.critedge:                                        ; preds = %10, %10, %14, %11, %17
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 404, ptr noundef nonnull @__FUNCTION__.mWavePowerSpectrum, ptr noundef nonnull @.str.1) #6
  br label %21

21:                                               ; preds = %.critedge, %17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !11
  %22 = call ptr @m_PropertyRead(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef nonnull %4, ptr noundef null) #6
  %23 = load i32, ptr %4, align 4, !tbaa !11
  %.not = icmp eq i32 %23, 1
  br i1 %.not, label %25, label %24

24:                                               ; preds = %21
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 406, ptr noundef nonnull @__FUNCTION__.mWavePowerSpectrum, ptr noundef nonnull @.str.1) #6
  br label %25

25:                                               ; preds = %24, %21
  %26 = getelementptr inbounds i8, ptr %0, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !10
  %28 = ashr i32 %27, 1
  %magicptr111 = ptrtoint ptr %1 to i64
  switch i64 %magicptr111, label %30 [
    i64 -1, label %29
    i64 0, label %29
  ]

29:                                               ; preds = %25, %25
  br label %30

30:                                               ; preds = %25, %29
  %.0 = phi ptr [ %0, %29 ], [ %1, %25 ]
  %31 = load i32, ptr %0, align 8, !tbaa !5
  %32 = ashr i32 %31, 1
  %33 = getelementptr inbounds i8, ptr %.0, i64 8
  call void @mWaveRedefine(ptr noundef %.0, i32 noundef %32, i32 noundef %28, ptr noundef nonnull %33) #6
  store i32 2, ptr %4, align 4, !tbaa !11
  %34 = call ptr @m_PropertyWrite(ptr noundef %.0, ptr noundef nonnull @.str.2, ptr noundef nonnull %4, i32 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !11
  %35 = call ptr @m_PropertyWrite(ptr noundef %.0, ptr noundef nonnull @.str.3, ptr noundef nonnull %5, i32 noundef 4) #6
  switch i32 %spec.store.select, label %.loopexit [
    i32 1, label %.preheader
    i32 2, label %.preheader112
    i32 3, label %.preheader114
  ]

.preheader114:                                    ; preds = %30
  %36 = load i32, ptr %.0, align 8, !tbaa !5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph118, label %.loopexit

.lr.ph118:                                        ; preds = %.preheader114
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  %39 = icmp sgt i32 %28, 0
  br i1 %39, label %.lr.ph.us.preheader, label %.loopexit

.lr.ph.us.preheader:                              ; preds = %.lr.ph118
  %wide.trip.count = zext nneg i32 %28 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv135 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next136, %._crit_edge.us ]
  %sext = shl i64 %indvars.iv135, 33
  %40 = ashr exact i64 %sext, 32
  %41 = getelementptr inbounds [32 x ptr], ptr %38, i64 0, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !12
  %indvars.iv135.tr = trunc i64 %indvars.iv135 to i32
  %43 = shl i32 %indvars.iv135.tr, 1
  %44 = or disjoint i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [32 x ptr], ptr %38, i64 0, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !12
  %48 = getelementptr inbounds [32 x ptr], ptr %33, i64 0, i64 %indvars.iv135
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  br label %50

50:                                               ; preds = %.lr.ph.us, %50
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %50 ]
  %51 = getelementptr inbounds float, ptr %42, i64 %indvars.iv
  %52 = load float, ptr %51, align 4, !tbaa !14
  %53 = getelementptr inbounds float, ptr %47, i64 %indvars.iv
  %54 = load float, ptr %53, align 4, !tbaa !14
  %55 = fmul float %54, %54
  %56 = call float @llvm.fmuladd.f32(float %52, float %52, float %55)
  %57 = fpext float %56 to double
  %58 = call double @log10(double noundef %57) #6
  %59 = fmul double %58, 5.000000e-01
  %60 = fptrunc double %59 to float
  %61 = getelementptr inbounds float, ptr %49, i64 %indvars.iv
  store float %60, ptr %61, align 4, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %50, !llvm.loop !16

._crit_edge.us:                                   ; preds = %50
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %62 = load i32, ptr %.0, align 8, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next136, %63
  br i1 %64, label %.lr.ph.us, label %.loopexit, !llvm.loop !18

.preheader112:                                    ; preds = %30
  %65 = load i32, ptr %.0, align 8, !tbaa !5
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph121, label %.loopexit

.lr.ph121:                                        ; preds = %.preheader112
  %67 = getelementptr inbounds i8, ptr %0, i64 8
  %68 = icmp sgt i32 %28, 0
  br i1 %68, label %.lr.ph.us122.preheader, label %.loopexit

.lr.ph.us122.preheader:                           ; preds = %.lr.ph121
  %wide.trip.count146 = zext nneg i32 %65 to i64
  %wide.trip.count141 = zext nneg i32 %28 to i64
  %min.iters.check = icmp ult i32 %28, 4
  %n.vec = and i64 %wide.trip.count141, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count141
  %xtraiter = and i64 %wide.trip.count141, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %69 = add nsw i64 %wide.trip.count141, -1
  br label %.lr.ph.us122

.lr.ph.us122:                                     ; preds = %.lr.ph.us122.preheader, %._crit_edge.us123
  %indvars.iv143 = phi i64 [ 0, %.lr.ph.us122.preheader ], [ %indvars.iv.next144, %._crit_edge.us123 ]
  %sext158 = shl i64 %indvars.iv143, 33
  %70 = ashr exact i64 %sext158, 32
  %71 = getelementptr inbounds [32 x ptr], ptr %67, i64 0, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !12
  %indvars.iv143.tr = trunc i64 %indvars.iv143 to i32
  %73 = shl i32 %indvars.iv143.tr, 1
  %74 = or disjoint i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [32 x ptr], ptr %67, i64 0, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !12
  %78 = getelementptr inbounds [32 x ptr], ptr %33, i64 0, i64 %indvars.iv143
  %79 = load ptr, ptr %78, align 8, !tbaa !12
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.us122
  %80 = ptrtoint ptr %79 to i64
  %81 = ptrtoint ptr %77 to i64
  %82 = ptrtoint ptr %72 to i64
  %83 = sub i64 %80, %82
  %diff.check = icmp ult i64 %83, 16
  %84 = sub i64 %80, %81
  %diff.check164 = icmp ult i64 %84, 16
  %conflict.rdx = or i1 %diff.check, %diff.check164
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %85 = getelementptr inbounds float, ptr %72, i64 %index
  %wide.load = load <4 x float>, ptr %85, align 4, !tbaa !14
  %86 = getelementptr inbounds float, ptr %77, i64 %index
  %wide.load165 = load <4 x float>, ptr %86, align 4, !tbaa !14
  %87 = fmul <4 x float> %wide.load165, %wide.load165
  %88 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load, <4 x float> %wide.load, <4 x float> %87)
  %89 = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %88)
  %90 = getelementptr inbounds float, ptr %79, i64 %index
  store <4 x float> %89, ptr %90, align 4, !tbaa !14
  %index.next = add nuw i64 %index, 4
  %91 = icmp eq i64 %index.next, %n.vec
  br i1 %91, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us123, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.us122
  %indvars.iv138.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.us122 ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %92 = getelementptr inbounds float, ptr %72, i64 %indvars.iv138.ph
  %93 = load float, ptr %92, align 4, !tbaa !14
  %94 = getelementptr inbounds float, ptr %77, i64 %indvars.iv138.ph
  %95 = load float, ptr %94, align 4, !tbaa !14
  %96 = fmul float %95, %95
  %97 = call float @llvm.fmuladd.f32(float %93, float %93, float %96)
  %sqrt.us.prol = call float @llvm.sqrt.f32(float %97)
  %98 = getelementptr inbounds float, ptr %79, i64 %indvars.iv138.ph
  store float %sqrt.us.prol, ptr %98, align 4, !tbaa !14
  %indvars.iv.next139.prol = or disjoint i64 %indvars.iv138.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv138.unr = phi i64 [ %indvars.iv138.ph, %scalar.ph.preheader ], [ %indvars.iv.next139.prol, %scalar.ph.prol ]
  %99 = icmp eq i64 %indvars.iv138.ph, %69
  br i1 %99, label %._crit_edge.us123, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv138 = phi i64 [ %indvars.iv.next139.1, %scalar.ph ], [ %indvars.iv138.unr, %scalar.ph.prol.loopexit ]
  %100 = getelementptr inbounds float, ptr %72, i64 %indvars.iv138
  %101 = load float, ptr %100, align 4, !tbaa !14
  %102 = getelementptr inbounds float, ptr %77, i64 %indvars.iv138
  %103 = load float, ptr %102, align 4, !tbaa !14
  %104 = fmul float %103, %103
  %105 = call float @llvm.fmuladd.f32(float %101, float %101, float %104)
  %sqrt.us = call float @llvm.sqrt.f32(float %105)
  %106 = getelementptr inbounds float, ptr %79, i64 %indvars.iv138
  store float %sqrt.us, ptr %106, align 4, !tbaa !14
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %107 = getelementptr inbounds float, ptr %72, i64 %indvars.iv.next139
  %108 = load float, ptr %107, align 4, !tbaa !14
  %109 = getelementptr inbounds float, ptr %77, i64 %indvars.iv.next139
  %110 = load float, ptr %109, align 4, !tbaa !14
  %111 = fmul float %110, %110
  %112 = call float @llvm.fmuladd.f32(float %108, float %108, float %111)
  %sqrt.us.1 = call float @llvm.sqrt.f32(float %112)
  %113 = getelementptr inbounds float, ptr %79, i64 %indvars.iv.next139
  store float %sqrt.us.1, ptr %113, align 4, !tbaa !14
  %indvars.iv.next139.1 = add nuw nsw i64 %indvars.iv138, 2
  %exitcond142.not.1 = icmp eq i64 %indvars.iv.next139.1, %wide.trip.count141
  br i1 %exitcond142.not.1, label %._crit_edge.us123, label %scalar.ph, !llvm.loop !22

._crit_edge.us123:                                ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond147.not = icmp eq i64 %indvars.iv.next144, %wide.trip.count146
  br i1 %exitcond147.not, label %.loopexit, label %.lr.ph.us122, !llvm.loop !23

.preheader:                                       ; preds = %30
  %114 = load i32, ptr %.0, align 8, !tbaa !5
  %115 = icmp sgt i32 %114, 0
  br i1 %115, label %.lr.ph126, label %.loopexit

.lr.ph126:                                        ; preds = %.preheader
  %116 = getelementptr inbounds i8, ptr %0, i64 8
  %117 = icmp sgt i32 %28, 0
  br i1 %117, label %.lr.ph.us127.preheader, label %.loopexit

.lr.ph.us127.preheader:                           ; preds = %.lr.ph126
  %wide.trip.count156 = zext nneg i32 %114 to i64
  %wide.trip.count151 = zext nneg i32 %28 to i64
  %min.iters.check172 = icmp ult i32 %28, 8
  %n.vec175 = and i64 %wide.trip.count151, 2147483640
  %cmp.n184 = icmp eq i64 %n.vec175, %wide.trip.count151
  %xtraiter187 = and i64 %wide.trip.count151, 1
  %lcmp.mod188.not = icmp eq i64 %xtraiter187, 0
  %118 = add nsw i64 %wide.trip.count151, -1
  br label %.lr.ph.us127

.lr.ph.us127:                                     ; preds = %.lr.ph.us127.preheader, %._crit_edge.us128
  %indvars.iv153 = phi i64 [ 0, %.lr.ph.us127.preheader ], [ %indvars.iv.next154, %._crit_edge.us128 ]
  %sext159 = shl i64 %indvars.iv153, 33
  %119 = ashr exact i64 %sext159, 32
  %120 = getelementptr inbounds [32 x ptr], ptr %116, i64 0, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !12
  %indvars.iv153.tr = trunc i64 %indvars.iv153 to i32
  %122 = shl i32 %indvars.iv153.tr, 1
  %123 = or disjoint i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [32 x ptr], ptr %116, i64 0, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !12
  %127 = getelementptr inbounds [32 x ptr], ptr %33, i64 0, i64 %indvars.iv153
  %128 = load ptr, ptr %127, align 8, !tbaa !12
  br i1 %min.iters.check172, label %scalar.ph171.preheader, label %vector.memcheck166

vector.memcheck166:                               ; preds = %.lr.ph.us127
  %129 = ptrtoint ptr %128 to i64
  %130 = ptrtoint ptr %126 to i64
  %131 = ptrtoint ptr %121 to i64
  %132 = sub i64 %129, %131
  %diff.check167 = icmp ult i64 %132, 32
  %133 = sub i64 %129, %130
  %diff.check168 = icmp ult i64 %133, 32
  %conflict.rdx169 = or i1 %diff.check167, %diff.check168
  br i1 %conflict.rdx169, label %scalar.ph171.preheader, label %vector.body177

vector.body177:                                   ; preds = %vector.memcheck166, %vector.body177
  %index178 = phi i64 [ %index.next183, %vector.body177 ], [ 0, %vector.memcheck166 ]
  %134 = getelementptr inbounds float, ptr %121, i64 %index178
  %135 = getelementptr inbounds i8, ptr %134, i64 16
  %wide.load179 = load <4 x float>, ptr %134, align 4, !tbaa !14
  %wide.load180 = load <4 x float>, ptr %135, align 4, !tbaa !14
  %136 = getelementptr inbounds float, ptr %126, i64 %index178
  %137 = getelementptr inbounds i8, ptr %136, i64 16
  %wide.load181 = load <4 x float>, ptr %136, align 4, !tbaa !14
  %wide.load182 = load <4 x float>, ptr %137, align 4, !tbaa !14
  %138 = fmul <4 x float> %wide.load181, %wide.load181
  %139 = fmul <4 x float> %wide.load182, %wide.load182
  %140 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load179, <4 x float> %wide.load179, <4 x float> %138)
  %141 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load180, <4 x float> %wide.load180, <4 x float> %139)
  %142 = getelementptr inbounds float, ptr %128, i64 %index178
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  store <4 x float> %140, ptr %142, align 4, !tbaa !14
  store <4 x float> %141, ptr %143, align 4, !tbaa !14
  %index.next183 = add nuw i64 %index178, 8
  %144 = icmp eq i64 %index.next183, %n.vec175
  br i1 %144, label %middle.block170, label %vector.body177, !llvm.loop !24

middle.block170:                                  ; preds = %vector.body177
  br i1 %cmp.n184, label %._crit_edge.us128, label %scalar.ph171.preheader

scalar.ph171.preheader:                           ; preds = %middle.block170, %vector.memcheck166, %.lr.ph.us127
  %indvars.iv148.ph = phi i64 [ 0, %vector.memcheck166 ], [ 0, %.lr.ph.us127 ], [ %n.vec175, %middle.block170 ]
  br i1 %lcmp.mod188.not, label %scalar.ph171.prol.loopexit, label %scalar.ph171.prol

scalar.ph171.prol:                                ; preds = %scalar.ph171.preheader
  %145 = getelementptr inbounds float, ptr %121, i64 %indvars.iv148.ph
  %146 = load float, ptr %145, align 4, !tbaa !14
  %147 = getelementptr inbounds float, ptr %126, i64 %indvars.iv148.ph
  %148 = load float, ptr %147, align 4, !tbaa !14
  %149 = fmul float %148, %148
  %150 = call float @llvm.fmuladd.f32(float %146, float %146, float %149)
  %151 = getelementptr inbounds float, ptr %128, i64 %indvars.iv148.ph
  store float %150, ptr %151, align 4, !tbaa !14
  %indvars.iv.next149.prol = or disjoint i64 %indvars.iv148.ph, 1
  br label %scalar.ph171.prol.loopexit

scalar.ph171.prol.loopexit:                       ; preds = %scalar.ph171.prol, %scalar.ph171.preheader
  %indvars.iv148.unr = phi i64 [ %indvars.iv148.ph, %scalar.ph171.preheader ], [ %indvars.iv.next149.prol, %scalar.ph171.prol ]
  %152 = icmp eq i64 %indvars.iv148.ph, %118
  br i1 %152, label %._crit_edge.us128, label %scalar.ph171

scalar.ph171:                                     ; preds = %scalar.ph171.prol.loopexit, %scalar.ph171
  %indvars.iv148 = phi i64 [ %indvars.iv.next149.1, %scalar.ph171 ], [ %indvars.iv148.unr, %scalar.ph171.prol.loopexit ]
  %153 = getelementptr inbounds float, ptr %121, i64 %indvars.iv148
  %154 = load float, ptr %153, align 4, !tbaa !14
  %155 = getelementptr inbounds float, ptr %126, i64 %indvars.iv148
  %156 = load float, ptr %155, align 4, !tbaa !14
  %157 = fmul float %156, %156
  %158 = call float @llvm.fmuladd.f32(float %154, float %154, float %157)
  %159 = getelementptr inbounds float, ptr %128, i64 %indvars.iv148
  store float %158, ptr %159, align 4, !tbaa !14
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %160 = getelementptr inbounds float, ptr %121, i64 %indvars.iv.next149
  %161 = load float, ptr %160, align 4, !tbaa !14
  %162 = getelementptr inbounds float, ptr %126, i64 %indvars.iv.next149
  %163 = load float, ptr %162, align 4, !tbaa !14
  %164 = fmul float %163, %163
  %165 = call float @llvm.fmuladd.f32(float %161, float %161, float %164)
  %166 = getelementptr inbounds float, ptr %128, i64 %indvars.iv.next149
  store float %165, ptr %166, align 4, !tbaa !14
  %indvars.iv.next149.1 = add nuw nsw i64 %indvars.iv148, 2
  %exitcond152.not.1 = icmp eq i64 %indvars.iv.next149.1, %wide.trip.count151
  br i1 %exitcond152.not.1, label %._crit_edge.us128, label %scalar.ph171, !llvm.loop !25

._crit_edge.us128:                                ; preds = %scalar.ph171.prol.loopexit, %scalar.ph171, %middle.block170
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %exitcond157.not = icmp eq i64 %indvars.iv.next154, %wide.trip.count156
  br i1 %exitcond157.not, label %.loopexit, label %.lr.ph.us127, !llvm.loop !26

.loopexit:                                        ; preds = %._crit_edge.us, %._crit_edge.us123, %._crit_edge.us128, %.lr.ph126, %.lr.ph121, %.lr.ph118, %.preheader114, %.preheader112, %.preheader, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log10(double noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.sqrt.v4f32(<4 x float>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"MWave", !7, i64 0, !7, i64 4, !8, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !17, !20}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17, !20, !21}
!25 = distinct !{!25, !17, !20}
!26 = distinct !{!26, !17}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass