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

; 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.31 = external hidden unnamed_addr constant [78 x i8], align 1
@__const.liquid_firdes_prototype.weights = external hidden unnamed_addr constant [3 x float], align 4
@.str.44 = external hidden unnamed_addr constant [44 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #0

; 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 memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local float @estimate_req_filter_As(float noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_firdes_prototype(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #2 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca [6 x float], align 16
  %19 = alloca [3 x float], align 4
  %20 = alloca [3 x float], align 4
  %21 = alloca [3 x i32], align 4
  %22 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !5
  store float %3, ptr %11, align 4, !tbaa !9
  store float %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %23 = load i32, ptr %9, align 4, !tbaa !5
  %24 = mul i32 2, %23
  %25 = load i32, ptr %10, align 4, !tbaa !5
  %26 = mul i32 %24, %25
  %27 = add i32 %26, 1
  store i32 %27, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = uitofp i32 %28 to float
  %30 = fdiv float 5.000000e-01, %29
  store float %30, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %31 = load float, ptr %11, align 4, !tbaa !9
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = uitofp i32 %32 to float
  %34 = fdiv float %31, %33
  store float %34, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %35 = load float, ptr %16, align 4, !tbaa !9
  %36 = load i32, ptr %14, align 4, !tbaa !5
  %37 = call float @estimate_req_filter_As(float noundef %35, i32 noundef %36)
  store float %37, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  store float 0.000000e+00, ptr %18, align 4, !tbaa !9
  %38 = getelementptr inbounds float, ptr %18, i64 1
  %39 = load float, ptr %15, align 4, !tbaa !9
  %40 = load float, ptr %16, align 4, !tbaa !9
  %41 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %40, float %39)
  store float %41, ptr %38, align 4, !tbaa !9
  %42 = getelementptr inbounds float, ptr %18, i64 2
  %43 = load float, ptr %15, align 4, !tbaa !9
  store float %43, ptr %42, align 4, !tbaa !9
  %44 = getelementptr inbounds float, ptr %18, i64 3
  %45 = load float, ptr %15, align 4, !tbaa !9
  store float %45, ptr %44, align 4, !tbaa !9
  %46 = getelementptr inbounds float, ptr %18, i64 4
  %47 = load float, ptr %15, align 4, !tbaa !9
  %48 = load float, ptr %16, align 4, !tbaa !9
  %49 = call float @llvm.fmuladd.f32(float 5.000000e-01, float %48, float %47)
  store float %49, ptr %46, align 4, !tbaa !9
  %50 = getelementptr inbounds float, ptr %18, i64 5
  store float 5.000000e-01, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #6
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = uitofp i32 %51 to float
  store float %52, ptr %19, align 4, !tbaa !9
  %53 = getelementptr inbounds float, ptr %19, i64 1
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = uitofp i32 %54 to float
  %56 = fmul float 5.000000e-01, %55
  store float %56, ptr %53, align 4, !tbaa !9
  %57 = getelementptr inbounds float, ptr %19, i64 2
  store float 0.000000e+00, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 @__const.liquid_firdes_prototype.weights, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #6
  call void @llvm.memset.p0.i64(ptr align 4 %21, i8 0, i64 12, i1 false)
  %58 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %58, label %165 [
    i32 1, label %59
    i32 2, label %66
    i32 3, label %74
    i32 4, label %81
    i32 5, label %88
    i32 6, label %95
    i32 7, label %102
    i32 8, label %109
    i32 9, label %116
    i32 10, label %123
    i32 11, label %130
    i32 12, label %137
    i32 13, label %144
    i32 14, label %151
    i32 15, label %158
  ]

59:                                               ; preds = %6
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = load float, ptr %15, align 4, !tbaa !9
  %62 = load float, ptr %17, align 4, !tbaa !9
  %63 = load float, ptr %12, align 4, !tbaa !9
  %64 = load ptr, ptr %13, align 8, !tbaa !11
  %65 = call i32 @liquid_firdes_kaiser(i32 noundef %60, float noundef %61, float noundef %62, float noundef %63, ptr noundef %64)
  store i32 %65, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

66:                                               ; preds = %6
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = getelementptr inbounds [6 x float], ptr %18, i64 0, i64 0
  %69 = getelementptr inbounds [3 x float], ptr %19, i64 0, i64 0
  %70 = getelementptr inbounds [3 x float], ptr %20, i64 0, i64 0
  %71 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 0
  %72 = load ptr, ptr %13, align 8, !tbaa !11
  %73 = call i32 @firdespm_run(i32 noundef %67, i32 noundef 3, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, i32 noundef 0, ptr noundef %72)
  store i32 %73, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

74:                                               ; preds = %6
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = load float, ptr %11, align 4, !tbaa !9
  %78 = load float, ptr %12, align 4, !tbaa !9
  %79 = load ptr, ptr %13, align 8, !tbaa !11
  %80 = call i32 @liquid_firdes_rcos(i32 noundef %75, i32 noundef %76, float noundef %77, float noundef %78, ptr noundef %79)
  store i32 %80, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

81:                                               ; preds = %6
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = load float, ptr %11, align 4, !tbaa !9
  %85 = load float, ptr %12, align 4, !tbaa !9
  %86 = load ptr, ptr %13, align 8, !tbaa !11
  %87 = call i32 @liquid_firdes_fexp(i32 noundef %82, i32 noundef %83, float noundef %84, float noundef %85, ptr noundef %86)
  store i32 %87, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

88:                                               ; preds = %6
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = load float, ptr %11, align 4, !tbaa !9
  %92 = load float, ptr %12, align 4, !tbaa !9
  %93 = load ptr, ptr %13, align 8, !tbaa !11
  %94 = call i32 @liquid_firdes_fsech(i32 noundef %89, i32 noundef %90, float noundef %91, float noundef %92, ptr noundef %93)
  store i32 %94, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

95:                                               ; preds = %6
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = load float, ptr %11, align 4, !tbaa !9
  %99 = load float, ptr %12, align 4, !tbaa !9
  %100 = load ptr, ptr %13, align 8, !tbaa !11
  %101 = call i32 @liquid_firdes_farcsech(i32 noundef %96, i32 noundef %97, float noundef %98, float noundef %99, ptr noundef %100)
  store i32 %101, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

102:                                              ; preds = %6
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = load float, ptr %11, align 4, !tbaa !9
  %106 = load float, ptr %12, align 4, !tbaa !9
  %107 = load ptr, ptr %13, align 8, !tbaa !11
  %108 = call i32 @liquid_firdes_arkaiser(i32 noundef %103, i32 noundef %104, float noundef %105, float noundef %106, ptr noundef %107)
  store i32 %108, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

109:                                              ; preds = %6
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = load float, ptr %11, align 4, !tbaa !9
  %113 = load float, ptr %12, align 4, !tbaa !9
  %114 = load ptr, ptr %13, align 8, !tbaa !11
  %115 = call i32 @liquid_firdes_rkaiser(i32 noundef %110, i32 noundef %111, float noundef %112, float noundef %113, ptr noundef %114)
  store i32 %115, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

116:                                              ; preds = %6
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = load float, ptr %11, align 4, !tbaa !9
  %120 = load float, ptr %12, align 4, !tbaa !9
  %121 = load ptr, ptr %13, align 8, !tbaa !11
  %122 = call i32 @liquid_firdes_rrcos(i32 noundef %117, i32 noundef %118, float noundef %119, float noundef %120, ptr noundef %121)
  store i32 %122, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

123:                                              ; preds = %6
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = load i32, ptr %10, align 4, !tbaa !5
  %126 = load float, ptr %11, align 4, !tbaa !9
  %127 = load float, ptr %12, align 4, !tbaa !9
  %128 = load ptr, ptr %13, align 8, !tbaa !11
  %129 = call i32 @liquid_firdes_hM3(i32 noundef %124, i32 noundef %125, float noundef %126, float noundef %127, ptr noundef %128)
  store i32 %129, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

130:                                              ; preds = %6
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = load i32, ptr %10, align 4, !tbaa !5
  %133 = load float, ptr %11, align 4, !tbaa !9
  %134 = load float, ptr %12, align 4, !tbaa !9
  %135 = load ptr, ptr %13, align 8, !tbaa !11
  %136 = call i32 @liquid_firdes_gmsktx(i32 noundef %131, i32 noundef %132, float noundef %133, float noundef %134, ptr noundef %135)
  store i32 %136, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

137:                                              ; preds = %6
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = load i32, ptr %10, align 4, !tbaa !5
  %140 = load float, ptr %11, align 4, !tbaa !9
  %141 = load float, ptr %12, align 4, !tbaa !9
  %142 = load ptr, ptr %13, align 8, !tbaa !11
  %143 = call i32 @liquid_firdes_gmskrx(i32 noundef %138, i32 noundef %139, float noundef %140, float noundef %141, ptr noundef %142)
  store i32 %143, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

144:                                              ; preds = %6
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = load i32, ptr %10, align 4, !tbaa !5
  %147 = load float, ptr %11, align 4, !tbaa !9
  %148 = load float, ptr %12, align 4, !tbaa !9
  %149 = load ptr, ptr %13, align 8, !tbaa !11
  %150 = call i32 @liquid_firdes_rfexp(i32 noundef %145, i32 noundef %146, float noundef %147, float noundef %148, ptr noundef %149)
  store i32 %150, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

151:                                              ; preds = %6
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = load i32, ptr %10, align 4, !tbaa !5
  %154 = load float, ptr %11, align 4, !tbaa !9
  %155 = load float, ptr %12, align 4, !tbaa !9
  %156 = load ptr, ptr %13, align 8, !tbaa !11
  %157 = call i32 @liquid_firdes_rfsech(i32 noundef %152, i32 noundef %153, float noundef %154, float noundef %155, ptr noundef %156)
  store i32 %157, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

158:                                              ; preds = %6
  %159 = load i32, ptr %9, align 4, !tbaa !5
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = load float, ptr %11, align 4, !tbaa !9
  %162 = load float, ptr %12, align 4, !tbaa !9
  %163 = load ptr, ptr %13, align 8, !tbaa !11
  %164 = call i32 @liquid_firdes_rfarcsech(i32 noundef %159, i32 noundef %160, float noundef %161, float noundef %162, ptr noundef %163)
  store i32 %164, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

165:                                              ; preds = %6
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str.31, i32 noundef 442, ptr noundef @.str.44, i32 noundef %166)
  store i32 %167, ptr %7, align 4
  store i32 1, ptr %22, align 4
  br label %168

168:                                              ; preds = %165, %158, %151, %144, %137, %130, %123, %116, %109, %102, %95, %88, %81, %74, %66, %59
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %169 = load i32, ptr %7, align 4
  ret i32 %169
}

; 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

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

declare i32 @firdespm_run(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

declare i32 @liquid_firdes_rcos(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_fexp(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_fsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_farcsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_arkaiser(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_rkaiser(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_rrcos(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_hM3(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_gmsktx(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_gmskrx(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_rfexp(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_rfsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

declare i32 @liquid_firdes_rfarcsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) #0

attributes #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 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!12, !12, i64 0}
!12 = !{!"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"

@.str.31 = external hidden unnamed_addr constant [78 x i8], align 1
@__const.liquid_firdes_prototype.weights = external hidden unnamed_addr constant [3 x float], align 4
@.str.44 = external hidden unnamed_addr constant [44 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local float @estimate_req_filter_As(float noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local 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 i32 @liquid_firdes_prototype(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = alloca [6 x float], align 16
  %8 = alloca [3 x float], align 4
  %9 = alloca [3 x float], align 4
  %10 = alloca [3 x i32], align 4
  %11 = shl i32 %1, 1
  %12 = mul i32 %11, %2
  %13 = or disjoint i32 %12, 1
  %14 = uitofp i32 %1 to float
  %15 = fdiv float 5.000000e-01, %14
  %16 = fdiv float %3, %14
  %17 = tail call float @estimate_req_filter_As(float noundef %16, i32 noundef %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  store float 0.000000e+00, ptr %7, align 16, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %7, i64 4
  %19 = tail call float @llvm.fmuladd.f32(float %16, float -5.000000e-01, float %15)
  store float %19, ptr %18, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %7, i64 8
  store float %15, ptr %20, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %7, i64 12
  store float %15, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %7, i64 16
  %23 = tail call float @llvm.fmuladd.f32(float %16, float 5.000000e-01, float %15)
  store float %23, ptr %22, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %7, i64 20
  store float 5.000000e-01, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #6
  store float %14, ptr %8, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %8, i64 4
  %26 = fmul float %14, 5.000000e-01
  store float %26, ptr %25, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %8, i64 8
  store float 0.000000e+00, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) @__const.liquid_firdes_prototype.weights, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %10, i8 0, i64 12, i1 false)
  switch i32 %0, label %58 [
    i32 1, label %28
    i32 2, label %30
    i32 3, label %32
    i32 4, label %34
    i32 5, label %36
    i32 6, label %38
    i32 7, label %40
    i32 8, label %42
    i32 9, label %44
    i32 10, label %46
    i32 11, label %48
    i32 12, label %50
    i32 13, label %52
    i32 14, label %54
    i32 15, label %56
  ]

28:                                               ; preds = %6
  %29 = tail call i32 @liquid_firdes_kaiser(i32 noundef %13, float noundef %15, float noundef %17, float noundef %4, ptr noundef %5)
  br label %60

30:                                               ; preds = %6
  %31 = call i32 @firdespm_run(i32 noundef %13, i32 noundef 3, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef 0, ptr noundef %5) #6
  br label %60

32:                                               ; preds = %6
  %33 = tail call i32 @liquid_firdes_rcos(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

34:                                               ; preds = %6
  %35 = tail call i32 @liquid_firdes_fexp(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

36:                                               ; preds = %6
  %37 = tail call i32 @liquid_firdes_fsech(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

38:                                               ; preds = %6
  %39 = tail call i32 @liquid_firdes_farcsech(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

40:                                               ; preds = %6
  %41 = tail call i32 @liquid_firdes_arkaiser(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

42:                                               ; preds = %6
  %43 = tail call i32 @liquid_firdes_rkaiser(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

44:                                               ; preds = %6
  %45 = tail call i32 @liquid_firdes_rrcos(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

46:                                               ; preds = %6
  %47 = tail call i32 @liquid_firdes_hM3(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

48:                                               ; preds = %6
  %49 = tail call i32 @liquid_firdes_gmsktx(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

50:                                               ; preds = %6
  %51 = tail call i32 @liquid_firdes_gmskrx(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

52:                                               ; preds = %6
  %53 = tail call i32 @liquid_firdes_rfexp(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

54:                                               ; preds = %6
  %55 = tail call i32 @liquid_firdes_rfsech(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

56:                                               ; preds = %6
  %57 = tail call i32 @liquid_firdes_rfarcsech(i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #6
  br label %60

58:                                               ; preds = %6
  %59 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str.31, i32 noundef 442, ptr noundef nonnull @.str.44, i32 noundef %0) #6
  br label %60

60:                                               ; preds = %58, %56, %54, %52, %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %30, %28
  %.0 = phi i32 [ %59, %58 ], [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ %51, %50 ], [ %49, %48 ], [ %47, %46 ], [ %45, %44 ], [ %43, %42 ], [ %41, %40 ], [ %39, %38 ], [ %37, %36 ], [ %35, %34 ], [ %33, %32 ], [ %31, %30 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  ret i32 %.0
}

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

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

declare i32 @firdespm_run(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_rcos(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_fexp(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_fsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_farcsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_arkaiser(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_rkaiser(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_rrcos(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_hM3(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_gmsktx(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_gmskrx(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_rfexp(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_rfsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

declare i32 @liquid_firdes_rfarcsech(i32 noundef, i32 noundef, float noundef, float noundef, ptr noundef) local_unnamed_addr #0

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass