; LLVM IR from jgaeddert/liquid-dsp :: examples (spgramcf_compare_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 [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [71 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 [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 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 float, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, 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 i64, align 8
  %18 = 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 float 0x3FA99999A0000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 2000000, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = call ptr @spgramcf_create_default(i32 noundef %19)
  store ptr %20, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = call ptr @spgramcf_create_default(i32 noundef %21)
  store ptr %22, ptr %6, align 8, !tbaa !11
  %23 = load ptr, ptr %6, align 8, !tbaa !11
  %24 = load float, ptr %3, align 4, !tbaa !9
  %25 = call i32 @spgramcf_set_alpha(ptr noundef %23, float noundef %24)
  %26 = load ptr, ptr %5, align 8, !tbaa !11
  %27 = call i32 @spgramcf_print(ptr noundef %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %28 = call ptr @msourcecf_create_default()
  store ptr %28, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 40, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 12, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store float 0x3FC99999A0000000, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store float 0x3FD6666660000000, ptr %11, align 4, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !11
  %30 = call i32 @msourcecf_add_noise(ptr noundef %29, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -6.000000e+01)
  %31 = load ptr, ptr %7, align 8, !tbaa !11
  %32 = call i32 @msourcecf_add_noise(ptr noundef %31, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 0.000000e+00)
  %33 = load ptr, ptr %7, align 8, !tbaa !11
  %34 = call i32 @msourcecf_add_tone(ptr noundef %33, float noundef 0xBFD99999A0000000, float noundef 0.000000e+00, float noundef 2.000000e+01)
  %35 = load ptr, ptr %7, align 8, !tbaa !11
  %36 = load i32, ptr %8, align 4, !tbaa !5
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = load float, ptr %10, align 4, !tbaa !9
  %39 = call i32 @msourcecf_add_modem(ptr noundef %35, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00, i32 noundef %36, i32 noundef %37, float noundef %38)
  %40 = load ptr, ptr %7, align 8, !tbaa !11
  %41 = load i32, ptr %9, align 4, !tbaa !5
  %42 = load float, ptr %11, align 4, !tbaa !9
  %43 = call i32 @msourcecf_add_gmsk(ptr noundef %40, float noundef 0xBFC99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, i32 noundef %41, float noundef %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1024, ptr %13, align 4, !tbaa !5
  %44 = load i32, ptr %13, align 4, !tbaa !5
  %45 = zext i32 %44 to i64
  %46 = call ptr @llvm.stacksave.p0()
  store ptr %46, ptr %14, align 8
  %47 = alloca { float, float }, i64 %45, align 16
  store i64 %45, ptr %15, align 8
  br label %48

48:                                               ; preds = %51, %0
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %51, label %64

51:                                               ; preds = %48
  %52 = load ptr, ptr %7, align 8, !tbaa !11
  %53 = load i32, ptr %13, align 4, !tbaa !5
  %54 = call i32 @msourcecf_write_samples(ptr noundef %52, ptr noundef %47, i32 noundef %53)
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sub i32 %56, %55
  store i32 %57, ptr %4, align 4, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !11
  %59 = load i32, ptr %13, align 4, !tbaa !5
  %60 = call i32 @spgramcf_write(ptr noundef %58, ptr noundef %47, i32 noundef %59)
  %61 = load ptr, ptr %6, align 8, !tbaa !11
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %63 = call i32 @spgramcf_write(ptr noundef %61, ptr noundef %47, i32 noundef %62)
  br label %48, !llvm.loop !13

64:                                               ; preds = %48
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = alloca float, i64 %66, align 16
  store i64 %66, ptr %16, align 8
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = zext i32 %68 to i64
  %70 = alloca float, i64 %69, align 16
  store i64 %69, ptr %17, align 8
  %71 = load ptr, ptr %5, align 8, !tbaa !11
  %72 = call i32 @spgramcf_get_psd(ptr noundef %71, ptr noundef %67)
  %73 = load ptr, ptr %6, align 8, !tbaa !11
  %74 = call i32 @spgramcf_get_psd(ptr noundef %73, ptr noundef %70)
  %75 = load ptr, ptr %7, align 8, !tbaa !11
  %76 = call i32 @msourcecf_destroy(ptr noundef %75)
  %77 = load ptr, ptr %5, align 8, !tbaa !11
  %78 = call i32 @spgramcf_destroy(ptr noundef %77)
  %79 = load ptr, ptr %6, align 8, !tbaa !11
  %80 = call i32 @spgramcf_destroy(ptr noundef %79)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %81 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %81, ptr %18, align 8, !tbaa !11
  %82 = load ptr, ptr %18, align 8, !tbaa !11
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.2, ptr noundef @.str) #5
  %84 = load ptr, ptr %18, align 8, !tbaa !11
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.3) #5
  %86 = load ptr, ptr %18, align 8, !tbaa !11
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.4) #5
  %88 = load ptr, ptr %18, align 8, !tbaa !11
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.5, i32 noundef %89) #5
  %91 = load ptr, ptr %18, align 8, !tbaa !11
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.6) #5
  %93 = load ptr, ptr %18, align 8, !tbaa !11
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.7) #5
  %95 = load ptr, ptr %18, align 8, !tbaa !11
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.8) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %120, %64
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %101, label %123

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

120:                                              ; preds = %101
  %121 = load i32, ptr %12, align 4, !tbaa !5
  %122 = add i32 %121, 1
  store i32 %122, ptr %12, align 4, !tbaa !5
  br label %97, !llvm.loop !15

123:                                              ; preds = %97
  %124 = load ptr, ptr %18, align 8, !tbaa !11
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.11) #5
  %126 = load ptr, ptr %18, align 8, !tbaa !11
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.12) #5
  %128 = load ptr, ptr %18, align 8, !tbaa !11
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.13) #5
  %130 = load ptr, ptr %18, align 8, !tbaa !11
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.14) #5
  %132 = load ptr, ptr %18, align 8, !tbaa !11
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.15) #5
  %134 = load ptr, ptr %18, align 8, !tbaa !11
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.16) #5
  %136 = load ptr, ptr %18, align 8, !tbaa !11
  %137 = load float, ptr %3, align 4, !tbaa !9
  %138 = fpext float %137 to double
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.17, double noundef %138) #5
  %140 = load ptr, ptr %18, align 8, !tbaa !11
  %141 = call i32 @fclose(ptr noundef %140)
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef @.str)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %143 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %143)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  %144 = load i32, ptr %1, align 4
  ret i32 %144
}

; Function Attrs: 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) #2

declare i32 @spgramcf_set_alpha(ptr noundef, float noundef) #2

declare i32 @spgramcf_print(ptr noundef) #2

declare ptr @msourcecf_create_default() #2

declare i32 @msourcecf_add_noise(ptr noundef, float noundef, float noundef, float noundef) #2

declare i32 @msourcecf_add_tone(ptr noundef, float noundef, float noundef, float noundef) #2

declare i32 @msourcecf_add_modem(ptr noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef) #2

declare i32 @msourcecf_add_gmsk(ptr noundef, float noundef, float noundef, float noundef, i32 noundef, float noundef) #2

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

declare i32 @msourcecf_write_samples(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @spgramcf_write(ptr noundef, ptr noundef, i32 noundef) #2

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

declare i32 @msourcecf_destroy(ptr noundef) #2

declare i32 @spgramcf_destroy(ptr noundef) #2

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

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

declare i32 @fclose(ptr noundef) #2

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

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

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

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 = { 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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { 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 = { 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 [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [71 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 [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call ptr @spgramcf_create_default(i32 noundef 1024) #3
  %2 = tail call ptr @spgramcf_create_default(i32 noundef 1024) #3
  %3 = tail call i32 @spgramcf_set_alpha(ptr noundef %2, float noundef 0x3FA99999A0000000) #3
  %4 = tail call i32 @spgramcf_print(ptr noundef %1) #3
  %5 = tail call ptr @msourcecf_create_default() #3
  %6 = tail call i32 @msourcecf_add_noise(ptr noundef %5, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -6.000000e+01) #3
  %7 = tail call i32 @msourcecf_add_noise(ptr noundef %5, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 0.000000e+00) #3
  %8 = tail call i32 @msourcecf_add_tone(ptr noundef %5, float noundef 0xBFD99999A0000000, float noundef 0.000000e+00, float noundef 2.000000e+01) #3
  %9 = tail call i32 @msourcecf_add_modem(ptr noundef %5, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00, i32 noundef 40, i32 noundef 12, float noundef 0x3FC99999A0000000) #3
  %10 = tail call i32 @msourcecf_add_gmsk(ptr noundef %5, float noundef 0xBFC99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, i32 noundef 12, float noundef 0x3FD6666660000000) #3
  %11 = alloca [1024 x { float, float }], align 16
  br label %12

12:                                               ; preds = %0, %12
  %.060 = phi i32 [ 2000000, %0 ], [ %14, %12 ]
  %13 = call i32 @msourcecf_write_samples(ptr noundef %5, ptr noundef nonnull %11, i32 noundef 1024) #3
  %14 = add nsw i32 %.060, -1024
  %15 = call i32 @spgramcf_write(ptr noundef %1, ptr noundef nonnull %11, i32 noundef 1024) #3
  %16 = call i32 @spgramcf_write(ptr noundef %2, ptr noundef nonnull %11, i32 noundef 1024) #3
  %17 = icmp ugt i32 %.060, 1024
  br i1 %17, label %12, label %18, !llvm.loop !5

18:                                               ; preds = %12
  %19 = alloca [1024 x float], align 16
  %20 = alloca [1024 x float], align 16
  %21 = call i32 @spgramcf_get_psd(ptr noundef %1, ptr noundef nonnull %19) #3
  %22 = call i32 @spgramcf_get_psd(ptr noundef %2, ptr noundef nonnull %20) #3
  %23 = call i32 @msourcecf_destroy(ptr noundef %5) #3
  %24 = call i32 @spgramcf_destroy(ptr noundef %1) #3
  %25 = call i32 @spgramcf_destroy(ptr noundef %2) #3
  %26 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #3
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.3) #3
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.4) #3
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.5, i32 noundef 1024) #3
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.6) #3
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.7) #3
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.8) #3
  br label %34

34:                                               ; preds = %18, %34
  %indvars.iv = phi i64 [ 0, %18 ], [ %indvars.iv.next, %34 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = getelementptr inbounds float, ptr %19, i64 %indvars.iv
  %36 = load float, ptr %35, align 4, !tbaa !7
  %37 = fpext float %36 to double
  %38 = trunc nuw nsw i64 %indvars.iv.next to i32
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.9, i32 noundef %38, double noundef %37) #3
  %40 = getelementptr inbounds float, ptr %20, i64 %indvars.iv
  %41 = load float, ptr %40, align 4, !tbaa !7
  %42 = fpext float %41 to double
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.10, i32 noundef %38, double noundef %42) #3
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1024
  br i1 %exitcond.not, label %44, label %34, !llvm.loop !11

44:                                               ; preds = %34
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.11) #3
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.12) #3
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.13) #3
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.14) #3
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.15) #3
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.16) #3
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.17, double noundef 0x3FA99999A0000000) #3
  %52 = call i32 @fclose(ptr noundef %26)
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull @.str)
  ret i32 0
}

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #1

declare i32 @spgramcf_set_alpha(ptr noundef, float noundef) local_unnamed_addr #1

declare i32 @spgramcf_print(ptr noundef) local_unnamed_addr #1

declare ptr @msourcecf_create_default() local_unnamed_addr #1

declare i32 @msourcecf_add_noise(ptr noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

declare i32 @msourcecf_add_tone(ptr noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

declare i32 @msourcecf_add_modem(ptr noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #1

declare i32 @msourcecf_add_gmsk(ptr noundef, float noundef, float noundef, float noundef, i32 noundef, float noundef) local_unnamed_addr #1

declare i32 @msourcecf_write_samples(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @spgramcf_write(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare i32 @msourcecf_destroy(ptr noundef) local_unnamed_addr #1

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #1

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

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

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

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

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}


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