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

; 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 [79 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 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
define dso_local i32 @liquid_firdes_arkaiser(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3, ptr noundef %4) #2 {
  %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 float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = 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
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = icmp ult i32 %24, 2
  br i1 %25, label %26, label %28

26:                                               ; preds = %5
  %27 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 84, ptr noundef @.str.5)
  store i32 %27, ptr %6, align 4
  br label %153

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

31:                                               ; preds = %28
  %32 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 86, ptr noundef @.str.6)
  store i32 %32, ptr %6, align 4
  br label %153

33:                                               ; preds = %28
  %34 = load float, ptr %9, align 4, !tbaa !9
  %35 = fcmp ole float %34, 0.000000e+00
  br i1 %35, label %39, label %36

36:                                               ; preds = %33
  %37 = load float, ptr %9, align 4, !tbaa !9
  %38 = fcmp oge float %37, 1.000000e+00
  br i1 %38, label %39, label %41

39:                                               ; preds = %36, %33
  %40 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 88, ptr noundef @.str.7)
  store i32 %40, ptr %6, align 4
  br label %153

41:                                               ; preds = %36
  %42 = load float, ptr %10, align 4, !tbaa !9
  %43 = fcmp olt float %42, -1.000000e+00
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = load float, ptr %10, align 4, !tbaa !9
  %46 = fcmp ogt float %45, 1.000000e+00
  br i1 %46, label %47, label %49

47:                                               ; preds = %44, %41
  %48 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 90, ptr noundef @.str.8)
  store i32 %48, ptr %6, align 4
  br label %153

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = uitofp i32 %50 to float
  %52 = call float @logf(float noundef %51) #5
  %53 = fpext float %52 to double
  %54 = call double @llvm.fmuladd.f64(double 6.766300e-02, double %53, double 0x3FE8698FE69270B0)
  %55 = fptrunc double %54 to float
  store float %55, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store float 0x3FB0C59740000000, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = uitofp i32 %56 to float
  %58 = call float @powf(float noundef %57, float noundef 0xBFF99999A0000000) #5
  %59 = fpext float %58 to double
  %60 = call double @llvm.fmuladd.f64(double 0xBFB6872B020C49BA, double %59, double 1.000000e+00)
  %61 = fptrunc double %60 to float
  %62 = call float @logf(float noundef %61) #5
  store float %62, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %63 = load float, ptr %9, align 4, !tbaa !9
  %64 = call float @logf(float noundef %63) #5
  store float %64, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %65 = load float, ptr %12, align 4, !tbaa !9
  %66 = load float, ptr %13, align 4, !tbaa !9
  %67 = load float, ptr %15, align 4, !tbaa !9
  %68 = call float @llvm.fmuladd.f32(float %66, float %67, float %65)
  %69 = load float, ptr %14, align 4, !tbaa !9
  %70 = load float, ptr %15, align 4, !tbaa !9
  %71 = fmul float %69, %70
  %72 = load float, ptr %15, align 4, !tbaa !9
  %73 = call float @llvm.fmuladd.f32(float %71, float %72, float %68)
  store float %73, ptr %16, align 4, !tbaa !9
  %74 = load float, ptr %16, align 4, !tbaa !9
  %75 = fcmp ole float %74, 0.000000e+00
  br i1 %75, label %79, label %76

76:                                               ; preds = %49
  %77 = load float, ptr %16, align 4, !tbaa !9
  %78 = fcmp oge float %77, 1.000000e+00
  br i1 %78, label %79, label %83

79:                                               ; preds = %76, %49
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = load float, ptr %9, align 4, !tbaa !9
  %82 = call float @rkaiser_approximate_rho(i32 noundef %80, float noundef %81)
  store float %82, ptr %16, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %79, %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = mul i32 2, %84
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = mul i32 %85, %86
  %88 = add i32 %87, 1
  store i32 %88, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = uitofp i32 %89 to float
  store float %90, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %91 = load float, ptr %9, align 4, !tbaa !9
  %92 = load float, ptr %16, align 4, !tbaa !9
  %93 = fmul float %91, %92
  %94 = load float, ptr %18, align 4, !tbaa !9
  %95 = fdiv float %93, %94
  store float %95, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %96 = load float, ptr %19, align 4, !tbaa !9
  %97 = load i32, ptr %17, align 4, !tbaa !5
  %98 = call float @estimate_req_filter_As(float noundef %96, i32 noundef %97)
  store float %98, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %99 = load float, ptr %9, align 4, !tbaa !9
  %100 = load float, ptr %16, align 4, !tbaa !9
  %101 = fsub float 1.000000e+00, %100
  %102 = call float @llvm.fmuladd.f32(float %99, float %101, float 1.000000e+00)
  %103 = fmul float 5.000000e-01, %102
  %104 = load float, ptr %18, align 4, !tbaa !9
  %105 = fdiv float %103, %104
  store float %105, ptr %21, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !5
  %107 = load float, ptr %21, align 4, !tbaa !9
  %108 = load float, ptr %20, align 4, !tbaa !9
  %109 = load float, ptr %10, align 4, !tbaa !9
  %110 = load ptr, ptr %11, align 8, !tbaa !11
  %111 = call i32 @liquid_firdes_kaiser(i32 noundef %106, float noundef %107, float noundef %108, float noundef %109, ptr noundef %110)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store float 0.000000e+00, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %129, %83
  %113 = load i32, ptr %23, align 4, !tbaa !5
  %114 = load i32, ptr %17, align 4, !tbaa !5
  %115 = icmp ult i32 %113, %114
  br i1 %115, label %116, label %132

116:                                              ; preds = %112
  %117 = load ptr, ptr %11, align 8, !tbaa !11
  %118 = load i32, ptr %23, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds float, ptr %117, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !9
  %122 = load ptr, ptr %11, align 8, !tbaa !11
  %123 = load i32, ptr %23, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %122, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !9
  %127 = load float, ptr %22, align 4, !tbaa !9
  %128 = call float @llvm.fmuladd.f32(float %121, float %126, float %127)
  store float %128, ptr %22, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %116
  %130 = load i32, ptr %23, align 4, !tbaa !5
  %131 = add i32 %130, 1
  store i32 %131, ptr %23, align 4, !tbaa !5
  br label %112, !llvm.loop !13

132:                                              ; preds = %112
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %149, %132
  %134 = load i32, ptr %23, align 4, !tbaa !5
  %135 = load i32, ptr %17, align 4, !tbaa !5
  %136 = icmp ult i32 %134, %135
  br i1 %136, label %137, label %152

137:                                              ; preds = %133
  %138 = load i32, ptr %7, align 4, !tbaa !5
  %139 = uitofp i32 %138 to float
  %140 = load float, ptr %22, align 4, !tbaa !9
  %141 = fdiv float %139, %140
  %142 = call float @sqrtf(float noundef %141) #5
  %143 = load ptr, ptr %11, align 8, !tbaa !11
  %144 = load i32, ptr %23, align 4, !tbaa !5
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds float, ptr %143, i64 %145
  %147 = load float, ptr %146, align 4, !tbaa !9
  %148 = fmul float %147, %142
  store float %148, ptr %146, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %137
  %150 = load i32, ptr %23, align 4, !tbaa !5
  %151 = add i32 %150, 1
  store i32 %151, ptr %23, align 4, !tbaa !5
  br label %133, !llvm.loop !15

152:                                              ; preds = %133
  store i32 0, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %153

153:                                              ; preds = %152, %47, %39, %31, %26
  %154 = load i32, ptr %6, align 4
  ret i32 %154
}

; Function Attrs: nounwind
declare float @logf(float noundef) #3

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

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #3

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

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

declare float @estimate_req_filter_As(float noundef, i32 noundef) #0

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #3

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 = { 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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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}


; 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 [79 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [47 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_firdes_arkaiser(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp ult i32 %0, 2
  br i1 %6, label %7, label %9

7:                                                ; preds = %5
  %8 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 84, ptr noundef nonnull @.str.5) #5
  br label %.loopexit

9:                                                ; preds = %5
  %10 = icmp eq i32 %1, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %9
  %12 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 86, ptr noundef nonnull @.str.6) #5
  br label %.loopexit

13:                                               ; preds = %9
  %14 = fcmp ole float %2, 0.000000e+00
  %15 = fcmp oge float %2, 1.000000e+00
  %or.cond = or i1 %14, %15
  br i1 %or.cond, label %16, label %18

16:                                               ; preds = %13
  %17 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 88, ptr noundef nonnull @.str.7) #5
  br label %.loopexit

18:                                               ; preds = %13
  %19 = tail call float @llvm.fabs.f32(float %3)
  %or.cond3 = fcmp ogt float %19, 1.000000e+00
  br i1 %or.cond3, label %20, label %22

20:                                               ; preds = %18
  %21 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 90, ptr noundef nonnull @.str.8) #5
  br label %.loopexit

22:                                               ; preds = %18
  %23 = uitofp i32 %1 to float
  %24 = tail call float @logf(float noundef %23) #5
  %25 = fpext float %24 to double
  %26 = tail call double @llvm.fmuladd.f64(double %25, double 6.766300e-02, double 0x3FE8698FE69270B0)
  %27 = fptrunc double %26 to float
  %28 = tail call float @powf(float noundef %23, float noundef 0xBFF99999A0000000) #5
  %29 = fpext float %28 to double
  %30 = tail call double @llvm.fmuladd.f64(double %29, double 0xBFB6872B020C49BA, double 1.000000e+00)
  %31 = fptrunc double %30 to float
  %32 = tail call float @logf(float noundef %31) #5
  %33 = tail call float @logf(float noundef %2) #5
  %34 = tail call float @llvm.fmuladd.f32(float %33, float 0x3FB0C59740000000, float %27)
  %35 = fmul float %32, %33
  %36 = tail call float @llvm.fmuladd.f32(float %35, float %33, float %34)
  %37 = fcmp ole float %36, 0.000000e+00
  %38 = fcmp oge float %36, 1.000000e+00
  %or.cond5 = or i1 %37, %38
  br i1 %or.cond5, label %39, label %41

39:                                               ; preds = %22
  %40 = tail call float @rkaiser_approximate_rho(i32 noundef %1, float noundef %2)
  br label %41

41:                                               ; preds = %22, %39
  %.057 = phi float [ %40, %39 ], [ %36, %22 ]
  %42 = shl i32 %0, 1
  %43 = mul i32 %42, %1
  %44 = or disjoint i32 %43, 1
  %45 = uitofp i32 %0 to float
  %46 = fmul float %.057, %2
  %47 = fdiv float %46, %45
  %48 = tail call float @estimate_req_filter_As(float noundef %47, i32 noundef %44) #5
  %49 = fsub float 1.000000e+00, %.057
  %50 = tail call float @llvm.fmuladd.f32(float %2, float %49, float 1.000000e+00)
  %51 = fmul float %50, 5.000000e-01
  %52 = fdiv float %51, %45
  %53 = tail call i32 @liquid_firdes_kaiser(i32 noundef %44, float noundef %52, float noundef %48, float noundef %3, ptr noundef %4) #5
  %54 = or disjoint i32 %43, 1
  %wide.trip.count = zext i32 %54 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %55 = icmp ult i32 %43, 3
  br i1 %55, label %.epil.preheader, label %.new

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

.epil.preheader:                                  ; preds = %41, %64
  %indvars.iv.unr = phi i64 [ 0, %41 ], [ %indvars.iv.next.3, %64 ]
  %.05565.unr = phi float [ 0.000000e+00, %41 ], [ %76, %64 ]
  br label %56

56:                                               ; preds = %56, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.unr, %.epil.preheader ], [ %indvars.iv.next.epil, %56 ]
  %.05565.epil = phi float [ %.05565.unr, %.epil.preheader ], [ %59, %56 ]
  %epil.iter = phi i64 [ 0, %.epil.preheader ], [ %epil.iter.next, %56 ]
  %57 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.epil
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = tail call float @llvm.fmuladd.f32(float %58, float %58, float %.05565.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 %56, !llvm.loop !9

.preheader:                                       ; preds = %56
  %60 = fdiv float %45, %59
  %61 = or disjoint i32 %43, 1
  %62 = zext i32 %61 to i64
  %xtraiter76 = and i64 %62, 3
  %63 = icmp ult i32 %43, 3
  br i1 %63, label %.epil.preheader75, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter79 = and i64 %62, 4294967292
  br label %77

64:                                               ; preds = %64, %.new
  %indvars.iv = phi i64 [ 0, %.new ], [ %indvars.iv.next.3, %64 ]
  %.05565 = phi float [ 0.000000e+00, %.new ], [ %76, %64 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.3, %64 ]
  %65 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = tail call float @llvm.fmuladd.f32(float %66, float %66, float %.05565)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %68 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = tail call float @llvm.fmuladd.f32(float %69, float %69, float %67)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %71 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next.1
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = tail call float @llvm.fmuladd.f32(float %72, float %72, float %70)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %74 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next.2
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = tail call float @llvm.fmuladd.f32(float %75, float %75, float %73)
  %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 %64, !llvm.loop !11

77:                                               ; preds = %77, %.preheader.new
  %indvars.iv69 = phi i64 [ 0, %.preheader.new ], [ %indvars.iv.next70.3, %77 ]
  %niter80 = phi i64 [ 0, %.preheader.new ], [ %niter80.next.3, %77 ]
  %78 = tail call float @sqrtf(float noundef %60) #5
  %79 = getelementptr inbounds float, ptr %4, i64 %indvars.iv69
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = fmul float %78, %80
  store float %81, ptr %79, align 4, !tbaa !5
  %indvars.iv.next70 = or disjoint i64 %indvars.iv69, 1
  %82 = tail call float @sqrtf(float noundef %60) #5
  %83 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next70
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = fmul float %82, %84
  store float %85, ptr %83, align 4, !tbaa !5
  %indvars.iv.next70.1 = or disjoint i64 %indvars.iv69, 2
  %86 = tail call float @sqrtf(float noundef %60) #5
  %87 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next70.1
  %88 = load float, ptr %87, align 4, !tbaa !5
  %89 = fmul float %86, %88
  store float %89, ptr %87, align 4, !tbaa !5
  %indvars.iv.next70.2 = or disjoint i64 %indvars.iv69, 3
  %90 = tail call float @sqrtf(float noundef %60) #5
  %91 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next70.2
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = fmul float %90, %92
  store float %93, ptr %91, align 4, !tbaa !5
  %indvars.iv.next70.3 = add nuw nsw i64 %indvars.iv69, 4
  %niter80.next.3 = add i64 %niter80, 4
  %niter80.ncmp.3 = icmp eq i64 %niter80.next.3, %unroll_iter79
  br i1 %niter80.ncmp.3, label %.epil.preheader75, label %77, !llvm.loop !13

.epil.preheader75:                                ; preds = %.preheader, %77
  %indvars.iv69.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next70.3, %77 ]
  br label %94

94:                                               ; preds = %94, %.epil.preheader75
  %indvars.iv69.epil = phi i64 [ %indvars.iv69.unr, %.epil.preheader75 ], [ %indvars.iv.next70.epil, %94 ]
  %epil.iter77 = phi i64 [ 0, %.epil.preheader75 ], [ %epil.iter77.next, %94 ]
  %95 = tail call float @sqrtf(float noundef %60) #5
  %96 = getelementptr inbounds float, ptr %4, i64 %indvars.iv69.epil
  %97 = load float, ptr %96, align 4, !tbaa !5
  %98 = fmul float %95, %97
  store float %98, ptr %96, align 4, !tbaa !5
  %indvars.iv.next70.epil = add nuw nsw i64 %indvars.iv69.epil, 1
  %epil.iter77.next = add i64 %epil.iter77, 1
  %epil.iter77.cmp.not = icmp eq i64 %epil.iter77.next, %xtraiter76
  br i1 %epil.iter77.cmp.not, label %.loopexit, label %94, !llvm.loop !14

.loopexit:                                        ; preds = %94, %20, %16, %11, %7
  %.056 = phi i32 [ %8, %7 ], [ %12, %11 ], [ %17, %16 ], [ %21, %20 ], [ 0, %94 ]
  ret i32 %.056
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float 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 float @rkaiser_approximate_rho(i32 noundef, float noundef) local_unnamed_addr #1

declare float @estimate_req_filter_As(float noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass