; LLVM IR from jgaeddert/liquid-dsp :: sandbox (firdes_length_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"

@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, 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
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store float 0x3FB99999A0000000, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store float 2.000000e+01, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store float 1.000000e+02, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 41, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  br label %18

18:                                               ; preds = %42, %2
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = call i32 @getopt(i32 noundef %19, ptr noundef %20, ptr noundef @.str.6) #7
  store i32 %21, ptr %10, align 4, !tbaa !5
  %22 = icmp ne i32 %21, -1
  br i1 %22, label %23, label %43

23:                                               ; preds = %18
  %24 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %24, label %41 [
    i32 117, label %25
    i32 104, label %25
    i32 116, label %26
    i32 97, label %30
    i32 65, label %34
    i32 110, label %38
  ]

25:                                               ; preds = %23, %23
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %157

26:                                               ; preds = %23
  %27 = load ptr, ptr @optarg, align 8, !tbaa !9
  %28 = call double @atof(ptr noundef %27) #8
  %29 = fptrunc double %28 to float
  store float %29, ptr %6, align 4, !tbaa !11
  br label %42

30:                                               ; preds = %23
  %31 = load ptr, ptr @optarg, align 8, !tbaa !9
  %32 = call double @atof(ptr noundef %31) #8
  %33 = fptrunc double %32 to float
  store float %33, ptr %7, align 4, !tbaa !11
  br label %42

34:                                               ; preds = %23
  %35 = load ptr, ptr @optarg, align 8, !tbaa !9
  %36 = call double @atof(ptr noundef %35) #8
  %37 = fptrunc double %36 to float
  store float %37, ptr %8, align 4, !tbaa !11
  br label %42

38:                                               ; preds = %23
  %39 = load ptr, ptr @optarg, align 8, !tbaa !9
  %40 = call i32 @atoi(ptr noundef %39) #8
  store i32 %40, ptr %9, align 4, !tbaa !5
  br label %42

41:                                               ; preds = %23
  call void @exit(i32 noundef 1) #9
  unreachable

42:                                               ; preds = %38, %34, %30, %26
  br label %18, !llvm.loop !13

43:                                               ; preds = %18
  %44 = load float, ptr %7, align 4, !tbaa !11
  %45 = fcmp ole float %44, 0.000000e+00
  br i1 %45, label %49, label %46

46:                                               ; preds = %43
  %47 = load float, ptr %8, align 4, !tbaa !11
  %48 = fcmp ole float %47, 0.000000e+00
  br i1 %48, label %49, label %55

49:                                               ; preds = %46, %43
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 0
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.7, ptr noundef %53) #7
  call void @exit(i32 noundef 1) #9
  unreachable

55:                                               ; preds = %46
  %56 = load float, ptr %8, align 4, !tbaa !11
  %57 = load float, ptr %7, align 4, !tbaa !11
  %58 = fcmp ole float %56, %57
  br i1 %58, label %59, label %65

59:                                               ; preds = %55
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.8, ptr noundef %63) #7
  call void @exit(i32 noundef 1) #9
  unreachable

65:                                               ; preds = %55
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = icmp ult i32 %66, 2
  br i1 %67, label %68, label %74

68:                                               ; preds = %65
  %69 = load ptr, ptr @stderr, align 8, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 0
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.9, ptr noundef %72) #7
  call void @exit(i32 noundef 1) #9
  unreachable

74:                                               ; preds = %65
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %77 = load float, ptr %8, align 4, !tbaa !11
  %78 = load float, ptr %7, align 4, !tbaa !11
  %79 = fsub float %77, %78
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = sub i32 %80, 1
  %82 = uitofp i32 %81 to float
  %83 = fdiv float %79, %82
  store float %83, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %84 = call noalias ptr @fopen(ptr noundef @.str.10, ptr noundef @.str.11)
  store ptr %84, ptr %13, align 8, !tbaa !9
  %85 = load ptr, ptr %13, align 8, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.12, ptr noundef @.str.10) #7
  %87 = load ptr, ptr %13, align 8, !tbaa !9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.13) #7
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.14) #7
  %91 = load ptr, ptr %13, align 8, !tbaa !9
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.15, i32 noundef %92) #7
  %94 = load ptr, ptr %13, align 8, !tbaa !9
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.16) #7
  %96 = load ptr, ptr %13, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.17) #7
  %98 = load ptr, ptr %13, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %137, %76
  %101 = load i32, ptr %14, align 4, !tbaa !5
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = icmp ult i32 %101, %102
  br i1 %103, label %104, label %140

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %105 = load float, ptr %7, align 4, !tbaa !11
  %106 = load i32, ptr %14, align 4, !tbaa !5
  %107 = uitofp i32 %106 to float
  %108 = load float, ptr %12, align 4, !tbaa !11
  %109 = call float @llvm.fmuladd.f32(float %107, float %108, float %105)
  store float %109, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %110 = load float, ptr %6, align 4, !tbaa !11
  %111 = load float, ptr %15, align 4, !tbaa !11
  %112 = call float @estimate_req_filter_len_Kaiser(float noundef %110, float noundef %111)
  store float %112, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %113 = load float, ptr %6, align 4, !tbaa !11
  %114 = load float, ptr %15, align 4, !tbaa !11
  %115 = call float @estimate_req_filter_len_Herrmann(float noundef %113, float noundef %114)
  store float %115, ptr %17, align 4, !tbaa !11
  %116 = load float, ptr %15, align 4, !tbaa !11
  %117 = fpext float %116 to double
  %118 = load float, ptr %16, align 4, !tbaa !11
  %119 = fpext float %118 to double
  %120 = load float, ptr %17, align 4, !tbaa !11
  %121 = fpext float %120 to double
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, double noundef %117, double noundef %119, double noundef %121)
  %123 = load ptr, ptr %13, align 8, !tbaa !9
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = add i32 %124, 1
  %126 = load float, ptr %15, align 4, !tbaa !11
  %127 = fpext float %126 to double
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = add i32 %128, 1
  %130 = load float, ptr %16, align 4, !tbaa !11
  %131 = fpext float %130 to double
  %132 = load i32, ptr %14, align 4, !tbaa !5
  %133 = add i32 %132, 1
  %134 = load float, ptr %17, align 4, !tbaa !11
  %135 = fpext float %134 to double
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.20, i32 noundef %125, double noundef %127, i32 noundef %129, double noundef %131, i32 noundef %133, double noundef %135) #7
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %137

137:                                              ; preds = %104
  %138 = load i32, ptr %14, align 4, !tbaa !5
  %139 = add i32 %138, 1
  store i32 %139, ptr %14, align 4, !tbaa !5
  br label %100, !llvm.loop !15

140:                                              ; preds = %100
  %141 = load ptr, ptr %13, align 8, !tbaa !9
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str.21) #7
  %143 = load ptr, ptr %13, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef @.str.22) #7
  %145 = load ptr, ptr %13, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.23) #7
  %147 = load ptr, ptr %13, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.24) #7
  %149 = load ptr, ptr %13, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.25) #7
  %151 = load ptr, ptr %13, align 8, !tbaa !9
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.26) #7
  %153 = load ptr, ptr %13, align 8, !tbaa !9
  %154 = call i32 @fclose(ptr noundef %153)
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, ptr noundef @.str.10)
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %157

157:                                              ; preds = %140, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %158 = load i32, ptr %3, align 4
  ret i32 %158
}

; 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 i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

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

declare float @estimate_req_filter_len_Kaiser(float noundef, float noundef) #1

declare float @estimate_req_filter_len_Herrmann(float noundef, float noundef) #1

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

declare i32 @fclose(ptr noundef) #1

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 = { inlinehint nounwind willreturn memory(read) 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !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.6 = external hidden unnamed_addr constant [11 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  br label %.outer

.outer:                                           ; preds = %18, %2
  %.056.ph = phi i32 [ %20, %18 ], [ 41, %2 ]
  %.054.ph = phi float [ %.054.ph92, %18 ], [ 1.000000e+02, %2 ]
  %.051.ph = phi float [ %.051.ph96, %18 ], [ 2.000000e+01, %2 ]
  %.050.ph = phi float [ %.050, %18 ], [ 0x3FB99999A0000000, %2 ]
  br label %.outer91

.outer91:                                         ; preds = %.outer, %14
  %.054.ph92 = phi float [ %.054.ph, %.outer ], [ %17, %14 ]
  %.051.ph93 = phi float [ %.051.ph, %.outer ], [ %.051.ph96, %14 ]
  %.050.ph94 = phi float [ %.050.ph, %.outer ], [ %.050, %14 ]
  br label %.outer95

.outer95:                                         ; preds = %.outer91, %10
  %.051.ph96 = phi float [ %.051.ph93, %.outer91 ], [ %13, %10 ]
  %.050.ph97 = phi float [ %.050.ph94, %.outer91 ], [ %.050, %10 ]
  br label %3

3:                                                ; preds = %.outer95, %6
  %.050 = phi float [ %9, %6 ], [ %.050.ph97, %.outer95 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6) #7
  switch i32 %4, label %21 [
    i32 -1, label %22
    i32 117, label %5
    i32 104, label %5
    i32 116, label %6
    i32 97, label %10
    i32 65, label %14
    i32 110, label %18
  ]

5:                                                ; preds = %3, %3
  tail call void @usage()
  br label %75

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call double @atof(ptr noundef %7) #8
  %9 = fptrunc double %8 to float
  br label %3, !llvm.loop !9

10:                                               ; preds = %3
  %11 = load ptr, ptr @optarg, align 8, !tbaa !5
  %12 = tail call double @atof(ptr noundef %11) #8
  %13 = fptrunc double %12 to float
  br label %.outer95, !llvm.loop !9

14:                                               ; preds = %3
  %15 = load ptr, ptr @optarg, align 8, !tbaa !5
  %16 = tail call double @atof(ptr noundef %15) #8
  %17 = fptrunc double %16 to float
  br label %.outer91, !llvm.loop !9

18:                                               ; preds = %3
  %19 = load ptr, ptr @optarg, align 8, !tbaa !5
  %20 = tail call i32 @atoi(ptr nocapture noundef %19) #8
  br label %.outer, !llvm.loop !9

21:                                               ; preds = %3
  tail call void @exit(i32 noundef 1) #9
  unreachable

22:                                               ; preds = %3
  %23 = fcmp ole float %.051.ph96, 0.000000e+00
  %24 = fcmp ole float %.054.ph92, 0.000000e+00
  %or.cond = select i1 %23, i1 true, i1 %24
  br i1 %or.cond, label %25, label %29

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

29:                                               ; preds = %22
  %30 = fcmp ugt float %.054.ph92, %.051.ph96
  br i1 %30, label %35, label %31

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

35:                                               ; preds = %29
  %36 = icmp ult i32 %.056.ph, 2
  br i1 %36, label %37, label %41

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

41:                                               ; preds = %35
  %42 = fsub float %.054.ph92, %.051.ph96
  %43 = add i32 %.056.ph, -1
  %44 = uitofp i32 %43 to float
  %45 = fdiv float %42, %44
  %46 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11)
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.10) #7
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.13) #7
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.14) #7
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.15, i32 noundef %.056.ph) #7
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.16) #7
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.17) #7
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.18) #7
  br label %54

54:                                               ; preds = %41, %54
  %.05366 = phi i32 [ 0, %41 ], [ %63, %54 ]
  %55 = uitofp i32 %.05366 to float
  %56 = tail call float @llvm.fmuladd.f32(float %55, float %45, float %.051.ph96)
  %57 = tail call float @estimate_req_filter_len_Kaiser(float noundef %.050, float noundef %56) #7
  %58 = tail call float @estimate_req_filter_len_Herrmann(float noundef %.050, float noundef %56) #7
  %59 = fpext float %56 to double
  %60 = fpext float %57 to double
  %61 = fpext float %58 to double
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, double noundef %59, double noundef %60, double noundef %61)
  %63 = add nuw i32 %.05366, 1
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.20, i32 noundef %63, double noundef %59, i32 noundef %63, double noundef %60, i32 noundef %63, double noundef %61) #7
  %exitcond.not = icmp eq i32 %63, %.056.ph
  br i1 %exitcond.not, label %65, label %54, !llvm.loop !11

65:                                               ; preds = %54
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.21) #7
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.22) #7
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.23) #7
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.24) #7
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.25) #7
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.26) #7
  %72 = tail call i32 @fclose(ptr noundef %46)
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, ptr noundef nonnull @.str.10)
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  br label %75

75:                                               ; preds = %65, %5
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; 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_len_Kaiser(float noundef, float noundef) local_unnamed_addr #6

declare float @estimate_req_filter_len_Herrmann(float noundef, float noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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 = { 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 #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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn nounwind }
attributes #10 = { cold 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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