; LLVM IR from jgaeddert/liquid-dsp :: examples (firfarrow_rrrf_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.3 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = 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 i32 19, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 5, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store float 0x3FDCCCCCC0000000, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store float 6.000000e+01, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store float 0x3FB99999A0000000, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 60, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  br label %21

21:                                               ; preds = %34, %2
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = call i32 @getopt(i32 noundef %22, ptr noundef %23, ptr noundef @.str.3) #7
  store i32 %24, ptr %12, align 4, !tbaa !5
  %25 = icmp ne i32 %24, -1
  br i1 %25, label %26, label %35

26:                                               ; preds = %21
  %27 = load i32, ptr %12, align 4, !tbaa !5
  switch i32 %27, label %33 [
    i32 104, label %28
    i32 116, label %29
  ]

28:                                               ; preds = %26
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %141

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

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

34:                                               ; preds = %29
  br label %21, !llvm.loop !13

35:                                               ; preds = %21
  %36 = load i32, ptr %11, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = call ptr @llvm.stacksave.p0()
  store ptr %38, ptr %14, align 8
  %39 = alloca float, i64 %37, align 16
  store i64 %37, ptr %15, align 8
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = zext i32 %40 to i64
  %42 = alloca float, i64 %41, align 16
  store i64 %41, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = load float, ptr %8, align 4, !tbaa !11
  %46 = load float, ptr %9, align 4, !tbaa !11
  %47 = call ptr @firfarrow_rrrf_create(i32 noundef %43, i32 noundef %44, float noundef %45, float noundef %46)
  store ptr %47, ptr %17, align 8, !tbaa !9
  %48 = load ptr, ptr %17, align 8, !tbaa !9
  %49 = load float, ptr %10, align 4, !tbaa !11
  %50 = call i32 @firfarrow_rrrf_set_delay(ptr noundef %48, float noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %51 = call ptr @iirfilt_rrrf_create_lowpass(i32 noundef 3, float noundef 0x3FB99999A0000000)
  store ptr %51, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %74, %35
  %53 = load i32, ptr %19, align 4, !tbaa !5
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = icmp ult i32 %53, %54
  br i1 %55, label %56, label %77

56:                                               ; preds = %52
  %57 = load ptr, ptr %18, align 8, !tbaa !9
  %58 = call float (...) @randnf()
  %59 = load i32, ptr %19, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds float, ptr %39, i64 %60
  %62 = call i32 @iirfilt_rrrf_execute(ptr noundef %57, float noundef %58, ptr noundef %61)
  %63 = load ptr, ptr %17, align 8, !tbaa !9
  %64 = load i32, ptr %19, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds float, ptr %39, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !11
  %68 = call i32 @firfarrow_rrrf_push(ptr noundef %63, float noundef %67)
  %69 = load ptr, ptr %17, align 8, !tbaa !9
  %70 = load i32, ptr %19, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds float, ptr %42, i64 %71
  %73 = call i32 @firfarrow_rrrf_execute(ptr noundef %69, ptr noundef %72)
  br label %74

74:                                               ; preds = %56
  %75 = load i32, ptr %19, align 4, !tbaa !5
  %76 = add i32 %75, 1
  store i32 %76, ptr %19, align 4, !tbaa !5
  br label %52, !llvm.loop !15

77:                                               ; preds = %52
  %78 = load ptr, ptr %17, align 8, !tbaa !9
  %79 = call i32 @firfarrow_rrrf_destroy(ptr noundef %78)
  %80 = load ptr, ptr %18, align 8, !tbaa !9
  %81 = call i32 @iirfilt_rrrf_destroy(ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %82 = call noalias ptr @fopen(ptr noundef @.str.4, ptr noundef @.str.5)
  store ptr %82, ptr %20, align 8, !tbaa !9
  %83 = load ptr, ptr %20, align 8, !tbaa !9
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.6, ptr noundef @.str.4) #7
  %85 = load ptr, ptr %20, align 8, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.7) #7
  %87 = load ptr, ptr %20, align 8, !tbaa !9
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.8, i32 noundef %88) #7
  %90 = load ptr, ptr %20, align 8, !tbaa !9
  %91 = load float, ptr %10, align 4, !tbaa !11
  %92 = fpext float %91 to double
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.9, double noundef %92) #7
  %94 = load ptr, ptr %20, align 8, !tbaa !9
  %95 = load i32, ptr %11, align 4, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.10, i32 noundef %95) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %118, %77
  %98 = load i32, ptr %19, align 4, !tbaa !5
  %99 = load i32, ptr %11, align 4, !tbaa !5
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %101, label %121

101:                                              ; preds = %97
  %102 = load ptr, ptr %20, align 8, !tbaa !9
  %103 = load i32, ptr %19, align 4, !tbaa !5
  %104 = add i32 %103, 1
  %105 = load i32, ptr %19, align 4, !tbaa !5
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %39, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !11
  %109 = fpext float %108 to double
  %110 = load i32, ptr %19, align 4, !tbaa !5
  %111 = add i32 %110, 1
  %112 = load i32, ptr %19, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %42, i64 %113
  %115 = load float, ptr %114, align 4, !tbaa !11
  %116 = fpext float %115 to double
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.11, i32 noundef %104, double noundef %109, i32 noundef %111, double noundef %116) #7
  br label %118

118:                                              ; preds = %101
  %119 = load i32, ptr %19, align 4, !tbaa !5
  %120 = add i32 %119, 1
  store i32 %120, ptr %19, align 4, !tbaa !5
  br label %97, !llvm.loop !16

121:                                              ; preds = %97
  %122 = load ptr, ptr %20, align 8, !tbaa !9
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.12) #7
  %124 = load ptr, ptr %20, align 8, !tbaa !9
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.13) #7
  %126 = load ptr, ptr %20, align 8, !tbaa !9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.14) #7
  %128 = load ptr, ptr %20, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.15) #7
  %130 = load ptr, ptr %20, align 8, !tbaa !9
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.16) #7
  %132 = load ptr, ptr %20, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.17) #7
  %134 = load ptr, ptr %20, align 8, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.18) #7
  %136 = load ptr, ptr %20, align 8, !tbaa !9
  %137 = call i32 @fclose(ptr noundef %136)
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef @.str.4)
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %140 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %140)
  br label %141

141:                                              ; preds = %121, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  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
  %142 = load i32, ptr %3, align 4
  ret i32 %142
}

; 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: noreturn nounwind
declare void @exit(i32 noundef) #5

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

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

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

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

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

declare float @randnf(...) #1

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

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

declare i32 @firfarrow_rrrf_destroy(ptr noundef) #1

declare i32 @iirfilt_rrrf_destroy(ptr noundef) #1

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

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

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.3 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = 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 %3

3:                                                ; preds = %6, %2
  %.048 = phi float [ 0x3FB99999A0000000, %2 ], [ %9, %6 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.3) #7
  switch i32 %4, label %10 [
    i32 -1, label %11
    i32 104, label %5
    i32 116, label %6
  ]

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

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
  tail call void @exit(i32 noundef 1) #9
  unreachable

11:                                               ; preds = %3
  %12 = tail call ptr @llvm.stacksave.p0()
  %13 = alloca [60 x float], align 16
  %14 = alloca [60 x float], align 16
  %15 = tail call ptr @firfarrow_rrrf_create(i32 noundef 19, i32 noundef 5, float noundef 0x3FDCCCCCC0000000, float noundef 6.000000e+01) #7
  %16 = tail call i32 @firfarrow_rrrf_set_delay(ptr noundef %15, float noundef %.048) #7
  %17 = tail call ptr @iirfilt_rrrf_create_lowpass(i32 noundef 3, float noundef 0x3FB99999A0000000) #7
  br label %18

18:                                               ; preds = %11, %18
  %indvars.iv = phi i64 [ 0, %11 ], [ %indvars.iv.next, %18 ]
  %19 = call float (...) @randnf() #7
  %20 = getelementptr inbounds float, ptr %13, i64 %indvars.iv
  %21 = call i32 @iirfilt_rrrf_execute(ptr noundef %17, float noundef %19, ptr noundef nonnull %20) #7
  %22 = load float, ptr %20, align 4, !tbaa !11
  %23 = call i32 @firfarrow_rrrf_push(ptr noundef %15, float noundef %22) #7
  %24 = getelementptr inbounds float, ptr %14, i64 %indvars.iv
  %25 = call i32 @firfarrow_rrrf_execute(ptr noundef %15, ptr noundef nonnull %24) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 60
  br i1 %exitcond.not, label %26, label %18, !llvm.loop !13

26:                                               ; preds = %18
  %27 = call i32 @firfarrow_rrrf_destroy(ptr noundef %15) #7
  %28 = call i32 @iirfilt_rrrf_destroy(ptr noundef %17) #7
  %29 = call noalias ptr @fopen(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5)
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4) #7
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.7) #7
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.8, i32 noundef 19) #7
  %33 = fpext float %.048 to double
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.9, double noundef %33) #7
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.10, i32 noundef 60) #7
  br label %36

36:                                               ; preds = %26, %36
  %indvars.iv56 = phi i64 [ 0, %26 ], [ %indvars.iv.next57, %36 ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %37 = getelementptr inbounds float, ptr %13, i64 %indvars.iv56
  %38 = load float, ptr %37, align 4, !tbaa !11
  %39 = fpext float %38 to double
  %40 = getelementptr inbounds float, ptr %14, i64 %indvars.iv56
  %41 = load float, ptr %40, align 4, !tbaa !11
  %42 = fpext float %41 to double
  %43 = trunc nuw nsw i64 %indvars.iv.next57 to i32
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.11, i32 noundef %43, double noundef %39, i32 noundef %43, double noundef %42) #7
  %exitcond59.not = icmp eq i64 %indvars.iv.next57, 60
  br i1 %exitcond59.not, label %45, label %36, !llvm.loop !14

45:                                               ; preds = %36
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.12) #7
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.13) #7
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.14) #7
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.15) #7
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.16) #7
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.17) #7
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.18) #7
  %53 = call i32 @fclose(ptr noundef %29)
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull @.str.4)
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  call void @llvm.stackrestore.p0(ptr %12)
  br label %56

56:                                               ; preds = %45, %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: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

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

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

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

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

declare float @randnf(...) local_unnamed_addr #6

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

declare i32 @firfarrow_rrrf_execute(ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @firfarrow_rrrf_destroy(ptr noundef) local_unnamed_addr #6

declare i32 @iirfilt_rrrf_destroy(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 @fprintf(ptr nocapture noundef, 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 }

!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