; LLVM IR from jgaeddert/liquid-dsp :: examples (firdes_kaiser_example)

; 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 [62 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.33 = 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 i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  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 0x3FC99999A0000000, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store float 6.000000e+01, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store float 0.000000e+00, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 55, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  br label %16

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

21:                                               ; preds = %16
  %22 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %22, label %39 [
    i32 117, label %23
    i32 104, label %23
    i32 102, label %24
    i32 110, label %28
    i32 115, label %31
    i32 109, label %35
  ]

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

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

28:                                               ; preds = %21
  %29 = load ptr, ptr @optarg, align 8, !tbaa !9
  %30 = call i32 @atoi(ptr noundef %29) #8
  store i32 %30, ptr %9, align 4, !tbaa !5
  br label %40

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

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

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

40:                                               ; preds = %35, %31, %28, %24
  br label %16, !llvm.loop !13

41:                                               ; preds = %16
  %42 = load float, ptr %6, align 4, !tbaa !11
  %43 = fcmp ole float %42, 0.000000e+00
  br i1 %43, label %44, label %50

44:                                               ; preds = %41
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 0
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.7, ptr noundef %48) #7
  call void @exit(i32 noundef 1) #9
  unreachable

50:                                               ; preds = %41
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %59

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

59:                                               ; preds = %50
  br label %60

60:                                               ; preds = %59
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %62 = load float, ptr %6, align 4, !tbaa !11
  %63 = fpext float %62 to double
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %63)
  %65 = load float, ptr %7, align 4, !tbaa !11
  %66 = fpext float %65 to double
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %66)
  %68 = load float, ptr %8, align 4, !tbaa !11
  %69 = fpext float %68 to double
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %69)
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %71)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = call ptr @llvm.stacksave.p0()
  store ptr %75, ptr %13, align 8
  %76 = alloca float, i64 %74, align 16
  store i64 %74, ptr %14, align 8
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = load float, ptr %6, align 4, !tbaa !11
  %79 = load float, ptr %7, align 4, !tbaa !11
  %80 = load float, ptr %8, align 4, !tbaa !11
  %81 = call i32 @liquid_firdes_kaiser(i32 noundef %77, float noundef %78, float noundef %79, float noundef %80, ptr noundef %76)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %95, %60
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = icmp ult i32 %83, %84
  br i1 %85, label %86, label %98

86:                                               ; preds = %82
  %87 = load i32, ptr %12, align 4, !tbaa !5
  %88 = add i32 %87, 1
  %89 = load i32, ptr %12, align 4, !tbaa !5
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds float, ptr %76, i64 %90
  %92 = load float, ptr %91, align 4, !tbaa !11
  %93 = fpext float %92 to double
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %88, double noundef %93)
  br label %95

95:                                               ; preds = %86
  %96 = load i32, ptr %12, align 4, !tbaa !5
  %97 = add i32 %96, 1
  store i32 %97, ptr %12, align 4, !tbaa !5
  br label %82, !llvm.loop !15

98:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %99 = call noalias ptr @fopen(ptr noundef @.str.15, ptr noundef @.str.16)
  store ptr %99, ptr %15, align 8, !tbaa !9
  %100 = load ptr, ptr %15, align 8, !tbaa !9
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.17, ptr noundef @.str.15) #7
  %102 = load ptr, ptr %15, align 8, !tbaa !9
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.18) #7
  %104 = load ptr, ptr %15, align 8, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.19, i32 noundef %105) #7
  %107 = load ptr, ptr %15, align 8, !tbaa !9
  %108 = load float, ptr %6, align 4, !tbaa !11
  %109 = fpext float %108 to double
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.20, double noundef %109) #7
  %111 = load ptr, ptr %15, align 8, !tbaa !9
  %112 = load float, ptr %7, align 4, !tbaa !11
  %113 = fpext float %112 to double
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef @.str.21, double noundef %113) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %129, %98
  %116 = load i32, ptr %12, align 4, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = icmp ult i32 %116, %117
  br i1 %118, label %119, label %132

119:                                              ; preds = %115
  %120 = load ptr, ptr %15, align 8, !tbaa !9
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = add i32 %121, 1
  %123 = load i32, ptr %12, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %76, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !11
  %127 = fpext float %126 to double
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.22, i32 noundef %122, double noundef %127) #7
  br label %129

129:                                              ; preds = %119
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = add i32 %130, 1
  store i32 %131, ptr %12, align 4, !tbaa !5
  br label %115, !llvm.loop !16

132:                                              ; preds = %115
  %133 = load ptr, ptr %15, align 8, !tbaa !9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.23) #7
  %135 = load ptr, ptr %15, align 8, !tbaa !9
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.24) #7
  %137 = load ptr, ptr %15, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.25) #7
  %139 = load ptr, ptr %15, align 8, !tbaa !9
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.26) #7
  %141 = load ptr, ptr %15, align 8, !tbaa !9
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str.27) #7
  %143 = load ptr, ptr %15, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef @.str.28) #7
  %145 = load ptr, ptr %15, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.29) #7
  %147 = load ptr, ptr %15, align 8, !tbaa !9
  %148 = load float, ptr %6, align 4, !tbaa !11
  %149 = fpext float %148 to double
  %150 = load float, ptr %7, align 4, !tbaa !11
  %151 = fneg float %150
  %152 = fpext float %151 to double
  %153 = load i32, ptr %9, align 4, !tbaa !5
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.30, double noundef %149, double noundef %152, i32 noundef %153) #7
  %155 = load ptr, ptr %15, align 8, !tbaa !9
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str.31) #7
  %157 = load ptr, ptr %15, align 8, !tbaa !9
  %158 = call i32 @fclose(ptr noundef %157)
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef @.str.15)
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %161 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %161)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %162

162:                                              ; preds = %132, %23
  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
  %163 = load i32, ptr %3, align 4
  ret i32 %163
}

; 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

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

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

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

declare i32 @fclose(ptr noundef) #1

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

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 willreturn }
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}
!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.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 [62 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.33 = 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 = %10, %2
  %.056.ph = phi i32 [ %12, %10 ], [ 55, %2 ]
  %.054.ph = phi float [ %.054.ph99, %10 ], [ 0.000000e+00, %2 ]
  %.050.ph = phi float [ %.050.ph103, %10 ], [ 6.000000e+01, %2 ]
  %.049.ph = phi float [ %.049, %10 ], [ 0x3FC99999A0000000, %2 ]
  br label %.outer98

.outer98:                                         ; preds = %.outer, %17
  %.054.ph99 = phi float [ %.054.ph, %.outer ], [ %20, %17 ]
  %.050.ph100 = phi float [ %.050.ph, %.outer ], [ %.050.ph103, %17 ]
  %.049.ph101 = phi float [ %.049.ph, %.outer ], [ %.049, %17 ]
  br label %.outer102

.outer102:                                        ; preds = %.outer98, %13
  %.050.ph103 = phi float [ %.050.ph100, %.outer98 ], [ %16, %13 ]
  %.049.ph104 = phi float [ %.049.ph101, %.outer98 ], [ %.049, %13 ]
  br label %3

3:                                                ; preds = %.outer102, %6
  %.049 = phi float [ %9, %6 ], [ %.049.ph104, %.outer102 ]
  %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 102, label %6
    i32 110, label %10
    i32 115, label %13
    i32 109, label %17
  ]

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

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 i32 @atoi(ptr nocapture noundef %11) #8
  br label %.outer, !llvm.loop !9

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

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

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

22:                                               ; preds = %3
  %23 = fcmp ugt float %.049, 0.000000e+00
  br i1 %23, label %28, label %24

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

28:                                               ; preds = %22
  %29 = icmp eq i32 %.056.ph, 0
  br i1 %29, label %30, label %34

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

34:                                               ; preds = %28
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %36 = fpext float %.049 to double
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %36)
  %38 = fpext float %.050.ph103 to double
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %38)
  %40 = fpext float %.054.ph99 to double
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %40)
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %.056.ph)
  %43 = zext i32 %.056.ph to i64
  %44 = tail call ptr @llvm.stacksave.p0()
  %45 = alloca float, i64 %43, align 16
  %46 = call i32 @liquid_firdes_kaiser(i32 noundef %.056.ph, float noundef %.049, float noundef %.050.ph103, float noundef %.054.ph99, ptr noundef nonnull %45) #7
  br label %47

47:                                               ; preds = %34, %47
  %indvars.iv = phi i64 [ 0, %34 ], [ %indvars.iv.next, %47 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = getelementptr inbounds float, ptr %45, i64 %indvars.iv
  %49 = load float, ptr %48, align 4, !tbaa !11
  %50 = fpext float %49 to double
  %51 = trunc nuw i64 %indvars.iv.next to i32
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %51, double noundef %50)
  %exitcond.not = icmp eq i64 %indvars.iv.next, %43
  br i1 %exitcond.not, label %53, label %47, !llvm.loop !13

53:                                               ; preds = %47
  %54 = call noalias ptr @fopen(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16)
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.15) #7
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.18) #7
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.19, i32 noundef %.056.ph) #7
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.20, double noundef %36) #7
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.21, double noundef %38) #7
  br label %60

60:                                               ; preds = %53, %60
  %indvars.iv77 = phi i64 [ 0, %53 ], [ %indvars.iv.next78, %60 ]
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %61 = getelementptr inbounds float, ptr %45, i64 %indvars.iv77
  %62 = load float, ptr %61, align 4, !tbaa !11
  %63 = fpext float %62 to double
  %64 = trunc nuw i64 %indvars.iv.next78 to i32
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.22, i32 noundef %64, double noundef %63) #7
  %exitcond81.not = icmp eq i64 %indvars.iv.next78, %43
  br i1 %exitcond81.not, label %66, label %60, !llvm.loop !14

66:                                               ; preds = %60
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.23) #7
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.24) #7
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.25) #7
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.26) #7
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.27) #7
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.28) #7
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.29) #7
  %74 = fneg float %.050.ph103
  %75 = fpext float %74 to double
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.30, double noundef %36, double noundef %75, i32 noundef %.056.ph) #7
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.31) #7
  %78 = call i32 @fclose(ptr noundef %54)
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef nonnull @.str.15)
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  call void @llvm.stackrestore.p0(ptr %44)
  br label %81

81:                                               ; preds = %66, %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: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

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

; 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 = { 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 willreturn }
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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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