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

; 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 [62 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 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 i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i16, align 2
  %23 = alloca i16, align 2
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca [4 x ptr], align 16
  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
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 5
  br i1 %35, label %36, label %42

36:                                               ; preds = %2
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i64 0
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %40)
  store i32 -1, ptr %3, align 4
  br label %527

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

66:                                               ; preds = %121, %42
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %124

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = sub nsw i32 %72, 2
  %74 = sdiv i32 %73, 3
  %75 = add nsw i32 1, %74
  store i32 %75, ptr %10, align 4, !tbaa !5
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %76, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = load ptr, ptr %7, align 8, !tbaa !9
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = sub nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds float, ptr %82, i64 %85
  %87 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %81, ptr noundef @.str.4, ptr noundef %86) #9
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = add nsw i32 %89, 2
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %88, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !9
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = sub nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds float, ptr %94, i64 %97
  %99 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %93, ptr noundef @.str.4, ptr noundef %98) #9
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %101, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = load i32, ptr %9, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %107, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = load ptr, ptr %5, align 8, !tbaa !9
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = add nsw i32 %115, 2
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %114, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %100, ptr noundef %105, i32 noundef %106, ptr noundef %112, i32 noundef %113, ptr noundef %119)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %121

121:                                              ; preds = %71
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = add nsw i32 %122, 3
  store i32 %123, ptr %9, align 4, !tbaa !5
  br label %66, !llvm.loop !11

124:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %147, %124
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = load i32, ptr %6, align 4, !tbaa !5
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %150

130:                                              ; preds = %125
  %131 = load ptr, ptr %7, align 8, !tbaa !9
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %131, i64 %133
  %135 = load float, ptr %134, align 4, !tbaa !13
  %136 = fpext float %135 to double
  %137 = fmul double %136, 0x3F91DF46A2506B91
  %138 = fptrunc double %137 to float
  store float %138, ptr %134, align 4, !tbaa !13
  %139 = load ptr, ptr %8, align 8, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %139, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !13
  %144 = fpext float %143 to double
  %145 = fmul double %144, 0x3F91DF46A2506B91
  %146 = fptrunc double %145 to float
  store float %146, ptr %142, align 4, !tbaa !13
  br label %147

147:                                              ; preds = %130
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %11, align 4, !tbaa !5
  br label %125, !llvm.loop !15

150:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %151 = load i32, ptr %6, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %152, i64 8)
  %154 = extractvalue { i64, i1 } %153, 1
  %155 = extractvalue { i64, i1 } %153, 0
  %156 = select i1 %154, i64 -1, i64 %155
  %157 = call noalias noundef nonnull ptr @_Znam(i64 noundef %156) #10
  store ptr %157, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %158 = load i32, ptr %6, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %159, i64 4)
  %161 = extractvalue { i64, i1 } %160, 1
  %162 = extractvalue { i64, i1 } %160, 0
  %163 = select i1 %161, i64 -1, i64 %162
  %164 = call noalias noundef nonnull ptr @_Znam(i64 noundef %163) #10
  store ptr %164, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  store i64 0, ptr %19, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %340, %150
  %166 = load i32, ptr %20, align 4, !tbaa !5
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 8, ptr %21, align 4
  br label %343

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #9
  store i16 0, ptr %22, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #9
  store i16 0, ptr %23, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !5
  %171 = load ptr, ptr %5, align 8, !tbaa !9
  %172 = load i32, ptr %20, align 4, !tbaa !5
  %173 = mul nsw i32 %172, 3
  %174 = add nsw i32 2, %173
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %171, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = load ptr, ptr %17, align 8, !tbaa !9
  %179 = load i32, ptr %20, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i32, ptr %178, i64 %180
  %182 = call noundef zeroext i1 @_Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf(ptr noundef %177, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 2 dereferenceable(2) %22, ptr noundef nonnull align 2 dereferenceable(2) %23, ptr noundef nonnull align 4 dereferenceable(4) %181, ptr noundef %18, ptr noundef %13)
  br i1 %182, label %183, label %336

183:                                              ; preds = %170
  %184 = load i32, ptr %20, align 4, !tbaa !5
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %186, label %192

186:                                              ; preds = %183
  %187 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %187, ptr %14, align 4, !tbaa !5
  %188 = load i16, ptr %22, align 2, !tbaa !18
  %189 = zext i16 %188 to i32
  store i32 %189, ptr %15, align 4, !tbaa !5
  %190 = load i16, ptr %23, align 2, !tbaa !18
  %191 = zext i16 %190 to i32
  store i32 %191, ptr %16, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %186, %183
  %193 = load i64, ptr %19, align 8, !tbaa !16
  %194 = load ptr, ptr %17, align 8, !tbaa !9
  %195 = load i32, ptr %20, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds i32, ptr %194, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = zext i32 %198 to i64
  %200 = icmp slt i64 %193, %199
  br i1 %200, label %201, label %208

201:                                              ; preds = %192
  %202 = load ptr, ptr %17, align 8, !tbaa !9
  %203 = load i32, ptr %20, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds i32, ptr %202, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = zext i32 %206 to i64
  br label %210

208:                                              ; preds = %192
  %209 = load i64, ptr %19, align 8, !tbaa !16
  br label %210

210:                                              ; preds = %208, %201
  %211 = phi i64 [ %207, %201 ], [ %209, %208 ]
  store i64 %211, ptr %19, align 8, !tbaa !16
  %212 = load i32, ptr %24, align 4, !tbaa !5
  %213 = load i32, ptr %14, align 4, !tbaa !5
  %214 = icmp ne i32 %212, %213
  br i1 %214, label %215, label %229

215:                                              ; preds = %210
  %216 = load ptr, ptr %5, align 8, !tbaa !9
  %217 = load i32, ptr %20, align 4, !tbaa !5
  %218 = mul nsw i32 %217, 3
  %219 = add nsw i32 2, %218
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds ptr, ptr %216, i64 %220
  %222 = load ptr, ptr %221, align 8, !tbaa !9
  %223 = load i32, ptr %24, align 4, !tbaa !5
  %224 = load ptr, ptr %5, align 8, !tbaa !9
  %225 = getelementptr inbounds ptr, ptr %224, i64 2
  %226 = load ptr, ptr %225, align 8, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !5
  %228 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %222, i32 noundef %223, ptr noundef %226, i32 noundef %227)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %337

229:                                              ; preds = %210
  %230 = load i16, ptr %22, align 2, !tbaa !18
  %231 = zext i16 %230 to i32
  %232 = load i32, ptr %15, align 4, !tbaa !5
  %233 = icmp ne i32 %231, %232
  br i1 %233, label %234, label %249

234:                                              ; preds = %229
  %235 = load ptr, ptr %5, align 8, !tbaa !9
  %236 = load i32, ptr %20, align 4, !tbaa !5
  %237 = mul nsw i32 %236, 3
  %238 = add nsw i32 2, %237
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds ptr, ptr %235, i64 %239
  %241 = load ptr, ptr %240, align 8, !tbaa !9
  %242 = load i16, ptr %22, align 2, !tbaa !18
  %243 = zext i16 %242 to i32
  %244 = load ptr, ptr %5, align 8, !tbaa !9
  %245 = getelementptr inbounds ptr, ptr %244, i64 2
  %246 = load ptr, ptr %245, align 8, !tbaa !9
  %247 = load i32, ptr %15, align 4, !tbaa !5
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %241, i32 noundef %243, ptr noundef %246, i32 noundef %247)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %337

249:                                              ; preds = %229
  %250 = load i16, ptr %23, align 2, !tbaa !18
  %251 = zext i16 %250 to i32
  %252 = load i32, ptr %16, align 4, !tbaa !5
  %253 = icmp ne i32 %251, %252
  br i1 %253, label %254, label %269

254:                                              ; preds = %249
  %255 = load ptr, ptr %5, align 8, !tbaa !9
  %256 = load i32, ptr %20, align 4, !tbaa !5
  %257 = mul nsw i32 %256, 3
  %258 = add nsw i32 2, %257
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds ptr, ptr %255, i64 %259
  %261 = load ptr, ptr %260, align 8, !tbaa !9
  %262 = load i16, ptr %23, align 2, !tbaa !18
  %263 = zext i16 %262 to i32
  %264 = load ptr, ptr %5, align 8, !tbaa !9
  %265 = getelementptr inbounds ptr, ptr %264, i64 2
  %266 = load ptr, ptr %265, align 8, !tbaa !9
  %267 = load i32, ptr %16, align 4, !tbaa !5
  %268 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %261, i32 noundef %263, ptr noundef %266, i32 noundef %267)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %337

269:                                              ; preds = %249
  %270 = load ptr, ptr %18, align 8, !tbaa !9
  %271 = icmp eq ptr %270, null
  br i1 %271, label %273, label %272

272:                                              ; preds = %269
  call void @_ZdlPvm(ptr noundef %270, i64 noundef 1) #11
  br label %273

273:                                              ; preds = %272, %269
  %274 = load i16, ptr %23, align 2, !tbaa !18
  %275 = zext i16 %274 to i32
  %276 = icmp sgt i32 %275, 1
  br i1 %276, label %277, label %328

277:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %278

278:                                              ; preds = %324, %277
  %279 = load i32, ptr %25, align 4, !tbaa !5
  %280 = load i16, ptr %23, align 2, !tbaa !18
  %281 = zext i16 %280 to i32
  %282 = icmp slt i32 %279, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %278
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %327

284:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %285

285:                                              ; preds = %312, %284
  %286 = load i32, ptr %26, align 4, !tbaa !5
  %287 = load ptr, ptr %17, align 8, !tbaa !9
  %288 = load i32, ptr %20, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds i32, ptr %287, i64 %289
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %292 = icmp ult i32 %286, %291
  br i1 %292, label %294, label %293

293:                                              ; preds = %285
  store i32 14, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %315

294:                                              ; preds = %285
  %295 = load ptr, ptr %13, align 8, !tbaa !9
  %296 = load i32, ptr %25, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds ptr, ptr %295, i64 %297
  %299 = load ptr, ptr %298, align 8, !tbaa !9
  %300 = load i32, ptr %26, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds float, ptr %299, i64 %301
  %303 = load float, ptr %302, align 4, !tbaa !13
  %304 = load ptr, ptr %13, align 8, !tbaa !9
  %305 = getelementptr inbounds ptr, ptr %304, i64 0
  %306 = load ptr, ptr %305, align 8, !tbaa !9
  %307 = load i32, ptr %26, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds float, ptr %306, i64 %308
  %310 = load float, ptr %309, align 4, !tbaa !13
  %311 = fadd float %310, %303
  store float %311, ptr %309, align 4, !tbaa !13
  br label %312

312:                                              ; preds = %294
  %313 = load i32, ptr %26, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %26, align 4, !tbaa !5
  br label %285, !llvm.loop !20

315:                                              ; preds = %293
  %316 = load ptr, ptr %13, align 8, !tbaa !9
  %317 = load i32, ptr %25, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds ptr, ptr %316, i64 %318
  %320 = load ptr, ptr %319, align 8, !tbaa !9
  %321 = icmp eq ptr %320, null
  br i1 %321, label %323, label %322

322:                                              ; preds = %315
  call void @_ZdlPvm(ptr noundef %320, i64 noundef 4) #11
  br label %323

323:                                              ; preds = %322, %315
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %25, align 4, !tbaa !5
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %25, align 4, !tbaa !5
  br label %278, !llvm.loop !21

327:                                              ; preds = %283
  br label %328

328:                                              ; preds = %327, %273
  %329 = load ptr, ptr %13, align 8, !tbaa !9
  %330 = getelementptr inbounds ptr, ptr %329, i64 0
  %331 = load ptr, ptr %330, align 8, !tbaa !9
  %332 = load ptr, ptr %12, align 8, !tbaa !9
  %333 = load i32, ptr %20, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds ptr, ptr %332, i64 %334
  store ptr %331, ptr %335, align 8, !tbaa !9
  br label %336

336:                                              ; preds = %328, %170
  store i32 0, ptr %21, align 4
  br label %337

337:                                              ; preds = %336, %254, %234, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #9
  %338 = load i32, ptr %21, align 4
  switch i32 %338, label %343 [
    i32 0, label %339
  ]

339:                                              ; preds = %337
  br label %340

340:                                              ; preds = %339
  %341 = load i32, ptr %20, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %20, align 4, !tbaa !5
  br label %165, !llvm.loop !22

343:                                              ; preds = %337, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  %344 = load i32, ptr %21, align 4
  switch i32 %344, label %526 [
    i32 8, label %345
  ]

345:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %346 = load i64, ptr %19, align 8, !tbaa !16
  %347 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %346, i64 4)
  %348 = extractvalue { i64, i1 } %347, 1
  %349 = extractvalue { i64, i1 } %347, 0
  %350 = select i1 %348, i64 -1, i64 %349
  %351 = call noalias noundef nonnull ptr @_Znam(i64 noundef %350) #10
  store ptr %351, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %352 = load i64, ptr %19, align 8, !tbaa !16
  %353 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %352, i64 4)
  %354 = extractvalue { i64, i1 } %353, 1
  %355 = extractvalue { i64, i1 } %353, 0
  %356 = select i1 %354, i64 -1, i64 %355
  %357 = call noalias noundef nonnull ptr @_Znam(i64 noundef %356) #10
  store ptr %357, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %358 = load i64, ptr %19, align 8, !tbaa !16
  %359 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %358, i64 4)
  %360 = extractvalue { i64, i1 } %359, 1
  %361 = extractvalue { i64, i1 } %359, 0
  %362 = select i1 %360, i64 -1, i64 %361
  %363 = call noalias noundef nonnull ptr @_Znam(i64 noundef %362) #10
  store ptr %363, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %364 = load i64, ptr %19, align 8, !tbaa !16
  %365 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %364, i64 4)
  %366 = extractvalue { i64, i1 } %365, 1
  %367 = extractvalue { i64, i1 } %365, 0
  %368 = select i1 %366, i64 -1, i64 %367
  %369 = call noalias noundef nonnull ptr @_Znam(i64 noundef %368) #10
  store ptr %369, ptr %30, align 8, !tbaa !9
  %370 = load ptr, ptr %27, align 8, !tbaa !9
  %371 = load i64, ptr %19, align 8, !tbaa !16
  %372 = mul i64 %371, 4
  call void @llvm.memset.p0.i64(ptr align 4 %370, i8 0, i64 %372, i1 false)
  %373 = load ptr, ptr %28, align 8, !tbaa !9
  %374 = load i64, ptr %19, align 8, !tbaa !16
  %375 = mul i64 %374, 4
  call void @llvm.memset.p0.i64(ptr align 4 %373, i8 0, i64 %375, i1 false)
  %376 = load ptr, ptr %29, align 8, !tbaa !9
  %377 = load i64, ptr %19, align 8, !tbaa !16
  %378 = mul i64 %377, 4
  call void @llvm.memset.p0.i64(ptr align 4 %376, i8 0, i64 %378, i1 false)
  %379 = load ptr, ptr %30, align 8, !tbaa !9
  %380 = load i64, ptr %19, align 8, !tbaa !16
  %381 = mul i64 %380, 4
  call void @llvm.memset.p0.i64(ptr align 4 %379, i8 0, i64 %381, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %382

382:                                              ; preds = %506, %345
  %383 = load i32, ptr %31, align 4, !tbaa !5
  %384 = load i32, ptr %6, align 4, !tbaa !5
  %385 = icmp slt i32 %383, %384
  br i1 %385, label %387, label %386

386:                                              ; preds = %382
  store i32 17, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %509

387:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %388

388:                                              ; preds = %502, %387
  %389 = load i32, ptr %32, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = load i64, ptr %19, align 8, !tbaa !16
  %392 = icmp slt i64 %390, %391
  br i1 %392, label %393, label %401

393:                                              ; preds = %388
  %394 = load i32, ptr %32, align 4, !tbaa !5
  %395 = load ptr, ptr %17, align 8, !tbaa !9
  %396 = load i32, ptr %31, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds i32, ptr %395, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !5
  %400 = icmp ult i32 %394, %399
  br label %401

401:                                              ; preds = %393, %388
  %402 = phi i1 [ false, %388 ], [ %400, %393 ]
  br i1 %402, label %404, label %403

403:                                              ; preds = %401
  store i32 20, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %505

404:                                              ; preds = %401
  %405 = call double @sqrt(double noundef 2.000000e+00) #9
  %406 = fdiv double 1.000000e+00, %405
  %407 = load ptr, ptr %12, align 8, !tbaa !9
  %408 = load i32, ptr %31, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds ptr, ptr %407, i64 %409
  %411 = load ptr, ptr %410, align 8, !tbaa !9
  %412 = load i32, ptr %32, align 4, !tbaa !5
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds float, ptr %411, i64 %413
  %415 = load float, ptr %414, align 4, !tbaa !13
  %416 = fpext float %415 to double
  %417 = load ptr, ptr %27, align 8, !tbaa !9
  %418 = load i32, ptr %32, align 4, !tbaa !5
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds float, ptr %417, i64 %419
  %421 = load float, ptr %420, align 4, !tbaa !13
  %422 = fpext float %421 to double
  %423 = call double @llvm.fmuladd.f64(double %406, double %416, double %422)
  %424 = fptrunc double %423 to float
  store float %424, ptr %420, align 4, !tbaa !13
  %425 = load ptr, ptr %7, align 8, !tbaa !9
  %426 = load i32, ptr %31, align 4, !tbaa !5
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds float, ptr %425, i64 %427
  %429 = load float, ptr %428, align 4, !tbaa !13
  %430 = call noundef float @_ZSt3cosf(float noundef %429)
  %431 = load ptr, ptr %8, align 8, !tbaa !9
  %432 = load i32, ptr %31, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds float, ptr %431, i64 %433
  %435 = load float, ptr %434, align 4, !tbaa !13
  %436 = call noundef float @_ZSt3cosf(float noundef %435)
  %437 = fmul float %430, %436
  %438 = load ptr, ptr %12, align 8, !tbaa !9
  %439 = load i32, ptr %31, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds ptr, ptr %438, i64 %440
  %442 = load ptr, ptr %441, align 8, !tbaa !9
  %443 = load i32, ptr %32, align 4, !tbaa !5
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds float, ptr %442, i64 %444
  %446 = load float, ptr %445, align 4, !tbaa !13
  %447 = load ptr, ptr %28, align 8, !tbaa !9
  %448 = load i32, ptr %32, align 4, !tbaa !5
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds float, ptr %447, i64 %449
  %451 = load float, ptr %450, align 4, !tbaa !13
  %452 = call float @llvm.fmuladd.f32(float %437, float %446, float %451)
  store float %452, ptr %450, align 4, !tbaa !13
  %453 = load ptr, ptr %7, align 8, !tbaa !9
  %454 = load i32, ptr %31, align 4, !tbaa !5
  %455 = sext i32 %454 to i64
  %456 = getelementptr inbounds float, ptr %453, i64 %455
  %457 = load float, ptr %456, align 4, !tbaa !13
  %458 = call noundef float @_ZSt3sinf(float noundef %457)
  %459 = load ptr, ptr %8, align 8, !tbaa !9
  %460 = load i32, ptr %31, align 4, !tbaa !5
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds float, ptr %459, i64 %461
  %463 = load float, ptr %462, align 4, !tbaa !13
  %464 = call noundef float @_ZSt3cosf(float noundef %463)
  %465 = fmul float %458, %464
  %466 = load ptr, ptr %12, align 8, !tbaa !9
  %467 = load i32, ptr %31, align 4, !tbaa !5
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds ptr, ptr %466, i64 %468
  %470 = load ptr, ptr %469, align 8, !tbaa !9
  %471 = load i32, ptr %32, align 4, !tbaa !5
  %472 = sext i32 %471 to i64
  %473 = getelementptr inbounds float, ptr %470, i64 %472
  %474 = load float, ptr %473, align 4, !tbaa !13
  %475 = load ptr, ptr %29, align 8, !tbaa !9
  %476 = load i32, ptr %32, align 4, !tbaa !5
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds float, ptr %475, i64 %477
  %479 = load float, ptr %478, align 4, !tbaa !13
  %480 = call float @llvm.fmuladd.f32(float %465, float %474, float %479)
  store float %480, ptr %478, align 4, !tbaa !13
  %481 = load ptr, ptr %8, align 8, !tbaa !9
  %482 = load i32, ptr %31, align 4, !tbaa !5
  %483 = sext i32 %482 to i64
  %484 = getelementptr inbounds float, ptr %481, i64 %483
  %485 = load float, ptr %484, align 4, !tbaa !13
  %486 = call noundef float @_ZSt3sinf(float noundef %485)
  %487 = load ptr, ptr %12, align 8, !tbaa !9
  %488 = load i32, ptr %31, align 4, !tbaa !5
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds ptr, ptr %487, i64 %489
  %491 = load ptr, ptr %490, align 8, !tbaa !9
  %492 = load i32, ptr %32, align 4, !tbaa !5
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds float, ptr %491, i64 %493
  %495 = load float, ptr %494, align 4, !tbaa !13
  %496 = load ptr, ptr %30, align 8, !tbaa !9
  %497 = load i32, ptr %32, align 4, !tbaa !5
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds float, ptr %496, i64 %498
  %500 = load float, ptr %499, align 4, !tbaa !13
  %501 = call float @llvm.fmuladd.f32(float %486, float %495, float %500)
  store float %501, ptr %499, align 4, !tbaa !13
  br label %502

502:                                              ; preds = %404
  %503 = load i32, ptr %32, align 4, !tbaa !5
  %504 = add nsw i32 %503, 1
  store i32 %504, ptr %32, align 4, !tbaa !5
  br label %388, !llvm.loop !23

505:                                              ; preds = %403
  br label %506

506:                                              ; preds = %505
  %507 = load i32, ptr %31, align 4, !tbaa !5
  %508 = add nsw i32 %507, 1
  store i32 %508, ptr %31, align 4, !tbaa !5
  br label %382, !llvm.loop !24

509:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #9
  %510 = load ptr, ptr %27, align 8, !tbaa !9
  %511 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  store ptr %510, ptr %511, align 16, !tbaa !9
  %512 = load ptr, ptr %28, align 8, !tbaa !9
  %513 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  store ptr %512, ptr %513, align 8, !tbaa !9
  %514 = load ptr, ptr %29, align 8, !tbaa !9
  %515 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  store ptr %514, ptr %515, align 16, !tbaa !9
  %516 = load ptr, ptr %30, align 8, !tbaa !9
  %517 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  store ptr %516, ptr %517, align 8, !tbaa !9
  %518 = load ptr, ptr %5, align 8, !tbaa !9
  %519 = getelementptr inbounds ptr, ptr %518, i64 1
  %520 = load ptr, ptr %519, align 8, !tbaa !9
  %521 = load i32, ptr %14, align 4, !tbaa !5
  %522 = load i32, ptr %15, align 4, !tbaa !5
  %523 = load i64, ptr %19, align 8, !tbaa !16
  %524 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %525 = call noundef zeroext i1 @_Z14WriteWaveFileFPKciiilPPf(ptr noundef %520, i32 noundef %521, i32 noundef 4, i32 noundef %522, i64 noundef %523, ptr noundef %524)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %526

526:                                              ; preds = %509, %343
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %527

527:                                              ; preds = %526, %36
  %528 = load i32, ptr %3, align 4
  ret i32 %528
}

declare i32 @printf(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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

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

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

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

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

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

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

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 = { nobuiltin 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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 = !{!"long", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !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 [62 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 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 ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  %7 = alloca i32, align 4
  %8 = alloca [4 x ptr], align 16
  %9 = icmp slt i32 %0, 5
  br i1 %9, label %10, label %14

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)
  br label %210

14:                                               ; preds = %2
  %15 = add nsw i32 %0, -2
  %16 = udiv i32 %15, 3
  %17 = zext nneg i32 %16 to i64
  %18 = shl nuw nsw i64 %17, 2
  %19 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %18) #10
  %20 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %18) #10
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %16)
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %23)
  %25 = zext nneg i32 %0 to i64
  br label %35

.preheader190:                                    ; preds = %35
  %.not244 = icmp ugt i32 %15, 2
  br i1 %.not244, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader190
  %min.iters.check = icmp ult i32 %15, 12
  br i1 %min.iters.check, label %.lr.ph.preheader377, label %vector.ph

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

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %17, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %26 = getelementptr inbounds float, ptr %19, i64 %index
  %wide.load = load <4 x float>, ptr %26, align 4, !tbaa !9
  %27 = fpext <4 x float> %wide.load to <4 x double>
  %28 = fmul <4 x double> %27, <double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91>
  %29 = fptrunc <4 x double> %28 to <4 x float>
  store <4 x float> %29, ptr %26, align 4, !tbaa !9
  %30 = getelementptr inbounds float, ptr %20, i64 %index
  %wide.load340 = load <4 x float>, ptr %30, align 4, !tbaa !9
  %31 = fpext <4 x float> %wide.load340 to <4 x double>
  %32 = fmul <4 x double> %31, <double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91, double 0x3F91DF46A2506B91>
  %33 = fptrunc <4 x double> %32 to <4 x float>
  store <4 x float> %33, ptr %30, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %17
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader377

35:                                               ; preds = %14, %35
  %indvars.iv = phi i64 [ 2, %14 ], [ %indvars.iv.next, %35 ]
  %36 = udiv i64 %indvars.iv, 3
  %37 = trunc nuw i64 %36 to i32
  %38 = add nsw i32 %37, 1
  %39 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %sext = shl i64 %36, 32
  %42 = ashr exact i64 %sext, 32
  %43 = getelementptr inbounds float, ptr %19, i64 %42
  %44 = tail call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %41, ptr noundef nonnull @.str.4, ptr noundef nonnull %43) #11
  %45 = getelementptr inbounds i8, ptr %39, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds float, ptr %20, i64 %42
  %48 = tail call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %46, ptr noundef nonnull @.str.4, ptr noundef nonnull %47) #11
  %49 = load ptr, ptr %39, align 8, !tbaa !5
  %50 = load ptr, ptr %40, align 8, !tbaa !5
  %51 = load ptr, ptr %45, align 8, !tbaa !5
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %38, ptr noundef %49, i32 noundef %38, ptr noundef %50, i32 noundef %38, ptr noundef %51)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 3
  %53 = icmp ult i64 %indvars.iv.next, %25
  br i1 %53, label %35, label %.preheader190, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.preheader190
  %54 = shl nuw nsw i64 %17, 3
  %55 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %54) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #11
  %56 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %18) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  br i1 %.not244, label %.lr.ph233.preheader, label %._crit_edge234

.lr.ph233.preheader:                              ; preds = %._crit_edge
  %umax = tail call i32 @llvm.umax.i32(i32 %16, i32 1)
  %wide.trip.count282 = zext nneg i32 %umax to i64
  br label %.lr.ph233

.lr.ph:                                           ; preds = %.lr.ph.preheader377, %.lr.ph
  %indvars.iv268 = phi i64 [ %indvars.iv.next269, %.lr.ph ], [ %indvars.iv268.ph, %.lr.ph.preheader377 ]
  %57 = getelementptr inbounds float, ptr %19, i64 %indvars.iv268
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fpext float %58 to double
  %60 = fmul double %59, 0x3F91DF46A2506B91
  %61 = fptrunc double %60 to float
  store float %61, ptr %57, align 4, !tbaa !9
  %62 = getelementptr inbounds float, ptr %20, i64 %indvars.iv268
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = fpext float %63 to double
  %65 = fmul double %64, 0x3F91DF46A2506B91
  %66 = fptrunc double %65 to float
  store float %66, ptr %62, align 4, !tbaa !9
  %indvars.iv.next269 = add nuw nsw i64 %indvars.iv268, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next269, %17
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

.lr.ph233:                                        ; preds = %.lr.ph233.preheader, %155
  %indvars.iv279 = phi i64 [ 0, %.lr.ph233.preheader ], [ %indvars.iv.next280, %155 ]
  %.0144231 = phi i32 [ undef, %.lr.ph233.preheader ], [ %.3147, %155 ]
  %.0154229 = phi i64 [ 0, %.lr.ph233.preheader ], [ %.2156, %155 ]
  %.0158228 = phi i32 [ undef, %.lr.ph233.preheader ], [ %.3161, %155 ]
  %.0163227 = phi i32 [ undef, %.lr.ph233.preheader ], [ %.3166, %155 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #11
  store i16 0, ptr %5, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #11
  store i16 0, ptr %6, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #11
  store i32 0, ptr %7, align 4, !tbaa !19
  %.idx = mul i64 %indvars.iv279, 24
  %67 = getelementptr inbounds i8, ptr %1, i64 %.idx
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds i32, ptr %56, i64 %indvars.iv279
  %71 = call noundef zeroext i1 @_Z12ReadWaveFilePKcRjRtS2_S1_PPhPPPf(ptr noundef %69, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 2 dereferenceable(2) %5, ptr noundef nonnull align 2 dereferenceable(2) %6, ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull %4, ptr noundef nonnull %3)
  br i1 %71, label %72, label %155

72:                                               ; preds = %.lr.ph233
  %73 = icmp eq i64 %indvars.iv279, 0
  %74 = load i32, ptr %7, align 4
  %75 = load i16, ptr %5, align 2
  %76 = zext i16 %75 to i32
  %77 = load i16, ptr %6, align 2
  %78 = zext i16 %77 to i32
  %.1164 = select i1 %73, i32 %78, i32 %.0163227
  %79 = load i32, ptr %70, align 4, !tbaa !19
  %80 = zext i32 %79 to i64
  %81 = call i64 @llvm.smax.i64(i64 %.0154229, i64 %80)
  %.not297 = icmp eq i32 %.0144231, %74
  %.not = select i1 %73, i1 true, i1 %.not297
  br i1 %.not, label %88, label %82

82:                                               ; preds = %72
  %83 = getelementptr inbounds i8, ptr %67, i64 16
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %1, i64 16
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %84, i32 noundef %74, ptr noundef %86, i32 noundef %.0144231)
  br label %.thread184

88:                                               ; preds = %72
  %.not176319 = icmp eq i32 %.0158228, %76
  %.not176 = select i1 %73, i1 true, i1 %.not176319
  br i1 %.not176, label %95, label %89

89:                                               ; preds = %88
  %90 = getelementptr inbounds i8, ptr %67, i64 16
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %1, i64 16
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %91, i32 noundef %76, ptr noundef %93, i32 noundef %.0158228)
  br label %.thread184

95:                                               ; preds = %88
  %.not177 = icmp eq i32 %.1164, %78
  br i1 %.not177, label %102, label %96

96:                                               ; preds = %95
  %97 = getelementptr inbounds i8, ptr %67, i64 16
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %1, i64 16
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %98, i32 noundef %78, ptr noundef %100, i32 noundef %.1164)
  br label %.thread184

102:                                              ; preds = %95
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = icmp eq ptr %103, null
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  call void @_ZdlPvm(ptr noundef nonnull %103, i64 noundef 1) #12
  %.pre = load i16, ptr %6, align 2
  br label %106

106:                                              ; preds = %105, %102
  %107 = phi i16 [ %.pre, %105 ], [ %77, %102 ]
  %108 = icmp ugt i16 %107, 1
  br i1 %108, label %.preheader188, label %.loopexit

.preheader188:                                    ; preds = %106, %148
  %109 = phi i16 [ %149, %148 ], [ %107, %106 ]
  %indvars.iv276 = phi i64 [ %indvars.iv.next277, %148 ], [ 1, %106 ]
  %110 = load i32, ptr %70, align 4, !tbaa !19
  %.not245 = icmp eq i32 %110, 0
  %.pre294 = load ptr, ptr %3, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds ptr, ptr %.pre294, i64 %indvars.iv276
  %.pre295 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !5
  br i1 %.not245, label %._crit_edge221, label %.lr.ph220

.lr.ph220:                                        ; preds = %.preheader188
  %111 = load ptr, ptr %.pre294, align 8, !tbaa !5
  %wide.trip.count274 = zext i32 %110 to i64
  %min.iters.check344 = icmp ult i32 %110, 8
  br i1 %min.iters.check344, label %scalar.ph343.preheader, label %vector.memcheck

scalar.ph343.preheader:                           ; preds = %middle.block342, %vector.memcheck, %.lr.ph220
  %indvars.iv271.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph220 ], [ %n.vec347, %middle.block342 ]
  %xtraiter = and i64 %wide.trip.count274, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph343.prol.loopexit, label %scalar.ph343.prol

scalar.ph343.prol:                                ; preds = %scalar.ph343.preheader, %scalar.ph343.prol
  %indvars.iv271.prol = phi i64 [ %indvars.iv.next272.prol, %scalar.ph343.prol ], [ %indvars.iv271.ph, %scalar.ph343.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph343.prol ], [ 0, %scalar.ph343.preheader ]
  %112 = getelementptr inbounds float, ptr %.pre295, i64 %indvars.iv271.prol
  %113 = load float, ptr %112, align 4, !tbaa !9
  %114 = getelementptr inbounds float, ptr %111, i64 %indvars.iv271.prol
  %115 = load float, ptr %114, align 4, !tbaa !9
  %116 = fadd float %113, %115
  store float %116, ptr %114, align 4, !tbaa !9
  %indvars.iv.next272.prol = add nuw nsw i64 %indvars.iv271.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph343.prol.loopexit, label %scalar.ph343.prol, !llvm.loop !21

scalar.ph343.prol.loopexit:                       ; preds = %scalar.ph343.prol, %scalar.ph343.preheader
  %indvars.iv271.unr = phi i64 [ %indvars.iv271.ph, %scalar.ph343.preheader ], [ %indvars.iv.next272.prol, %scalar.ph343.prol ]
  %117 = sub nsw i64 %indvars.iv271.ph, %wide.trip.count274
  %118 = icmp ugt i64 %117, -4
  br i1 %118, label %._crit_edge221.thread, label %scalar.ph343

vector.memcheck:                                  ; preds = %.lr.ph220
  %119 = shl nuw nsw i64 %wide.trip.count274, 2
  %scevgep = getelementptr i8, ptr %111, i64 %119
  %scevgep341 = getelementptr i8, ptr %.pre295, i64 %119
  %bound0 = icmp ult ptr %111, %scevgep341
  %bound1 = icmp ult ptr %.pre295, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph343.preheader, label %vector.ph345

vector.ph345:                                     ; preds = %vector.memcheck
  %n.vec347 = and i64 %wide.trip.count274, 4294967288
  br label %vector.body349

vector.body349:                                   ; preds = %vector.body349, %vector.ph345
  %index350 = phi i64 [ 0, %vector.ph345 ], [ %index.next355, %vector.body349 ]
  %120 = getelementptr inbounds float, ptr %.pre295, i64 %index350
  %121 = getelementptr inbounds i8, ptr %120, i64 16
  %wide.load351 = load <4 x float>, ptr %120, align 4, !tbaa !9, !alias.scope !23
  %wide.load352 = load <4 x float>, ptr %121, align 4, !tbaa !9, !alias.scope !23
  %122 = getelementptr inbounds float, ptr %111, i64 %index350
  %123 = getelementptr inbounds i8, ptr %122, i64 16
  %wide.load353 = load <4 x float>, ptr %122, align 4, !tbaa !9, !alias.scope !26, !noalias !23
  %wide.load354 = load <4 x float>, ptr %123, align 4, !tbaa !9, !alias.scope !26, !noalias !23
  %124 = fadd <4 x float> %wide.load351, %wide.load353
  %125 = fadd <4 x float> %wide.load352, %wide.load354
  store <4 x float> %124, ptr %122, align 4, !tbaa !9, !alias.scope !26, !noalias !23
  store <4 x float> %125, ptr %123, align 4, !tbaa !9, !alias.scope !26, !noalias !23
  %index.next355 = add nuw i64 %index350, 8
  %126 = icmp eq i64 %index.next355, %n.vec347
  br i1 %126, label %middle.block342, label %vector.body349, !llvm.loop !28

middle.block342:                                  ; preds = %vector.body349
  %cmp.n356 = icmp eq i64 %n.vec347, %wide.trip.count274
  br i1 %cmp.n356, label %._crit_edge221.thread, label %scalar.ph343.preheader

._crit_edge221:                                   ; preds = %.preheader188
  %127 = icmp eq ptr %.pre295, null
  br i1 %127, label %148, label %._crit_edge221.thread

scalar.ph343:                                     ; preds = %scalar.ph343.prol.loopexit, %scalar.ph343
  %indvars.iv271 = phi i64 [ %indvars.iv.next272.3, %scalar.ph343 ], [ %indvars.iv271.unr, %scalar.ph343.prol.loopexit ]
  %128 = getelementptr inbounds float, ptr %.pre295, i64 %indvars.iv271
  %129 = load float, ptr %128, align 4, !tbaa !9
  %130 = getelementptr inbounds float, ptr %111, i64 %indvars.iv271
  %131 = load float, ptr %130, align 4, !tbaa !9
  %132 = fadd float %129, %131
  store float %132, ptr %130, align 4, !tbaa !9
  %indvars.iv.next272 = add nuw nsw i64 %indvars.iv271, 1
  %133 = getelementptr inbounds float, ptr %.pre295, i64 %indvars.iv.next272
  %134 = load float, ptr %133, align 4, !tbaa !9
  %135 = getelementptr inbounds float, ptr %111, i64 %indvars.iv.next272
  %136 = load float, ptr %135, align 4, !tbaa !9
  %137 = fadd float %134, %136
  store float %137, ptr %135, align 4, !tbaa !9
  %indvars.iv.next272.1 = add nuw nsw i64 %indvars.iv271, 2
  %138 = getelementptr inbounds float, ptr %.pre295, i64 %indvars.iv.next272.1
  %139 = load float, ptr %138, align 4, !tbaa !9
  %140 = getelementptr inbounds float, ptr %111, i64 %indvars.iv.next272.1
  %141 = load float, ptr %140, align 4, !tbaa !9
  %142 = fadd float %139, %141
  store float %142, ptr %140, align 4, !tbaa !9
  %indvars.iv.next272.2 = add nuw nsw i64 %indvars.iv271, 3
  %143 = getelementptr inbounds float, ptr %.pre295, i64 %indvars.iv.next272.2
  %144 = load float, ptr %143, align 4, !tbaa !9
  %145 = getelementptr inbounds float, ptr %111, i64 %indvars.iv.next272.2
  %146 = load float, ptr %145, align 4, !tbaa !9
  %147 = fadd float %144, %146
  store float %147, ptr %145, align 4, !tbaa !9
  %indvars.iv.next272.3 = add nuw nsw i64 %indvars.iv271, 4
  %exitcond275.not.3 = icmp eq i64 %indvars.iv.next272.3, %wide.trip.count274
  br i1 %exitcond275.not.3, label %._crit_edge221.thread, label %scalar.ph343, !llvm.loop !29

._crit_edge221.thread:                            ; preds = %scalar.ph343.prol.loopexit, %scalar.ph343, %middle.block342, %._crit_edge221
  call void @_ZdlPvm(ptr noundef nonnull %.pre295, i64 noundef 4) #12
  %.pre296 = load i16, ptr %6, align 2, !tbaa !17
  br label %148

148:                                              ; preds = %._crit_edge221, %._crit_edge221.thread
  %149 = phi i16 [ %109, %._crit_edge221 ], [ %.pre296, %._crit_edge221.thread ]
  %indvars.iv.next277 = add nuw nsw i64 %indvars.iv276, 1
  %150 = zext i16 %149 to i64
  %151 = icmp ult i64 %indvars.iv.next277, %150
  br i1 %151, label %.preheader188, label %.loopexit, !llvm.loop !30

.loopexit:                                        ; preds = %148, %106
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds ptr, ptr %55, i64 %indvars.iv279
  store ptr %153, ptr %154, align 8, !tbaa !5
  br label %155

.thread184:                                       ; preds = %96, %89, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #11
  br label %209

155:                                              ; preds = %.loopexit, %.lr.ph233
  %.3166 = phi i32 [ %78, %.loopexit ], [ %.0163227, %.lr.ph233 ]
  %.3161 = phi i32 [ %76, %.loopexit ], [ %.0158228, %.lr.ph233 ]
  %.2156 = phi i64 [ %81, %.loopexit ], [ %.0154229, %.lr.ph233 ]
  %.3147 = phi i32 [ %74, %.loopexit ], [ %.0144231, %.lr.ph233 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #11
  %indvars.iv.next280 = add nuw nsw i64 %indvars.iv279, 1
  %exitcond283.not = icmp eq i64 %indvars.iv.next280, %wide.trip.count282
  br i1 %exitcond283.not, label %._crit_edge234, label %.lr.ph233, !llvm.loop !31

._crit_edge234:                                   ; preds = %155, %._crit_edge
  %.0158.lcssa = phi i32 [ undef, %._crit_edge ], [ %.3161, %155 ]
  %.0154.lcssa = phi i64 [ 0, %._crit_edge ], [ %.2156, %155 ]
  %.0144.lcssa = phi i32 [ undef, %._crit_edge ], [ %.3147, %155 ]
  %156 = shl nuw nsw i64 %.0154.lcssa, 2
  %157 = call noalias noundef nonnull ptr @_Znam(i64 noundef %156) #10
  %158 = call noalias noundef nonnull ptr @_Znam(i64 noundef %156) #10
  %159 = call noalias noundef nonnull ptr @_Znam(i64 noundef %156) #10
  %160 = call noalias noundef nonnull ptr @_Znam(i64 noundef %156) #10
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %157, i8 0, i64 %156, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %158, i8 0, i64 %156, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %159, i8 0, i64 %156, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %160, i8 0, i64 %156, i1 false)
  %161 = icmp sgt i64 %.0154.lcssa, 0
  %or.cond = and i1 %.not244, %161
  br i1 %or.cond, label %.preheader.us.preheader, label %._crit_edge241

.preheader.us.preheader:                          ; preds = %._crit_edge234
  %umax291 = call i32 @llvm.umax.i32(i32 %16, i32 1)
  %wide.trip.count292 = zext nneg i32 %umax291 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %.critedge.us
  %indvars.iv288 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next289, %.critedge.us ]
  %162 = getelementptr inbounds i32, ptr %56, i64 %indvars.iv288
  %163 = getelementptr inbounds ptr, ptr %55, i64 %indvars.iv288
  %164 = getelementptr inbounds float, ptr %19, i64 %indvars.iv288
  %165 = getelementptr inbounds float, ptr %20, i64 %indvars.iv288
  br label %166

166:                                              ; preds = %.preheader.us, %170
  %indvars.iv284 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next285, %170 ]
  %167 = load i32, ptr %162, align 4, !tbaa !19
  %168 = zext i32 %167 to i64
  %169 = icmp ult i64 %indvars.iv284, %168
  br i1 %169, label %170, label %.critedge.us

.critedge.us:                                     ; preds = %166, %170
  %indvars.iv.next289 = add nuw nsw i64 %indvars.iv288, 1
  %exitcond293.not = icmp eq i64 %indvars.iv.next289, %wide.trip.count292
  br i1 %exitcond293.not, label %._crit_edge241, label %.preheader.us, !llvm.loop !32

170:                                              ; preds = %166
  %171 = load ptr, ptr %163, align 8, !tbaa !5
  %172 = getelementptr inbounds float, ptr %171, i64 %indvars.iv284
  %173 = load float, ptr %172, align 4, !tbaa !9
  %174 = fpext float %173 to double
  %175 = getelementptr inbounds float, ptr %157, i64 %indvars.iv284
  %176 = load float, ptr %175, align 4, !tbaa !9
  %177 = fpext float %176 to double
  %178 = call double @llvm.fmuladd.f64(double %174, double 0x3FE6A09E667F3BCC, double %177)
  %179 = fptrunc double %178 to float
  store float %179, ptr %175, align 4, !tbaa !9
  %180 = load float, ptr %164, align 4, !tbaa !9
  %181 = call noundef float @_ZSt3cosf(float noundef %180)
  %182 = load float, ptr %165, align 4, !tbaa !9
  %183 = call noundef float @_ZSt3cosf(float noundef %182)
  %184 = fmul float %181, %183
  %185 = load float, ptr %172, align 4, !tbaa !9
  %186 = getelementptr inbounds float, ptr %158, i64 %indvars.iv284
  %187 = load float, ptr %186, align 4, !tbaa !9
  %188 = call float @llvm.fmuladd.f32(float %184, float %185, float %187)
  store float %188, ptr %186, align 4, !tbaa !9
  %189 = load float, ptr %164, align 4, !tbaa !9
  %190 = call noundef float @_ZSt3sinf(float noundef %189)
  %191 = load float, ptr %165, align 4, !tbaa !9
  %192 = call noundef float @_ZSt3cosf(float noundef %191)
  %193 = fmul float %190, %192
  %194 = load float, ptr %172, align 4, !tbaa !9
  %195 = getelementptr inbounds float, ptr %159, i64 %indvars.iv284
  %196 = load float, ptr %195, align 4, !tbaa !9
  %197 = call float @llvm.fmuladd.f32(float %193, float %194, float %196)
  store float %197, ptr %195, align 4, !tbaa !9
  %198 = load float, ptr %165, align 4, !tbaa !9
  %199 = call noundef float @_ZSt3sinf(float noundef %198)
  %200 = load float, ptr %172, align 4, !tbaa !9
  %201 = getelementptr inbounds float, ptr %160, i64 %indvars.iv284
  %202 = load float, ptr %201, align 4, !tbaa !9
  %203 = call float @llvm.fmuladd.f32(float %199, float %200, float %202)
  store float %203, ptr %201, align 4, !tbaa !9
  %indvars.iv.next285 = add nuw nsw i64 %indvars.iv284, 1
  %exitcond287.not = icmp eq i64 %indvars.iv.next285, %.0154.lcssa
  br i1 %exitcond287.not, label %.critedge.us, label %166, !llvm.loop !33

._crit_edge241:                                   ; preds = %.critedge.us, %._crit_edge234
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #11
  store ptr %157, ptr %8, align 16, !tbaa !5
  %204 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %158, ptr %204, align 8, !tbaa !5
  %205 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %159, ptr %205, align 16, !tbaa !5
  %206 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %160, ptr %206, align 8, !tbaa !5
  %207 = load ptr, ptr %22, align 8, !tbaa !5
  %208 = call noundef zeroext i1 @_Z14WriteWaveFileFPKciiilPPf(ptr noundef %207, i32 noundef %.0144.lcssa, i32 noundef 4, i32 noundef %.0158.lcssa, i64 noundef %.0154.lcssa, ptr noundef nonnull %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  br label %209

209:                                              ; preds = %.thread184, %._crit_edge241
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  br label %210

210:                                              ; preds = %209, %10
  %.4 = phi i32 [ -1, %10 ], [ 0, %209 ]
  ret i32 %.4
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

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

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

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

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

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

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 i64 @llvm.smax.i64(i64, i64) #9

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

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 = { nobuiltin 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { nounwind }
attributes #12 = { builtin 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 = distinct !{!16, !12, !14, !13}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = !{!24}
!24 = distinct !{!24, !25}
!25 = distinct !{!25, !"LVerDomain"}
!26 = !{!27}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !12, !13, !14}
!29 = distinct !{!29, !12, !13}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}
!33 = distinct !{!33, !12}


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