; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (msresamp2_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 [52 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @testbench_msresamp2_crcf_interp(i32 noundef %0, float noundef %1, float noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca [3 x %struct.autotest_psd_s], align 16
  %20 = alloca [256 x i8], align 16
  store i32 %0, ptr %4, align 4, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load float, ptr %5, align 4, !tbaa !9
  %23 = load float, ptr %6, align 4, !tbaa !9
  %24 = call ptr @msresamp2_crcf_create(i32 noundef 0, i32 noundef %21, float noundef %22, float noundef 0.000000e+00, float noundef %23)
  store ptr %24, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %25 = load ptr, ptr %7, align 8, !tbaa !11
  %26 = call float @msresamp2_crcf_get_delay(ptr noundef %25)
  store float %26, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = shl i32 1, %27
  store i32 %28, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %38, %3
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = uitofp i32 %30 to float
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = mul i32 2, %32
  %34 = uitofp i32 %33 to float
  %35 = load float, ptr %8, align 4, !tbaa !9
  %36 = fmul float %34, %35
  %37 = fcmp olt float %31, %36
  br i1 %37, label %38, label %44

38:                                               ; preds = %29
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = load i32, ptr %10, align 4, !tbaa !5
  %41 = add i32 %40, %39
  store i32 %41, ptr %10, align 4, !tbaa !5
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = add i32 %42, 1
  store i32 %43, ptr %11, align 4, !tbaa !5
  br label %29, !llvm.loop !13

44:                                               ; preds = %29
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  %47 = call ptr @llvm.stacksave.p0()
  store ptr %47, ptr %12, align 8
  %48 = alloca { float, float }, i64 %46, align 16
  store i64 %46, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %67, %44
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = icmp ult i32 %50, %51
  br i1 %52, label %53, label %70

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %54 = load i32, ptr %14, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 0
  %56 = zext i1 %55 to i64
  %57 = select i1 %55, float 1.000000e+00, float 0.000000e+00
  %58 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %59 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  store float %57, ptr %58, align 4
  store float 0.000000e+00, ptr %59, align 4
  %60 = load ptr, ptr %7, align 8, !tbaa !11
  %61 = load i32, ptr %14, align 4, !tbaa !5
  %62 = load i32, ptr %9, align 4, !tbaa !5
  %63 = mul i32 %61, %62
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds { float, float }, ptr %48, i64 %64
  %66 = call i32 @msresamp2_crcf_execute(ptr noundef %60, ptr noundef %15, ptr noundef %65)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %67

67:                                               ; preds = %53
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = add i32 %68, 1
  store i32 %69, ptr %14, align 4, !tbaa !5
  br label %49, !llvm.loop !15

70:                                               ; preds = %49
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = uitofp i32 %72 to float
  %74 = fdiv float 1.000000e+00, %73
  %75 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %76 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %74, ptr %75, align 4
  store float 0.000000e+00, ptr %76, align 4
  %77 = load <2 x float>, ptr %16, align 4
  call void @liquid_vectorcf_mulscalar(ptr noundef %48, i32 noundef %71, <2 x float> noundef %77, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %78 = load float, ptr %5, align 4, !tbaa !9
  %79 = load i32, ptr %9, align 4, !tbaa !5
  %80 = uitofp i32 %79 to float
  %81 = fdiv float %78, %80
  store float %81, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = uitofp i32 %82 to float
  %84 = fdiv float 1.000000e+00, %83
  %85 = load float, ptr %17, align 4, !tbaa !9
  %86 = fsub float %84, %85
  store float %86, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %19) #5
  %87 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i32 0, i32 0
  store float -5.000000e-01, ptr %87, align 8, !tbaa !16
  %88 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i32 0, i32 1
  %89 = load float, ptr %18, align 4, !tbaa !9
  %90 = fneg float %89
  store float %90, ptr %88, align 4, !tbaa !18
  %91 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i32 0, i32 2
  store float 0.000000e+00, ptr %91, align 8, !tbaa !19
  %92 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i32 0, i32 3
  %93 = load float, ptr %6, align 4, !tbaa !9
  %94 = fneg float %93
  store float %94, ptr %92, align 4, !tbaa !20
  %95 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i32 0, i32 4
  store i32 0, ptr %95, align 8, !tbaa !21
  %96 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i32 0, i32 5
  store i32 1, ptr %96, align 4, !tbaa !22
  %97 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i64 1
  %98 = getelementptr inbounds %struct.autotest_psd_s, ptr %97, i32 0, i32 0
  %99 = load float, ptr %17, align 4, !tbaa !9
  %100 = fneg float %99
  store float %100, ptr %98, align 8, !tbaa !16
  %101 = getelementptr inbounds %struct.autotest_psd_s, ptr %97, i32 0, i32 1
  %102 = load float, ptr %17, align 4, !tbaa !9
  store float %102, ptr %101, align 4, !tbaa !18
  %103 = getelementptr inbounds %struct.autotest_psd_s, ptr %97, i32 0, i32 2
  store float 0xBFB99999A0000000, ptr %103, align 8, !tbaa !19
  %104 = getelementptr inbounds %struct.autotest_psd_s, ptr %97, i32 0, i32 3
  store float 0x3FB99999A0000000, ptr %104, align 4, !tbaa !20
  %105 = getelementptr inbounds %struct.autotest_psd_s, ptr %97, i32 0, i32 4
  store i32 1, ptr %105, align 8, !tbaa !21
  %106 = getelementptr inbounds %struct.autotest_psd_s, ptr %97, i32 0, i32 5
  store i32 1, ptr %106, align 4, !tbaa !22
  %107 = getelementptr inbounds %struct.autotest_psd_s, ptr %19, i64 2
  %108 = getelementptr inbounds %struct.autotest_psd_s, ptr %107, i32 0, i32 0
  %109 = load float, ptr %18, align 4, !tbaa !9
  store float %109, ptr %108, align 8, !tbaa !16
  %110 = getelementptr inbounds %struct.autotest_psd_s, ptr %107, i32 0, i32 1
  store float 5.000000e-01, ptr %110, align 4, !tbaa !18
  %111 = getelementptr inbounds %struct.autotest_psd_s, ptr %107, i32 0, i32 2
  store float 0.000000e+00, ptr %111, align 8, !tbaa !19
  %112 = getelementptr inbounds %struct.autotest_psd_s, ptr %107, i32 0, i32 3
  %113 = load float, ptr %6, align 4, !tbaa !9
  %114 = fneg float %113
  store float %114, ptr %112, align 4, !tbaa !20
  %115 = getelementptr inbounds %struct.autotest_psd_s, ptr %107, i32 0, i32 4
  store i32 0, ptr %115, align 8, !tbaa !21
  %116 = getelementptr inbounds %struct.autotest_psd_s, ptr %107, i32 0, i32 5
  store i32 1, ptr %116, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 256, ptr %20) #5
  %117 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  %118 = load i32, ptr %9, align 4, !tbaa !5
  %119 = load float, ptr %5, align 4, !tbaa !9
  %120 = fmul float %119, 1.000000e+03
  %121 = fptosi float %120 to i32
  %122 = load float, ptr %6, align 4, !tbaa !9
  %123 = fptosi float %122 to i32
  %124 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %117, ptr noundef @.str, i32 noundef %118, i32 noundef %121, i32 noundef %123) #5
  %125 = load i32, ptr %10, align 4, !tbaa !5
  %126 = getelementptr inbounds [3 x %struct.autotest_psd_s], ptr %19, i64 0, i64 0
  %127 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %131

129:                                              ; preds = %70
  %130 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  br label %132

131:                                              ; preds = %70
  br label %132

132:                                              ; preds = %131, %129
  %133 = phi ptr [ %130, %129 ], [ null, %131 ]
  %134 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef %48, i32 noundef %125, ptr noundef %126, i32 noundef 3, ptr noundef %133)
  %135 = load ptr, ptr %7, align 8, !tbaa !11
  %136 = call i32 @msresamp2_crcf_destroy(ptr noundef %135)
  call void @llvm.lifetime.end.p0(i64 256, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %137 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %137)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  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 @msresamp2_crcf_create(i32 noundef, i32 noundef, float noundef, float noundef, float noundef) #2

declare float @msresamp2_crcf_get_delay(ptr noundef) #2

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

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

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

declare void @liquid_vectorcf_mulscalar(ptr noundef, i32 noundef, <2 x float> noundef, ptr noundef) #2

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

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

declare i32 @msresamp2_crcf_destroy(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"="64" "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}
!16 = !{!17, !10, i64 0}
!17 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 20}
!18 = !{!17, !10, i64 4}
!19 = !{!17, !10, i64 8}
!20 = !{!17, !10, i64 12}
!21 = !{!17, !6, i64 16}
!22 = !{!17, !6, 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 [52 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @testbench_msresamp2_crcf_interp(i32 noundef %0, float noundef %1, float noundef %2) local_unnamed_addr #0 {
  %4 = alloca [0 x { float, float }], align 16
  %5 = alloca { float, float }, align 8
  %6 = alloca [3 x %struct.autotest_psd_s], align 16
  %7 = alloca [256 x i8], align 16
  %8 = tail call ptr @msresamp2_crcf_create(i32 noundef 0, i32 noundef %0, float noundef %1, float noundef 0.000000e+00, float noundef %2) #4
  %9 = tail call float @msresamp2_crcf_get_delay(ptr noundef %8) #4
  %10 = shl nuw i32 1, %0
  %11 = shl i32 2, %0
  %12 = uitofp i32 %11 to float
  %13 = fmul float %9, %12
  %14 = fcmp ogt float %13, 0.000000e+00
  br i1 %14, label %.lr.ph, label %._crit_edge45

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.040 = phi i32 [ %15, %.lr.ph ], [ 0, %3 ]
  %.03739 = phi i32 [ %16, %.lr.ph ], [ 0, %3 ]
  %15 = add i32 %.040, %10
  %16 = add i32 %.03739, 1
  %17 = uitofp i32 %15 to float
  %18 = fcmp ogt float %13, %17
  br i1 %18, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph
  %19 = zext i32 %15 to i64
  %20 = alloca { float, float }, i64 %19, align 16
  %.not46 = icmp eq i32 %16, 0
  br i1 %.not46, label %._crit_edge45, label %.lr.ph44

.lr.ph44:                                         ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %5, align 8
  %21 = call i32 @msresamp2_crcf_execute(ptr noundef %8, ptr noundef nonnull %5, ptr noundef nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %exitcond.peel.not = icmp eq i32 %.03739, 0
  br i1 %exitcond.peel.not, label %._crit_edge45, label %.peel.next

.peel.next:                                       ; preds = %.lr.ph44, %.peel.next
  %.03842 = phi i32 [ %26, %.peel.next ], [ 1, %.lr.ph44 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store <2 x float> zeroinitializer, ptr %5, align 8
  %22 = shl i32 %.03842, %0
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds { float, float }, ptr %20, i64 %23
  %25 = call i32 @msresamp2_crcf_execute(ptr noundef %8, ptr noundef nonnull %5, ptr noundef nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %26 = add nuw i32 %.03842, 1
  %exitcond.not = icmp eq i32 %.03842, %.03739
  br i1 %exitcond.not, label %._crit_edge45, label %.peel.next, !llvm.loop !7

._crit_edge45:                                    ; preds = %.peel.next, %3, %.lr.ph44, %._crit_edge
  %27 = phi ptr [ %20, %._crit_edge ], [ %20, %.lr.ph44 ], [ %4, %3 ], [ %20, %.peel.next ]
  %.0.lcssa52 = phi i32 [ %15, %._crit_edge ], [ %15, %.lr.ph44 ], [ 0, %3 ], [ %15, %.peel.next ]
  %28 = uitofp i32 %10 to float
  %29 = fdiv float 1.000000e+00, %28
  %.sroa.0.4.vec.insert = insertelement <2 x float> <float poison, float 0.000000e+00>, float %29, i64 0
  call void @liquid_vectorcf_mulscalar(ptr noundef nonnull %27, i32 noundef %.0.lcssa52, <2 x float> noundef %.sroa.0.4.vec.insert, ptr noundef nonnull %27) #4
  %30 = fdiv float %1, %28
  %31 = fsub float %29, %30
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #4
  store float -5.000000e-01, ptr %6, align 16, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %6, i64 4
  %33 = fneg float %31
  store float %33, ptr %32, align 4, !tbaa !15
  %34 = getelementptr inbounds i8, ptr %6, i64 8
  store float 0.000000e+00, ptr %34, align 8, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %6, i64 12
  %36 = fneg float %2
  store float %36, ptr %35, align 4, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %6, i64 16
  store i32 0, ptr %37, align 16, !tbaa !18
  %38 = getelementptr inbounds i8, ptr %6, i64 20
  store i32 1, ptr %38, align 4, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %6, i64 24
  %40 = fneg float %30
  store float %40, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %6, i64 28
  store float %30, ptr %41, align 4, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %6, i64 32
  store <2 x float> <float 0xBFB99999A0000000, float 0x3FB99999A0000000>, ptr %42, align 16, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 1, ptr %43, align 8, !tbaa !18
  %44 = getelementptr inbounds i8, ptr %6, i64 44
  store i32 1, ptr %44, align 4, !tbaa !19
  %45 = getelementptr inbounds i8, ptr %6, i64 48
  store float %31, ptr %45, align 16, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %6, i64 52
  store <2 x float> <float 5.000000e-01, float 0.000000e+00>, ptr %46, align 4, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %6, i64 60
  store float %36, ptr %47, align 4, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %6, i64 64
  store i32 0, ptr %48, align 16, !tbaa !18
  %49 = getelementptr inbounds i8, ptr %6, i64 68
  store i32 1, ptr %49, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #4
  %50 = fmul float %1, 1.000000e+03
  %51 = fptosi float %50 to i32
  %52 = fptosi float %2 to i32
  %53 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %10, i32 noundef %51, i32 noundef %52) #4
  %54 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !21
  %.not = icmp eq i32 %54, 0
  %55 = select i1 %.not, ptr null, ptr %7
  %56 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef nonnull %27, i32 noundef %.0.lcssa52, ptr noundef nonnull %6, i32 noundef 3, ptr noundef %55) #4
  %57 = call i32 @msresamp2_crcf_destroy(ptr noundef %8) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #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 @msresamp2_crcf_create(i32 noundef, i32 noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

declare float @msresamp2_crcf_get_delay(ptr noundef) local_unnamed_addr #2

declare i32 @msresamp2_crcf_execute(ptr noundef, ptr noundef, ptr 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 void @liquid_vectorcf_mulscalar(ptr noundef, i32 noundef, <2 x float> 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_psd_signal(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @msresamp2_crcf_destroy(ptr noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6, !8}
!8 = !{!"llvm.loop.peeled.count", i32 1}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !14, i64 16, !14, i64 20}
!11 = !{!"float", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C/C++ TBAA"}
!14 = !{!"int", !12, i64 0}
!15 = !{!10, !11, i64 4}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !11, i64 12}
!18 = !{!10, !14, i64 16}
!19 = !{!10, !14, i64 20}
!20 = !{!11, !11, i64 0}
!21 = !{!14, !14, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass