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

@.str = external hidden unnamed_addr constant [87 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_test_mod_demod(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca { float, float }, align 4
  %9 = alloca float, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca { float, float }, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = call ptr @modemcf_create(i32 noundef %12)
  store ptr %13, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = call ptr @modemcf_create(i32 noundef %14)
  store ptr %15, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %16 = load ptr, ptr %3, align 8, !tbaa !9
  %17 = call i32 @modemcf_get_bps(ptr noundef %16)
  %18 = shl i32 1, %17
  store i32 %18, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store float 0.000000e+00, ptr %9, align 4, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %179, %1
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = icmp ult i32 %20, %21
  br i1 %22, label %23, label %182

23:                                               ; preds = %19
  %24 = load ptr, ptr %3, align 8, !tbaa !9
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = call i32 @modemcf_modulate(ptr noundef %24, i32 noundef %25, ptr noundef %8)
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  %28 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %29 = load float, ptr %28, align 4
  %30 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %31 = load float, ptr %30, align 4
  %32 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %33 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %29, ptr %32, align 4
  store float %31, ptr %33, align 4
  %34 = load <2 x float>, ptr %10, align 4
  %35 = call i32 @modemcf_demodulate(ptr noundef %27, <2 x float> noundef %34, ptr noundef %6)
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = icmp ne i32 %36, %37
  br i1 %38, label %39, label %44

39:                                               ; preds = %23
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = uitofp i32 %40 to double
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = uitofp i32 %42 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 40, ptr noundef @.str.1, double noundef %41, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %43)
  br label %45

44:                                               ; preds = %23
  call void (...) @liquid_autotest_passed()
  br label %45

45:                                               ; preds = %44, %39
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  %47 = call float @modemcf_get_demodulator_phase_error(ptr noundef %46)
  %48 = fsub float %47, 0.000000e+00
  %49 = fpext float %48 to double
  %50 = load ptr, ptr %4, align 8, !tbaa !9
  %51 = call float @modemcf_get_demodulator_phase_error(ptr noundef %50)
  %52 = fsub float %51, 0.000000e+00
  %53 = fpext float %52 to double
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  %55 = call float @modemcf_get_demodulator_phase_error(ptr noundef %54)
  %56 = fsub float %55, 0.000000e+00
  %57 = fpext float %56 to double
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  %59 = call float @modemcf_get_demodulator_phase_error(ptr noundef %58)
  %60 = fsub float %59, 0.000000e+00
  %61 = fpext float %60 to double
  %62 = call double @llvm.fmuladd.f64(double %49, double %53, double 0.000000e+00)
  %63 = call double @sqrt(double noundef %62) #5
  %64 = fcmp ogt double %63, 0x3F50624DE0000000
  br i1 %64, label %77, label %65

65:                                               ; preds = %45
  %66 = load ptr, ptr %4, align 8, !tbaa !9
  %67 = call float @modemcf_get_demodulator_phase_error(ptr noundef %66)
  %68 = call i1 @llvm.is.fpclass.f32(float %67, i32 3)
  br i1 %68, label %77, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %4, align 8, !tbaa !9
  %71 = call float @modemcf_get_demodulator_phase_error(ptr noundef %70)
  %72 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %72, label %77, label %73

73:                                               ; preds = %69
  %74 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %74, label %77, label %75

75:                                               ; preds = %73
  %76 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %76, label %77, label %96

77:                                               ; preds = %75, %73, %69, %65, %45
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  %79 = call float @modemcf_get_demodulator_phase_error(ptr noundef %78)
  %80 = fsub float %79, 0.000000e+00
  %81 = fpext float %80 to double
  %82 = load ptr, ptr %4, align 8, !tbaa !9
  %83 = call float @modemcf_get_demodulator_phase_error(ptr noundef %82)
  %84 = fsub float %83, 0.000000e+00
  %85 = fpext float %84 to double
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = call float @modemcf_get_demodulator_phase_error(ptr noundef %86)
  %88 = fsub float %87, 0.000000e+00
  %89 = fpext float %88 to double
  %90 = load ptr, ptr %4, align 8, !tbaa !9
  %91 = call float @modemcf_get_demodulator_phase_error(ptr noundef %90)
  %92 = fsub float %91, 0.000000e+00
  %93 = fpext float %92 to double
  %94 = call double @llvm.fmuladd.f64(double %81, double %85, double 0.000000e+00)
  %95 = call double @sqrt(double noundef %94) #5
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 42, ptr noundef @.str.4, double noundef %95, ptr noundef @.str.5, ptr noundef @.str.6, double noundef 0x3F50624DE0000000)
  br label %97

96:                                               ; preds = %75
  call void (...) @liquid_autotest_passed()
  br label %97

97:                                               ; preds = %96, %77
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  %99 = call float @modemcf_get_demodulator_evm(ptr noundef %98)
  %100 = fsub float %99, 0.000000e+00
  %101 = fpext float %100 to double
  %102 = load ptr, ptr %4, align 8, !tbaa !9
  %103 = call float @modemcf_get_demodulator_evm(ptr noundef %102)
  %104 = fsub float %103, 0.000000e+00
  %105 = fpext float %104 to double
  %106 = load ptr, ptr %4, align 8, !tbaa !9
  %107 = call float @modemcf_get_demodulator_evm(ptr noundef %106)
  %108 = fsub float %107, 0.000000e+00
  %109 = fpext float %108 to double
  %110 = load ptr, ptr %4, align 8, !tbaa !9
  %111 = call float @modemcf_get_demodulator_evm(ptr noundef %110)
  %112 = fsub float %111, 0.000000e+00
  %113 = fpext float %112 to double
  %114 = call double @llvm.fmuladd.f64(double %101, double %105, double 0.000000e+00)
  %115 = call double @sqrt(double noundef %114) #5
  %116 = fcmp ogt double %115, 0x3F50624DE0000000
  br i1 %116, label %129, label %117

117:                                              ; preds = %97
  %118 = load ptr, ptr %4, align 8, !tbaa !9
  %119 = call float @modemcf_get_demodulator_evm(ptr noundef %118)
  %120 = call i1 @llvm.is.fpclass.f32(float %119, i32 3)
  br i1 %120, label %129, label %121

121:                                              ; preds = %117
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  %123 = call float @modemcf_get_demodulator_evm(ptr noundef %122)
  %124 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %124, label %129, label %125

125:                                              ; preds = %121
  %126 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %126, label %129, label %127

127:                                              ; preds = %125
  %128 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %128, label %129, label %148

129:                                              ; preds = %127, %125, %121, %117, %97
  %130 = load ptr, ptr %4, align 8, !tbaa !9
  %131 = call float @modemcf_get_demodulator_evm(ptr noundef %130)
  %132 = fsub float %131, 0.000000e+00
  %133 = fpext float %132 to double
  %134 = load ptr, ptr %4, align 8, !tbaa !9
  %135 = call float @modemcf_get_demodulator_evm(ptr noundef %134)
  %136 = fsub float %135, 0.000000e+00
  %137 = fpext float %136 to double
  %138 = load ptr, ptr %4, align 8, !tbaa !9
  %139 = call float @modemcf_get_demodulator_evm(ptr noundef %138)
  %140 = fsub float %139, 0.000000e+00
  %141 = fpext float %140 to double
  %142 = load ptr, ptr %4, align 8, !tbaa !9
  %143 = call float @modemcf_get_demodulator_evm(ptr noundef %142)
  %144 = fsub float %143, 0.000000e+00
  %145 = fpext float %144 to double
  %146 = call double @llvm.fmuladd.f64(double %133, double %137, double 0.000000e+00)
  %147 = call double @sqrt(double noundef %146) #5
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 44, ptr noundef @.str.7, double noundef %147, ptr noundef @.str.5, ptr noundef @.str.6, double noundef 0x3F50624DE0000000)
  br label %149

148:                                              ; preds = %127
  call void (...) @liquid_autotest_passed()
  br label %149

149:                                              ; preds = %148, %129
  %150 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %151 = load float, ptr %150, align 4
  %152 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %153 = load float, ptr %152, align 4
  %154 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %155 = load float, ptr %154, align 4
  %156 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %157 = load float, ptr %156, align 4
  %158 = fneg float %157
  %159 = fmul float %151, %155
  %160 = fmul float %153, %158
  %161 = fmul float %151, %158
  %162 = fmul float %153, %155
  %163 = fsub float %159, %160
  %164 = fadd float %161, %162
  %165 = fcmp uno float %163, %163
  br i1 %165, label %166, label %174, !prof !13

166:                                              ; preds = %149
  %167 = fcmp uno float %164, %164
  br i1 %167, label %168, label %174, !prof !13

168:                                              ; preds = %166
  %169 = call <2 x float> @__mulsc3(float noundef %151, float noundef %153, float noundef %155, float noundef %158) #5
  store <2 x float> %169, ptr %11, align 4
  %170 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %171 = load float, ptr %170, align 4
  %172 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  br label %174

174:                                              ; preds = %168, %166, %149
  %175 = phi float [ %163, %149 ], [ %163, %166 ], [ %171, %168 ]
  %176 = phi float [ %164, %149 ], [ %164, %166 ], [ %173, %168 ]
  %177 = load float, ptr %9, align 4, !tbaa !11
  %178 = fadd float %177, %175
  store float %178, ptr %9, align 4, !tbaa !11
  br label %179

179:                                              ; preds = %174
  %180 = load i32, ptr %5, align 4, !tbaa !5
  %181 = add i32 %180, 1
  store i32 %181, ptr %5, align 4, !tbaa !5
  br label %19, !llvm.loop !14

182:                                              ; preds = %19
  %183 = load float, ptr %9, align 4, !tbaa !11
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = uitofp i32 %184 to float
  %186 = fdiv float %183, %185
  %187 = call float @sqrtf(float noundef %186) #5
  store float %187, ptr %9, align 4, !tbaa !11
  %188 = load float, ptr %9, align 4, !tbaa !11
  %189 = fsub float %188, 1.000000e+00
  %190 = fpext float %189 to double
  %191 = load float, ptr %9, align 4, !tbaa !11
  %192 = fsub float %191, 1.000000e+00
  %193 = fpext float %192 to double
  %194 = load float, ptr %9, align 4, !tbaa !11
  %195 = fsub float %194, 1.000000e+00
  %196 = fpext float %195 to double
  %197 = load float, ptr %9, align 4, !tbaa !11
  %198 = fsub float %197, 1.000000e+00
  %199 = fpext float %198 to double
  %200 = call double @llvm.fmuladd.f64(double %190, double %193, double 0.000000e+00)
  %201 = call double @sqrt(double noundef %200) #5
  %202 = fcmp ogt double %201, 0x3F50624DE0000000
  br i1 %202, label %213, label %203

203:                                              ; preds = %182
  %204 = load float, ptr %9, align 4, !tbaa !11
  %205 = call i1 @llvm.is.fpclass.f32(float %204, i32 3)
  br i1 %205, label %213, label %206

206:                                              ; preds = %203
  %207 = load float, ptr %9, align 4, !tbaa !11
  %208 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %208, label %213, label %209

209:                                              ; preds = %206
  %210 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %210, label %213, label %211

211:                                              ; preds = %209
  %212 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %212, label %213, label %228

213:                                              ; preds = %211, %209, %206, %203, %182
  %214 = load float, ptr %9, align 4, !tbaa !11
  %215 = fsub float %214, 1.000000e+00
  %216 = fpext float %215 to double
  %217 = load float, ptr %9, align 4, !tbaa !11
  %218 = fsub float %217, 1.000000e+00
  %219 = fpext float %218 to double
  %220 = load float, ptr %9, align 4, !tbaa !11
  %221 = fsub float %220, 1.000000e+00
  %222 = fpext float %221 to double
  %223 = load float, ptr %9, align 4, !tbaa !11
  %224 = fsub float %223, 1.000000e+00
  %225 = fpext float %224 to double
  %226 = call double @llvm.fmuladd.f64(double %216, double %219, double 0.000000e+00)
  %227 = call double @sqrt(double noundef %226) #5
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 50, ptr noundef @.str.8, double noundef %227, ptr noundef @.str.5, ptr noundef @.str.6, double noundef 0x3F50624DE0000000)
  br label %229

228:                                              ; preds = %211
  call void (...) @liquid_autotest_passed()
  br label %229

229:                                              ; preds = %228, %213
  %230 = load ptr, ptr %3, align 8, !tbaa !9
  %231 = call i32 @modemcf_destroy(ptr noundef %230)
  %232 = load ptr, ptr %4, align 8, !tbaa !9
  %233 = call i32 @modemcf_destroy(ptr noundef %232)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #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 @modemcf_create(i32 noundef) #2

declare i32 @modemcf_get_bps(ptr noundef) #2

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

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

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

declare void @liquid_autotest_passed(...) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

declare float @modemcf_get_demodulator_phase_error(ptr noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #4

declare float @modemcf_get_demodulator_evm(ptr noundef) #2

declare <2 x float> @__mulsc3(float, float, float, float)

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

declare i32 @modemcf_destroy(ptr noundef) #2

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

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 = { 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 speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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

@.str = external hidden unnamed_addr constant [87 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_test_mod_demod(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca { float, float }, align 8
  %4 = tail call ptr @modemcf_create(i32 noundef %0) #6
  %5 = tail call ptr @modemcf_create(i32 noundef %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %6 = tail call i32 @modemcf_get_bps(ptr noundef %4) #6
  %7 = shl nuw i32 1, %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  br label %8

8:                                                ; preds = %1, %80
  %.052 = phi i32 [ 0, %1 ], [ %83, %80 ]
  %.04751 = phi float [ 0.000000e+00, %1 ], [ %82, %80 ]
  %9 = call i32 @modemcf_modulate(ptr noundef %4, i32 noundef %.052, ptr noundef nonnull %3) #6
  %10 = load <2 x float>, ptr %3, align 8
  %11 = call i32 @modemcf_demodulate(ptr noundef %5, <2 x float> noundef %10, ptr noundef nonnull %2) #6
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %12, %.052
  br i1 %.not, label %16, label %13

13:                                               ; preds = %8
  %14 = uitofp i32 %12 to double
  %15 = uitofp i32 %.052 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 40, ptr noundef nonnull @.str.1, double noundef %14, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef %15) #6
  br label %17

16:                                               ; preds = %8
  call void (...) @liquid_autotest_passed() #6
  br label %17

17:                                               ; preds = %16, %13
  %18 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %19 = fpext float %18 to double
  %20 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %21 = fpext float %20 to double
  %22 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %23 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %24 = call double @llvm.fmuladd.f64(double %19, double %21, double 0.000000e+00)
  %25 = call double @sqrt(double noundef %24) #6
  %26 = fcmp ogt double %25, 0x3F50624DE0000000
  br i1 %26, label %32, label %27

27:                                               ; preds = %17
  %28 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %29 = fcmp uno float %28, 0.000000e+00
  br i1 %29, label %32, label %30

30:                                               ; preds = %27
  %31 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  call void (...) @liquid_autotest_passed() #6
  br label %41

32:                                               ; preds = %27, %17
  %33 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %34 = fpext float %33 to double
  %35 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %36 = fpext float %35 to double
  %37 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %38 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #6
  %39 = call double @llvm.fmuladd.f64(double %34, double %36, double 0.000000e+00)
  %40 = call double @sqrt(double noundef %39) #6
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 42, ptr noundef nonnull @.str.4, double noundef %40, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef 0x3F50624DE0000000) #6
  br label %41

41:                                               ; preds = %30, %32
  %42 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %43 = fpext float %42 to double
  %44 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %45 = fpext float %44 to double
  %46 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %47 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %48 = call double @llvm.fmuladd.f64(double %43, double %45, double 0.000000e+00)
  %49 = call double @sqrt(double noundef %48) #6
  %50 = fcmp ogt double %49, 0x3F50624DE0000000
  br i1 %50, label %56, label %51

51:                                               ; preds = %41
  %52 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %53 = fcmp uno float %52, 0.000000e+00
  br i1 %53, label %56, label %54

54:                                               ; preds = %51
  %55 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  call void (...) @liquid_autotest_passed() #6
  br label %65

56:                                               ; preds = %51, %41
  %57 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %58 = fpext float %57 to double
  %59 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %60 = fpext float %59 to double
  %61 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %62 = call float @modemcf_get_demodulator_evm(ptr noundef %5) #6
  %63 = call double @llvm.fmuladd.f64(double %58, double %60, double 0.000000e+00)
  %64 = call double @sqrt(double noundef %63) #6
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 44, ptr noundef nonnull @.str.7, double noundef %64, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef 0x3F50624DE0000000) #6
  br label %65

65:                                               ; preds = %54, %56
  %66 = load <2 x float>, ptr %3, align 8
  %67 = extractelement <2 x float> %66, i64 1
  %68 = fneg float %67
  %69 = fmul <2 x float> %66, %66
  %shift = shufflevector <2 x float> %69, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %70 = fadd <2 x float> %69, %shift
  %71 = extractelement <2 x float> %70, i64 0
  %72 = fcmp uno float %71, 0.000000e+00
  br i1 %72, label %73, label %80, !prof !9

73:                                               ; preds = %65
  %74 = extractelement <2 x float> %66, i64 0
  %75 = fmul float %74, %67
  %76 = fsub float %75, %75
  %77 = fcmp uno float %76, 0.000000e+00
  br i1 %77, label %78, label %80, !prof !9

78:                                               ; preds = %73
  %79 = call <2 x float> @__mulsc3(float noundef %74, float noundef %67, float noundef %74, float noundef %68) #6
  %.sroa.0.0.vec.extract = extractelement <2 x float> %79, i64 0
  br label %80

80:                                               ; preds = %78, %73, %65
  %81 = phi float [ %71, %65 ], [ %71, %73 ], [ %.sroa.0.0.vec.extract, %78 ]
  %82 = fadd float %.04751, %81
  %83 = add nuw i32 %.052, 1
  %exitcond.not = icmp eq i32 %83, %7
  br i1 %exitcond.not, label %84, label %8, !llvm.loop !10

84:                                               ; preds = %80
  %85 = uitofp i32 %7 to float
  %86 = fdiv float %82, %85
  %87 = call float @sqrtf(float noundef %86) #6
  %88 = fadd float %87, -1.000000e+00
  %89 = fpext float %88 to double
  %90 = call double @llvm.fmuladd.f64(double %89, double %89, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %90)
  %91 = fcmp ogt double %sqrt, 0x3F50624DE0000000
  %92 = fcmp uno float %87, 0.000000e+00
  %or.cond = select i1 %91, i1 true, i1 %92
  br i1 %or.cond, label %93, label %94

93:                                               ; preds = %84
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 50, ptr noundef nonnull @.str.8, double noundef %sqrt, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, double noundef 0x3F50624DE0000000) #6
  br label %95

94:                                               ; preds = %84
  call void (...) @liquid_autotest_passed() #6
  br label %95

95:                                               ; preds = %94, %93
  %96 = call i32 @modemcf_destroy(ptr noundef %4) #6
  %97 = call i32 @modemcf_destroy(ptr noundef %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  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 @modemcf_create(i32 noundef) local_unnamed_addr #2

declare i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

declare float @modemcf_get_demodulator_phase_error(ptr noundef) local_unnamed_addr #2

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

declare float @modemcf_get_demodulator_evm(ptr noundef) local_unnamed_addr #2

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

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

declare i32 @modemcf_destroy(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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #5

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 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"branch_weights", i32 1, i32 1048575}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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