; LLVM IR from jgaeddert/liquid-dsp :: examples (spgramcf_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 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1024, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 2000000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float -6.000000e+01, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %16 = load float, ptr %4, align 4, !tbaa !9
  %17 = fdiv float %16, 2.000000e+01
  %18 = call float @powf(float noundef 1.000000e+01, float noundef %17) #5
  store float %18, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = call ptr @spgramcf_create_default(i32 noundef %19)
  store ptr %20, ptr %7, align 8, !tbaa !11
  %21 = load ptr, ptr %7, align 8, !tbaa !11
  %22 = call i32 @spgramcf_print(ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %23 = call ptr @iirfilt_rrrf_create_prototype(i32 noundef 0, i32 noundef 2, i32 noundef 0, i32 noundef 9, float noundef 0x3FC5C28F60000000, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 6.000000e+01)
  store ptr %23, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %24 = call ptr @firhilbf_create(i32 noundef 13, float noundef 6.000000e+01)
  store ptr %24, ptr %9, align 8, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %73, %0
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = icmp ult i32 %26, %27
  br i1 %28, label %29, label %76

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store float 0.000000e+00, ptr %10, align 4, !tbaa !9
  %30 = load ptr, ptr %8, align 8, !tbaa !11
  %31 = call float (...) @randnf()
  %32 = call i32 @iirfilt_rrrf_execute(ptr noundef %30, float noundef %31, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %33 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %34 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float 0.000000e+00, ptr %33, align 4
  store float 0.000000e+00, ptr %34, align 4
  %35 = load ptr, ptr %9, align 8, !tbaa !11
  %36 = load float, ptr %10, align 4, !tbaa !9
  %37 = call i32 @firhilbf_r2c_execute(ptr noundef %35, float noundef %36, ptr noundef %11)
  %38 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %39 = load float, ptr %38, align 4
  %40 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %41 = load float, ptr %40, align 4
  %42 = fmul float 5.000000e-01, %39
  %43 = fmul float 5.000000e-01, %41
  %44 = fpext float %42 to double
  %45 = fpext float %43 to double
  %46 = load float, ptr %6, align 4, !tbaa !9
  %47 = call float (...) @randnf()
  %48 = call float (...) @randnf()
  %49 = fmul float 0.000000e+00, %48
  %50 = fmul float 1.000000e+00, %48
  %51 = fadd float %47, %49
  %52 = fmul float %46, %51
  %53 = fmul float %46, %50
  %54 = fpext float %52 to double
  %55 = fpext float %53 to double
  %56 = fmul double %54, 0x3FE6A09E667F3BCD
  %57 = fmul double %55, 0x3FE6A09E667F3BCD
  %58 = fadd double %44, %56
  %59 = fadd double %45, %57
  %60 = fptrunc double %58 to float
  %61 = fptrunc double %59 to float
  %62 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %63 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %60, ptr %62, align 4
  store float %61, ptr %63, align 4
  %64 = load ptr, ptr %7, align 8, !tbaa !11
  %65 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %66 = load float, ptr %65, align 4
  %67 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %68 = load float, ptr %67, align 4
  %69 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %70 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %66, ptr %69, align 4
  store float %68, ptr %70, align 4
  %71 = load <2 x float>, ptr %12, align 4
  %72 = call i32 @spgramcf_push(ptr noundef %64, <2 x float> noundef %71)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %73

73:                                               ; preds = %29
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = add i32 %74, 1
  store i32 %75, ptr %5, align 4, !tbaa !5
  br label %25, !llvm.loop !13

76:                                               ; preds = %25
  %77 = load ptr, ptr %7, align 8, !tbaa !11
  %78 = call i32 @spgramcf_set_rate(ptr noundef %77, float noundef 2.000000e+08)
  %79 = load ptr, ptr %7, align 8, !tbaa !11
  %80 = call i32 @spgramcf_export_gnuplot(ptr noundef %79, ptr noundef @.str)
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = zext i32 %81 to i64
  %83 = call ptr @llvm.stacksave.p0()
  store ptr %83, ptr %13, align 8
  %84 = alloca float, i64 %82, align 16
  store i64 %82, ptr %14, align 8
  %85 = load ptr, ptr %7, align 8, !tbaa !11
  %86 = call i32 @spgramcf_get_psd(ptr noundef %85, ptr noundef %84)
  %87 = load ptr, ptr %8, align 8, !tbaa !11
  %88 = call i32 @iirfilt_rrrf_destroy(ptr noundef %87)
  %89 = load ptr, ptr %9, align 8, !tbaa !11
  %90 = call i32 @firhilbf_destroy(ptr noundef %89)
  %91 = load ptr, ptr %7, align 8, !tbaa !11
  %92 = call i32 @spgramcf_destroy(ptr noundef %91)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %93 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %93, ptr %15, align 8, !tbaa !11
  %94 = load ptr, ptr %15, align 8, !tbaa !11
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.3, ptr noundef @.str.1) #5
  %96 = load ptr, ptr %15, align 8, !tbaa !11
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.4) #5
  %98 = load ptr, ptr %15, align 8, !tbaa !11
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.5) #5
  %100 = load ptr, ptr %15, align 8, !tbaa !11
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.6, i32 noundef %101) #5
  %103 = load ptr, ptr %15, align 8, !tbaa !11
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.7) #5
  %105 = load ptr, ptr %15, align 8, !tbaa !11
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.8) #5
  %107 = load ptr, ptr %15, align 8, !tbaa !11
  %108 = load float, ptr %4, align 4, !tbaa !9
  %109 = fpext float %108 to double
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.9, double noundef %109) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %125, %76
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = load i32, ptr %2, align 4, !tbaa !5
  %114 = icmp ult i32 %112, %113
  br i1 %114, label %115, label %128

115:                                              ; preds = %111
  %116 = load ptr, ptr %15, align 8, !tbaa !11
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = add i32 %117, 1
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds float, ptr %84, i64 %120
  %122 = load float, ptr %121, align 4, !tbaa !9
  %123 = fpext float %122 to double
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.10, i32 noundef %118, double noundef %123) #5
  br label %125

125:                                              ; preds = %115
  %126 = load i32, ptr %5, align 4, !tbaa !5
  %127 = add i32 %126, 1
  store i32 %127, ptr %5, align 4, !tbaa !5
  br label %111, !llvm.loop !15

128:                                              ; preds = %111
  %129 = load ptr, ptr %15, align 8, !tbaa !11
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.11) #5
  %131 = load ptr, ptr %15, align 8, !tbaa !11
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.12) #5
  %133 = load ptr, ptr %15, align 8, !tbaa !11
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.13) #5
  %135 = load ptr, ptr %15, align 8, !tbaa !11
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.14) #5
  %137 = load ptr, ptr %15, align 8, !tbaa !11
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.15) #5
  %139 = load ptr, ptr %15, align 8, !tbaa !11
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.16) #5
  %141 = load ptr, ptr %15, align 8, !tbaa !11
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str.17) #5
  %143 = load ptr, ptr %15, align 8, !tbaa !11
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef @.str.18) #5
  %145 = load ptr, ptr %15, align 8, !tbaa !11
  %146 = call i32 @fclose(ptr noundef %145)
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef @.str.1)
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %149 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %149)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %150 = load i32, ptr %1, align 4
  ret i32 %150
}

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

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

declare ptr @spgramcf_create_default(i32 noundef) #3

declare i32 @spgramcf_print(ptr noundef) #3

declare ptr @iirfilt_rrrf_create_prototype(i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) #3

declare ptr @firhilbf_create(i32 noundef, float noundef) #3

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

declare float @randnf(...) #3

declare i32 @firhilbf_r2c_execute(ptr noundef, float noundef, ptr noundef) #3

declare i32 @spgramcf_push(ptr noundef, <2 x float> noundef) #3

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

declare i32 @spgramcf_set_rate(ptr noundef, float noundef) #3

declare i32 @spgramcf_export_gnuplot(ptr noundef, ptr noundef) #3

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

declare i32 @spgramcf_get_psd(ptr noundef, ptr noundef) #3

declare i32 @iirfilt_rrrf_destroy(ptr noundef) #3

declare i32 @firhilbf_destroy(ptr noundef) #3

declare i32 @spgramcf_destroy(ptr noundef) #3

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

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

declare i32 @fclose(ptr noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca float, align 4
  %2 = alloca { float, float }, align 8
  %3 = tail call ptr @spgramcf_create_default(i32 noundef 1024) #4
  %4 = tail call i32 @spgramcf_print(ptr noundef %3) #4
  %5 = tail call ptr @iirfilt_rrrf_create_prototype(i32 noundef 0, i32 noundef 2, i32 noundef 0, i32 noundef 9, float noundef 0x3FC5C28F60000000, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 6.000000e+01) #4
  %6 = tail call ptr @firhilbf_create(i32 noundef 13, float noundef 6.000000e+01) #4
  br label %7

7:                                                ; preds = %0, %7
  %.043 = phi i32 [ 0, %0 ], [ %27, %7 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  %8 = call float (...) @randnf() #4
  %9 = call i32 @iirfilt_rrrf_execute(ptr noundef %5, float noundef %8, ptr noundef nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store <2 x float> zeroinitializer, ptr %2, align 8
  %10 = load float, ptr %1, align 4, !tbaa !5
  %11 = call i32 @firhilbf_r2c_execute(ptr noundef %6, float noundef %10, ptr noundef nonnull %2) #4
  %12 = load <2 x float>, ptr %2, align 8
  %13 = fmul <2 x float> %12, <float 5.000000e-01, float 5.000000e-01>
  %14 = fpext <2 x float> %13 to <2 x double>
  %15 = call float (...) @randnf() #4
  %16 = call float (...) @randnf() #4
  %17 = fmul float %16, 0.000000e+00
  %18 = fadd float %15, %17
  %19 = insertelement <2 x float> poison, float %18, i64 0
  %20 = insertelement <2 x float> %19, float %16, i64 1
  %21 = fmul <2 x float> %20, <float 0x3F50624DE0000000, float 0x3F50624DE0000000>
  %22 = fpext <2 x float> %21 to <2 x double>
  %23 = fmul <2 x double> %22, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %24 = fadd <2 x double> %23, %14
  %25 = fptrunc <2 x double> %24 to <2 x float>
  store <2 x float> %25, ptr %2, align 8
  %26 = call i32 @spgramcf_push(ptr noundef %3, <2 x float> noundef %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %27 = add nuw nsw i32 %.043, 1
  %exitcond.not = icmp eq i32 %27, 2000000
  br i1 %exitcond.not, label %28, label %7, !llvm.loop !9

28:                                               ; preds = %7
  %29 = call i32 @spgramcf_set_rate(ptr noundef %3, float noundef 2.000000e+08) #4
  %30 = call i32 @spgramcf_export_gnuplot(ptr noundef %3, ptr noundef nonnull @.str) #4
  %31 = alloca [1024 x float], align 16
  %32 = call i32 @spgramcf_get_psd(ptr noundef %3, ptr noundef nonnull %31) #4
  %33 = call i32 @iirfilt_rrrf_destroy(ptr noundef %5) #4
  %34 = call i32 @firhilbf_destroy(ptr noundef %6) #4
  %35 = call i32 @spgramcf_destroy(ptr noundef %3) #4
  %36 = call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1) #4
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.4) #4
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.5) #4
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.6, i32 noundef 1024) #4
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.7) #4
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.8) #4
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.9, double noundef -6.000000e+01) #4
  br label %44

44:                                               ; preds = %28, %44
  %indvars.iv = phi i64 [ 0, %28 ], [ %indvars.iv.next, %44 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %45 = getelementptr inbounds float, ptr %31, i64 %indvars.iv
  %46 = load float, ptr %45, align 4, !tbaa !5
  %47 = fpext float %46 to double
  %48 = trunc nuw nsw i64 %indvars.iv.next to i32
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.10, i32 noundef %48, double noundef %47) #4
  %exitcond46.not = icmp eq i64 %indvars.iv.next, 1024
  br i1 %exitcond46.not, label %50, label %44, !llvm.loop !11

50:                                               ; preds = %44
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.11) #4
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.12) #4
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.13) #4
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.14) #4
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.15) #4
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.16) #4
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.17) #4
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.18) #4
  %59 = call i32 @fclose(ptr noundef %36)
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull @.str.1)
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  ret i32 0
}

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #2

declare i32 @spgramcf_print(ptr noundef) local_unnamed_addr #2

declare ptr @iirfilt_rrrf_create_prototype(i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

declare ptr @firhilbf_create(i32 noundef, float noundef) local_unnamed_addr #2

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

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

declare i32 @firhilbf_r2c_execute(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #2

declare i32 @spgramcf_push(ptr noundef, <2 x float> noundef) 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) #1

declare i32 @spgramcf_set_rate(ptr noundef, float noundef) local_unnamed_addr #2

declare i32 @spgramcf_export_gnuplot(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @spgramcf_get_psd(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @iirfilt_rrrf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @firhilbf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #2

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass