; LLVM IR from jgaeddert/liquid-dsp :: sandbox (rkaiser2_test)

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

%struct.gsuserdata_s = type { i32, i32, float, float, float, float }

@stderr = external global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [54 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @liquid_firdes_rkaiser_filter2(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca [2 x float], align 4
  %17 = alloca %struct.gsuserdata_s, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store float %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !11
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = icmp ult i32 %22, 2
  br i1 %23, label %24, label %27

24:                                               ; preds = %5
  %25 = load ptr, ptr @stderr, align 8, !tbaa !11
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.25) #6
  call void @exit(i32 noundef 1) #7
  unreachable

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

30:                                               ; preds = %27
  %31 = load ptr, ptr @stderr, align 8, !tbaa !11
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.26) #6
  call void @exit(i32 noundef 1) #7
  unreachable

33:                                               ; preds = %27
  %34 = load float, ptr %8, 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 %8, align 4, !tbaa !9
  %38 = fcmp oge float %37, 1.000000e+00
  br i1 %38, label %39, label %42

39:                                               ; preds = %36, %33
  %40 = load ptr, ptr @stderr, align 8, !tbaa !11
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.27) #6
  call void @exit(i32 noundef 1) #7
  unreachable

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

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

48:                                               ; preds = %45, %42
  %49 = load ptr, ptr @stderr, align 8, !tbaa !11
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.28) #6
  call void @exit(i32 noundef 1) #7
  unreachable

51:                                               ; preds = %45
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = mul i32 2, %55
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = mul i32 %56, %57
  %59 = add i32 %58, 1
  store i32 %59, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = load float, ptr %8, align 4, !tbaa !9
  %62 = call float @rkaiser_approximate_rho(i32 noundef %60, float noundef %61)
  store float %62, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %63 = load float, ptr %8, align 4, !tbaa !9
  %64 = load float, ptr %12, align 4, !tbaa !9
  %65 = fsub float 1.000000e+00, %64
  %66 = call float @llvm.fmuladd.f32(float %63, float %65, float 1.000000e+00)
  %67 = fmul float 5.000000e-01, %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = uitofp i32 %68 to float
  %70 = fdiv float %67, %69
  store float %70, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %71 = load float, ptr %8, align 4, !tbaa !9
  %72 = load float, ptr %12, align 4, !tbaa !9
  %73 = fmul float %71, %72
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = uitofp i32 %74 to float
  %76 = fdiv float %73, %75
  store float %76, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %77 = load float, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = call float @estimate_req_filter_As(float noundef %77, i32 noundef %78)
  store float %79, ptr %15, align 4, !tbaa !9
  %80 = load float, ptr %13, align 4, !tbaa !9
  %81 = fmul float %80, 0x3FEFD70A40000000
  store float %81, ptr %13, align 4, !tbaa !9
  %82 = load float, ptr %15, align 4, !tbaa !9
  %83 = fsub float %82, 1.000000e+00
  store float %83, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %84 = load float, ptr %13, align 4, !tbaa !9
  store float %84, ptr %16, align 4, !tbaa !9
  %85 = getelementptr inbounds float, ptr %16, i64 1
  %86 = load float, ptr %15, align 4, !tbaa !9
  %87 = fdiv float %86, 1.000000e+03
  store float %87, ptr %85, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  %88 = getelementptr inbounds %struct.gsuserdata_s, ptr %17, i32 0, i32 0
  %89 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %89, ptr %88, align 4, !tbaa !13
  %90 = getelementptr inbounds %struct.gsuserdata_s, ptr %17, i32 0, i32 1
  %91 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %91, ptr %90, align 4, !tbaa !15
  %92 = getelementptr inbounds %struct.gsuserdata_s, ptr %17, i32 0, i32 2
  %93 = load float, ptr %8, align 4, !tbaa !9
  store float %93, ptr %92, align 4, !tbaa !16
  %94 = getelementptr inbounds %struct.gsuserdata_s, ptr %17, i32 0, i32 3
  %95 = load float, ptr %9, align 4, !tbaa !9
  store float %95, ptr %94, align 4, !tbaa !17
  %96 = getelementptr inbounds %struct.gsuserdata_s, ptr %17, i32 0, i32 4
  store float 5.000000e-01, ptr %96, align 4, !tbaa !18
  %97 = getelementptr inbounds %struct.gsuserdata_s, ptr %17, i32 0, i32 5
  store float 5.000000e-01, ptr %97, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %98 = getelementptr inbounds [2 x float], ptr %16, i64 0, i64 0
  %99 = call ptr @gradsearch_create(ptr noundef %17, ptr noundef %98, i32 noundef 2, ptr noundef @gs_utility, i32 noundef 0)
  store ptr %99, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 100, ptr %20, align 4, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %108, %54
  %101 = load i32, ptr %19, align 4, !tbaa !5
  %102 = load i32, ptr %20, align 4, !tbaa !5
  %103 = icmp ult i32 %101, %102
  br i1 %103, label %104, label %111

104:                                              ; preds = %100
  %105 = load ptr, ptr %18, align 8, !tbaa !11
  %106 = call float @gradsearch_step(ptr noundef %105)
  %107 = load ptr, ptr %18, align 8, !tbaa !11
  call void @gradsearch_print(ptr noundef %107)
  br label %108

108:                                              ; preds = %104
  %109 = load i32, ptr %19, align 4, !tbaa !5
  %110 = add i32 %109, 1
  store i32 %110, ptr %19, align 4, !tbaa !5
  br label %100, !llvm.loop !20

111:                                              ; preds = %100
  %112 = load ptr, ptr %18, align 8, !tbaa !11
  call void @gradsearch_destroy(ptr noundef %112)
  %113 = getelementptr inbounds [2 x float], ptr %16, i64 0, i64 0
  %114 = load float, ptr %113, align 4, !tbaa !9
  store float %114, ptr %13, align 4, !tbaa !9
  %115 = getelementptr inbounds [2 x float], ptr %16, i64 0, i64 1
  %116 = load float, ptr %115, align 4, !tbaa !9
  %117 = fmul float %116, 1.000000e+03
  store float %117, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = load float, ptr %13, align 4, !tbaa !9
  %120 = load float, ptr %15, align 4, !tbaa !9
  %121 = load float, ptr %9, align 4, !tbaa !9
  %122 = load ptr, ptr %10, align 8, !tbaa !11
  %123 = call i32 @liquid_firdes_kaiser(i32 noundef %118, float noundef %119, float noundef %120, float noundef %121, ptr noundef %122)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float 0.000000e+00, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %141, %111
  %125 = load i32, ptr %19, align 4, !tbaa !5
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = icmp ult i32 %125, %126
  br i1 %127, label %128, label %144

128:                                              ; preds = %124
  %129 = load ptr, ptr %10, align 8, !tbaa !11
  %130 = load i32, ptr %19, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !9
  %134 = load ptr, ptr %10, align 8, !tbaa !11
  %135 = load i32, ptr %19, align 4, !tbaa !5
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds float, ptr %134, i64 %136
  %138 = load float, ptr %137, align 4, !tbaa !9
  %139 = load float, ptr %21, align 4, !tbaa !9
  %140 = call float @llvm.fmuladd.f32(float %133, float %138, float %139)
  store float %140, ptr %21, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %128
  %142 = load i32, ptr %19, align 4, !tbaa !5
  %143 = add i32 %142, 1
  store i32 %143, ptr %19, align 4, !tbaa !5
  br label %124, !llvm.loop !22

144:                                              ; preds = %124
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %161, %144
  %146 = load i32, ptr %19, align 4, !tbaa !5
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = icmp ult i32 %146, %147
  br i1 %148, label %149, label %164

149:                                              ; preds = %145
  %150 = load i32, ptr %6, align 4, !tbaa !5
  %151 = uitofp i32 %150 to float
  %152 = load float, ptr %21, align 4, !tbaa !9
  %153 = fdiv float %151, %152
  %154 = call float @sqrtf(float noundef %153) #6
  %155 = load ptr, ptr %10, align 8, !tbaa !11
  %156 = load i32, ptr %19, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds float, ptr %155, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !9
  %160 = fmul float %159, %154
  store float %160, ptr %158, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %149
  %162 = load i32, ptr %19, align 4, !tbaa !5
  %163 = add i32 %162, 1
  store i32 %163, ptr %19, align 4, !tbaa !5
  br label %145, !llvm.loop !23

164:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

declare float @rkaiser_approximate_rho(i32 noundef, float noundef) #4

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

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

declare ptr @gradsearch_create(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #4

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

declare float @gradsearch_step(ptr noundef) #4

declare void @gradsearch_print(ptr noundef) #4

declare void @gradsearch_destroy(ptr noundef) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { noreturn 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!14, !6, i64 0}
!14 = !{!"gsuserdata_s", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!15 = !{!14, !6, i64 4}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !10, i64 12}
!18 = !{!14, !10, i64 16}
!19 = !{!14, !10, i64 20}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


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

%struct.gsuserdata_s = type { i32, i32, float, float, float, float }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [54 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local void @liquid_firdes_rkaiser_filter2(i32 noundef %0, i32 noundef %1, float noundef %2, float noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca [2 x float], align 4
  %7 = alloca %struct.gsuserdata_s, align 4
  %8 = icmp ult i32 %0, 2
  br i1 %8, label %9, label %12

9:                                                ; preds = %5
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.25) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

12:                                               ; preds = %5
  %13 = icmp eq i32 %1, 0
  br i1 %13, label %14, label %17

14:                                               ; preds = %12
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.26) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

17:                                               ; preds = %12
  %18 = fcmp ole float %2, 0.000000e+00
  %19 = fcmp oge float %2, 1.000000e+00
  %or.cond = or i1 %18, %19
  br i1 %or.cond, label %20, label %23

20:                                               ; preds = %17
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.27) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

23:                                               ; preds = %17
  %24 = tail call float @llvm.fabs.f32(float %3)
  %or.cond3 = fcmp ogt float %24, 1.000000e+00
  br i1 %or.cond3, label %25, label %28

25:                                               ; preds = %23
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.28) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

28:                                               ; preds = %23
  %29 = shl i32 %0, 1
  %30 = mul i32 %29, %1
  %31 = or disjoint i32 %30, 1
  %32 = tail call float @rkaiser_approximate_rho(i32 noundef %1, float noundef %2) #10
  %33 = fsub float 1.000000e+00, %32
  %34 = tail call float @llvm.fmuladd.f32(float %2, float %33, float 1.000000e+00)
  %35 = fmul float %34, 5.000000e-01
  %36 = uitofp i32 %0 to float
  %37 = fdiv float %35, %36
  %38 = fmul float %32, %2
  %39 = fdiv float %38, %36
  %40 = tail call float @estimate_req_filter_As(float noundef %39, i32 noundef %31) #10
  %41 = fmul float %37, 0x3FEFD70A40000000
  %42 = fadd float %40, -1.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  store float %41, ptr %6, align 4, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %6, i64 4
  %44 = fdiv float %42, 1.000000e+03
  store float %44, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #10
  store i32 %0, ptr %7, align 4, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 %1, ptr %45, align 4, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %7, i64 8
  store float %2, ptr %46, align 4, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %7, i64 12
  store float %3, ptr %47, align 4, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %7, i64 16
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %48, align 4, !tbaa !9
  %49 = call ptr @gradsearch_create(ptr noundef nonnull %7, ptr noundef nonnull %6, i32 noundef 2, ptr noundef nonnull @gs_utility, i32 noundef 0) #10
  br label %50

50:                                               ; preds = %28, %50
  %.05461 = phi i32 [ 0, %28 ], [ %52, %50 ]
  %51 = call float @gradsearch_step(ptr noundef %49) #10
  call void @gradsearch_print(ptr noundef %49) #10
  %52 = add nuw nsw i32 %.05461, 1
  %exitcond.not = icmp eq i32 %52, 100
  br i1 %exitcond.not, label %53, label %50, !llvm.loop !17

53:                                               ; preds = %50
  call void @gradsearch_destroy(ptr noundef %49) #10
  %54 = load float, ptr %6, align 4, !tbaa !9
  %55 = load float, ptr %43, align 4, !tbaa !9
  %56 = fmul float %55, 1.000000e+03
  %57 = call i32 @liquid_firdes_kaiser(i32 noundef %31, float noundef %54, float noundef %56, float noundef %3, ptr noundef %4) #10
  %58 = or disjoint i32 %30, 1
  %wide.trip.count = zext i32 %58 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %59 = icmp ult i32 %30, 3
  br i1 %59, label %.epil.preheader, label %.new

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

.epil.preheader:                                  ; preds = %53, %68
  %indvars.iv.unr = phi i64 [ 0, %53 ], [ %indvars.iv.next.3, %68 ]
  %.063.unr = phi float [ 0.000000e+00, %53 ], [ %80, %68 ]
  br label %60

60:                                               ; preds = %60, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.unr, %.epil.preheader ], [ %indvars.iv.next.epil, %60 ]
  %.063.epil = phi float [ %.063.unr, %.epil.preheader ], [ %63, %60 ]
  %epil.iter = phi i64 [ 0, %.epil.preheader ], [ %epil.iter.next, %60 ]
  %61 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.epil
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = call float @llvm.fmuladd.f32(float %62, float %62, float %.063.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 %60, !llvm.loop !19

.preheader:                                       ; preds = %60
  %64 = fdiv float %36, %63
  %65 = or disjoint i32 %30, 1
  %66 = zext i32 %65 to i64
  %xtraiter74 = and i64 %66, 3
  %67 = icmp ult i32 %30, 3
  br i1 %67, label %.epil.preheader73, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter77 = and i64 %66, 4294967292
  br label %81

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

81:                                               ; preds = %81, %.preheader.new
  %indvars.iv67 = phi i64 [ 0, %.preheader.new ], [ %indvars.iv.next68.3, %81 ]
  %niter78 = phi i64 [ 0, %.preheader.new ], [ %niter78.next.3, %81 ]
  %82 = call float @sqrtf(float noundef %64) #10
  %83 = getelementptr inbounds float, ptr %4, i64 %indvars.iv67
  %84 = load float, ptr %83, align 4, !tbaa !9
  %85 = fmul float %82, %84
  store float %85, ptr %83, align 4, !tbaa !9
  %indvars.iv.next68 = or disjoint i64 %indvars.iv67, 1
  %86 = call float @sqrtf(float noundef %64) #10
  %87 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next68
  %88 = load float, ptr %87, align 4, !tbaa !9
  %89 = fmul float %86, %88
  store float %89, ptr %87, align 4, !tbaa !9
  %indvars.iv.next68.1 = or disjoint i64 %indvars.iv67, 2
  %90 = call float @sqrtf(float noundef %64) #10
  %91 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next68.1
  %92 = load float, ptr %91, align 4, !tbaa !9
  %93 = fmul float %90, %92
  store float %93, ptr %91, align 4, !tbaa !9
  %indvars.iv.next68.2 = or disjoint i64 %indvars.iv67, 3
  %94 = call float @sqrtf(float noundef %64) #10
  %95 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next68.2
  %96 = load float, ptr %95, align 4, !tbaa !9
  %97 = fmul float %94, %96
  store float %97, ptr %95, align 4, !tbaa !9
  %indvars.iv.next68.3 = add nuw nsw i64 %indvars.iv67, 4
  %niter78.next.3 = add i64 %niter78, 4
  %niter78.ncmp.3 = icmp eq i64 %niter78.next.3, %unroll_iter77
  br i1 %niter78.ncmp.3, label %.epil.preheader73, label %81, !llvm.loop !22

.epil.preheader73:                                ; preds = %.preheader, %81
  %indvars.iv67.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next68.3, %81 ]
  br label %98

98:                                               ; preds = %98, %.epil.preheader73
  %indvars.iv67.epil = phi i64 [ %indvars.iv67.unr, %.epil.preheader73 ], [ %indvars.iv.next68.epil, %98 ]
  %epil.iter75 = phi i64 [ 0, %.epil.preheader73 ], [ %epil.iter75.next, %98 ]
  %99 = call float @sqrtf(float noundef %64) #10
  %100 = getelementptr inbounds float, ptr %4, i64 %indvars.iv67.epil
  %101 = load float, ptr %100, align 4, !tbaa !9
  %102 = fmul float %99, %101
  store float %102, ptr %100, align 4, !tbaa !9
  %indvars.iv.next68.epil = add nuw nsw i64 %indvars.iv67.epil, 1
  %epil.iter75.next = add i64 %epil.iter75, 1
  %epil.iter75.cmp.not = icmp eq i64 %epil.iter75.next, %xtraiter74
  br i1 %epil.iter75.cmp.not, label %.epilog-lcssa, label %98, !llvm.loop !23

.epilog-lcssa:                                    ; preds = %98
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

declare float @rkaiser_approximate_rho(i32 noundef, float noundef) local_unnamed_addr #4

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

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

declare ptr @gradsearch_create(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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

declare float @gradsearch_step(ptr noundef) local_unnamed_addr #4

declare void @gradsearch_print(ptr noundef) local_unnamed_addr #4

declare void @gradsearch_destroy(ptr noundef) local_unnamed_addr #4

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { noreturn 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 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!"any pointer", !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, !13, i64 0}
!12 = !{!"gsuserdata_s", !13, i64 0, !13, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !10, i64 8}
!16 = !{!12, !10, i64 12}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !20}


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