; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (rresamp_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 [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [40 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @test_rresamp_crcf(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, float noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca [3 x %struct.autotest_psd_s], align 16
  %29 = alloca [256 x i8], align 16
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store float %4, ptr %11, align 4, !tbaa !11
  store float %5, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 800000, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 0x3FC99999A0000000, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 800, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 5.000000e-01, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr null, ptr %17, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call i32 @strcmp(ptr noundef %30, ptr noundef @.str) #7
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %40

33:                                               ; preds = %6
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = load float, ptr %11, align 4, !tbaa !11
  %38 = load float, ptr %12, align 4, !tbaa !11
  %39 = call ptr @rresamp_crcf_create_kaiser(i32 noundef %34, i32 noundef %35, i32 noundef %36, float noundef %37, float noundef %38)
  store ptr %39, ptr %17, align 8, !tbaa !5
  br label %59

40:                                               ; preds = %6
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = call i32 @strcmp(ptr noundef %41, ptr noundef @.str.1) #7
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %48

44:                                               ; preds = %40
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = call ptr @rresamp_crcf_create_default(i32 noundef %45, i32 noundef %46)
  store ptr %47, ptr %17, align 8, !tbaa !5
  br label %58

48:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call i32 @liquid_getopt_str2firfilt(ptr noundef %49)
  store i32 %50, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %51 = load float, ptr %11, align 4, !tbaa !11
  store float %51, ptr %19, align 4, !tbaa !11
  %52 = load i32, ptr %18, align 4, !tbaa !9
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = load float, ptr %19, align 4, !tbaa !11
  %57 = call ptr @rresamp_crcf_create_prototype(i32 noundef %52, i32 noundef %53, i32 noundef %54, i32 noundef %55, float noundef %56)
  store ptr %57, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %58

58:                                               ; preds = %48, %44
  br label %59

59:                                               ; preds = %58, %33
  %60 = load ptr, ptr %17, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  call void (...) @liquid_autotest_failed()
  store i32 1, ptr %20, align 4
  br label %172

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = call float @rresamp_crcf_get_rate(ptr noundef %64)
  store float %65, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = udiv i32 %67, 2
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = udiv i32 %69, 4
  %71 = call ptr @spgramcf_create(i32 noundef %66, i32 noundef 2, i32 noundef %68, i32 noundef %70)
  store ptr %71, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %72 = load float, ptr %21, align 4, !tbaa !11
  %73 = load float, ptr %14, align 4, !tbaa !11
  %74 = fmul float %72, %73
  %75 = call ptr @symstreamrcf_create_linear(i32 noundef 1, float noundef %74, i32 noundef 25, float noundef 0x3FC99999A0000000, i32 noundef 40)
  store ptr %75, ptr %23, align 8, !tbaa !5
  %76 = load ptr, ptr %23, align 8, !tbaa !5
  %77 = load float, ptr %14, align 4, !tbaa !11
  %78 = load float, ptr %21, align 4, !tbaa !11
  %79 = fmul float %77, %78
  %80 = call float @sqrtf(float noundef %79) #6
  %81 = call i32 @symstreamrcf_set_gain(ptr noundef %76, float noundef %80)
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = call ptr @llvm.stacksave.p0()
  store ptr %84, ptr %24, align 8
  %85 = alloca { float, float }, i64 %83, align 16
  store i64 %83, ptr %25, align 8
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = alloca { float, float }, i64 %87, align 16
  store i64 %87, ptr %26, align 8
  br label %89

89:                                               ; preds = %95, %63
  %90 = load ptr, ptr %22, align 8, !tbaa !5
  %91 = call i64 @spgramcf_get_num_samples_total(ptr noundef %90)
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = icmp ult i64 %91, %93
  br i1 %94, label %95, label %104

95:                                               ; preds = %89
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = call i32 @symstreamrcf_write_samples(ptr noundef %96, ptr noundef %85, i32 noundef %97)
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = call i32 @rresamp_crcf_execute(ptr noundef %99, ptr noundef %85, ptr noundef %88)
  %101 = load ptr, ptr %22, align 8, !tbaa !5
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = call i32 @spgramcf_write(ptr noundef %101, ptr noundef %88, i32 noundef %102)
  br label %89, !llvm.loop !13

104:                                              ; preds = %89
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = alloca float, i64 %106, align 16
  store i64 %106, ptr %27, align 8
  %108 = load ptr, ptr %22, align 8, !tbaa !5
  %109 = call i32 @spgramcf_get_psd(ptr noundef %108, ptr noundef %107)
  call void @llvm.lifetime.start.p0(i64 72, ptr %28) #6
  %110 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i32 0, i32 0
  store float -5.000000e-01, ptr %110, align 8, !tbaa !15
  %111 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i32 0, i32 1
  %112 = load float, ptr %14, align 4, !tbaa !11
  %113 = fmul float 0xBFE3333340000000, %112
  store float %113, ptr %111, align 4, !tbaa !17
  %114 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i32 0, i32 2
  store float 0.000000e+00, ptr %114, align 8, !tbaa !18
  %115 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i32 0, i32 3
  %116 = load float, ptr %12, align 4, !tbaa !11
  %117 = fneg float %116
  %118 = load float, ptr %16, align 4, !tbaa !11
  %119 = fadd float %117, %118
  store float %119, ptr %115, align 4, !tbaa !19
  %120 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i32 0, i32 4
  store i32 0, ptr %120, align 8, !tbaa !20
  %121 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i32 0, i32 5
  store i32 1, ptr %121, align 4, !tbaa !21
  %122 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i64 1
  %123 = getelementptr inbounds %struct.autotest_psd_s, ptr %122, i32 0, i32 0
  %124 = load float, ptr %14, align 4, !tbaa !11
  %125 = fmul float 0xBFD99999A0000000, %124
  store float %125, ptr %123, align 8, !tbaa !15
  %126 = getelementptr inbounds %struct.autotest_psd_s, ptr %122, i32 0, i32 1
  %127 = load float, ptr %14, align 4, !tbaa !11
  %128 = fmul float 0x3FD99999A0000000, %127
  store float %128, ptr %126, align 4, !tbaa !17
  %129 = getelementptr inbounds %struct.autotest_psd_s, ptr %122, i32 0, i32 2
  %130 = load float, ptr %16, align 4, !tbaa !11
  %131 = fsub float 0.000000e+00, %130
  store float %131, ptr %129, align 8, !tbaa !18
  %132 = getelementptr inbounds %struct.autotest_psd_s, ptr %122, i32 0, i32 3
  %133 = load float, ptr %16, align 4, !tbaa !11
  %134 = fadd float 0.000000e+00, %133
  store float %134, ptr %132, align 4, !tbaa !19
  %135 = getelementptr inbounds %struct.autotest_psd_s, ptr %122, i32 0, i32 4
  store i32 1, ptr %135, align 8, !tbaa !20
  %136 = getelementptr inbounds %struct.autotest_psd_s, ptr %122, i32 0, i32 5
  store i32 1, ptr %136, align 4, !tbaa !21
  %137 = getelementptr inbounds %struct.autotest_psd_s, ptr %28, i64 2
  %138 = getelementptr inbounds %struct.autotest_psd_s, ptr %137, i32 0, i32 0
  %139 = load float, ptr %14, align 4, !tbaa !11
  %140 = fmul float 0x3FE3333340000000, %139
  store float %140, ptr %138, align 8, !tbaa !15
  %141 = getelementptr inbounds %struct.autotest_psd_s, ptr %137, i32 0, i32 1
  store float 5.000000e-01, ptr %141, align 4, !tbaa !17
  %142 = getelementptr inbounds %struct.autotest_psd_s, ptr %137, i32 0, i32 2
  store float 0.000000e+00, ptr %142, align 8, !tbaa !18
  %143 = getelementptr inbounds %struct.autotest_psd_s, ptr %137, i32 0, i32 3
  %144 = load float, ptr %12, align 4, !tbaa !11
  %145 = fneg float %144
  %146 = load float, ptr %16, align 4, !tbaa !11
  %147 = fadd float %145, %146
  store float %147, ptr %143, align 4, !tbaa !19
  %148 = getelementptr inbounds %struct.autotest_psd_s, ptr %137, i32 0, i32 4
  store i32 0, ptr %148, align 8, !tbaa !20
  %149 = getelementptr inbounds %struct.autotest_psd_s, ptr %137, i32 0, i32 5
  store i32 1, ptr %149, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 256, ptr %29) #6
  %150 = getelementptr inbounds [256 x i8], ptr %29, i64 0, i64 0
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load i32, ptr %8, align 4, !tbaa !9
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %150, ptr noundef @.str.2, ptr noundef %151, i32 noundef %152, i32 noundef %153) #6
  %155 = load i32, ptr %15, align 4, !tbaa !9
  %156 = getelementptr inbounds [3 x %struct.autotest_psd_s], ptr %28, i64 0, i64 0
  %157 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %161

159:                                              ; preds = %104
  %160 = getelementptr inbounds [256 x i8], ptr %29, i64 0, i64 0
  br label %162

161:                                              ; preds = %104
  br label %162

162:                                              ; preds = %161, %159
  %163 = phi ptr [ %160, %159 ], [ null, %161 ]
  %164 = call i32 @liquid_autotest_validate_spectrum(ptr noundef %107, i32 noundef %155, ptr noundef %156, i32 noundef 3, ptr noundef %163)
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = call i32 @rresamp_crcf_destroy(ptr noundef %165)
  %167 = load ptr, ptr %22, align 8, !tbaa !5
  %168 = call i32 @spgramcf_destroy(ptr noundef %167)
  %169 = load ptr, ptr %23, align 8, !tbaa !5
  %170 = call i32 @symstreamrcf_destroy(ptr noundef %169)
  call void @llvm.lifetime.end.p0(i64 256, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %28) #6
  %171 = load ptr, ptr %24, align 8
  call void @llvm.stackrestore.p0(ptr %171)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  store i32 0, ptr %20, align 4
  br label %172

172:                                              ; preds = %162, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %173 = load i32, ptr %20, align 4
  switch i32 %173, label %175 [
    i32 0, label %174
    i32 1, label %174
  ]

174:                                              ; preds = %172, %172
  ret void

175:                                              ; preds = %172
  unreachable
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

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

declare i32 @liquid_getopt_str2firfilt(ptr noundef) #3

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

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

declare void @liquid_autotest_failed(...) #3

declare float @rresamp_crcf_get_rate(ptr noundef) #3

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

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

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

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

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

declare i64 @spgramcf_get_num_samples_total(ptr noundef) #3

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

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

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

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

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

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

declare i32 @rresamp_crcf_destroy(ptr noundef) #3

declare i32 @spgramcf_destroy(ptr noundef) #3

declare i32 @symstreamrcf_destroy(ptr noundef) #3

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

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 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"any pointer", !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 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !10, i64 16, !10, i64 20}
!17 = !{!16, !12, i64 4}
!18 = !{!16, !12, i64 8}
!19 = !{!16, !12, 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 [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [40 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @test_rresamp_crcf(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, float noundef %5) local_unnamed_addr #0 {
  %7 = alloca [3 x %struct.autotest_psd_s], align 16
  %8 = alloca [256 x i8], align 16
  %9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str) #7
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %6
  %12 = tail call ptr @rresamp_crcf_create_kaiser(i32 noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, float noundef %5) #8
  br label %21

13:                                               ; preds = %6
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.1) #7
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %13
  %17 = tail call ptr @rresamp_crcf_create_default(i32 noundef %1, i32 noundef %2) #8
  br label %21

18:                                               ; preds = %13
  %19 = tail call i32 @liquid_getopt_str2firfilt(ptr noundef %0) #8
  %20 = tail call ptr @rresamp_crcf_create_prototype(i32 noundef %19, i32 noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4) #8
  br label %21

21:                                               ; preds = %16, %18, %11
  %.0 = phi ptr [ %12, %11 ], [ %17, %16 ], [ %20, %18 ]
  %22 = icmp eq ptr %.0, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  tail call void (...) @liquid_autotest_failed() #8
  br label %65

24:                                               ; preds = %21
  %25 = tail call float @rresamp_crcf_get_rate(ptr noundef nonnull %.0) #8
  %26 = tail call ptr @spgramcf_create(i32 noundef 800, i32 noundef 2, i32 noundef 400, i32 noundef 200) #8
  %27 = fmul float %25, 0x3FC99999A0000000
  %28 = tail call ptr @symstreamrcf_create_linear(i32 noundef 1, float noundef %27, i32 noundef 25, float noundef 0x3FC99999A0000000, i32 noundef 40) #8
  %29 = tail call float @sqrtf(float noundef %27) #8
  %30 = tail call i32 @symstreamrcf_set_gain(ptr noundef %28, float noundef %29) #8
  %31 = zext i32 %2 to i64
  %32 = tail call ptr @llvm.stacksave.p0()
  %33 = alloca { float, float }, i64 %31, align 16
  %34 = zext i32 %1 to i64
  %35 = alloca { float, float }, i64 %34, align 16
  %36 = tail call i64 @spgramcf_get_num_samples_total(ptr noundef %26) #8
  %37 = icmp ult i64 %36, 800000
  br i1 %37, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %24, %.lr.ph
  %38 = call i32 @symstreamrcf_write_samples(ptr noundef %28, ptr noundef nonnull %33, i32 noundef %2) #8
  %39 = call i32 @rresamp_crcf_execute(ptr noundef nonnull %.0, ptr noundef nonnull %33, ptr noundef nonnull %35) #8
  %40 = call i32 @spgramcf_write(ptr noundef %26, ptr noundef nonnull %35, i32 noundef %1) #8
  %41 = call i64 @spgramcf_get_num_samples_total(ptr noundef %26) #8
  %42 = icmp ult i64 %41, 800000
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %24
  %43 = alloca [800 x float], align 16
  %44 = call i32 @spgramcf_get_psd(ptr noundef %26, ptr noundef nonnull %43) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #8
  store <2 x float> <float -5.000000e-01, float 0xBFBEB85200000000>, ptr %7, align 16, !tbaa !7
  %45 = getelementptr inbounds i8, ptr %7, i64 8
  store float 0.000000e+00, ptr %45, align 8, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %7, i64 12
  %47 = fsub float 5.000000e-01, %5
  store float %47, ptr %46, align 4, !tbaa !14
  %48 = getelementptr inbounds i8, ptr %7, i64 16
  store i32 0, ptr %48, align 16, !tbaa !15
  %49 = getelementptr inbounds i8, ptr %7, i64 20
  store i32 1, ptr %49, align 4, !tbaa !16
  %50 = getelementptr inbounds i8, ptr %7, i64 24
  store <4 x float> <float 0xBFB47AE160000000, float 0x3FB47AE160000000, float -5.000000e-01, float 5.000000e-01>, ptr %50, align 8, !tbaa !7
  %51 = getelementptr inbounds i8, ptr %7, i64 40
  store i32 1, ptr %51, align 8, !tbaa !15
  %52 = getelementptr inbounds i8, ptr %7, i64 44
  store i32 1, ptr %52, align 4, !tbaa !16
  %53 = getelementptr inbounds i8, ptr %7, i64 48
  store <2 x float> <float 0x3FBEB85200000000, float 5.000000e-01>, ptr %53, align 16, !tbaa !7
  %54 = getelementptr inbounds i8, ptr %7, i64 56
  store float 0.000000e+00, ptr %54, align 8, !tbaa !11
  %55 = getelementptr inbounds i8, ptr %7, i64 60
  store float %47, ptr %55, align 4, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %7, i64 64
  store i32 0, ptr %56, align 16, !tbaa !15
  %57 = getelementptr inbounds i8, ptr %7, i64 68
  store i32 1, ptr %57, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #8
  %58 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %0, i32 noundef %1, i32 noundef %2) #8
  %59 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !17
  %.not = icmp eq i32 %59, 0
  %60 = select i1 %.not, ptr null, ptr %8
  %61 = call i32 @liquid_autotest_validate_spectrum(ptr noundef nonnull %43, i32 noundef 800, ptr noundef nonnull %7, i32 noundef 3, ptr noundef %60) #8
  %62 = call i32 @rresamp_crcf_destroy(ptr noundef nonnull %.0) #8
  %63 = call i32 @spgramcf_destroy(ptr noundef %26) #8
  %64 = call i32 @symstreamrcf_destroy(ptr noundef %28) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #8
  call void @llvm.stackrestore.p0(ptr %32)
  br label %65

65:                                               ; preds = %._crit_edge, %23
  ret void
}

; 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 nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

declare ptr @rresamp_crcf_create_kaiser(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #3

declare ptr @rresamp_crcf_create_default(i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @liquid_getopt_str2firfilt(ptr noundef) local_unnamed_addr #3

declare ptr @rresamp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #3

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

declare void @liquid_autotest_failed(...) local_unnamed_addr #3

declare float @rresamp_crcf_get_rate(ptr noundef) local_unnamed_addr #3

declare ptr @spgramcf_create(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #4

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

declare i64 @spgramcf_get_num_samples_total(ptr noundef) local_unnamed_addr #3

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

declare i32 @rresamp_crcf_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

declare i32 @rresamp_crcf_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @symstreamrcf_destroy(ptr noundef) local_unnamed_addr #3

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

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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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 #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!12, !8, i64 8}
!12 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !13, i64 16, !13, i64 20}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !8, i64 12}
!15 = !{!12, !13, i64 16}
!16 = !{!12, !13, i64 20}
!17 = !{!13, !13, i64 0}


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