; LLVM IR from jgaeddert/liquid-dsp :: sandbox (gmskmodem_psd_filter_compare_test)

; 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 [36 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 [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, 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) #5
  store i32 2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 3, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store float 0x3FD3333340000000, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 5000000, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1200, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = load float, ptr %8, align 4, !tbaa !11
  %23 = call ptr @gmskmod_create(i32 noundef %20, i32 noundef %21, float noundef %22)
  store ptr %23, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %24 = load i32, ptr %10, align 4, !tbaa !5
  %25 = call ptr @spgramcf_create_default(i32 noundef %24)
  store ptr %25, ptr %12, align 8, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = zext i32 %26 to i64
  %28 = call ptr @llvm.stacksave.p0()
  store ptr %28, ptr %13, align 8
  %29 = alloca { float, float }, i64 %27, align 16
  store i64 %27, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %42, %2
  %31 = load i32, ptr %15, align 4, !tbaa !5
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = icmp ult i32 %31, %32
  br i1 %33, label %34, label %45

34:                                               ; preds = %30
  %35 = load ptr, ptr %11, align 8, !tbaa !9
  %36 = call i32 @rand() #5
  %37 = and i32 %36, 1
  %38 = call i32 @gmskmod_modulate(ptr noundef %35, i32 noundef %37, ptr noundef %29)
  %39 = load ptr, ptr %12, align 8, !tbaa !9
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = call i32 @spgramcf_write(ptr noundef %39, ptr noundef %29, i32 noundef %40)
  br label %42

42:                                               ; preds = %34
  %43 = load i32, ptr %15, align 4, !tbaa !5
  %44 = add i32 %43, 1
  store i32 %44, ptr %15, align 4, !tbaa !5
  br label %30, !llvm.loop !13

45:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %46 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %46, ptr %16, align 8, !tbaa !9
  %47 = load ptr, ptr %16, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.2, ptr noundef @.str) #5
  %49 = load ptr, ptr %16, align 8, !tbaa !9
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.3) #5
  %51 = load ptr, ptr %16, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.4) #5
  %53 = load ptr, ptr %16, align 8, !tbaa !9
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.5, i32 noundef %54) #5
  %56 = load ptr, ptr %16, align 8, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.6, i32 noundef %57) #5
  %59 = load ptr, ptr %16, align 8, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.7, i32 noundef %60) #5
  %62 = load ptr, ptr %16, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = mul i32 2, %64
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = mul i32 %65, %66
  %68 = add i32 %67, 1
  store i32 %68, ptr %17, align 4, !tbaa !5
  %69 = load i32, ptr %17, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = alloca float, i64 %70, align 16
  store i64 %70, ptr %18, align 8
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = load float, ptr %8, align 4, !tbaa !11
  %75 = fmul float 0x3FE99999A0000000, %74
  %76 = call i32 @liquid_firdes_prototype(i32 noundef 11, i32 noundef %72, i32 noundef %73, float noundef %75, float noundef 0.000000e+00, ptr noundef %71)
  %77 = load ptr, ptr %16, align 8, !tbaa !9
  %78 = load i32, ptr %17, align 4, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.9, i32 noundef %78) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %94, %45
  %81 = load i32, ptr %15, align 4, !tbaa !5
  %82 = load i32, ptr %17, align 4, !tbaa !5
  %83 = icmp ult i32 %81, %82
  br i1 %83, label %84, label %97

84:                                               ; preds = %80
  %85 = load ptr, ptr %16, align 8, !tbaa !9
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = add i32 %86, 1
  %88 = load i32, ptr %15, align 4, !tbaa !5
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %71, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = fpext float %91 to double
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.10, i32 noundef %87, double noundef %92) #5
  br label %94

94:                                               ; preds = %84
  %95 = load i32, ptr %15, align 4, !tbaa !5
  %96 = add i32 %95, 1
  store i32 %96, ptr %15, align 4, !tbaa !5
  br label %80, !llvm.loop !15

97:                                               ; preds = %80
  %98 = load ptr, ptr %16, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.11) #5
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = alloca float, i64 %101, align 16
  store i64 %101, ptr %19, align 8
  %103 = load ptr, ptr %12, align 8, !tbaa !9
  %104 = call i32 @spgramcf_get_psd(ptr noundef %103, ptr noundef %102)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %119, %97
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = icmp ult i32 %106, %107
  br i1 %108, label %109, label %122

109:                                              ; preds = %105
  %110 = load ptr, ptr %16, align 8, !tbaa !9
  %111 = load i32, ptr %15, align 4, !tbaa !5
  %112 = add i32 %111, 1
  %113 = load i32, ptr %15, align 4, !tbaa !5
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds float, ptr %102, i64 %114
  %116 = load float, ptr %115, align 4, !tbaa !11
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.12, i32 noundef %112, double noundef %117) #5
  br label %119

119:                                              ; preds = %109
  %120 = load i32, ptr %15, align 4, !tbaa !5
  %121 = add i32 %120, 1
  store i32 %121, ptr %15, align 4, !tbaa !5
  br label %105, !llvm.loop !16

122:                                              ; preds = %105
  %123 = load ptr, ptr %16, align 8, !tbaa !9
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.13) #5
  %125 = load ptr, ptr %16, align 8, !tbaa !9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.14) #5
  %127 = load ptr, ptr %16, align 8, !tbaa !9
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.15) #5
  %129 = load ptr, ptr %16, align 8, !tbaa !9
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.16) #5
  %131 = load ptr, ptr %16, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.17) #5
  %133 = load ptr, ptr %16, align 8, !tbaa !9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.18) #5
  %135 = load ptr, ptr %16, align 8, !tbaa !9
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.19) #5
  %137 = load ptr, ptr %16, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.20) #5
  %139 = load ptr, ptr %16, align 8, !tbaa !9
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.21) #5
  %141 = load ptr, ptr %16, align 8, !tbaa !9
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str.22) #5
  %143 = load ptr, ptr %16, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef @.str.23) #5
  %145 = load ptr, ptr %16, align 8, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.24) #5
  %147 = load ptr, ptr %16, align 8, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str.25) #5
  %149 = load ptr, ptr %16, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.26) #5
  %151 = load ptr, ptr %16, align 8, !tbaa !9
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.27) #5
  %153 = load ptr, ptr %16, align 8, !tbaa !9
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str.28) #5
  %155 = load ptr, ptr %16, align 8, !tbaa !9
  %156 = call i32 @fclose(ptr noundef %155)
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef @.str)
  %158 = load ptr, ptr %11, align 8, !tbaa !9
  %159 = call i32 @gmskmod_destroy(ptr noundef %158)
  %160 = load ptr, ptr %12, align 8, !tbaa !9
  %161 = call i32 @spgramcf_destroy(ptr noundef %160)
  store i32 0, ptr %3, 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 %15) #5
  %162 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %162)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %163 = load i32, ptr %3, align 4
  ret i32 %163
}

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

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

declare ptr @spgramcf_create_default(i32 noundef) #2

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

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

; Function Attrs: nounwind
declare i32 @rand() #4

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

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

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

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

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

declare i32 @fclose(ptr noundef) #2

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

declare i32 @gmskmod_destroy(ptr noundef) #2

declare i32 @spgramcf_destroy(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 = !{!"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 = external hidden unnamed_addr constant [36 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 [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call ptr @gmskmod_create(i32 noundef 2, i32 noundef 3, float noundef 0x3FD3333340000000) #4
  %4 = tail call ptr @spgramcf_create_default(i32 noundef 1200) #4
  %5 = alloca [2 x { float, float }], align 16
  br label %6

6:                                                ; preds = %2, %6
  %.064 = phi i32 [ 0, %2 ], [ %11, %6 ]
  %7 = call i32 @rand() #4
  %8 = and i32 %7, 1
  %9 = call i32 @gmskmod_modulate(ptr noundef %3, i32 noundef %8, ptr noundef nonnull %5) #4
  %10 = call i32 @spgramcf_write(ptr noundef %4, ptr noundef nonnull %5, i32 noundef 2) #4
  %11 = add nuw nsw i32 %.064, 1
  %exitcond.not = icmp eq i32 %11, 5000000
  br i1 %exitcond.not, label %12, label %6, !llvm.loop !5

12:                                               ; preds = %6
  %13 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #4
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.3) #4
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.4) #4
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.5, i32 noundef 2) #4
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.6, i32 noundef 5000000) #4
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.7, i32 noundef 1200) #4
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.8) #4
  %21 = alloca [13 x float], align 16
  %22 = call i32 @liquid_firdes_prototype(i32 noundef 11, i32 noundef 2, i32 noundef 3, float noundef 0x3FCEB85200000000, float noundef 0.000000e+00, ptr noundef nonnull %21) #4
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.9, i32 noundef 13) #4
  %24 = load float, ptr %21, align 16, !tbaa !7
  %25 = fpext float %24 to double
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 1, double noundef %25) #4
  %27 = getelementptr inbounds i8, ptr %21, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !7
  %29 = fpext float %28 to double
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 2, double noundef %29) #4
  %31 = getelementptr inbounds i8, ptr %21, i64 8
  %32 = load float, ptr %31, align 8, !tbaa !7
  %33 = fpext float %32 to double
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 3, double noundef %33) #4
  %35 = getelementptr inbounds i8, ptr %21, i64 12
  %36 = load float, ptr %35, align 4, !tbaa !7
  %37 = fpext float %36 to double
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 4, double noundef %37) #4
  %39 = getelementptr inbounds i8, ptr %21, i64 16
  %40 = load float, ptr %39, align 16, !tbaa !7
  %41 = fpext float %40 to double
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 5, double noundef %41) #4
  %43 = getelementptr inbounds i8, ptr %21, i64 20
  %44 = load float, ptr %43, align 4, !tbaa !7
  %45 = fpext float %44 to double
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 6, double noundef %45) #4
  %47 = getelementptr inbounds i8, ptr %21, i64 24
  %48 = load float, ptr %47, align 8, !tbaa !7
  %49 = fpext float %48 to double
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 7, double noundef %49) #4
  %51 = getelementptr inbounds i8, ptr %21, i64 28
  %52 = load float, ptr %51, align 4, !tbaa !7
  %53 = fpext float %52 to double
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 8, double noundef %53) #4
  %55 = getelementptr inbounds i8, ptr %21, i64 32
  %56 = load float, ptr %55, align 16, !tbaa !7
  %57 = fpext float %56 to double
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 9, double noundef %57) #4
  %59 = getelementptr inbounds i8, ptr %21, i64 36
  %60 = load float, ptr %59, align 4, !tbaa !7
  %61 = fpext float %60 to double
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 10, double noundef %61) #4
  %63 = getelementptr inbounds i8, ptr %21, i64 40
  %64 = load float, ptr %63, align 8, !tbaa !7
  %65 = fpext float %64 to double
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 11, double noundef %65) #4
  %67 = getelementptr inbounds i8, ptr %21, i64 44
  %68 = load float, ptr %67, align 4, !tbaa !7
  %69 = fpext float %68 to double
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 12, double noundef %69) #4
  %71 = getelementptr inbounds i8, ptr %21, i64 48
  %72 = load float, ptr %71, align 16, !tbaa !7
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10, i32 noundef 13, double noundef %73) #4
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.11) #4
  %76 = alloca [1200 x float], align 16
  %77 = call i32 @spgramcf_get_psd(ptr noundef %4, ptr noundef nonnull %76) #4
  br label %78

78:                                               ; preds = %12, %78
  %indvars.iv = phi i64 [ 0, %12 ], [ %indvars.iv.next, %78 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %79 = getelementptr inbounds float, ptr %76, i64 %indvars.iv
  %80 = load float, ptr %79, align 4, !tbaa !7
  %81 = fpext float %80 to double
  %82 = trunc nuw nsw i64 %indvars.iv.next to i32
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.12, i32 noundef %82, double noundef %81) #4
  %exitcond70.not = icmp eq i64 %indvars.iv.next, 1200
  br i1 %exitcond70.not, label %84, label %78, !llvm.loop !11

84:                                               ; preds = %78
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.13) #4
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.14) #4
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.15) #4
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.16) #4
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.17) #4
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.18) #4
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.19) #4
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.20) #4
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.21) #4
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.22) #4
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.23) #4
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.24) #4
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.25) #4
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.26) #4
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.27) #4
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.28) #4
  %101 = call i32 @fclose(ptr noundef %13)
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29, ptr noundef nonnull @.str)
  %103 = call i32 @gmskmod_destroy(ptr noundef %3) #4
  %104 = call i32 @spgramcf_destroy(ptr noundef %4) #4
  ret i32 0
}

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

declare i32 @spgramcf_write(ptr noundef, ptr noundef, i32 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 #3

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

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

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

; 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

declare i32 @gmskmod_destroy(ptr noundef) local_unnamed_addr #1

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #1

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 = { 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 = { 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 = 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,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass