; LLVM IR from jgaeddert/liquid-dsp :: src/modem/tests (modem_demodstats_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 [98 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_test_demodstats(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, float }, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca { float, float }, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = call ptr @modemcf_create(i32 noundef %22)
  store ptr %23, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = call ptr @modemcf_create(i32 noundef %24)
  store ptr %25, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !9
  %27 = call i32 @modemcf_get_bps(ptr noundef %26)
  %28 = shl i32 1, %27
  store i32 %28, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store float 0x3F847AE140000000, ptr %11, align 4, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %112, %1
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = icmp ult i32 %30, %31
  br i1 %32, label %33, label %115

33:                                               ; preds = %29
  %34 = load ptr, ptr %3, align 8, !tbaa !9
  %35 = call i32 @modemcf_reset(ptr noundef %34)
  %36 = load ptr, ptr %4, align 8, !tbaa !9
  %37 = call i32 @modemcf_reset(ptr noundef %36)
  %38 = load ptr, ptr %3, align 8, !tbaa !9
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = call i32 @modemcf_modulate(ptr noundef %38, i32 noundef %39, ptr noundef %8)
  %41 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %42 = load float, ptr %41, align 4
  %43 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %44 = load float, ptr %43, align 4
  %45 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %46 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %42, ptr %45, align 4
  store float %44, ptr %46, align 4
  %47 = load <2 x float>, ptr %12, align 4
  %48 = call float @cabsf(<2 x float> noundef %47) #4
  %49 = fcmp olt float %48, 0x3F50624DE0000000
  br i1 %49, label %50, label %51

50:                                               ; preds = %33
  br label %112

51:                                               ; preds = %33
  %52 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %53 = load float, ptr %52, align 4
  %54 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %55 = load float, ptr %54, align 4
  %56 = load float, ptr %11, align 4, !tbaa !11
  %57 = fmul float %56, 0.000000e+00
  %58 = fmul float %56, 1.000000e+00
  %59 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %60 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %57, ptr %59, align 4
  store float %58, ptr %60, align 4
  %61 = load <2 x float>, ptr %13, align 4
  %62 = call <2 x float> @cexpf(<2 x float> noundef %61) #4
  store <2 x float> %62, ptr %14, align 4
  %63 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %64 = load float, ptr %63, align 4
  %65 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  %66 = load float, ptr %65, align 4
  %67 = fmul float %53, %64
  %68 = fmul float %55, %66
  %69 = fmul float %53, %66
  %70 = fmul float %55, %64
  %71 = fsub float %67, %68
  %72 = fadd float %69, %70
  %73 = fcmp uno float %71, %71
  br i1 %73, label %74, label %82, !prof !13

74:                                               ; preds = %51
  %75 = fcmp uno float %72, %72
  br i1 %75, label %76, label %82, !prof !13

76:                                               ; preds = %74
  %77 = call <2 x float> @__mulsc3(float noundef %53, float noundef %55, float noundef %64, float noundef %66) #4
  store <2 x float> %77, ptr %15, align 4
  %78 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %79 = load float, ptr %78, align 4
  %80 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %81 = load float, ptr %80, align 4
  br label %82

82:                                               ; preds = %76, %74, %51
  %83 = phi float [ %71, %51 ], [ %71, %74 ], [ %79, %76 ]
  %84 = phi float [ %72, %51 ], [ %72, %74 ], [ %81, %76 ]
  %85 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %86 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %83, ptr %85, align 4
  store float %84, ptr %86, align 4
  %87 = load ptr, ptr %4, align 8, !tbaa !9
  %88 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %89 = load float, ptr %88, align 4
  %90 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  %91 = load float, ptr %90, align 4
  %92 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %93 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %89, ptr %92, align 4
  store float %91, ptr %93, align 4
  %94 = load <2 x float>, ptr %16, align 4
  %95 = call i32 @modemcf_demodulate(ptr noundef %87, <2 x float> noundef %94, ptr noundef %6)
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = icmp ne i32 %96, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %82
  call void @liquid_autotest_warn(ptr noundef @.str, i32 noundef 61, ptr noundef @.str.1)
  br label %100

100:                                              ; preds = %99, %82
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = call float @modemcf_get_demodulator_phase_error(ptr noundef %101)
  store float %102, ptr %10, align 4, !tbaa !11
  %103 = load float, ptr %10, align 4, !tbaa !11
  %104 = fcmp ogt float %103, 0.000000e+00
  br i1 %104, label %110, label %105

105:                                              ; preds = %100
  %106 = load float, ptr %10, align 4, !tbaa !11
  %107 = fcmp ogt float %106, 0.000000e+00
  %108 = zext i1 %107 to i32
  %109 = sitofp i32 %108 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 64, ptr noundef @.str.2, double noundef %109, ptr noundef @.str.3, ptr noundef @.str.4, double noundef 1.000000e+00)
  br label %111

110:                                              ; preds = %100
  call void (...) @liquid_autotest_passed()
  br label %111

111:                                              ; preds = %110, %105
  br label %112

112:                                              ; preds = %111, %50
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = add i32 %113, 1
  store i32 %114, ptr %5, align 4, !tbaa !5
  br label %29, !llvm.loop !14

115:                                              ; preds = %29
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %200, %115
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = icmp ult i32 %117, %118
  br i1 %119, label %120, label %203

120:                                              ; preds = %116
  %121 = load ptr, ptr %3, align 8, !tbaa !9
  %122 = call i32 @modemcf_reset(ptr noundef %121)
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  %124 = call i32 @modemcf_reset(ptr noundef %123)
  %125 = load ptr, ptr %3, align 8, !tbaa !9
  %126 = load i32, ptr %5, align 4, !tbaa !5
  %127 = call i32 @modemcf_modulate(ptr noundef %125, i32 noundef %126, ptr noundef %8)
  %128 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %129 = load float, ptr %128, align 4
  %130 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %131 = load float, ptr %130, align 4
  %132 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %133 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %129, ptr %132, align 4
  store float %131, ptr %133, align 4
  %134 = load <2 x float>, ptr %17, align 4
  %135 = call float @cabsf(<2 x float> noundef %134) #4
  %136 = fcmp olt float %135, 0x3F50624DE0000000
  br i1 %136, label %137, label %138

137:                                              ; preds = %120
  br label %200

138:                                              ; preds = %120
  %139 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 0
  %140 = load float, ptr %139, align 4
  %141 = getelementptr inbounds { float, float }, ptr %8, i32 0, i32 1
  %142 = load float, ptr %141, align 4
  %143 = load float, ptr %11, align 4, !tbaa !11
  %144 = fneg float %143
  %145 = fmul float %144, 0.000000e+00
  %146 = fmul float %144, 1.000000e+00
  %147 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %148 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %145, ptr %147, align 4
  store float %146, ptr %148, align 4
  %149 = load <2 x float>, ptr %18, align 4
  %150 = call <2 x float> @cexpf(<2 x float> noundef %149) #4
  store <2 x float> %150, ptr %19, align 4
  %151 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %152 = load float, ptr %151, align 4
  %153 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %154 = load float, ptr %153, align 4
  %155 = fmul float %140, %152
  %156 = fmul float %142, %154
  %157 = fmul float %140, %154
  %158 = fmul float %142, %152
  %159 = fsub float %155, %156
  %160 = fadd float %157, %158
  %161 = fcmp uno float %159, %159
  br i1 %161, label %162, label %170, !prof !13

162:                                              ; preds = %138
  %163 = fcmp uno float %160, %160
  br i1 %163, label %164, label %170, !prof !13

164:                                              ; preds = %162
  %165 = call <2 x float> @__mulsc3(float noundef %140, float noundef %142, float noundef %152, float noundef %154) #4
  store <2 x float> %165, ptr %20, align 4
  %166 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %167 = load float, ptr %166, align 4
  %168 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  %169 = load float, ptr %168, align 4
  br label %170

170:                                              ; preds = %164, %162, %138
  %171 = phi float [ %159, %138 ], [ %159, %162 ], [ %167, %164 ]
  %172 = phi float [ %160, %138 ], [ %160, %162 ], [ %169, %164 ]
  %173 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %174 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %171, ptr %173, align 4
  store float %172, ptr %174, align 4
  %175 = load ptr, ptr %4, align 8, !tbaa !9
  %176 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %177 = load float, ptr %176, align 4
  %178 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  %179 = load float, ptr %178, align 4
  %180 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %181 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %177, ptr %180, align 4
  store float %179, ptr %181, align 4
  %182 = load <2 x float>, ptr %21, align 4
  %183 = call i32 @modemcf_demodulate(ptr noundef %175, <2 x float> noundef %182, ptr noundef %6)
  %184 = load i32, ptr %6, align 4, !tbaa !5
  %185 = load i32, ptr %5, align 4, !tbaa !5
  %186 = icmp ne i32 %184, %185
  br i1 %186, label %187, label %188

187:                                              ; preds = %170
  call void @liquid_autotest_warn(ptr noundef @.str, i32 noundef 87, ptr noundef @.str.1)
  br label %188

188:                                              ; preds = %187, %170
  %189 = load ptr, ptr %4, align 8, !tbaa !9
  %190 = call float @modemcf_get_demodulator_phase_error(ptr noundef %189)
  store float %190, ptr %10, align 4, !tbaa !11
  %191 = load float, ptr %10, align 4, !tbaa !11
  %192 = fcmp olt float %191, 0.000000e+00
  br i1 %192, label %198, label %193

193:                                              ; preds = %188
  %194 = load float, ptr %10, align 4, !tbaa !11
  %195 = fcmp olt float %194, 0.000000e+00
  %196 = zext i1 %195 to i32
  %197 = sitofp i32 %196 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 90, ptr noundef @.str.5, double noundef %197, ptr noundef @.str.3, ptr noundef @.str.4, double noundef 1.000000e+00)
  br label %199

198:                                              ; preds = %188
  call void (...) @liquid_autotest_passed()
  br label %199

199:                                              ; preds = %198, %193
  br label %200

200:                                              ; preds = %199, %137
  %201 = load i32, ptr %5, align 4, !tbaa !5
  %202 = add i32 %201, 1
  store i32 %202, ptr %5, align 4, !tbaa !5
  br label %116, !llvm.loop !16

203:                                              ; preds = %116
  %204 = load ptr, ptr %3, align 8, !tbaa !9
  %205 = call i32 @modemcf_destroy(ptr noundef %204)
  %206 = load ptr, ptr %4, align 8, !tbaa !9
  %207 = call i32 @modemcf_destroy(ptr noundef %206)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  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_reset(ptr noundef) #2

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #3

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #3

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

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

declare void @liquid_autotest_warn(ptr noundef, i32 noundef, ptr noundef) #2

declare float @modemcf_get_demodulator_phase_error(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

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 = { 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"}
!16 = distinct !{!16, !15}


; 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 [98 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_test_demodstats(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) #4
  %5 = tail call ptr @modemcf_create(i32 noundef %0) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %6 = tail call i32 @modemcf_get_bps(ptr noundef %4) #4
  %7 = shl nuw i32 1, %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  br label %8

8:                                                ; preds = %1, %45
  %.050 = phi i32 [ 0, %1 ], [ %46, %45 ]
  %9 = call i32 @modemcf_reset(ptr noundef %4) #4
  %10 = call i32 @modemcf_reset(ptr noundef %5) #4
  %11 = call i32 @modemcf_modulate(ptr noundef %4, i32 noundef %.050, ptr noundef nonnull %3) #4
  %12 = load <2 x float>, ptr %3, align 8
  %13 = call float @cabsf(<2 x float> noundef %12) #4
  %14 = fcmp olt float %13, 0x3F50624DE0000000
  br i1 %14, label %45, label %15

15:                                               ; preds = %8
  %16 = load <2 x float>, ptr %3, align 8
  %17 = call <2 x float> @cexpf(<2 x float> noundef <float 0.000000e+00, float 0x3F847AE140000000>) #4
  %18 = fmul <2 x float> %16, %17
  %19 = shufflevector <2 x float> %17, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %20 = fmul <2 x float> %16, %19
  %shift = shufflevector <2 x float> %18, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %21 = fsub <2 x float> %18, %shift
  %22 = extractelement <2 x float> %21, i64 0
  %shift53 = shufflevector <2 x float> %20, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %23 = fadd <2 x float> %20, %shift53
  %24 = extractelement <2 x float> %23, i64 0
  %25 = fcmp uno float %22, 0.000000e+00
  br i1 %25, label %26, label %34, !prof !5

26:                                               ; preds = %15
  %27 = fcmp uno float %24, 0.000000e+00
  br i1 %27, label %28, label %34, !prof !5

28:                                               ; preds = %26
  %29 = extractelement <2 x float> %16, i64 0
  %30 = extractelement <2 x float> %16, i64 1
  %31 = extractelement <2 x float> %17, i64 0
  %32 = extractelement <2 x float> %17, i64 1
  %33 = call <2 x float> @__mulsc3(float noundef %29, float noundef %30, float noundef %31, float noundef %32) #4
  %.sroa.010.0.vec.extract = extractelement <2 x float> %33, i64 0
  %.sroa.010.4.vec.extract = extractelement <2 x float> %33, i64 1
  br label %34

34:                                               ; preds = %28, %26, %15
  %35 = phi float [ %22, %15 ], [ %22, %26 ], [ %.sroa.010.0.vec.extract, %28 ]
  %36 = phi float [ %24, %15 ], [ %24, %26 ], [ %.sroa.010.4.vec.extract, %28 ]
  %.sroa.08.0.vec.insert = insertelement <2 x float> poison, float %35, i64 0
  %.sroa.08.4.vec.insert = insertelement <2 x float> %.sroa.08.0.vec.insert, float %36, i64 1
  %37 = call i32 @modemcf_demodulate(ptr noundef %5, <2 x float> noundef %.sroa.08.4.vec.insert, ptr noundef nonnull %2) #4
  %38 = load i32, ptr %2, align 4, !tbaa !6
  %.not49 = icmp eq i32 %38, %.050
  br i1 %.not49, label %40, label %39

39:                                               ; preds = %34
  call void @liquid_autotest_warn(ptr noundef nonnull @.str, i32 noundef 61, ptr noundef nonnull @.str.1) #4
  br label %40

40:                                               ; preds = %39, %34
  %41 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #4
  %42 = fcmp ogt float %41, 0.000000e+00
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 64, ptr noundef nonnull @.str.2, double noundef 0.000000e+00, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 1.000000e+00) #4
  br label %45

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

45:                                               ; preds = %43, %44, %8
  %46 = add nuw i32 %.050, 1
  %exitcond.not = icmp eq i32 %46, %7
  br i1 %exitcond.not, label %.preheader, label %8, !llvm.loop !10

.preheader:                                       ; preds = %45, %83
  %.151 = phi i32 [ %84, %83 ], [ 0, %45 ]
  %47 = call i32 @modemcf_reset(ptr noundef %4) #4
  %48 = call i32 @modemcf_reset(ptr noundef %5) #4
  %49 = call i32 @modemcf_modulate(ptr noundef %4, i32 noundef %.151, ptr noundef nonnull %3) #4
  %50 = load <2 x float>, ptr %3, align 8
  %51 = call float @cabsf(<2 x float> noundef %50) #4
  %52 = fcmp olt float %51, 0x3F50624DE0000000
  br i1 %52, label %83, label %53

53:                                               ; preds = %.preheader
  %54 = load <2 x float>, ptr %3, align 8
  %55 = call <2 x float> @cexpf(<2 x float> noundef <float -0.000000e+00, float 0xBF847AE140000000>) #4
  %56 = fmul <2 x float> %54, %55
  %57 = shufflevector <2 x float> %55, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %58 = fmul <2 x float> %54, %57
  %shift54 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %59 = fsub <2 x float> %56, %shift54
  %60 = extractelement <2 x float> %59, i64 0
  %shift55 = shufflevector <2 x float> %58, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %61 = fadd <2 x float> %58, %shift55
  %62 = extractelement <2 x float> %61, i64 0
  %63 = fcmp uno float %60, 0.000000e+00
  br i1 %63, label %64, label %72, !prof !5

64:                                               ; preds = %53
  %65 = fcmp uno float %62, 0.000000e+00
  br i1 %65, label %66, label %72, !prof !5

66:                                               ; preds = %64
  %67 = extractelement <2 x float> %54, i64 0
  %68 = extractelement <2 x float> %54, i64 1
  %69 = extractelement <2 x float> %55, i64 0
  %70 = extractelement <2 x float> %55, i64 1
  %71 = call <2 x float> @__mulsc3(float noundef %67, float noundef %68, float noundef %69, float noundef %70) #4
  %.sroa.02.0.vec.extract = extractelement <2 x float> %71, i64 0
  %.sroa.02.4.vec.extract = extractelement <2 x float> %71, i64 1
  br label %72

72:                                               ; preds = %66, %64, %53
  %73 = phi float [ %60, %53 ], [ %60, %64 ], [ %.sroa.02.0.vec.extract, %66 ]
  %74 = phi float [ %62, %53 ], [ %62, %64 ], [ %.sroa.02.4.vec.extract, %66 ]
  %.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %73, i64 0
  %.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %74, i64 1
  %75 = call i32 @modemcf_demodulate(ptr noundef %5, <2 x float> noundef %.sroa.0.4.vec.insert, ptr noundef nonnull %2) #4
  %76 = load i32, ptr %2, align 4, !tbaa !6
  %.not = icmp eq i32 %76, %.151
  br i1 %.not, label %78, label %77

77:                                               ; preds = %72
  call void @liquid_autotest_warn(ptr noundef nonnull @.str, i32 noundef 87, ptr noundef nonnull @.str.1) #4
  br label %78

78:                                               ; preds = %77, %72
  %79 = call float @modemcf_get_demodulator_phase_error(ptr noundef %5) #4
  %80 = fcmp olt float %79, 0.000000e+00
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 90, ptr noundef nonnull @.str.5, double noundef 0.000000e+00, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 1.000000e+00) #4
  br label %83

82:                                               ; preds = %78
  call void (...) @liquid_autotest_passed() #4
  br label %83

83:                                               ; preds = %81, %82, %.preheader
  %84 = add nuw i32 %.151, 1
  %exitcond52.not = icmp eq i32 %84, %7
  br i1 %exitcond52.not, label %85, label %.preheader, !llvm.loop !12

85:                                               ; preds = %83
  %86 = call i32 @modemcf_destroy(ptr noundef %4) #4
  %87 = call i32 @modemcf_destroy(ptr noundef %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #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 @modemcf_create(i32 noundef) local_unnamed_addr #2

declare i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #2

declare i32 @modemcf_reset(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #3

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

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

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

declare float @modemcf_get_demodulator_phase_error(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

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

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 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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