; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (msresamp_crcf_autotest)

; 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"

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @testbench_msresamp_crcf(float noundef %0, float noundef %1) #0 {
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca [3 x %struct.autotest_psd_s], align 16
  %19 = alloca [256 x i8], align 16
  store float %0, ptr %3, align 4, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 800000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store float 0x3FC99999A0000000, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 800, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store float 5.000000e-01, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = udiv i32 %21, 2
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = udiv i32 %23, 4
  %25 = call ptr @spgramcf_create(i32 noundef %20, i32 noundef 2, i32 noundef %22, i32 noundef %24)
  store ptr %25, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %26 = load float, ptr %3, align 4, !tbaa !5
  %27 = load float, ptr %6, align 4, !tbaa !5
  %28 = fmul float %26, %27
  %29 = call ptr @symstreamrcf_create_linear(i32 noundef 1, float noundef %28, i32 noundef 25, float noundef 0x3FC99999A0000000, i32 noundef 40)
  store ptr %29, ptr %10, align 8, !tbaa !11
  %30 = load ptr, ptr %10, align 8, !tbaa !11
  %31 = load float, ptr %6, align 4, !tbaa !5
  %32 = call float @sqrtf(float noundef %31) #5
  %33 = call i32 @symstreamrcf_set_gain(ptr noundef %30, float noundef %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %34 = load float, ptr %3, align 4, !tbaa !5
  %35 = load float, ptr %4, align 4, !tbaa !5
  %36 = call ptr @msresamp_crcf_create(float noundef %34, float noundef %35)
  store ptr %36, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 256, ptr %12, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = call ptr @llvm.stacksave.p0()
  store ptr %39, ptr %13, align 8
  %40 = alloca { float, float }, i64 %38, align 16
  store i64 %38, ptr %14, align 8
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = alloca { float, float }, i64 %42, align 16
  store i64 %42, ptr %15, align 8
  br label %44

44:                                               ; preds = %50, %2
  %45 = load ptr, ptr %9, align 8, !tbaa !11
  %46 = call i64 @spgramcf_get_num_samples_total(ptr noundef %45)
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = icmp ult i64 %46, %48
  br i1 %49, label %50, label %60

50:                                               ; preds = %44
  %51 = load ptr, ptr %10, align 8, !tbaa !11
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = call i32 @symstreamrcf_write_samples(ptr noundef %51, ptr noundef %40, i32 noundef %52)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  %54 = load ptr, ptr %11, align 8, !tbaa !11
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = call i32 @msresamp_crcf_execute(ptr noundef %54, ptr noundef %40, i32 noundef %55, ptr noundef %43, ptr noundef %16)
  %57 = load ptr, ptr %9, align 8, !tbaa !11
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = call i32 @spgramcf_write(ptr noundef %57, ptr noundef %43, i32 noundef %58)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %44, !llvm.loop !13

60:                                               ; preds = %44
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = alloca float, i64 %62, align 16
  store i64 %62, ptr %17, align 8
  %64 = load ptr, ptr %9, align 8, !tbaa !11
  %65 = call i32 @spgramcf_get_psd(ptr noundef %64, ptr noundef %63)
  call void @llvm.lifetime.start.p0(i64 72, ptr %18) #5
  %66 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i32 0, i32 0
  store float -5.000000e-01, ptr %66, align 8, !tbaa !15
  %67 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i32 0, i32 1
  %68 = load float, ptr %6, align 4, !tbaa !5
  %69 = fmul float 0xBFE3333340000000, %68
  store float %69, ptr %67, align 4, !tbaa !17
  %70 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i32 0, i32 2
  store float 0.000000e+00, ptr %70, align 8, !tbaa !18
  %71 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i32 0, i32 3
  %72 = load float, ptr %4, align 4, !tbaa !5
  %73 = fneg float %72
  %74 = load float, ptr %8, align 4, !tbaa !5
  %75 = fadd float %73, %74
  store float %75, ptr %71, align 4, !tbaa !19
  %76 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i32 0, i32 4
  store i32 0, ptr %76, align 8, !tbaa !20
  %77 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i32 0, i32 5
  store i32 1, ptr %77, align 4, !tbaa !21
  %78 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i64 1
  %79 = getelementptr inbounds %struct.autotest_psd_s, ptr %78, i32 0, i32 0
  %80 = load float, ptr %6, align 4, !tbaa !5
  %81 = fmul float 0xBFD99999A0000000, %80
  store float %81, ptr %79, align 8, !tbaa !15
  %82 = getelementptr inbounds %struct.autotest_psd_s, ptr %78, i32 0, i32 1
  %83 = load float, ptr %6, align 4, !tbaa !5
  %84 = fmul float 0x3FD99999A0000000, %83
  store float %84, ptr %82, align 4, !tbaa !17
  %85 = getelementptr inbounds %struct.autotest_psd_s, ptr %78, i32 0, i32 2
  %86 = load float, ptr %8, align 4, !tbaa !5
  %87 = fsub float 0.000000e+00, %86
  store float %87, ptr %85, align 8, !tbaa !18
  %88 = getelementptr inbounds %struct.autotest_psd_s, ptr %78, i32 0, i32 3
  %89 = load float, ptr %8, align 4, !tbaa !5
  %90 = fadd float 0.000000e+00, %89
  store float %90, ptr %88, align 4, !tbaa !19
  %91 = getelementptr inbounds %struct.autotest_psd_s, ptr %78, i32 0, i32 4
  store i32 1, ptr %91, align 8, !tbaa !20
  %92 = getelementptr inbounds %struct.autotest_psd_s, ptr %78, i32 0, i32 5
  store i32 1, ptr %92, align 4, !tbaa !21
  %93 = getelementptr inbounds %struct.autotest_psd_s, ptr %18, i64 2
  %94 = getelementptr inbounds %struct.autotest_psd_s, ptr %93, i32 0, i32 0
  %95 = load float, ptr %6, align 4, !tbaa !5
  %96 = fmul float 0x3FE3333340000000, %95
  store float %96, ptr %94, align 8, !tbaa !15
  %97 = getelementptr inbounds %struct.autotest_psd_s, ptr %93, i32 0, i32 1
  store float 5.000000e-01, ptr %97, align 4, !tbaa !17
  %98 = getelementptr inbounds %struct.autotest_psd_s, ptr %93, i32 0, i32 2
  store float 0.000000e+00, ptr %98, align 8, !tbaa !18
  %99 = getelementptr inbounds %struct.autotest_psd_s, ptr %93, i32 0, i32 3
  %100 = load float, ptr %4, align 4, !tbaa !5
  %101 = fneg float %100
  %102 = load float, ptr %8, align 4, !tbaa !5
  %103 = fadd float %101, %102
  store float %103, ptr %99, align 4, !tbaa !19
  %104 = getelementptr inbounds %struct.autotest_psd_s, ptr %93, i32 0, i32 4
  store i32 0, ptr %104, align 8, !tbaa !20
  %105 = getelementptr inbounds %struct.autotest_psd_s, ptr %93, i32 0, i32 5
  store i32 1, ptr %105, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 256, ptr %19) #5
  %106 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %107 = load float, ptr %3, align 4, !tbaa !5
  %108 = fmul float %107, 1.000000e+03
  %109 = fptosi float %108 to i32
  %110 = load float, ptr %4, align 4, !tbaa !5
  %111 = fptosi float %110 to i32
  %112 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %106, ptr noundef @.str, i32 noundef %109, i32 noundef %111) #5
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = getelementptr inbounds [3 x %struct.autotest_psd_s], ptr %18, i64 0, i64 0
  %115 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %60
  %118 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  br label %120

119:                                              ; preds = %60
  br label %120

120:                                              ; preds = %119, %117
  %121 = phi ptr [ %118, %117 ], [ null, %119 ]
  %122 = call i32 @liquid_autotest_validate_spectrum(ptr noundef %63, i32 noundef %113, ptr noundef %114, i32 noundef 3, ptr noundef %121)
  %123 = load ptr, ptr %9, align 8, !tbaa !11
  %124 = call i32 @spgramcf_destroy(ptr noundef %123)
  %125 = load ptr, ptr %10, align 8, !tbaa !11
  %126 = call i32 @symstreamrcf_destroy(ptr noundef %125)
  %127 = load ptr, ptr %11, align 8, !tbaa !11
  %128 = call i32 @msresamp_crcf_destroy(ptr noundef %127)
  call void @llvm.lifetime.end.p0(i64 256, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %18) #5
  %129 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %129)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

; 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(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #3

declare ptr @msresamp_crcf_create(float noundef, float noundef) #2

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

declare i64 @spgramcf_get_num_samples_total(ptr noundef) #2

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

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

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

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

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

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

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

declare i32 @spgramcf_destroy(ptr noundef) #2

declare i32 @symstreamrcf_destroy(ptr noundef) #2

declare i32 @msresamp_crcf_destroy(ptr noundef) #2

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

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 = { 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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 20}
!17 = !{!16, !6, i64 4}
!18 = !{!16, !6, i64 8}
!19 = !{!16, !6, i64 12}
!20 = !{!16, !10, i64 16}
!21 = !{!16, !10, i64 20}


; 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"

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @testbench_msresamp_crcf(float noundef %0, float noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca [3 x %struct.autotest_psd_s], align 16
  %5 = alloca [256 x i8], align 16
  %6 = tail call ptr @spgramcf_create(i32 noundef 800, i32 noundef 2, i32 noundef 400, i32 noundef 200) #4
  %7 = fmul float %0, 0x3FC99999A0000000
  %8 = tail call ptr @symstreamrcf_create_linear(i32 noundef 1, float noundef %7, i32 noundef 25, float noundef 0x3FC99999A0000000, i32 noundef 40) #4
  %9 = tail call i32 @symstreamrcf_set_gain(ptr noundef %8, float noundef 0x3FDC9F25C0000000) #4
  %10 = tail call ptr @msresamp_crcf_create(float noundef %0, float noundef %1) #4
  %11 = alloca [256 x { float, float }], align 16
  %12 = alloca [256 x { float, float }], align 16
  %13 = tail call i64 @spgramcf_get_num_samples_total(ptr noundef %6) #4
  %14 = icmp ult i64 %13, 800000
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.lr.ph
  %15 = call i32 @symstreamrcf_write_samples(ptr noundef %8, ptr noundef nonnull %11, i32 noundef 256) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  %16 = call i32 @msresamp_crcf_execute(ptr noundef %10, ptr noundef nonnull %11, i32 noundef 256, ptr noundef nonnull %12, ptr noundef nonnull %3) #4
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = call i32 @spgramcf_write(ptr noundef %6, ptr noundef nonnull %12, i32 noundef %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %19 = call i64 @spgramcf_get_num_samples_total(ptr noundef %6) #4
  %20 = icmp ult i64 %19, 800000
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %2
  %21 = alloca [800 x float], align 16
  %22 = call i32 @spgramcf_get_psd(ptr noundef %6, ptr noundef nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #4
  store <2 x float> <float -5.000000e-01, float 0xBFBEB85200000000>, ptr %4, align 16, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %4, i64 8
  store float 0.000000e+00, ptr %23, align 8, !tbaa !13
  %24 = getelementptr inbounds i8, ptr %4, i64 12
  %25 = fsub float 5.000000e-01, %1
  store float %25, ptr %24, align 4, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 0, ptr %26, align 16, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %4, i64 20
  store i32 1, ptr %27, align 4, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %4, i64 24
  store <4 x float> <float 0xBFB47AE160000000, float 0x3FB47AE160000000, float -5.000000e-01, float 5.000000e-01>, ptr %28, align 8, !tbaa !11
  %29 = getelementptr inbounds i8, ptr %4, i64 40
  store i32 1, ptr %29, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %4, i64 44
  store i32 1, ptr %30, align 4, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %4, i64 48
  store <2 x float> <float 0x3FBEB85200000000, float 5.000000e-01>, ptr %31, align 16, !tbaa !11
  %32 = getelementptr inbounds i8, ptr %4, i64 56
  store float 0.000000e+00, ptr %32, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %4, i64 60
  store float %25, ptr %33, align 4, !tbaa !15
  %34 = getelementptr inbounds i8, ptr %4, i64 64
  store i32 0, ptr %34, align 16, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %4, i64 68
  store i32 1, ptr %35, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #4
  %36 = fmul float %0, 1.000000e+03
  %37 = fptosi float %36 to i32
  %38 = fptosi float %1 to i32
  %39 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %37, i32 noundef %38) #4
  %40 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %40, 0
  %41 = select i1 %.not, ptr null, ptr %5
  %42 = call i32 @liquid_autotest_validate_spectrum(ptr noundef nonnull %21, i32 noundef 800, ptr noundef nonnull %4, i32 noundef 3, ptr noundef %41) #4
  %43 = call i32 @spgramcf_destroy(ptr noundef %6) #4
  %44 = call i32 @symstreamrcf_destroy(ptr noundef %8) #4
  %45 = call i32 @msresamp_crcf_destroy(ptr noundef %10) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #4
  ret void
}

; 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(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare ptr @msresamp_crcf_create(float noundef, float noundef) local_unnamed_addr #2

declare i64 @spgramcf_get_num_samples_total(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @spgramcf_write(ptr noundef, ptr noundef, i32 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_get_psd(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @symstreamrcf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @msresamp_crcf_destroy(ptr noundef) 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 = { 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 = !{!14, !12, i64 8}
!14 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 20}
!15 = !{!14, !12, i64 12}
!16 = !{!14, !6, i64 16}
!17 = !{!14, !6, i64 20}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass