; LLVM IR from jgaeddert/liquid-dsp :: examples (msourcecf_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 [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 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 [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @callback(ptr noundef, ptr noundef, i32 noundef) #0

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 40, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 12, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float 0x3FD3333340000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store float 0x3FD6666660000000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 2400, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 48000, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = call ptr @spgramcf_create_default(i32 noundef %18)
  store ptr %19, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1024, ptr %9, align 4, !tbaa !5
  %20 = load i32, ptr %9, align 4, !tbaa !5
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  store ptr %22, ptr %10, align 8
  %23 = alloca { float, float }, i64 %21, align 16
  store i64 %21, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %24 = call ptr @msourcecf_create_default()
  store ptr %24, ptr %12, align 8, !tbaa !11
  %25 = load ptr, ptr %12, align 8, !tbaa !11
  %26 = call i32 @msourcecf_add_noise(ptr noundef %25, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -4.000000e+01)
  %27 = load ptr, ptr %12, align 8, !tbaa !11
  %28 = call i32 @msourcecf_add_noise(ptr noundef %27, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 0.000000e+00)
  %29 = load ptr, ptr %12, align 8, !tbaa !11
  %30 = call i32 @msourcecf_add_tone(ptr noundef %29, float noundef 0xBFD99999A0000000, float noundef 0.000000e+00, float noundef 2.000000e+01)
  %31 = load ptr, ptr %12, align 8, !tbaa !11
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = load float, ptr %4, align 4, !tbaa !9
  %35 = call i32 @msourcecf_add_modem(ptr noundef %31, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00, i32 noundef %32, i32 noundef %33, float noundef %34)
  %36 = load ptr, ptr %12, align 8, !tbaa !11
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = load float, ptr %5, align 4, !tbaa !9
  %39 = call i32 @msourcecf_add_gmsk(ptr noundef %36, float noundef 0xBFC99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, i32 noundef %37, float noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  %40 = load ptr, ptr %12, align 8, !tbaa !11
  %41 = call i32 @msourcecf_add_user(ptr noundef %40, float noundef 0x3FD99999A0000000, float noundef 0x3FC3333340000000, float noundef -1.000000e+01, ptr noundef %13, ptr noundef @callback)
  %42 = load ptr, ptr %12, align 8, !tbaa !11
  %43 = call i32 @msourcecf_print(ptr noundef %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %48, %0
  %45 = load i32, ptr %14, align 4, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %48, label %58

48:                                               ; preds = %44
  %49 = load ptr, ptr %12, align 8, !tbaa !11
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = call i32 @msourcecf_write_samples(ptr noundef %49, ptr noundef %23, i32 noundef %50)
  %52 = load ptr, ptr %8, align 8, !tbaa !11
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = call i32 @spgramcf_write(ptr noundef %52, ptr noundef %23, i32 noundef %53)
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = load i32, ptr %14, align 4, !tbaa !5
  %57 = add i32 %56, %55
  store i32 %57, ptr %14, align 4, !tbaa !5
  br label %44, !llvm.loop !13

58:                                               ; preds = %44
  %59 = load i32, ptr %14, align 4, !tbaa !5
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %59)
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = zext i32 %61 to i64
  %63 = alloca float, i64 %62, align 16
  store i64 %62, ptr %15, align 8
  %64 = load ptr, ptr %8, align 8, !tbaa !11
  %65 = call i32 @spgramcf_get_psd(ptr noundef %64, ptr noundef %63)
  %66 = load ptr, ptr %12, align 8, !tbaa !11
  %67 = call i32 @msourcecf_destroy(ptr noundef %66)
  %68 = load ptr, ptr %8, align 8, !tbaa !11
  %69 = call i32 @spgramcf_destroy(ptr noundef %68)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %70 = call noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
  store ptr %70, ptr %16, align 8, !tbaa !11
  %71 = load ptr, ptr %16, align 8, !tbaa !11
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.3, ptr noundef @.str.1) #5
  %73 = load ptr, ptr %16, align 8, !tbaa !11
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.4) #5
  %75 = load ptr, ptr %16, align 8, !tbaa !11
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.5) #5
  %77 = load ptr, ptr %16, align 8, !tbaa !11
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.6, i32 noundef %78) #5
  %80 = load ptr, ptr %16, align 8, !tbaa !11
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.7) #5
  %82 = load ptr, ptr %16, align 8, !tbaa !11
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %98, %58
  %85 = load i32, ptr %17, align 4, !tbaa !5
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = icmp ult i32 %85, %86
  br i1 %87, label %88, label %101

88:                                               ; preds = %84
  %89 = load ptr, ptr %16, align 8, !tbaa !11
  %90 = load i32, ptr %17, align 4, !tbaa !5
  %91 = add i32 %90, 1
  %92 = load i32, ptr %17, align 4, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %63, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !9
  %96 = fpext float %95 to double
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.9, i32 noundef %91, double noundef %96) #5
  br label %98

98:                                               ; preds = %88
  %99 = load i32, ptr %17, align 4, !tbaa !5
  %100 = add i32 %99, 1
  store i32 %100, ptr %17, align 4, !tbaa !5
  br label %84, !llvm.loop !15

101:                                              ; preds = %84
  %102 = load ptr, ptr %16, align 8, !tbaa !11
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.10) #5
  %104 = load ptr, ptr %16, align 8, !tbaa !11
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.11) #5
  %106 = load ptr, ptr %16, align 8, !tbaa !11
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.12) #5
  %108 = load ptr, ptr %16, align 8, !tbaa !11
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.13) #5
  %110 = load ptr, ptr %16, align 8, !tbaa !11
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.14) #5
  %112 = load ptr, ptr %16, align 8, !tbaa !11
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.15) #5
  %114 = load ptr, ptr %16, align 8, !tbaa !11
  %115 = call i32 @fclose(ptr noundef %114)
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %117 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %117)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  %118 = load i32, ptr %1, align 4
  ret i32 %118
}

declare ptr @spgramcf_create_default(i32 noundef) #2

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

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

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

declare i32 @msourcecf_print(ptr noundef) #2

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 @printf(ptr 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

; 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 [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 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 [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @callback(ptr noundef, ptr noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #4
  %3 = alloca [1024 x { float, float }], align 16
  %4 = tail call ptr @msourcecf_create_default() #4
  %5 = tail call i32 @msourcecf_add_noise(ptr noundef %4, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -4.000000e+01) #4
  %6 = tail call i32 @msourcecf_add_noise(ptr noundef %4, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 0.000000e+00) #4
  %7 = tail call i32 @msourcecf_add_tone(ptr noundef %4, float noundef 0xBFD99999A0000000, float noundef 0.000000e+00, float noundef 2.000000e+01) #4
  %8 = tail call i32 @msourcecf_add_modem(ptr noundef %4, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0.000000e+00, i32 noundef 40, i32 noundef 12, float noundef 0x3FD3333340000000) #4
  %9 = tail call i32 @msourcecf_add_gmsk(ptr noundef %4, float noundef 0xBFC99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, i32 noundef 12, float noundef 0x3FD6666660000000) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  %10 = call i32 @msourcecf_add_user(ptr noundef %4, float noundef 0x3FD99999A0000000, float noundef 0x3FC3333340000000, float noundef -1.000000e+01, ptr noundef nonnull %1, ptr noundef nonnull @callback) #4
  %11 = call i32 @msourcecf_print(ptr noundef %4) #4
  br label %12

12:                                               ; preds = %0, %12
  %.04849 = phi i32 [ 0, %0 ], [ %15, %12 ]
  %13 = call i32 @msourcecf_write_samples(ptr noundef %4, ptr noundef nonnull %3, i32 noundef 1024) #4
  %14 = call i32 @spgramcf_write(ptr noundef %2, ptr noundef nonnull %3, i32 noundef 1024) #4
  %15 = add nuw nsw i32 %.04849, 1024
  %16 = icmp ult i32 %.04849, 46976
  br i1 %16, label %12, label %17, !llvm.loop !9

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

30:                                               ; preds = %17, %30
  %indvars.iv = phi i64 [ 0, %17 ], [ %indvars.iv.next, %30 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = getelementptr inbounds float, ptr %19, i64 %indvars.iv
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = fpext float %32 to double
  %34 = trunc nuw nsw i64 %indvars.iv.next to i32
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.9, i32 noundef %34, double noundef %33) #4
  %exitcond.not = icmp eq i64 %indvars.iv.next, 2400
  br i1 %exitcond.not, label %36, label %30, !llvm.loop !13

36:                                               ; preds = %30
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.10) #4
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.11) #4
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.12) #4
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.13) #4
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.14) #4
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.15) #4
  %43 = call i32 @fclose(ptr noundef %23)
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 0
}

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #2

declare ptr @msourcecf_create_default() local_unnamed_addr #2

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

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

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

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

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

declare i32 @msourcecf_print(ptr noundef) local_unnamed_addr #2

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

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

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

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

declare i32 @msourcecf_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

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 = { 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 = !{!"int", !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}


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