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

; 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 [75 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@__const.liquid_firdes_hM3.weights = external hidden unnamed_addr constant [3 x float], align 4
@__const.liquid_firdes_hM3.wtype = external hidden unnamed_addr constant [3 x i32], align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_firdes_hM3(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3, ptr 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 ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca [6 x float], align 16
  %18 = alloca [3 x float], align 4
  %19 = alloca [3 x float], align 4
  %20 = alloca i32, align 4
  %21 = alloca [3 x i32], align 4
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store float %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !11
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = icmp ult i32 %31, 2
  br i1 %32, label %33, label %35

33:                                               ; preds = %5
  %34 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 56, ptr noundef @.str.1)
  store i32 %34, ptr %6, align 4
  br label %193

35:                                               ; preds = %5
  %36 = load i32, ptr %8, align 4, !tbaa !5
  %37 = icmp ult i32 %36, 1
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 58, ptr noundef @.str.2)
  store i32 %39, ptr %6, align 4
  br label %193

40:                                               ; preds = %35
  %41 = load float, ptr %9, align 4, !tbaa !9
  %42 = fcmp olt float %41, 0.000000e+00
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = load float, ptr %9, align 4, !tbaa !9
  %45 = fcmp ogt float %44, 1.000000e+00
  br i1 %45, label %46, label %48

46:                                               ; preds = %43, %40
  %47 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 60, ptr noundef @.str.3)
  store i32 %47, ptr %6, align 4
  br label %193

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = mul i32 2, %49
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = mul i32 %50, %51
  %53 = add i32 %52, 1
  store i32 %53, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = mul i32 2, %54
  %56 = uitofp i32 %55 to float
  %57 = fpext float %56 to double
  %58 = fdiv double 1.000000e+00, %57
  %59 = fptrunc double %58 to float
  store float %59, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %60 = load float, ptr %13, align 4, !tbaa !9
  %61 = fpext float %60 to double
  %62 = load float, ptr %9, align 4, !tbaa !9
  %63 = fpext float %62 to double
  %64 = fsub double 1.000000e+00, %63
  %65 = fmul double %61, %64
  %66 = fptrunc double %65 to float
  store float %66, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %67 = load float, ptr %13, align 4, !tbaa !9
  %68 = fpext float %67 to double
  %69 = load float, ptr %9, align 4, !tbaa !9
  %70 = fpext float %69 to double
  %71 = fadd double 1.000000e+00, %70
  %72 = fmul double %68, %71
  %73 = fptrunc double %72 to float
  store float %73, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 3, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  store float 0.000000e+00, ptr %17, align 4, !tbaa !9
  %74 = getelementptr inbounds float, ptr %17, i64 1
  %75 = load float, ptr %14, align 4, !tbaa !9
  store float %75, ptr %74, align 4, !tbaa !9
  %76 = getelementptr inbounds float, ptr %17, i64 2
  %77 = load float, ptr %13, align 4, !tbaa !9
  store float %77, ptr %76, align 4, !tbaa !9
  %78 = getelementptr inbounds float, ptr %17, i64 3
  %79 = load float, ptr %13, align 4, !tbaa !9
  store float %79, ptr %78, align 4, !tbaa !9
  %80 = getelementptr inbounds float, ptr %17, i64 4
  %81 = load float, ptr %15, align 4, !tbaa !9
  store float %81, ptr %80, align 4, !tbaa !9
  %82 = getelementptr inbounds float, ptr %17, i64 5
  store float 5.000000e-01, ptr %82, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  store float 1.000000e+00, ptr %18, align 4, !tbaa !9
  %83 = getelementptr inbounds float, ptr %18, i64 1
  %84 = call float @sqrtf(float noundef 2.000000e+00) #7
  %85 = fdiv float 1.000000e+00, %84
  store float %85, ptr %83, align 4, !tbaa !9
  %86 = getelementptr inbounds float, ptr %18, i64 2
  store float 0.000000e+00, ptr %86, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 @__const.liquid_firdes_hM3.weights, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 @__const.liquid_firdes_hM3.wtype, i64 12, i1 false)
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = call ptr @llvm.stacksave.p0()
  store ptr %89, ptr %22, align 8
  %90 = alloca float, i64 %88, align 16
  store i64 %88, ptr %23, align 8
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = load i32, ptr %16, align 4, !tbaa !5
  %93 = getelementptr inbounds [6 x float], ptr %17, i64 0, i64 0
  %94 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 0
  %95 = getelementptr inbounds [3 x float], ptr %19, i64 0, i64 0
  %96 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 0
  %97 = load i32, ptr %20, align 4, !tbaa !5
  %98 = call i32 @firdespm_run(i32 noundef %91, i32 noundef %92, ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96, i32 noundef %97, ptr noundef %90)
  %99 = load ptr, ptr %11, align 8, !tbaa !11
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = mul i64 %101, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %99, ptr align 16 %90, i64 %102, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = load i32, ptr %8, align 4, !tbaa !5
  call void @liquid_filter_isi(ptr noundef %90, i32 noundef %103, i32 noundef %104, ptr noundef %25, ptr noundef %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %105 = load float, ptr %25, align 4, !tbaa !9
  store float %105, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 100, ptr %28, align 4, !tbaa !5
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %147, %48
  %107 = load i32, ptr %27, align 4, !tbaa !5
  %108 = load i32, ptr %28, align 4, !tbaa !5
  %109 = icmp ult i32 %107, %108
  br i1 %109, label %110, label %150

110:                                              ; preds = %106
  %111 = load float, ptr %13, align 4, !tbaa !9
  %112 = fpext float %111 to double
  %113 = load float, ptr %9, align 4, !tbaa !9
  %114 = load i32, ptr %27, align 4, !tbaa !5
  %115 = uitofp i32 %114 to float
  %116 = fmul float %113, %115
  %117 = load i32, ptr %28, align 4, !tbaa !5
  %118 = uitofp i32 %117 to float
  %119 = fdiv float %116, %118
  %120 = fpext float %119 to double
  %121 = fsub double 1.000000e+00, %120
  %122 = fmul double %112, %121
  %123 = fptrunc double %122 to float
  store float %123, ptr %14, align 4, !tbaa !9
  %124 = load float, ptr %14, align 4, !tbaa !9
  %125 = getelementptr inbounds [6 x float], ptr %17, i64 0, i64 1
  store float %124, ptr %125, align 4, !tbaa !9
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = load i32, ptr %16, align 4, !tbaa !5
  %128 = getelementptr inbounds [6 x float], ptr %17, i64 0, i64 0
  %129 = getelementptr inbounds [3 x float], ptr %18, i64 0, i64 0
  %130 = getelementptr inbounds [3 x float], ptr %19, i64 0, i64 0
  %131 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 0
  %132 = load i32, ptr %20, align 4, !tbaa !5
  %133 = call i32 @firdespm_run(i32 noundef %126, i32 noundef %127, ptr noundef %128, ptr noundef %129, ptr noundef %130, ptr noundef %131, i32 noundef %132, ptr noundef %90)
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = load i32, ptr %8, align 4, !tbaa !5
  call void @liquid_filter_isi(ptr noundef %90, i32 noundef %134, i32 noundef %135, ptr noundef %25, ptr noundef %24)
  %136 = load float, ptr %25, align 4, !tbaa !9
  %137 = load float, ptr %26, align 4, !tbaa !9
  %138 = fcmp ogt float %136, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %110
  br label %150

140:                                              ; preds = %110
  %141 = load float, ptr %25, align 4, !tbaa !9
  store float %141, ptr %26, align 4, !tbaa !9
  %142 = load ptr, ptr %11, align 8, !tbaa !11
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = zext i32 %143 to i64
  %145 = mul i64 %144, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %142, ptr align 16 %90, i64 %145, i1 false)
  br label %146

146:                                              ; preds = %140
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %27, align 4, !tbaa !5
  %149 = add i32 %148, 1
  store i32 %149, ptr %27, align 4, !tbaa !5
  br label %106, !llvm.loop !13

150:                                              ; preds = %139, %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store float 0.000000e+00, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %168, %150
  %152 = load i32, ptr %30, align 4, !tbaa !5
  %153 = load i32, ptr %12, align 4, !tbaa !5
  %154 = icmp ult i32 %152, %153
  br i1 %154, label %155, label %171

155:                                              ; preds = %151
  %156 = load ptr, ptr %11, align 8, !tbaa !11
  %157 = load i32, ptr %30, align 4, !tbaa !5
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds float, ptr %156, i64 %158
  %160 = load float, ptr %159, align 4, !tbaa !9
  %161 = load ptr, ptr %11, align 8, !tbaa !11
  %162 = load i32, ptr %30, align 4, !tbaa !5
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds float, ptr %161, i64 %163
  %165 = load float, ptr %164, align 4, !tbaa !9
  %166 = load float, ptr %29, align 4, !tbaa !9
  %167 = call float @llvm.fmuladd.f32(float %160, float %165, float %166)
  store float %167, ptr %29, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %155
  %169 = load i32, ptr %30, align 4, !tbaa !5
  %170 = add i32 %169, 1
  store i32 %170, ptr %30, align 4, !tbaa !5
  br label %151, !llvm.loop !15

171:                                              ; preds = %151
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %188, %171
  %173 = load i32, ptr %30, align 4, !tbaa !5
  %174 = load i32, ptr %12, align 4, !tbaa !5
  %175 = icmp ult i32 %173, %174
  br i1 %175, label %176, label %191

176:                                              ; preds = %172
  %177 = load i32, ptr %7, align 4, !tbaa !5
  %178 = uitofp i32 %177 to float
  %179 = load float, ptr %29, align 4, !tbaa !9
  %180 = fdiv float %178, %179
  %181 = call float @sqrtf(float noundef %180) #7
  %182 = load ptr, ptr %11, align 8, !tbaa !11
  %183 = load i32, ptr %30, align 4, !tbaa !5
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds float, ptr %182, i64 %184
  %186 = load float, ptr %185, align 4, !tbaa !9
  %187 = fmul float %186, %181
  store float %187, ptr %185, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %176
  %189 = load i32, ptr %30, align 4, !tbaa !5
  %190 = add i32 %189, 1
  store i32 %190, ptr %30, align 4, !tbaa !5
  br label %172, !llvm.loop !16

191:                                              ; preds = %172
  store i32 0, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %192 = load ptr, ptr %22, align 8
  call void @llvm.stackrestore.p0(ptr %192)
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %193

193:                                              ; preds = %191, %46, %38, %33
  %194 = load i32, ptr %6, align 4
  ret i32 %194
}

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

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

; Function Attrs: nounwind
declare float @sqrtf(float 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

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

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

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

declare void @liquid_filter_isi(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind willreturn }
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 = !{!"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}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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 [75 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@__const.liquid_firdes_hM3.weights = external hidden unnamed_addr constant [3 x float], align 4
@__const.liquid_firdes_hM3.wtype = external hidden unnamed_addr constant [3 x i32], align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_firdes_hM3(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = alloca [6 x float], align 16
  %7 = alloca [3 x float], align 8
  %8 = alloca [3 x float], align 4
  %9 = alloca [3 x i32], align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = icmp ult i32 %0, 2
  br i1 %12, label %13, label %15

13:                                               ; preds = %5
  %14 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 56, ptr noundef nonnull @.str.1) #7
  br label %110

15:                                               ; preds = %5
  %16 = icmp eq i32 %1, 0
  br i1 %16, label %17, label %19

17:                                               ; preds = %15
  %18 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.2) #7
  br label %110

19:                                               ; preds = %15
  %20 = fcmp olt float %2, 0.000000e+00
  %21 = fcmp ogt float %2, 1.000000e+00
  %or.cond = or i1 %20, %21
  br i1 %or.cond, label %22, label %24

22:                                               ; preds = %19
  %23 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 60, ptr noundef nonnull @.str.3) #7
  br label %110

24:                                               ; preds = %19
  %25 = shl i32 %0, 1
  %26 = mul i32 %25, %1
  %27 = or disjoint i32 %26, 1
  %28 = uitofp i32 %25 to float
  %29 = fdiv float 1.000000e+00, %28
  %30 = fpext float %29 to double
  %31 = fpext float %2 to double
  %32 = fsub double 1.000000e+00, %31
  %33 = fmul double %32, %30
  %34 = fptrunc double %33 to float
  %35 = fadd double %31, 1.000000e+00
  %36 = fmul double %35, %30
  %37 = fptrunc double %36 to float
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  store float 0.000000e+00, ptr %6, align 16, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %6, i64 4
  store float %34, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  store float %29, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %6, i64 12
  store float %29, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %6, i64 16
  store float %37, ptr %41, align 16, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %6, i64 20
  store float 5.000000e-01, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  store <2 x float> <float 1.000000e+00, float 0x3FE6A09E60000000>, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %7, i64 8
  store float 0.000000e+00, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) @__const.liquid_firdes_hM3.weights, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  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_hM3.wtype, i64 12, i1 false)
  %44 = zext i32 %27 to i64
  %45 = tail call ptr @llvm.stacksave.p0()
  %46 = alloca float, i64 %44, align 16
  %47 = call i32 @firdespm_run(i32 noundef %27, i32 noundef 3, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef 0, ptr noundef nonnull %46) #7
  %48 = shl nuw nsw i64 %44, 2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %4, ptr noundef nonnull align 16 dereferenceable(1) %46, i64 %48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @liquid_filter_isi(ptr noundef nonnull %46, i32 noundef %0, i32 noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %10) #7
  %49 = load float, ptr %11, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %24, %61
  %.05867 = phi i32 [ 0, %24 ], [ %62, %61 ]
  %.05966 = phi float [ %49, %24 ], [ %59, %61 ]
  %51 = uitofp nneg i32 %.05867 to float
  %52 = fmul float %51, %2
  %53 = fdiv float %52, 1.000000e+02
  %54 = fpext float %53 to double
  %55 = fsub double 1.000000e+00, %54
  %56 = fmul double %55, %30
  %57 = fptrunc double %56 to float
  store float %57, ptr %38, align 4, !tbaa !5
  %58 = call i32 @firdespm_run(i32 noundef %27, i32 noundef 3, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef 0, ptr noundef nonnull %46) #7
  call void @liquid_filter_isi(ptr noundef nonnull %46, i32 noundef %0, i32 noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %10) #7
  %59 = load float, ptr %11, align 4, !tbaa !5
  %60 = fcmp ogt float %59, %.05966
  br i1 %60, label %63, label %61

61:                                               ; preds = %50
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %4, ptr noundef nonnull align 16 dereferenceable(1) %46, i64 %48, i1 false)
  %62 = add nuw nsw i32 %.05867, 1
  %exitcond.not = icmp eq i32 %62, 100
  br i1 %exitcond.not, label %63, label %50, !llvm.loop !9

63:                                               ; preds = %50, %61
  %64 = or disjoint i32 %26, 1
  %wide.trip.count = zext i32 %64 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %65 = icmp ult i32 %26, 3
  br i1 %65, label %.epil.preheader, label %.new

.new:                                             ; preds = %63
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %75

.epil.preheader:                                  ; preds = %63, %75
  %indvars.iv.unr = phi i64 [ 0, %63 ], [ %indvars.iv.next.3, %75 ]
  %.05668.unr = phi float [ 0.000000e+00, %63 ], [ %87, %75 ]
  br label %66

66:                                               ; preds = %66, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.unr, %.epil.preheader ], [ %indvars.iv.next.epil, %66 ]
  %.05668.epil = phi float [ %.05668.unr, %.epil.preheader ], [ %69, %66 ]
  %epil.iter = phi i64 [ 0, %.epil.preheader ], [ %epil.iter.next, %66 ]
  %67 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.epil
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = call float @llvm.fmuladd.f32(float %68, float %68, float %.05668.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.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 %.preheader, label %66, !llvm.loop !11

.preheader:                                       ; preds = %66
  %70 = uitofp i32 %0 to float
  %71 = fdiv float %70, %69
  %72 = or disjoint i32 %26, 1
  %73 = zext i32 %72 to i64
  %xtraiter80 = and i64 %73, 3
  %74 = icmp ult i32 %26, 3
  br i1 %74, label %.epil.preheader79, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter83 = and i64 %73, 4294967292
  br label %88

75:                                               ; preds = %75, %.new
  %indvars.iv = phi i64 [ 0, %.new ], [ %indvars.iv.next.3, %75 ]
  %.05668 = phi float [ 0.000000e+00, %.new ], [ %87, %75 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.3, %75 ]
  %76 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = call float @llvm.fmuladd.f32(float %77, float %77, float %.05668)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %79 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = call float @llvm.fmuladd.f32(float %80, float %80, float %78)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %82 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next.1
  %83 = load float, ptr %82, align 4, !tbaa !5
  %84 = call float @llvm.fmuladd.f32(float %83, float %83, float %81)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %85 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next.2
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = call float @llvm.fmuladd.f32(float %86, float %86, float %84)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 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 %.epil.preheader, label %75, !llvm.loop !13

88:                                               ; preds = %88, %.preheader.new
  %indvars.iv73 = phi i64 [ 0, %.preheader.new ], [ %indvars.iv.next74.3, %88 ]
  %niter84 = phi i64 [ 0, %.preheader.new ], [ %niter84.next.3, %88 ]
  %89 = call float @sqrtf(float noundef %71) #7
  %90 = getelementptr inbounds float, ptr %4, i64 %indvars.iv73
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = fmul float %89, %91
  store float %92, ptr %90, align 4, !tbaa !5
  %indvars.iv.next74 = or disjoint i64 %indvars.iv73, 1
  %93 = call float @sqrtf(float noundef %71) #7
  %94 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next74
  %95 = load float, ptr %94, align 4, !tbaa !5
  %96 = fmul float %93, %95
  store float %96, ptr %94, align 4, !tbaa !5
  %indvars.iv.next74.1 = or disjoint i64 %indvars.iv73, 2
  %97 = call float @sqrtf(float noundef %71) #7
  %98 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next74.1
  %99 = load float, ptr %98, align 4, !tbaa !5
  %100 = fmul float %97, %99
  store float %100, ptr %98, align 4, !tbaa !5
  %indvars.iv.next74.2 = or disjoint i64 %indvars.iv73, 3
  %101 = call float @sqrtf(float noundef %71) #7
  %102 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next74.2
  %103 = load float, ptr %102, align 4, !tbaa !5
  %104 = fmul float %101, %103
  store float %104, ptr %102, align 4, !tbaa !5
  %indvars.iv.next74.3 = add nuw nsw i64 %indvars.iv73, 4
  %niter84.next.3 = add i64 %niter84, 4
  %niter84.ncmp.3 = icmp eq i64 %niter84.next.3, %unroll_iter83
  br i1 %niter84.ncmp.3, label %.epil.preheader79, label %88, !llvm.loop !14

.epil.preheader79:                                ; preds = %.preheader, %88
  %indvars.iv73.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next74.3, %88 ]
  br label %105

105:                                              ; preds = %105, %.epil.preheader79
  %indvars.iv73.epil = phi i64 [ %indvars.iv73.unr, %.epil.preheader79 ], [ %indvars.iv.next74.epil, %105 ]
  %epil.iter81 = phi i64 [ 0, %.epil.preheader79 ], [ %epil.iter81.next, %105 ]
  %106 = call float @sqrtf(float noundef %71) #7
  %107 = getelementptr inbounds float, ptr %4, i64 %indvars.iv73.epil
  %108 = load float, ptr %107, align 4, !tbaa !5
  %109 = fmul float %106, %108
  store float %109, ptr %107, align 4, !tbaa !5
  %indvars.iv.next74.epil = add nuw nsw i64 %indvars.iv73.epil, 1
  %epil.iter81.next = add i64 %epil.iter81, 1
  %epil.iter81.cmp.not = icmp eq i64 %epil.iter81.next, %xtraiter80
  br i1 %epil.iter81.cmp.not, label %.epilog-lcssa, label %105, !llvm.loop !15

.epilog-lcssa:                                    ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.stackrestore.p0(ptr %45)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %110

110:                                              ; preds = %.epilog-lcssa, %22, %17, %13
  %.057 = phi i32 [ %14, %13 ], [ %18, %17 ], [ %23, %22 ], [ 0, %.epilog-lcssa ]
  ret i32 %.057
}

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

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

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

; 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 nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

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

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

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

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { mustprogress 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, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass