; LLVM IR from GPUOpen-LibrariesAndSDKs/TAN :: tan/samples/src/Ambisonic1stOrderDecoder (Ambisonic1stOrderDecoder)

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

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 4
  br i1 %33, label %34, label %49

34:                                               ; preds = %2
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %38)
  %40 = call i32 @puts(ptr noundef @.str.2)
  %41 = call i32 @puts(ptr noundef @.str.3)
  %42 = call i32 @puts(ptr noundef @.str.4)
  %43 = call i32 @puts(ptr noundef @.str.5)
  %44 = call i32 @puts(ptr noundef @.str.6)
  %45 = call i32 @puts(ptr noundef @.str.7)
  %46 = call i32 @puts(ptr noundef @.str.8)
  %47 = call i32 @puts(ptr noundef @.str.9)
  %48 = call i32 @puts(ptr noundef @.str.10)
  store i32 -1, ptr %3, align 4
  br label %296

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 1
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  store ptr %52, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = getelementptr inbounds ptr, ptr %53, i64 2
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  store ptr %55, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sub nsw i32 %56, 3
  %58 = sdiv i32 %57, 2
  store i32 %58, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %60, i64 4)
  %62 = extractvalue { i64, i1 } %61, 1
  %63 = extractvalue { i64, i1 } %61, 0
  %64 = select i1 %62, i64 -1, i64 %63
  %65 = call noalias noundef nonnull ptr @_Znam(i64 noundef %64) #9
  store ptr %65, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %67, i64 4)
  %69 = extractvalue { i64, i1 } %68, 1
  %70 = extractvalue { i64, i1 } %68, 0
  %71 = select i1 %69, i64 -1, i64 %70
  %72 = call noalias noundef nonnull ptr @_Znam(i64 noundef %71) #9
  store ptr %72, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %103, %49
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %106

78:                                               ; preds = %73
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = mul nsw i32 %80, 2
  %82 = add nsw i32 3, %81
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds ptr, ptr %79, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = load ptr, ptr %9, align 8, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds float, ptr %86, i64 %88
  %90 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %85, ptr noundef @.str.11, ptr noundef %89) #8
  %91 = load ptr, ptr %5, align 8, !tbaa !9
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = mul nsw i32 %92, 2
  %94 = add nsw i32 4, %93
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %91, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = load ptr, ptr %10, align 8, !tbaa !9
  %99 = load i32, ptr %11, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds float, ptr %98, i64 %100
  %102 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %97, ptr noundef @.str.11, ptr noundef %101) #8
  br label %103

103:                                              ; preds = %78
  %104 = load i32, ptr %11, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %11, align 4, !tbaa !5
  br label %73, !llvm.loop !11

106:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %129, %106
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %132

112:                                              ; preds = %107
  %113 = load ptr, ptr %9, align 8, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %113, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !13
  %118 = fpext float %117 to double
  %119 = fmul double %118, 0x3F91DF46A2506B91
  %120 = fptrunc double %119 to float
  store float %120, ptr %116, align 4, !tbaa !13
  %121 = load ptr, ptr %10, align 8, !tbaa !9
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %121, i64 %123
  %125 = load float, ptr %124, align 4, !tbaa !13
  %126 = fpext float %125 to double
  %127 = fmul double %126, 0x3F91DF46A2506B91
  %128 = fptrunc double %127 to float
  store float %128, ptr %124, align 4, !tbaa !13
  br label %129

129:                                              ; preds = %112
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %12, align 4, !tbaa !5
  br label %107, !llvm.loop !15

132:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %133 = load ptr, ptr %6, align 8, !tbaa !9
  %134 = call noundef zeroext i1 @_Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf(ptr noundef %133, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 2 dereferenceable(2) %13, ptr noundef nonnull align 2 dereferenceable(2) %14, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef %17, ptr noundef %18)
  %135 = load i16, ptr %14, align 2, !tbaa !16
  %136 = zext i16 %135 to i32
  %137 = icmp ne i32 %136, 4
  br i1 %137, label %138, label %140

138:                                              ; preds = %132
  %139 = call i32 @puts(ptr noundef @.str.12)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %19, align 4
  br label %295

140:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %141 = load ptr, ptr %18, align 8, !tbaa !9
  %142 = getelementptr inbounds ptr, ptr %141, i64 0
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  store ptr %143, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %144 = load ptr, ptr %18, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %144, i64 1
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  store ptr %146, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %147 = load ptr, ptr %18, align 8, !tbaa !9
  %148 = getelementptr inbounds ptr, ptr %147, i64 2
  %149 = load ptr, ptr %148, align 8, !tbaa !9
  store ptr %149, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %150 = load ptr, ptr %18, align 8, !tbaa !9
  %151 = getelementptr inbounds ptr, ptr %150, i64 3
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  store ptr %152, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %154, i64 8)
  %156 = extractvalue { i64, i1 } %155, 1
  %157 = extractvalue { i64, i1 } %155, 0
  %158 = select i1 %156, i64 -1, i64 %157
  %159 = call noalias noundef nonnull ptr @_Znam(i64 noundef %158) #9
  store ptr %159, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %185, %140
  %161 = load i32, ptr %25, align 4, !tbaa !5
  %162 = load i32, ptr %8, align 4, !tbaa !5
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %188

165:                                              ; preds = %160
  %166 = load i32, ptr %16, align 4, !tbaa !5
  %167 = zext i32 %166 to i64
  %168 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %167, i64 4)
  %169 = extractvalue { i64, i1 } %168, 1
  %170 = extractvalue { i64, i1 } %168, 0
  %171 = select i1 %169, i64 -1, i64 %170
  %172 = call noalias noundef nonnull ptr @_Znam(i64 noundef %171) #9
  %173 = load ptr, ptr %24, align 8, !tbaa !9
  %174 = load i32, ptr %25, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %173, i64 %175
  store ptr %172, ptr %176, align 8, !tbaa !9
  %177 = load ptr, ptr %24, align 8, !tbaa !9
  %178 = load i32, ptr %25, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %177, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !9
  %182 = load i32, ptr %16, align 4, !tbaa !5
  %183 = zext i32 %182 to i64
  %184 = mul i64 %183, 4
  call void @llvm.memset.p0.i64(ptr align 4 %181, i8 0, i64 %184, i1 false)
  br label %185

185:                                              ; preds = %165
  %186 = load i32, ptr %25, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %25, align 4, !tbaa !5
  br label %160, !llvm.loop !18

188:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store float 5.000000e-01, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %282, %188
  %190 = load i32, ptr %27, align 4, !tbaa !5
  %191 = load i32, ptr %8, align 4, !tbaa !5
  %192 = icmp slt i32 %190, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %189
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %285

194:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %195 = load ptr, ptr %9, align 8, !tbaa !9
  %196 = load i32, ptr %27, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds float, ptr %195, i64 %197
  %199 = load float, ptr %198, align 4, !tbaa !13
  %200 = call noundef float @_ZSt3cosf(float noundef %199)
  %201 = load ptr, ptr %10, align 8, !tbaa !9
  %202 = load i32, ptr %27, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds float, ptr %201, i64 %203
  %205 = load float, ptr %204, align 4, !tbaa !13
  %206 = call noundef float @_ZSt3cosf(float noundef %205)
  %207 = fmul float %200, %206
  store float %207, ptr %28, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %208 = load ptr, ptr %9, align 8, !tbaa !9
  %209 = load i32, ptr %27, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds float, ptr %208, i64 %210
  %212 = load float, ptr %211, align 4, !tbaa !13
  %213 = call noundef float @_ZSt3sinf(float noundef %212)
  %214 = load ptr, ptr %10, align 8, !tbaa !9
  %215 = load i32, ptr %27, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds float, ptr %214, i64 %216
  %218 = load float, ptr %217, align 4, !tbaa !13
  %219 = call noundef float @_ZSt3cosf(float noundef %218)
  %220 = fmul float %213, %219
  store float %220, ptr %29, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %221 = load ptr, ptr %10, align 8, !tbaa !9
  %222 = load i32, ptr %27, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds float, ptr %221, i64 %223
  %225 = load float, ptr %224, align 4, !tbaa !13
  %226 = call noundef float @_ZSt3sinf(float noundef %225)
  store float %226, ptr %30, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %278, %194
  %228 = load i32, ptr %31, align 4, !tbaa !5
  %229 = load i32, ptr %16, align 4, !tbaa !5
  %230 = icmp ult i32 %228, %229
  br i1 %230, label %232, label %231

231:                                              ; preds = %227
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %281

232:                                              ; preds = %227
  %233 = load float, ptr %26, align 4, !tbaa !13
  %234 = fpext float %233 to double
  %235 = call double @sqrt(double noundef 2.000000e+00) #8
  %236 = fmul double %234, %235
  %237 = load ptr, ptr %20, align 8, !tbaa !9
  %238 = load i32, ptr %31, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds float, ptr %237, i64 %239
  %241 = load float, ptr %240, align 4, !tbaa !13
  %242 = fpext float %241 to double
  %243 = load float, ptr %26, align 4, !tbaa !13
  %244 = fsub float 1.000000e+00, %243
  %245 = load ptr, ptr %21, align 8, !tbaa !9
  %246 = load i32, ptr %31, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds float, ptr %245, i64 %247
  %249 = load float, ptr %248, align 4, !tbaa !13
  %250 = load float, ptr %28, align 4, !tbaa !13
  %251 = load ptr, ptr %22, align 8, !tbaa !9
  %252 = load i32, ptr %31, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds float, ptr %251, i64 %253
  %255 = load float, ptr %254, align 4, !tbaa !13
  %256 = load float, ptr %29, align 4, !tbaa !13
  %257 = fmul float %255, %256
  %258 = call float @llvm.fmuladd.f32(float %249, float %250, float %257)
  %259 = load ptr, ptr %23, align 8, !tbaa !9
  %260 = load i32, ptr %31, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds float, ptr %259, i64 %261
  %263 = load float, ptr %262, align 4, !tbaa !13
  %264 = load float, ptr %30, align 4, !tbaa !13
  %265 = call float @llvm.fmuladd.f32(float %263, float %264, float %258)
  %266 = fmul float %244, %265
  %267 = fpext float %266 to double
  %268 = call double @llvm.fmuladd.f64(double %236, double %242, double %267)
  %269 = fptrunc double %268 to float
  %270 = load ptr, ptr %24, align 8, !tbaa !9
  %271 = load i32, ptr %27, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds ptr, ptr %270, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !9
  %275 = load i32, ptr %31, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds float, ptr %274, i64 %276
  store float %269, ptr %277, align 4, !tbaa !13
  br label %278

278:                                              ; preds = %232
  %279 = load i32, ptr %31, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %31, align 4, !tbaa !5
  br label %227, !llvm.loop !19

281:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %27, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %27, align 4, !tbaa !5
  br label %189, !llvm.loop !20

285:                                              ; preds = %193
  %286 = load ptr, ptr %7, align 8, !tbaa !9
  %287 = load i32, ptr %15, align 4, !tbaa !5
  %288 = load i32, ptr %8, align 4, !tbaa !5
  %289 = load i16, ptr %13, align 2, !tbaa !16
  %290 = zext i16 %289 to i32
  %291 = load i32, ptr %16, align 4, !tbaa !5
  %292 = zext i32 %291 to i64
  %293 = load ptr, ptr %24, align 8, !tbaa !9
  %294 = call noundef zeroext i1 @_Z14WriteWaveFileFPKciiilPPf(ptr noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %290, i64 noundef %292, ptr noundef %293)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %295

295:                                              ; preds = %285, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %296

296:                                              ; preds = %295, %34
  %297 = load i32, ptr %3, align 4
  ret i32 %297
}

declare i32 @printf(ptr noundef, ...) #1

declare i32 @puts(ptr noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #5

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

declare noundef zeroext i1 @_Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #7

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare noundef zeroext i1 @_Z14WriteWaveFileFPKciiilPPf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef) #1

attributes #0 = { mustprogress norecurse 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 = { "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 willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; 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 [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -1, 1) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i16, align 2
  %4 = alloca i16, align 2
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = icmp slt i32 %0, 4
  br i1 %9, label %10, label %23

10:                                               ; preds = %2
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %12)
  %14 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  %15 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  %16 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  %17 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  %18 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.6)
  %19 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.7)
  %20 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.8)
  %21 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.9)
  %22 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %147

23:                                               ; preds = %2
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %1, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = add nsw i32 %0, -3
  %29 = lshr i32 %28, 1
  %30 = zext nneg i32 %29 to i64
  %31 = shl nuw nsw i64 %30, 2
  %32 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #9
  %33 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #9
  %.not89 = icmp ult i32 %28, 2
  br i1 %.not89, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %23
  %umax = tail call i32 @llvm.umax.i32(i32 %29, i32 1)
  %wide.trip.count = zext nneg i32 %umax to i64
  br label %.lr.ph

.preheader75:                                     ; preds = %.lr.ph
  br i1 %.not89, label %._crit_edge, label %.lr.ph78.preheader

.lr.ph78.preheader:                               ; preds = %.preheader75
  %umax98 = tail call i32 @llvm.umax.i32(i32 %29, i32 1)
  %wide.trip.count99 = zext nneg i32 %umax98 to i64
  %min.iters.check = icmp ult i32 %28, 8
  br i1 %min.iters.check, label %.lr.ph78.preheader143, label %vector.ph

.lr.ph78.preheader143:                            ; preds = %middle.block, %.lr.ph78.preheader
  %indvars.iv95.ph = phi i64 [ 0, %.lr.ph78.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph78

vector.ph:                                        ; preds = %.lr.ph78.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %34 = getelementptr inbounds float, ptr %32, i64 %index
  %wide.load = load <4 x float>, ptr %34, align 4, !tbaa !9
  %35 = fpext <4 x float> %wide.load to <4 x double>
  %36 = fmul <4 x double> %35, <double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91>
  %37 = fptrunc <4 x double> %36 to <4 x float>
  store <4 x float> %37, ptr %34, align 4, !tbaa !9
  %38 = getelementptr inbounds float, ptr %33, i64 %index
  %wide.load118 = load <4 x float>, ptr %38, align 4, !tbaa !9
  %39 = fpext <4 x float> %wide.load118 to <4 x double>
  %40 = fmul <4 x double> %39, <double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91>
  %41 = fptrunc <4 x double> %40 to <4 x float>
  store <4 x float> %41, ptr %38, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %42 = icmp eq i64 %index.next, %n.vec
  br i1 %42, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph78.preheader143

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.idx = shl nsw i64 %indvars.iv, 4
  %43 = getelementptr inbounds i8, ptr %1, i64 %.idx
  %44 = getelementptr inbounds i8, ptr %43, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds float, ptr %32, i64 %indvars.iv
  %47 = tail call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %45, ptr noundef nonnull @.str.11, ptr noundef nonnull %46) #10
  %48 = getelementptr inbounds i8, ptr %43, i64 32
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds float, ptr %33, i64 %indvars.iv
  %51 = tail call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %49, ptr noundef nonnull @.str.11, ptr noundef nonnull %50) #10
  %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 %.preheader75, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph78, %middle.block, %23, %.preheader75
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  %52 = call noundef zeroext i1 @_Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf(ptr noundef %25, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 2 dereferenceable(2) %3, ptr noundef nonnull align 2 dereferenceable(2) %4, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %53 = load i16, ptr %4, align 2, !tbaa !16
  %.not = icmp eq i16 %53, 4
  br i1 %.not, label %66, label %64

.lr.ph78:                                         ; preds = %.lr.ph78.preheader143, %.lr.ph78
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %.lr.ph78 ], [ %indvars.iv95.ph, %.lr.ph78.preheader143 ]
  %54 = getelementptr inbounds float, ptr %32, i64 %indvars.iv95
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = fpext float %55 to double
  %57 = fmul double %56, 0x3F91DF46A2506B91
  %58 = fptrunc double %57 to float
  store float %58, ptr %54, align 4, !tbaa !9
  %59 = getelementptr inbounds float, ptr %33, i64 %indvars.iv95
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fpext float %60 to double
  %62 = fmul double %61, 0x3F91DF46A2506B91
  %63 = fptrunc double %62 to float
  store float %63, ptr %59, align 4, !tbaa !9
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next96, %wide.trip.count99
  br i1 %exitcond100.not, label %._crit_edge, label %.lr.ph78, !llvm.loop !18

64:                                               ; preds = %._crit_edge
  %65 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.12)
  br label %146

66:                                               ; preds = %._crit_edge
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = ptrtoint ptr %68 to i64
  %70 = getelementptr inbounds i8, ptr %67, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = ptrtoint ptr %71 to i64
  %73 = getelementptr inbounds i8, ptr %67, i64 16
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = ptrtoint ptr %74 to i64
  %76 = getelementptr inbounds i8, ptr %67, i64 24
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = ptrtoint ptr %77 to i64
  %79 = shl nuw nsw i64 %30, 3
  %80 = call noalias noundef nonnull ptr @_Znam(i64 noundef %79) #9
  br i1 %.not89, label %.preheader.._crit_edge88_crit_edge, label %.lr.ph81

.lr.ph81:                                         ; preds = %66
  %81 = load i32, ptr %6, align 4, !tbaa !19
  %82 = zext i32 %81 to i64
  %83 = shl nuw nsw i64 %82, 2
  %umax104 = call i32 @llvm.umax.i32(i32 %29, i32 1)
  %wide.trip.count105 = zext nneg i32 %umax104 to i64
  br label %84

.preheader:                                       ; preds = %84
  br i1 %.not89, label %.preheader.._crit_edge88_crit_edge, label %.lr.ph87.preheader

.preheader.._crit_edge88_crit_edge:               ; preds = %66, %.preheader
  %.pre = load i32, ptr %6, align 4, !tbaa !19
  br label %._crit_edge88

.lr.ph87.preheader:                               ; preds = %.preheader
  %umax115 = call i32 @llvm.umax.i32(i32 %29, i32 1)
  %wide.trip.count116 = zext nneg i32 %umax115 to i64
  br label %.lr.ph87

84:                                               ; preds = %.lr.ph81, %84
  %indvars.iv101 = phi i64 [ 0, %.lr.ph81 ], [ %indvars.iv.next102, %84 ]
  %85 = call noalias noundef nonnull ptr @_Znam(i64 noundef %83) #9
  %86 = getelementptr inbounds ptr, ptr %80, i64 %indvars.iv101
  store ptr %85, ptr %86, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %85, i8 0, i64 %83, i1 false)
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond106.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count105
  br i1 %exitcond106.not, label %.preheader, label %84, !llvm.loop !21

._crit_edge88:                                    ; preds = %._crit_edge85, %.preheader.._crit_edge88_crit_edge
  %87 = phi i32 [ %.pre, %.preheader.._crit_edge88_crit_edge ], [ %107, %._crit_edge85 ]
  %88 = load i32, ptr %5, align 4, !tbaa !19
  %89 = load i16, ptr %3, align 2, !tbaa !16
  %90 = zext i16 %89 to i32
  %91 = zext i32 %87 to i64
  %92 = call noundef zeroext i1 @_Z14WriteWaveFileFPKciiilPPf(ptr noundef %27, i32 noundef %88, i32 noundef %29, i32 noundef %90, i64 noundef %91, ptr noundef nonnull %80)
  br label %146

.lr.ph87:                                         ; preds = %.lr.ph87.preheader, %._crit_edge85
  %indvars.iv112 = phi i64 [ 0, %.lr.ph87.preheader ], [ %indvars.iv.next113, %._crit_edge85 ]
  %93 = getelementptr inbounds float, ptr %32, i64 %indvars.iv112
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = call noundef float @_ZSt3cosf(float noundef %94)
  %96 = getelementptr inbounds float, ptr %33, i64 %indvars.iv112
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = call noundef float @_ZSt3cosf(float noundef %97)
  %99 = fmul float %95, %98
  %100 = load float, ptr %93, align 4, !tbaa !9
  %101 = call noundef float @_ZSt3sinf(float noundef %100)
  %102 = load float, ptr %96, align 4, !tbaa !9
  %103 = call noundef float @_ZSt3cosf(float noundef %102)
  %104 = fmul float %101, %103
  %105 = load float, ptr %96, align 4, !tbaa !9
  %106 = call noundef float @_ZSt3sinf(float noundef %105)
  %107 = load i32, ptr %6, align 4, !tbaa !19
  %.not93 = icmp eq i32 %107, 0
  br i1 %.not93, label %._crit_edge85, label %.lr.ph84

.lr.ph84:                                         ; preds = %.lr.ph87
  %108 = getelementptr inbounds ptr, ptr %80, i64 %indvars.iv112
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %wide.trip.count110 = zext i32 %107 to i64
  %min.iters.check126 = icmp ult i32 %107, 4
  br i1 %min.iters.check126, label %scalar.ph125.preheader, label %vector.memcheck

scalar.ph125.preheader:                           ; preds = %middle.block124, %vector.memcheck, %.lr.ph84
  %indvars.iv107.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph84 ], [ %n.vec129, %middle.block124 ]
  br label %scalar.ph125

vector.memcheck:                                  ; preds = %.lr.ph84
  %110 = ptrtoint ptr %109 to i64
  %111 = sub i64 %110, %69
  %diff.check = icmp ult i64 %111, 16
  %112 = sub i64 %110, %72
  %diff.check119 = icmp ult i64 %112, 16
  %conflict.rdx = or i1 %diff.check, %diff.check119
  %113 = sub i64 %110, %75
  %diff.check120 = icmp ult i64 %113, 16
  %conflict.rdx121 = or i1 %conflict.rdx, %diff.check120
  %114 = sub i64 %110, %78
  %diff.check122 = icmp ult i64 %114, 16
  %conflict.rdx123 = or i1 %conflict.rdx121, %diff.check122
  br i1 %conflict.rdx123, label %scalar.ph125.preheader, label %vector.ph127

vector.ph127:                                     ; preds = %vector.memcheck
  %n.vec129 = and i64 %wide.trip.count110, 4294967292
  %broadcast.splatinsert = insertelement <4 x float> poison, float %104, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert136 = insertelement <4 x float> poison, float %99, i64 0
  %broadcast.splat137 = shufflevector <4 x float> %broadcast.splatinsert136, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert139 = insertelement <4 x float> poison, float %106, i64 0
  %broadcast.splat140 = shufflevector <4 x float> %broadcast.splatinsert139, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body131

vector.body131:                                   ; preds = %vector.body131, %vector.ph127
  %index132 = phi i64 [ 0, %vector.ph127 ], [ %index.next141, %vector.body131 ]
  %115 = getelementptr inbounds float, ptr %68, i64 %index132
  %wide.load133 = load <4 x float>, ptr %115, align 4, !tbaa !9
  %116 = fpext <4 x float> %wide.load133 to <4 x double>
  %117 = getelementptr inbounds float, ptr %71, i64 %index132
  %wide.load134 = load <4 x float>, ptr %117, align 4, !tbaa !9
  %118 = getelementptr inbounds float, ptr %74, i64 %index132
  %wide.load135 = load <4 x float>, ptr %118, align 4, !tbaa !9
  %119 = fmul <4 x float> %broadcast.splat, %wide.load135
  %120 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load134, <4 x float> %broadcast.splat137, <4 x float> %119)
  %121 = getelementptr inbounds float, ptr %77, i64 %index132
  %wide.load138 = load <4 x float>, ptr %121, align 4, !tbaa !9
  %122 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load138, <4 x float> %broadcast.splat140, <4 x float> %120)
  %123 = fmul <4 x float> %122, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %124 = fpext <4 x float> %123 to <4 x double>
  %125 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %116, <4 x double> <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>, <4 x double> %124)
  %126 = fptrunc <4 x double> %125 to <4 x float>
  %127 = getelementptr inbounds float, ptr %109, i64 %index132
  store <4 x float> %126, ptr %127, align 4, !tbaa !9
  %index.next141 = add nuw i64 %index132, 4
  %128 = icmp eq i64 %index.next141, %n.vec129
  br i1 %128, label %middle.block124, label %vector.body131, !llvm.loop !22

middle.block124:                                  ; preds = %vector.body131
  %cmp.n142 = icmp eq i64 %n.vec129, %wide.trip.count110
  br i1 %cmp.n142, label %._crit_edge85, label %scalar.ph125.preheader

._crit_edge85:                                    ; preds = %scalar.ph125, %middle.block124, %.lr.ph87
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next113, %wide.trip.count116
  br i1 %exitcond117.not, label %._crit_edge88, label %.lr.ph87, !llvm.loop !23

scalar.ph125:                                     ; preds = %scalar.ph125.preheader, %scalar.ph125
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %scalar.ph125 ], [ %indvars.iv107.ph, %scalar.ph125.preheader ]
  %129 = getelementptr inbounds float, ptr %68, i64 %indvars.iv107
  %130 = load float, ptr %129, align 4, !tbaa !9
  %131 = fpext float %130 to double
  %132 = getelementptr inbounds float, ptr %71, i64 %indvars.iv107
  %133 = load float, ptr %132, align 4, !tbaa !9
  %134 = getelementptr inbounds float, ptr %74, i64 %indvars.iv107
  %135 = load float, ptr %134, align 4, !tbaa !9
  %136 = fmul float %104, %135
  %137 = call float @llvm.fmuladd.f32(float %133, float %99, float %136)
  %138 = getelementptr inbounds float, ptr %77, i64 %indvars.iv107
  %139 = load float, ptr %138, align 4, !tbaa !9
  %140 = call float @llvm.fmuladd.f32(float %139, float %106, float %137)
  %141 = fmul float %140, 5.000000e-01
  %142 = fpext float %141 to double
  %143 = call double @llvm.fmuladd.f64(double %131, double 0x3FE6A09E667F3BCD, double %142)
  %144 = fptrunc double %143 to float
  %145 = getelementptr inbounds float, ptr %109, i64 %indvars.iv107
  store float %144, ptr %145, align 4, !tbaa !9
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next108, %wide.trip.count110
  br i1 %exitcond111.not, label %._crit_edge85, label %scalar.ph125, !llvm.loop !24

146:                                              ; preds = %._crit_edge88, %64
  %.068 = phi i32 [ -1, %64 ], [ 0, %._crit_edge88 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #10
  br label %147

147:                                              ; preds = %146, %10
  %.1 = phi i32 [ -1, %10 ], [ %.068, %146 ]
  ret i32 %.1
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

declare noundef zeroext i1 @_Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

declare noundef zeroext i1 @_Z14WriteWaveFileFPKciiilPPf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #8

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

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

attributes #0 = { mustprogress norecurse 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 = { nofree 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !12, !14, !13}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12, !13, !14}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12, !13}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass