; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (firdes_autotest)

; 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 [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #2

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #3

declare void @liquid_autotest_passed(...) #3

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

declare i32 @fft_run(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @autotest_liquid_freqrespf() #5 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 41, ptr %1, align 4, !tbaa !5
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = zext i32 %11 to i64
  %13 = call ptr @llvm.stacksave.p0()
  store ptr %13, ptr %2, align 8
  %14 = alloca float, i64 %12, align 16
  store i64 %12, ptr %3, align 8
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = call i32 @liquid_firdes_kaiser(i32 noundef %15, float noundef 0x3FD147AE20000000, float noundef 8.000000e+01, float noundef 0x3FD3333340000000, ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 400, ptr %5, align 4, !tbaa !5
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = zext i32 %17 to i64
  %19 = alloca { float, float }, i64 %18, align 16
  store i64 %18, ptr %6, align 8
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = zext i32 %20 to i64
  %22 = alloca { float, float }, i64 %21, align 16
  store i64 %21, ptr %7, align 8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %44, %0
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = icmp ult i32 %24, %25
  br i1 %26, label %27, label %47

27:                                               ; preds = %23
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = icmp ult i32 %28, %29
  br i1 %30, label %31, label %36

31:                                               ; preds = %27
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds float, ptr %14, i64 %33
  %35 = load float, ptr %34, align 4, !tbaa !9
  br label %37

36:                                               ; preds = %27
  br label %37

37:                                               ; preds = %36, %31
  %38 = phi float [ %35, %31 ], [ 0.000000e+00, %36 ]
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds { float, float }, ptr %19, i64 %40
  %42 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 1
  store float %38, ptr %42, align 8
  store float 0.000000e+00, ptr %43, align 4
  br label %44

44:                                               ; preds = %37
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = add i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %23, !llvm.loop !11

47:                                               ; preds = %23
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = call i32 @fft_run(i32 noundef %48, ptr noundef %19, ptr noundef %22, i32 noundef 1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store float 0x3EE4F8B580000000, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %362, %47
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %54, label %365

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = uitofp i32 %55 to float
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = uitofp i32 %57 to float
  %59 = fdiv float %56, %58
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = udiv i32 %61, 2
  %63 = icmp uge i32 %60, %62
  %64 = zext i1 %63 to i64
  %65 = select i1 %63, float -1.000000e+00, float 0.000000e+00
  %66 = fadd float %59, %65
  store float %66, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %67 = load i32, ptr %1, align 4, !tbaa !5
  %68 = load float, ptr %9, align 4, !tbaa !9
  %69 = call i32 @liquid_freqrespf(ptr noundef %14, i32 noundef %67, float noundef %68, ptr noundef %10)
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds { float, float }, ptr %22, i64 %71
  %73 = getelementptr inbounds { float, float }, ptr %72, i32 0, i32 0
  %74 = load float, ptr %73, align 8
  %75 = getelementptr inbounds { float, float }, ptr %72, i32 0, i32 1
  %76 = load float, ptr %75, align 4
  %77 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %78 = load float, ptr %77, align 4
  %79 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %80 = load float, ptr %79, align 4
  %81 = fsub float %74, %78
  %82 = fpext float %81 to double
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds { float, float }, ptr %22, i64 %84
  %86 = getelementptr inbounds { float, float }, ptr %85, i32 0, i32 0
  %87 = load float, ptr %86, align 8
  %88 = getelementptr inbounds { float, float }, ptr %85, i32 0, i32 1
  %89 = load float, ptr %88, align 4
  %90 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %91 = load float, ptr %90, align 4
  %92 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %93 = load float, ptr %92, align 4
  %94 = fsub float %87, %91
  %95 = fpext float %94 to double
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds { float, float }, ptr %22, i64 %97
  %99 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 0
  %100 = load float, ptr %99, align 8
  %101 = getelementptr inbounds { float, float }, ptr %98, i32 0, i32 1
  %102 = load float, ptr %101, align 4
  %103 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %104 = load float, ptr %103, align 4
  %105 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %106 = load float, ptr %105, align 4
  %107 = fsub float %100, %104
  %108 = fpext float %107 to double
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds { float, float }, ptr %22, i64 %110
  %112 = getelementptr inbounds { float, float }, ptr %111, i32 0, i32 0
  %113 = load float, ptr %112, align 8
  %114 = getelementptr inbounds { float, float }, ptr %111, i32 0, i32 1
  %115 = load float, ptr %114, align 4
  %116 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %117 = load float, ptr %116, align 4
  %118 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %119 = load float, ptr %118, align 4
  %120 = fsub float %113, %117
  %121 = fpext float %120 to double
  %122 = call double @llvm.fmuladd.f64(double %82, double %95, double 0.000000e+00)
  %123 = call double @sqrt(double noundef %122) #6
  %124 = load float, ptr %8, align 4, !tbaa !9
  %125 = fpext float %124 to double
  %126 = fcmp ogt double %123, %125
  br i1 %126, label %157, label %127

127:                                              ; preds = %54
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds { float, float }, ptr %22, i64 %129
  %131 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 0
  %132 = load float, ptr %131, align 8
  %133 = getelementptr inbounds { float, float }, ptr %130, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  %135 = call i1 @llvm.is.fpclass.f32(float %132, i32 3)
  br i1 %135, label %157, label %136

136:                                              ; preds = %127
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds { float, float }, ptr %22, i64 %138
  %140 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 8
  %142 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %144, label %157, label %145

145:                                              ; preds = %136
  %146 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %147 = load float, ptr %146, align 4
  %148 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %149 = load float, ptr %148, align 4
  %150 = call i1 @llvm.is.fpclass.f32(float %147, i32 3)
  br i1 %150, label %157, label %151

151:                                              ; preds = %145
  %152 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %153 = load float, ptr %152, align 4
  %154 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %155 = load float, ptr %154, align 4
  %156 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %156, label %157, label %214

157:                                              ; preds = %151, %145, %136, %127, %54
  %158 = load i32, ptr %4, align 4, !tbaa !5
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds { float, float }, ptr %22, i64 %159
  %161 = getelementptr inbounds { float, float }, ptr %160, i32 0, i32 0
  %162 = load float, ptr %161, align 8
  %163 = getelementptr inbounds { float, float }, ptr %160, i32 0, i32 1
  %164 = load float, ptr %163, align 4
  %165 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %166 = load float, ptr %165, align 4
  %167 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %168 = load float, ptr %167, align 4
  %169 = fsub float %162, %166
  %170 = fpext float %169 to double
  %171 = load i32, ptr %4, align 4, !tbaa !5
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds { float, float }, ptr %22, i64 %172
  %174 = getelementptr inbounds { float, float }, ptr %173, i32 0, i32 0
  %175 = load float, ptr %174, align 8
  %176 = getelementptr inbounds { float, float }, ptr %173, i32 0, i32 1
  %177 = load float, ptr %176, align 4
  %178 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %179 = load float, ptr %178, align 4
  %180 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %181 = load float, ptr %180, align 4
  %182 = fsub float %175, %179
  %183 = fpext float %182 to double
  %184 = load i32, ptr %4, align 4, !tbaa !5
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds { float, float }, ptr %22, i64 %185
  %187 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 0
  %188 = load float, ptr %187, align 8
  %189 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 1
  %190 = load float, ptr %189, align 4
  %191 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %192 = load float, ptr %191, align 4
  %193 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %194 = load float, ptr %193, align 4
  %195 = fsub float %188, %192
  %196 = fpext float %195 to double
  %197 = load i32, ptr %4, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds { float, float }, ptr %22, i64 %198
  %200 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 0
  %201 = load float, ptr %200, align 8
  %202 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 1
  %203 = load float, ptr %202, align 4
  %204 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %205 = load float, ptr %204, align 4
  %206 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %207 = load float, ptr %206, align 4
  %208 = fsub float %201, %205
  %209 = fpext float %208 to double
  %210 = call double @llvm.fmuladd.f64(double %170, double %183, double 0.000000e+00)
  %211 = call double @sqrt(double noundef %210) #6
  %212 = load float, ptr %8, align 4, !tbaa !9
  %213 = fpext float %212 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 397, ptr noundef @.str.128, double noundef %211, ptr noundef @.str.2, ptr noundef @.str.9, double noundef %213)
  br label %215

214:                                              ; preds = %151
  call void (...) @liquid_autotest_passed()
  br label %215

215:                                              ; preds = %214, %157
  %216 = load i32, ptr %4, align 4, !tbaa !5
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds { float, float }, ptr %22, i64 %217
  %219 = getelementptr inbounds { float, float }, ptr %218, i32 0, i32 0
  %220 = load float, ptr %219, align 8
  %221 = getelementptr inbounds { float, float }, ptr %218, i32 0, i32 1
  %222 = load float, ptr %221, align 4
  %223 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %224 = load float, ptr %223, align 4
  %225 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %226 = load float, ptr %225, align 4
  %227 = fsub float %222, %226
  %228 = fpext float %227 to double
  %229 = load i32, ptr %4, align 4, !tbaa !5
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds { float, float }, ptr %22, i64 %230
  %232 = getelementptr inbounds { float, float }, ptr %231, i32 0, i32 0
  %233 = load float, ptr %232, align 8
  %234 = getelementptr inbounds { float, float }, ptr %231, i32 0, i32 1
  %235 = load float, ptr %234, align 4
  %236 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %237 = load float, ptr %236, align 4
  %238 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %239 = load float, ptr %238, align 4
  %240 = fsub float %235, %239
  %241 = fpext float %240 to double
  %242 = load i32, ptr %4, align 4, !tbaa !5
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds { float, float }, ptr %22, i64 %243
  %245 = getelementptr inbounds { float, float }, ptr %244, i32 0, i32 0
  %246 = load float, ptr %245, align 8
  %247 = getelementptr inbounds { float, float }, ptr %244, i32 0, i32 1
  %248 = load float, ptr %247, align 4
  %249 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %250 = load float, ptr %249, align 4
  %251 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %252 = load float, ptr %251, align 4
  %253 = fsub float %248, %252
  %254 = fpext float %253 to double
  %255 = load i32, ptr %4, align 4, !tbaa !5
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds { float, float }, ptr %22, i64 %256
  %258 = getelementptr inbounds { float, float }, ptr %257, i32 0, i32 0
  %259 = load float, ptr %258, align 8
  %260 = getelementptr inbounds { float, float }, ptr %257, i32 0, i32 1
  %261 = load float, ptr %260, align 4
  %262 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %263 = load float, ptr %262, align 4
  %264 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %265 = load float, ptr %264, align 4
  %266 = fsub float %261, %265
  %267 = fpext float %266 to double
  %268 = call double @llvm.fmuladd.f64(double %228, double %241, double 0.000000e+00)
  %269 = call double @sqrt(double noundef %268) #6
  %270 = load float, ptr %8, align 4, !tbaa !9
  %271 = fpext float %270 to double
  %272 = fcmp ogt double %269, %271
  br i1 %272, label %303, label %273

273:                                              ; preds = %215
  %274 = load i32, ptr %4, align 4, !tbaa !5
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds { float, float }, ptr %22, i64 %275
  %277 = getelementptr inbounds { float, float }, ptr %276, i32 0, i32 0
  %278 = load float, ptr %277, align 8
  %279 = getelementptr inbounds { float, float }, ptr %276, i32 0, i32 1
  %280 = load float, ptr %279, align 4
  %281 = call i1 @llvm.is.fpclass.f32(float %280, i32 3)
  br i1 %281, label %303, label %282

282:                                              ; preds = %273
  %283 = load i32, ptr %4, align 4, !tbaa !5
  %284 = zext i32 %283 to i64
  %285 = getelementptr inbounds { float, float }, ptr %22, i64 %284
  %286 = getelementptr inbounds { float, float }, ptr %285, i32 0, i32 0
  %287 = load float, ptr %286, align 8
  %288 = getelementptr inbounds { float, float }, ptr %285, i32 0, i32 1
  %289 = load float, ptr %288, align 4
  %290 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %290, label %303, label %291

291:                                              ; preds = %282
  %292 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %293 = load float, ptr %292, align 4
  %294 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %295 = load float, ptr %294, align 4
  %296 = call i1 @llvm.is.fpclass.f32(float %295, i32 3)
  br i1 %296, label %303, label %297

297:                                              ; preds = %291
  %298 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %299 = load float, ptr %298, align 4
  %300 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %301 = load float, ptr %300, align 4
  %302 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %302, label %303, label %360

303:                                              ; preds = %297, %291, %282, %273, %215
  %304 = load i32, ptr %4, align 4, !tbaa !5
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds { float, float }, ptr %22, i64 %305
  %307 = getelementptr inbounds { float, float }, ptr %306, i32 0, i32 0
  %308 = load float, ptr %307, align 8
  %309 = getelementptr inbounds { float, float }, ptr %306, i32 0, i32 1
  %310 = load float, ptr %309, align 4
  %311 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %312 = load float, ptr %311, align 4
  %313 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %314 = load float, ptr %313, align 4
  %315 = fsub float %310, %314
  %316 = fpext float %315 to double
  %317 = load i32, ptr %4, align 4, !tbaa !5
  %318 = zext i32 %317 to i64
  %319 = getelementptr inbounds { float, float }, ptr %22, i64 %318
  %320 = getelementptr inbounds { float, float }, ptr %319, i32 0, i32 0
  %321 = load float, ptr %320, align 8
  %322 = getelementptr inbounds { float, float }, ptr %319, i32 0, i32 1
  %323 = load float, ptr %322, align 4
  %324 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %325 = load float, ptr %324, align 4
  %326 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %327 = load float, ptr %326, align 4
  %328 = fsub float %323, %327
  %329 = fpext float %328 to double
  %330 = load i32, ptr %4, align 4, !tbaa !5
  %331 = zext i32 %330 to i64
  %332 = getelementptr inbounds { float, float }, ptr %22, i64 %331
  %333 = getelementptr inbounds { float, float }, ptr %332, i32 0, i32 0
  %334 = load float, ptr %333, align 8
  %335 = getelementptr inbounds { float, float }, ptr %332, i32 0, i32 1
  %336 = load float, ptr %335, align 4
  %337 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %338 = load float, ptr %337, align 4
  %339 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %340 = load float, ptr %339, align 4
  %341 = fsub float %336, %340
  %342 = fpext float %341 to double
  %343 = load i32, ptr %4, align 4, !tbaa !5
  %344 = zext i32 %343 to i64
  %345 = getelementptr inbounds { float, float }, ptr %22, i64 %344
  %346 = getelementptr inbounds { float, float }, ptr %345, i32 0, i32 0
  %347 = load float, ptr %346, align 8
  %348 = getelementptr inbounds { float, float }, ptr %345, i32 0, i32 1
  %349 = load float, ptr %348, align 4
  %350 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %351 = load float, ptr %350, align 4
  %352 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %353 = load float, ptr %352, align 4
  %354 = fsub float %349, %353
  %355 = fpext float %354 to double
  %356 = call double @llvm.fmuladd.f64(double %316, double %329, double 0.000000e+00)
  %357 = call double @sqrt(double noundef %356) #6
  %358 = load float, ptr %8, align 4, !tbaa !9
  %359 = fpext float %358 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 398, ptr noundef @.str.129, double noundef %357, ptr noundef @.str.2, ptr noundef @.str.9, double noundef %359)
  br label %361

360:                                              ; preds = %297
  call void (...) @liquid_autotest_passed()
  br label %361

361:                                              ; preds = %360, %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %362

362:                                              ; preds = %361
  %363 = load i32, ptr %4, align 4, !tbaa !5
  %364 = add i32 %363, 1
  store i32 %364, ptr %4, align 4, !tbaa !5
  br label %50, !llvm.loop !13

365:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %366 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %366)
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

declare i32 @liquid_freqrespf(ptr noundef, i32 noundef, float noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !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 [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #2

declare void @liquid_autotest_passed(...) local_unnamed_addr #2

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

declare i32 @fft_run(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_liquid_freqrespf() local_unnamed_addr #3 {
  %1 = alloca { float, float }, align 4
  %2 = alloca [41 x float], align 16
  %3 = call i32 @liquid_firdes_kaiser(i32 noundef 41, float noundef 0x3FD147AE20000000, float noundef 8.000000e+01, float noundef 0x3FD3333340000000, ptr noundef nonnull %2) #5
  %4 = alloca [400 x { float, float }], align 16
  %5 = alloca [400 x { float, float }], align 16
  br label %6

6:                                                ; preds = %19, %0
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next.1, %19 ]
  %7 = icmp ult i64 %indvars.iv, 41
  br i1 %7, label %8, label %11

8:                                                ; preds = %6
  %9 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %10 = load float, ptr %9, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %6, %8
  %12 = phi float [ %10, %8 ], [ 0.000000e+00, %6 ]
  %13 = getelementptr inbounds { float, float }, ptr %4, i64 %indvars.iv
  %14 = getelementptr inbounds i8, ptr %13, i64 4
  store float %12, ptr %13, align 16
  store float 0.000000e+00, ptr %14, align 4
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %15 = icmp ult i64 %indvars.iv.next, 41
  br i1 %15, label %16, label %19

16:                                               ; preds = %11
  %17 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next
  %18 = load float, ptr %17, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %16, %11
  %20 = phi float [ %18, %16 ], [ 0.000000e+00, %11 ]
  %21 = getelementptr inbounds { float, float }, ptr %4, i64 %indvars.iv.next
  %22 = getelementptr inbounds i8, ptr %21, i64 4
  store float %20, ptr %21, align 8
  store float 0.000000e+00, ptr %22, align 4
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 400
  br i1 %exitcond.not.1, label %23, label %6, !llvm.loop !9

23:                                               ; preds = %19
  %24 = call i32 @fft_run(i32 noundef 400, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 1, i32 noundef 0) #5
  %25 = getelementptr inbounds i8, ptr %1, i64 4
  br label %26

26:                                               ; preds = %23, %59
  %indvars.iv54 = phi i64 [ 0, %23 ], [ %indvars.iv.next55, %59 ]
  %27 = trunc nuw nsw i64 %indvars.iv54 to i32
  %28 = uitofp nneg i32 %27 to float
  %29 = fdiv float %28, 4.000000e+02
  %30 = icmp ugt i64 %indvars.iv54, 199
  %31 = select i1 %30, float -1.000000e+00, float 0.000000e+00
  %32 = fadd float %29, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %33 = call i32 @liquid_freqrespf(ptr noundef nonnull %2, i32 noundef 41, float noundef %32, ptr noundef nonnull %1) #5
  %34 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv54
  %35 = load float, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %34, i64 4
  %37 = load float, ptr %1, align 4
  %38 = fsub float %35, %37
  %39 = fpext float %38 to double
  %40 = call double @llvm.fmuladd.f64(double %39, double %39, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %40)
  %41 = fcmp ogt double %sqrt, 0x3EE4F8B580000000
  br i1 %41, label %45, label %42

42:                                               ; preds = %26
  %43 = fcmp uno float %35, 0.000000e+00
  %44 = fcmp uno float %37, 0.000000e+00
  %or.cond = select i1 %43, i1 true, i1 %44
  br i1 %or.cond, label %45, label %46

45:                                               ; preds = %42, %26
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 397, ptr noundef nonnull @.str.128, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.9, double noundef 0x3EE4F8B580000000) #5
  br label %47

46:                                               ; preds = %42
  call void (...) @liquid_autotest_passed() #5
  br label %47

47:                                               ; preds = %46, %45
  %48 = load float, ptr %36, align 4
  %49 = load float, ptr %25, align 4
  %50 = fsub float %48, %49
  %51 = fpext float %50 to double
  %52 = call double @llvm.fmuladd.f64(double %51, double %51, double 0.000000e+00)
  %sqrt49 = call double @llvm.sqrt.f64(double %52)
  %53 = fcmp ogt double %sqrt49, 0x3EE4F8B580000000
  br i1 %53, label %57, label %54

54:                                               ; preds = %47
  %55 = fcmp uno float %48, 0.000000e+00
  %56 = fcmp uno float %49, 0.000000e+00
  %or.cond47 = select i1 %55, i1 true, i1 %56
  br i1 %or.cond47, label %57, label %58

57:                                               ; preds = %54, %47
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 398, ptr noundef nonnull @.str.129, double noundef %sqrt49, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.9, double noundef 0x3EE4F8B580000000) #5
  br label %59

58:                                               ; preds = %54
  call void (...) @liquid_autotest_passed() #5
  br label %59

59:                                               ; preds = %58, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond57.not = icmp eq i64 %indvars.iv.next55, 400
  br i1 %exitcond57.not, label %60, label %26, !llvm.loop !11

60:                                               ; preds = %59
  ret void
}

declare i32 @liquid_freqrespf(ptr noundef, i32 noundef, float noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopUnrollPass,SROAPass,SimplifyCFGPass