; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (firfilt_rnyquist_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"

@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [47 x i8], align 1
@liquid_firfilt_type_str = external global [16 x [2 x ptr]], align 16
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_firfilt_rnyquist(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store float %3, ptr %9, align 4, !tbaa !9
  store float %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = mul i32 2, %24
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = mul i32 %25, %26
  %28 = add i32 %27, 1
  store i32 %28, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = mul i32 4, %29
  %31 = load i32, ptr %8, align 4, !tbaa !5
  %32 = mul i32 %30, %31
  %33 = add i32 %32, 1
  store i32 %33, ptr %13, align 4, !tbaa !5
  %34 = load i32, ptr %12, align 4, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = call ptr @llvm.stacksave.p0()
  store ptr %36, ptr %14, align 8
  %37 = alloca float, i64 %35, align 16
  store i64 %35, ptr %15, align 8
  %38 = load i32, ptr %12, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = alloca float, i64 %39, align 16
  store i64 %39, ptr %16, align 8
  %41 = load i32, ptr %13, align 4, !tbaa !5
  %42 = zext i32 %41 to i64
  %43 = alloca float, i64 %42, align 16
  store i64 %42, ptr %17, align 8
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = load float, ptr %9, align 4, !tbaa !9
  %48 = load float, ptr %10, align 4, !tbaa !9
  %49 = call i32 @liquid_firdes_prototype(i32 noundef %44, i32 noundef %45, i32 noundef %46, float noundef %47, float noundef %48, ptr noundef %37)
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 11
  br i1 %51, label %52, label %58

52:                                               ; preds = %5
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = load float, ptr %9, align 4, !tbaa !9
  %56 = load float, ptr %10, align 4, !tbaa !9
  %57 = call i32 @liquid_firdes_prototype(i32 noundef 12, i32 noundef %53, i32 noundef %54, float noundef %55, float noundef %56, ptr noundef %40)
  br label %62

58:                                               ; preds = %5
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = mul i64 %60, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %37, i64 %61, i1 false)
  br label %62

62:                                               ; preds = %58, %52
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %81, %62
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = load i32, ptr %13, align 4, !tbaa !5
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %67, label %84

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = mul i32 2, %69
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = mul i32 %70, %71
  %73 = sub nsw i32 %68, %72
  store i32 %73, ptr %18, align 4, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = load i32, ptr %12, align 4, !tbaa !5
  %76 = load i32, ptr %18, align 4, !tbaa !5
  %77 = call float @liquid_filter_crosscorr(ptr noundef %37, i32 noundef %74, ptr noundef %40, i32 noundef %75, i32 noundef %76)
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %43, i64 %79
  store float %77, ptr %80, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %81

81:                                               ; preds = %67
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = add i32 %82, 1
  store i32 %83, ptr %11, align 4, !tbaa !5
  br label %63, !llvm.loop !11

84:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = mul i32 2, %85
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = mul i32 %86, %87
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %43, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !9
  store float %91, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store float 0.000000e+00, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %110, %84
  %93 = load i32, ptr %11, align 4, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = mul i32 2, %94
  %96 = icmp ult i32 %93, %95
  br i1 %96, label %97, label %113

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = mul i32 %98, %99
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds float, ptr %43, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !9
  %104 = load float, ptr %19, align 4, !tbaa !9
  %105 = fdiv float %103, %104
  store float %105, ptr %21, align 4, !tbaa !9
  %106 = load float, ptr %21, align 4, !tbaa !9
  %107 = load float, ptr %21, align 4, !tbaa !9
  %108 = load float, ptr %20, align 4, !tbaa !9
  %109 = call float @llvm.fmuladd.f32(float %106, float %107, float %108)
  store float %109, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %110

110:                                              ; preds = %97
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = add i32 %111, 1
  store i32 %112, ptr %11, align 4, !tbaa !5
  br label %92, !llvm.loop !13

113:                                              ; preds = %92
  %114 = load float, ptr %20, align 4, !tbaa !9
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = mul i32 2, %115
  %117 = sub i32 %116, 1
  %118 = uitofp i32 %117 to float
  %119 = fdiv float %114, %118
  %120 = call float @log10f(float noundef %119) #7
  %121 = fmul float 1.000000e+01, %120
  store float %121, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 2048, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = load float, ptr %9, align 4, !tbaa !9
  %124 = fadd float 1.000000e+00, %123
  %125 = fmul float 5.000000e-01, %124
  %126 = load i32, ptr %7, align 4, !tbaa !5
  %127 = uitofp i32 %126 to float
  %128 = fdiv float %125, %127
  %129 = load i32, ptr %22, align 4, !tbaa !5
  %130 = call float @liquid_filter_energy(ptr noundef %37, i32 noundef %122, float noundef %128, i32 noundef %129)
  %131 = call float @log10f(float noundef %130) #7
  %132 = fmul float 2.000000e+01, %131
  store float %132, ptr %23, align 4, !tbaa !9
  %133 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %158

135:                                              ; preds = %113
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [16 x [2 x ptr]], ptr @liquid_firfilt_type_str, i64 0, i64 %137
  %139 = getelementptr inbounds [2 x ptr], ptr %138, i64 0, i64 0
  %140 = load ptr, ptr %139, align 16, !tbaa !14
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = load float, ptr %9, align 4, !tbaa !9
  %144 = fpext float %143 to double
  %145 = load float, ptr %10, align 4, !tbaa !9
  %146 = fpext float %145 to double
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %140, i32 noundef %141, i32 noundef %142, double noundef %144, double noundef %146)
  %148 = load float, ptr %19, align 4, !tbaa !9
  %149 = fpext float %148 to double
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %149, i32 noundef %150)
  %152 = load float, ptr %20, align 4, !tbaa !9
  %153 = fpext float %152 to double
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %153)
  %155 = load float, ptr %23, align 4, !tbaa !9
  %156 = fpext float %155 to double
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %156)
  br label %158

158:                                              ; preds = %135, %113
  %159 = load float, ptr %19, align 4, !tbaa !9
  %160 = load i32, ptr %7, align 4, !tbaa !5
  %161 = uitofp i32 %160 to float
  %162 = fsub float %159, %161
  %163 = fpext float %162 to double
  %164 = load float, ptr %19, align 4, !tbaa !9
  %165 = load i32, ptr %7, align 4, !tbaa !5
  %166 = uitofp i32 %165 to float
  %167 = fsub float %164, %166
  %168 = fpext float %167 to double
  %169 = load float, ptr %19, align 4, !tbaa !9
  %170 = load i32, ptr %7, align 4, !tbaa !5
  %171 = uitofp i32 %170 to float
  %172 = fsub float %169, %171
  %173 = fpext float %172 to double
  %174 = load float, ptr %19, align 4, !tbaa !9
  %175 = load i32, ptr %7, align 4, !tbaa !5
  %176 = uitofp i32 %175 to float
  %177 = fsub float %174, %176
  %178 = fpext float %177 to double
  %179 = call double @llvm.fmuladd.f64(double %163, double %168, double 0.000000e+00)
  %180 = call double @sqrt(double noundef %179) #7
  %181 = fcmp ogt double %180, 0x3F847AE140000000
  br i1 %181, label %196, label %182

182:                                              ; preds = %158
  %183 = load float, ptr %19, align 4, !tbaa !9
  %184 = call i1 @llvm.is.fpclass.f32(float %183, i32 3)
  br i1 %184, label %196, label %185

185:                                              ; preds = %182
  %186 = load float, ptr %19, align 4, !tbaa !9
  %187 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %187, label %196, label %188

188:                                              ; preds = %185
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = uitofp i32 %189 to float
  %191 = call i1 @llvm.is.fpclass.f32(float %190, i32 3)
  br i1 %191, label %196, label %192

192:                                              ; preds = %188
  %193 = load i32, ptr %7, align 4, !tbaa !5
  %194 = uitofp i32 %193 to float
  %195 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %195, label %196, label %219

196:                                              ; preds = %192, %188, %185, %182, %158
  %197 = load float, ptr %19, align 4, !tbaa !9
  %198 = load i32, ptr %7, align 4, !tbaa !5
  %199 = uitofp i32 %198 to float
  %200 = fsub float %197, %199
  %201 = fpext float %200 to double
  %202 = load float, ptr %19, align 4, !tbaa !9
  %203 = load i32, ptr %7, align 4, !tbaa !5
  %204 = uitofp i32 %203 to float
  %205 = fsub float %202, %204
  %206 = fpext float %205 to double
  %207 = load float, ptr %19, align 4, !tbaa !9
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = uitofp i32 %208 to float
  %210 = fsub float %207, %209
  %211 = fpext float %210 to double
  %212 = load float, ptr %19, align 4, !tbaa !9
  %213 = load i32, ptr %7, align 4, !tbaa !5
  %214 = uitofp i32 %213 to float
  %215 = fsub float %212, %214
  %216 = fpext float %215 to double
  %217 = call double @llvm.fmuladd.f64(double %201, double %206, double 0.000000e+00)
  %218 = call double @sqrt(double noundef %217) #7
  call void @liquid_autotest_failed_expr(ptr noundef @.str.4, i32 noundef 88, ptr noundef @.str.5, double noundef %218, ptr noundef @.str.6, ptr noundef @.str.7, double noundef 0x3F847AE140000000)
  br label %220

219:                                              ; preds = %192
  call void (...) @liquid_autotest_passed()
  br label %220

220:                                              ; preds = %219, %196
  %221 = load float, ptr %20, align 4, !tbaa !9
  %222 = fcmp oge float %221, -5.000000e+01
  br i1 %222, label %223, label %226

223:                                              ; preds = %220
  %224 = load float, ptr %20, align 4, !tbaa !9
  %225 = fpext float %224 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.4, i32 noundef 89, ptr noundef @.str.8, double noundef %225, ptr noundef @.str.6, ptr noundef @.str.9, double noundef -5.000000e+01)
  br label %227

226:                                              ; preds = %220
  call void (...) @liquid_autotest_passed()
  br label %227

227:                                              ; preds = %226, %223
  %228 = load float, ptr %23, align 4, !tbaa !9
  %229 = fcmp oge float %228, -5.000000e+01
  br i1 %229, label %230, label %233

230:                                              ; preds = %227
  %231 = load float, ptr %23, align 4, !tbaa !9
  %232 = fpext float %231 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.4, i32 noundef 90, ptr noundef @.str.10, double noundef %232, ptr noundef @.str.6, ptr noundef @.str.9, double noundef -5.000000e+01)
  br label %234

233:                                              ; preds = %227
  call void (...) @liquid_autotest_passed()
  br label %234

234:                                              ; preds = %233, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  %235 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %235)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  ret void
}

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

; Function Attrs: nounwind
declare float @log10f(float noundef) #6

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

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

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

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

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

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
declare void @llvm.stackrestore.p0(ptr) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
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 nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = { 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}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}


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

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [47 x i8], align 1
@liquid_firfilt_type_str = external local_unnamed_addr global [16 x [2 x ptr]], align 16
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_firfilt_rnyquist(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4) local_unnamed_addr #0 {
  %6 = shl i32 %1, 1
  %7 = mul i32 %6, %2
  %8 = or disjoint i32 %7, 1
  %9 = shl i32 %1, 2
  %10 = mul i32 %9, %2
  %11 = or disjoint i32 %10, 1
  %12 = zext i32 %8 to i64
  %13 = alloca float, i64 %12, align 16
  %14 = alloca float, i64 %12, align 16
  %15 = zext i32 %11 to i64
  %16 = alloca float, i64 %15, align 16
  %17 = call i32 @liquid_firdes_prototype(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef nonnull %13) #7
  %18 = icmp eq i32 %0, 11
  br i1 %18, label %19, label %21

19:                                               ; preds = %5
  %20 = call i32 @liquid_firdes_prototype(i32 noundef 12, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef nonnull %14) #7
  br label %23

21:                                               ; preds = %5
  %22 = shl nuw nsw i64 %12, 2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %14, ptr noundef nonnull align 16 dereferenceable(1) %13, i64 %22, i1 false)
  br label %23

23:                                               ; preds = %21, %19
  %24 = or disjoint i32 %10, 1
  %wide.trip.count = zext i32 %24 to i64
  br label %25

25:                                               ; preds = %23, %25
  %indvars.iv = phi i64 [ 0, %23 ], [ %indvars.iv.next, %25 ]
  %26 = trunc nuw i64 %indvars.iv to i32
  %27 = sub nsw i32 %26, %7
  %28 = call float @liquid_filter_crosscorr(ptr noundef nonnull %13, i32 noundef %8, ptr noundef nonnull %14, i32 noundef %8, i32 noundef %27) #7
  %29 = getelementptr inbounds float, ptr %16, i64 %indvars.iv
  store float %28, ptr %29, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond, label %30, label %25, !llvm.loop !9

30:                                               ; preds = %25
  %31 = zext i32 %7 to i64
  %32 = getelementptr inbounds float, ptr %16, i64 %31
  %33 = load float, ptr %32, align 8, !tbaa !5
  %34 = shl i32 %2, 1
  %.not88 = icmp eq i32 %34, 0
  br i1 %.not88, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %30
  %wide.trip.count93 = zext i32 %34 to i64
  %35 = add nsw i64 %wide.trip.count93, -1
  %36 = add nsw i64 %wide.trip.count93, -2
  %xtraiter = and i64 %35, 3
  %37 = icmp ult i64 %36, 3
  br i1 %37, label %.lr.ph.epil.preheader, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %35, -4
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv90 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next91.3, %.lr.ph ]
  %.07885 = phi float [ 0.000000e+00, %.lr.ph.preheader.new ], [ %68, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %38 = trunc nuw i64 %indvars.iv90 to i32
  %39 = mul i32 %38, %1
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds float, ptr %16, i64 %40
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fdiv float %42, %33
  %44 = call float @llvm.fmuladd.f32(float %43, float %43, float %.07885)
  %45 = trunc i64 %indvars.iv90 to i32
  %46 = add i32 %45, 1
  %47 = mul i32 %46, %1
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds float, ptr %16, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = fdiv float %50, %33
  %52 = call float @llvm.fmuladd.f32(float %51, float %51, float %44)
  %53 = trunc i64 %indvars.iv90 to i32
  %54 = add i32 %53, 2
  %55 = mul i32 %54, %1
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %16, i64 %56
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fdiv float %58, %33
  %60 = call float @llvm.fmuladd.f32(float %59, float %59, float %52)
  %61 = trunc i64 %indvars.iv90 to i32
  %62 = add i32 %61, 3
  %63 = mul i32 %62, %1
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds float, ptr %16, i64 %64
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = fdiv float %66, %33
  %68 = call float @llvm.fmuladd.f32(float %67, float %67, float %60)
  %indvars.iv.next91.3 = add nuw nsw i64 %indvars.iv90, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.lr.ph.epil.preheader, label %.lr.ph, !llvm.loop !11

.lr.ph.epil.preheader:                            ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv90.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next91.3, %.lr.ph ]
  %.07885.unr = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %68, %.lr.ph ]
  br label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.lr.ph.epil, %.lr.ph.epil.preheader
  %indvars.iv90.epil = phi i64 [ %indvars.iv90.unr, %.lr.ph.epil.preheader ], [ %indvars.iv.next91.epil, %.lr.ph.epil ]
  %.07885.epil = phi float [ %.07885.unr, %.lr.ph.epil.preheader ], [ %75, %.lr.ph.epil ]
  %epil.iter = phi i64 [ 0, %.lr.ph.epil.preheader ], [ %epil.iter.next, %.lr.ph.epil ]
  %69 = trunc nuw i64 %indvars.iv90.epil to i32
  %70 = mul i32 %69, %1
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds float, ptr %16, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !5
  %74 = fdiv float %73, %33
  %75 = call float @llvm.fmuladd.f32(float %74, float %74, float %.07885.epil)
  %indvars.iv.next91.epil = add nuw nsw i64 %indvars.iv90.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph.epil, %30
  %.078.lcssa = phi float [ 0.000000e+00, %30 ], [ %75, %.lr.ph.epil ]
  %76 = add i32 %34, -1
  %77 = uitofp i32 %76 to float
  %78 = fdiv float %.078.lcssa, %77
  %79 = call float @log10f(float noundef %78) #7
  %80 = fmul float %79, 1.000000e+01
  %81 = fadd float %3, 1.000000e+00
  %82 = fmul float %81, 5.000000e-01
  %83 = uitofp i32 %1 to float
  %84 = fdiv float %82, %83
  %85 = call float @liquid_filter_energy(ptr noundef nonnull %13, i32 noundef %8, float noundef %84, i32 noundef 2048) #7
  %86 = call float @log10f(float noundef %85) #7
  %87 = fmul float %86, 2.000000e+01
  %88 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !14
  %.not82 = icmp eq i32 %88, 0
  br i1 %.not82, label %102, label %89

89:                                               ; preds = %._crit_edge
  %90 = sext i32 %0 to i64
  %91 = getelementptr inbounds [16 x [2 x ptr]], ptr @liquid_firfilt_type_str, i64 0, i64 %90
  %92 = load ptr, ptr %91, align 16, !tbaa !16
  %93 = fpext float %3 to double
  %94 = fpext float %4 to double
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %92, i32 noundef %1, i32 noundef %2, double noundef %93, double noundef %94)
  %96 = fpext float %33 to double
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %96, i32 noundef %1)
  %98 = fpext float %80 to double
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %98)
  %100 = fpext float %87 to double
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %100)
  br label %102

102:                                              ; preds = %89, %._crit_edge
  %103 = fsub float %33, %83
  %104 = fpext float %103 to double
  %105 = call double @llvm.fmuladd.f64(double %104, double %104, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %105)
  %106 = fcmp ogt double %sqrt, 0x3F847AE140000000
  %107 = fcmp uno float %33, 0.000000e+00
  %or.cond = select i1 %106, i1 true, i1 %107
  br i1 %or.cond, label %108, label %109

108:                                              ; preds = %102
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.4, i32 noundef 88, ptr noundef nonnull @.str.5, double noundef %sqrt, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, double noundef 0x3F847AE140000000) #7
  br label %110

109:                                              ; preds = %102
  call void (...) @liquid_autotest_passed() #7
  br label %110

110:                                              ; preds = %109, %108
  %111 = fcmp ult float %80, -5.000000e+01
  br i1 %111, label %114, label %112

112:                                              ; preds = %110
  %113 = fpext float %80 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.4, i32 noundef 89, ptr noundef nonnull @.str.8, double noundef %113, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.9, double noundef -5.000000e+01) #7
  br label %115

114:                                              ; preds = %110
  call void (...) @liquid_autotest_passed() #7
  br label %115

115:                                              ; preds = %114, %112
  %116 = fcmp ult float %87, -5.000000e+01
  br i1 %116, label %119, label %117

117:                                              ; preds = %115
  %118 = fpext float %87 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.4, i32 noundef 90, ptr noundef nonnull @.str.10, double noundef %118, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.9, double noundef -5.000000e+01) #7
  br label %120

119:                                              ; preds = %115
  call void (...) @liquid_autotest_passed() #7
  br label %120

120:                                              ; preds = %119, %117
  ret void
}

declare i32 @liquid_firdes_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare float @liquid_filter_crosscorr(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

declare float @liquid_filter_energy(ptr noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}


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