; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (symtrack_cccf_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"

@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_symtrack_cccf(i32 noundef %0, i32 noundef %1, float noundef %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %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 float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca float, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca { float, float }, align 4
  %31 = alloca float, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store float %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 7, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 6000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float -3.000000e+01, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store float 3.000000e+01, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store float 0x3FC3333340000000, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 0x3F947AE140000000, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 0x4000CCCCC0000000, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 800, ptr %16, align 4, !tbaa !5
  %32 = load i32, ptr %16, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = call ptr @llvm.stacksave.p0()
  store ptr %34, ptr %17, align 8
  %35 = alloca { float, float }, i64 %33, align 16
  store i64 %33, ptr %18, align 8
  %36 = load i32, ptr %16, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = alloca { float, float }, i64 %37, align 16
  store i64 %37, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = mul i32 2, %41
  %43 = load float, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = call ptr @symstreamcf_create_linear(i32 noundef %39, i32 noundef %40, i32 noundef %42, float noundef %43, i32 noundef %44)
  store ptr %45, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %46 = call ptr @channel_cccf_create()
  store ptr %46, ptr %21, align 8, !tbaa !11
  %47 = load ptr, ptr %21, align 8, !tbaa !11
  %48 = load float, ptr %11, align 4, !tbaa !9
  %49 = load float, ptr %12, align 4, !tbaa !9
  %50 = call i32 @channel_cccf_add_awgn(ptr noundef %47, float noundef %48, float noundef %49)
  %51 = load ptr, ptr %21, align 8, !tbaa !11
  %52 = load float, ptr %14, align 4, !tbaa !9
  %53 = load float, ptr %15, align 4, !tbaa !9
  %54 = call i32 @channel_cccf_add_carrier_offset(ptr noundef %51, float noundef %52, float noundef %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = load float, ptr %7, align 4, !tbaa !9
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = call ptr @symtrack_cccf_create(i32 noundef %55, i32 noundef %56, i32 noundef %57, float noundef %58, i32 noundef %59)
  store ptr %60, ptr %22, align 8, !tbaa !11
  %61 = load ptr, ptr %22, align 8, !tbaa !11
  %62 = load float, ptr %13, align 4, !tbaa !9
  %63 = call i32 @symtrack_cccf_set_bandwidth(ptr noundef %61, float noundef %62)
  %64 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %4
  %67 = load ptr, ptr %22, align 8, !tbaa !11
  %68 = call i32 @symtrack_cccf_print(ptr noundef %67)
  br label %69

69:                                               ; preds = %66, %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store float 0.000000e+00, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = call ptr @modemcf_create(i32 noundef %70)
  store ptr %71, ptr %26, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %131, %69
  %73 = load i32, ptr %23, align 4, !tbaa !5
  %74 = load i32, ptr %10, align 4, !tbaa !5
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = mul i32 %74, %75
  %77 = icmp ult i32 %73, %76
  br i1 %77, label %78, label %132

78:                                               ; preds = %72
  %79 = load ptr, ptr %20, align 8, !tbaa !11
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = call i32 @symstreamcf_write_samples(ptr noundef %79, ptr noundef %35, i32 noundef %80)
  %82 = load ptr, ptr %21, align 8, !tbaa !11
  %83 = load i32, ptr %16, align 4, !tbaa !5
  %84 = call i32 @channel_cccf_execute_block(ptr noundef %82, ptr noundef %35, i32 noundef %83, ptr noundef %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %85 = load ptr, ptr %22, align 8, !tbaa !11
  %86 = load i32, ptr %16, align 4, !tbaa !5
  %87 = call i32 @symtrack_cccf_execute_block(ptr noundef %85, ptr noundef %35, i32 noundef %86, ptr noundef %38, ptr noundef %27)
  %88 = load i32, ptr %16, align 4, !tbaa !5
  %89 = load i32, ptr %23, align 4, !tbaa !5
  %90 = add i32 %89, %88
  store i32 %90, ptr %23, align 4, !tbaa !5
  %91 = load i32, ptr %23, align 4, !tbaa !5
  %92 = uitofp i32 %91 to double
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = uitofp i32 %93 to double
  %95 = fmul double 8.000000e-01, %94
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = uitofp i32 %96 to double
  %98 = fmul double %95, %97
  %99 = fcmp ogt double %92, %98
  br i1 %99, label %100, label %131

100:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %124, %100
  %102 = load i32, ptr %28, align 4, !tbaa !5
  %103 = load i32, ptr %27, align 4, !tbaa !5
  %104 = icmp ult i32 %102, %103
  br i1 %104, label %105, label %127

105:                                              ; preds = %101
  %106 = load ptr, ptr %26, align 8, !tbaa !11
  %107 = load i32, ptr %28, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds { float, float }, ptr %38, i64 %108
  %110 = getelementptr inbounds { float, float }, ptr %109, i32 0, i32 0
  %111 = load float, ptr %110, align 8
  %112 = getelementptr inbounds { float, float }, ptr %109, i32 0, i32 1
  %113 = load float, ptr %112, align 4
  %114 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %115 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  store float %111, ptr %114, align 4
  store float %113, ptr %115, align 4
  %116 = load <2 x float>, ptr %30, align 4
  %117 = call i32 @modemcf_demodulate(ptr noundef %106, <2 x float> noundef %116, ptr noundef %29)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %118 = load ptr, ptr %26, align 8, !tbaa !11
  %119 = call float @modemcf_get_demodulator_evm(ptr noundef %118)
  store float %119, ptr %31, align 4, !tbaa !9
  %120 = load float, ptr %31, align 4, !tbaa !9
  %121 = load float, ptr %31, align 4, !tbaa !9
  %122 = load float, ptr %25, align 4, !tbaa !9
  %123 = call float @llvm.fmuladd.f32(float %120, float %121, float %122)
  store float %123, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %124

124:                                              ; preds = %105
  %125 = load i32, ptr %28, align 4, !tbaa !5
  %126 = add i32 %125, 1
  store i32 %126, ptr %28, align 4, !tbaa !5
  br label %101, !llvm.loop !13

127:                                              ; preds = %101
  %128 = load i32, ptr %27, align 4, !tbaa !5
  %129 = load i32, ptr %24, align 4, !tbaa !5
  %130 = add i32 %129, %128
  store i32 %130, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %131

131:                                              ; preds = %127, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %72, !llvm.loop !15

132:                                              ; preds = %72
  %133 = load ptr, ptr %20, align 8, !tbaa !11
  %134 = call i32 @symstreamcf_destroy(ptr noundef %133)
  %135 = load ptr, ptr %21, align 8, !tbaa !11
  %136 = call i32 @channel_cccf_destroy(ptr noundef %135)
  %137 = load ptr, ptr %22, align 8, !tbaa !11
  %138 = call i32 @symtrack_cccf_destroy(ptr noundef %137)
  %139 = load ptr, ptr %26, align 8, !tbaa !11
  %140 = call i32 @modemcf_destroy(ptr noundef %139)
  %141 = load float, ptr %25, align 4, !tbaa !9
  %142 = load i32, ptr %24, align 4, !tbaa !5
  %143 = uitofp i32 %142 to float
  %144 = fdiv float %141, %143
  %145 = call float @log10f(float noundef %144) #6
  %146 = fmul float 1.000000e+01, %145
  store float %146, ptr %25, align 4, !tbaa !9
  %147 = load float, ptr %25, align 4, !tbaa !9
  %148 = fpext float %147 to double
  %149 = load i32, ptr %24, align 4, !tbaa !5
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %148, i32 noundef %149)
  %151 = load float, ptr %25, align 4, !tbaa !9
  %152 = fcmp oge float %151, -1.500000e+01
  br i1 %152, label %153, label %156

153:                                              ; preds = %132
  %154 = load float, ptr %25, align 4, !tbaa !9
  %155 = fpext float %154 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 106, ptr noundef @.str.2, double noundef %155, ptr noundef @.str.3, ptr noundef @.str.4, double noundef -1.500000e+01)
  br label %157

156:                                              ; preds = %132
  call void (...) @liquid_autotest_passed()
  br label %157

157:                                              ; preds = %156, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %158 = load ptr, ptr %17, align 8
  call void @llvm.stackrestore.p0(ptr %158)
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

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

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

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

declare ptr @channel_cccf_create() #3

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

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

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

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

declare i32 @symtrack_cccf_print(ptr noundef) #3

declare ptr @modemcf_create(i32 noundef) #3

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

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

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

declare i32 @modemcf_demodulate(ptr noundef, <2 x float> noundef, ptr noundef) #3

declare float @modemcf_get_demodulator_evm(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

declare i32 @symstreamcf_destroy(ptr noundef) #3

declare i32 @channel_cccf_destroy(ptr noundef) #3

declare i32 @symtrack_cccf_destroy(ptr noundef) #3

declare i32 @modemcf_destroy(ptr noundef) #3

; Function Attrs: nounwind
declare float @log10f(float noundef) #5

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

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #3

declare void @liquid_autotest_passed(...) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_symtrack_cccf(i32 noundef %0, i32 noundef %1, float noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [800 x { float, float }], align 16
  %8 = alloca [800 x { float, float }], align 16
  %9 = shl i32 %1, 1
  %10 = tail call ptr @symstreamcf_create_linear(i32 noundef 7, i32 noundef %0, i32 noundef %9, float noundef %2, i32 noundef %3) #6
  %11 = tail call ptr @channel_cccf_create() #6
  %12 = tail call i32 @channel_cccf_add_awgn(ptr noundef %11, float noundef -3.000000e+01, float noundef 3.000000e+01) #6
  %13 = tail call i32 @channel_cccf_add_carrier_offset(ptr noundef %11, float noundef 0x3F947AE140000000, float noundef 0x4000CCCCC0000000) #6
  %14 = tail call ptr @symtrack_cccf_create(i32 noundef 7, i32 noundef %0, i32 noundef %1, float noundef %2, i32 noundef %3) #6
  %15 = tail call i32 @symtrack_cccf_set_bandwidth(ptr noundef %14, float noundef 0x3FC3333340000000) #6
  %16 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %19, label %17

17:                                               ; preds = %4
  %18 = tail call i32 @symtrack_cccf_print(ptr noundef %14) #6
  br label %19

19:                                               ; preds = %17, %4
  %20 = tail call ptr @modemcf_create(i32 noundef %3) #6
  %21 = mul i32 %0, 6000
  %.not74 = icmp eq i32 %21, 0
  br i1 %.not74, label %._crit_edge71, label %.lr.ph70

.lr.ph70:                                         ; preds = %19
  %22 = zext i32 %0 to i64
  %23 = mul nuw nsw i64 %22, 4800
  br label %24

24:                                               ; preds = %.lr.ph70, %42
  %.068 = phi i32 [ 0, %.lr.ph70 ], [ %28, %42 ]
  %.05766 = phi i32 [ 0, %.lr.ph70 ], [ %.1, %42 ]
  %.05865 = phi float [ 0.000000e+00, %.lr.ph70 ], [ %.2, %42 ]
  %25 = call i32 @symstreamcf_write_samples(ptr noundef %10, ptr noundef nonnull %7, i32 noundef 800) #6
  %26 = call i32 @channel_cccf_execute_block(ptr noundef %11, ptr noundef nonnull %7, i32 noundef 800, ptr noundef nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %27 = call i32 @symtrack_cccf_execute_block(ptr noundef %14, ptr noundef nonnull %7, i32 noundef 800, ptr noundef nonnull %8, ptr noundef nonnull %5) #6
  %28 = add i32 %.068, 800
  %29 = zext i32 %28 to i64
  %30 = icmp ult i64 %23, %29
  br i1 %30, label %31, label %42

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %.not75 = icmp eq i32 %32, 0
  br i1 %.not75, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %31, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %31 ]
  %.15961 = phi float [ %37, %.lr.ph ], [ %.05865, %31 ]
  %33 = getelementptr inbounds { float, float }, ptr %8, i64 %indvars.iv
  %34 = load <2 x float>, ptr %33, align 8
  %35 = call i32 @modemcf_demodulate(ptr noundef %20, <2 x float> noundef %34, ptr noundef nonnull %6) #6
  %36 = call float @modemcf_get_demodulator_evm(ptr noundef %20) #6
  %37 = call float @llvm.fmuladd.f32(float %36, float %36, float %.15961)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = icmp ult i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %31
  %.159.lcssa = phi float [ %.05865, %31 ], [ %37, %.lr.ph ]
  %.lcssa = phi i32 [ 0, %31 ], [ %38, %.lr.ph ]
  %41 = add i32 %.lcssa, %.05766
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %42

42:                                               ; preds = %._crit_edge, %24
  %.2 = phi float [ %.159.lcssa, %._crit_edge ], [ %.05865, %24 ]
  %.1 = phi i32 [ %41, %._crit_edge ], [ %.05766, %24 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %43 = icmp ult i32 %28, %21
  br i1 %43, label %24, label %._crit_edge71, !llvm.loop !11

._crit_edge71:                                    ; preds = %42, %19
  %.058.lcssa = phi float [ 0.000000e+00, %19 ], [ %.2, %42 ]
  %.057.lcssa = phi i32 [ 0, %19 ], [ %.1, %42 ]
  %44 = call i32 @symstreamcf_destroy(ptr noundef %10) #6
  %45 = call i32 @channel_cccf_destroy(ptr noundef %11) #6
  %46 = call i32 @symtrack_cccf_destroy(ptr noundef %14) #6
  %47 = call i32 @modemcf_destroy(ptr noundef %20) #6
  %48 = uitofp i32 %.057.lcssa to float
  %49 = fdiv float %.058.lcssa, %48
  %50 = call float @log10f(float noundef %49) #6
  %51 = fmul float %50, 1.000000e+01
  %52 = fpext float %51 to double
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %52, i32 noundef %.057.lcssa)
  %54 = fcmp ult float %51, -1.500000e+01
  br i1 %54, label %56, label %55

55:                                               ; preds = %._crit_edge71
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 106, ptr noundef nonnull @.str.2, double noundef %52, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef -1.500000e+01) #6
  br label %57

56:                                               ; preds = %._crit_edge71
  call void (...) @liquid_autotest_passed() #6
  br label %57

57:                                               ; preds = %56, %55
  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 @symstreamcf_create_linear(i32 noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #2

declare ptr @channel_cccf_create() local_unnamed_addr #2

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

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

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

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

declare i32 @symtrack_cccf_print(ptr noundef) local_unnamed_addr #2

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #2

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

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

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

declare i32 @modemcf_demodulate(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #2

declare float @modemcf_get_demodulator_evm(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

declare i32 @symstreamcf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @channel_cccf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @symtrack_cccf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #2

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

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

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #2

declare void @liquid_autotest_passed(...) 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #6 = { 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 = distinct !{!11, !10}


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