; LLVM IR from jgaeddert/liquid-dsp :: src/nco/tests (nco_crcf_pll_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 [92 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @nco_crcf_pll_test(i32 noundef %0, float noundef %1, float noundef %2, float noundef %3, i32 noundef %4, float noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca 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, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store float %1, ptr %8, align 4, !tbaa !9
  store float %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !5
  store float %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = call ptr @nco_crcf_create(i32 noundef %22)
  store ptr %23, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = call ptr @nco_crcf_create(i32 noundef %24)
  store ptr %25, ptr %14, align 8, !tbaa !11
  %26 = load ptr, ptr %13, align 8, !tbaa !11
  %27 = load float, ptr %8, align 4, !tbaa !9
  %28 = call i32 @nco_crcf_set_phase(ptr noundef %26, float noundef %27)
  %29 = load ptr, ptr %13, align 8, !tbaa !11
  %30 = load float, ptr %9, align 4, !tbaa !9
  %31 = call i32 @nco_crcf_set_frequency(ptr noundef %29, float noundef %30)
  %32 = load ptr, ptr %14, align 8, !tbaa !11
  %33 = load float, ptr %10, align 4, !tbaa !9
  %34 = call i32 @nco_crcf_pll_set_bandwidth(ptr noundef %32, float noundef %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %82, %6
  %36 = load i32, ptr %15, align 4, !tbaa !5
  %37 = load i32, ptr %11, align 4, !tbaa !5
  %38 = icmp ult i32 %36, %37
  br i1 %38, label %39, label %85

39:                                               ; preds = %35
  %40 = load ptr, ptr %13, align 8, !tbaa !11
  %41 = call i32 @nco_crcf_cexpf(ptr noundef %40, ptr noundef %17)
  %42 = load ptr, ptr %14, align 8, !tbaa !11
  %43 = call i32 @nco_crcf_cexpf(ptr noundef %42, ptr noundef %18)
  %44 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %45 = load float, ptr %44, align 4
  %46 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %47 = load float, ptr %46, align 4
  %48 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %49 = load float, ptr %48, align 4
  %50 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %51 = load float, ptr %50, align 4
  %52 = fneg float %51
  %53 = fmul float %45, %49
  %54 = fmul float %47, %52
  %55 = fmul float %45, %52
  %56 = fmul float %47, %49
  %57 = fsub float %53, %54
  %58 = fadd float %55, %56
  %59 = fcmp uno float %57, %57
  br i1 %59, label %60, label %68, !prof !13

60:                                               ; preds = %39
  %61 = fcmp uno float %58, %58
  br i1 %61, label %62, label %68, !prof !13

62:                                               ; preds = %60
  %63 = call <2 x float> @__mulsc3(float noundef %45, float noundef %47, float noundef %49, float noundef %52) #5
  store <2 x float> %63, ptr %19, align 4
  %64 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %65 = load float, ptr %64, align 4
  %66 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %67 = load float, ptr %66, align 4
  br label %68

68:                                               ; preds = %62, %60, %39
  %69 = phi float [ %57, %39 ], [ %57, %60 ], [ %65, %62 ]
  %70 = phi float [ %58, %39 ], [ %58, %60 ], [ %67, %62 ]
  %71 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %72 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %69, ptr %71, align 4
  store float %70, ptr %72, align 4
  %73 = load <2 x float>, ptr %20, align 4
  %74 = call float @cargf(<2 x float> noundef %73) #5
  store float %74, ptr %16, align 4, !tbaa !9
  %75 = load ptr, ptr %14, align 8, !tbaa !11
  %76 = load float, ptr %16, align 4, !tbaa !9
  %77 = call i32 @nco_crcf_pll_step(ptr noundef %75, float noundef %76)
  %78 = load ptr, ptr %13, align 8, !tbaa !11
  %79 = call i32 @nco_crcf_step(ptr noundef %78)
  %80 = load ptr, ptr %14, align 8, !tbaa !11
  %81 = call i32 @nco_crcf_step(ptr noundef %80)
  br label %82

82:                                               ; preds = %68
  %83 = load i32, ptr %15, align 4, !tbaa !5
  %84 = add i32 %83, 1
  store i32 %84, ptr %15, align 4, !tbaa !5
  br label %35, !llvm.loop !14

85:                                               ; preds = %35
  %86 = load ptr, ptr %13, align 8, !tbaa !11
  %87 = call float @nco_crcf_get_phase(ptr noundef %86)
  %88 = load ptr, ptr %14, align 8, !tbaa !11
  %89 = call float @nco_crcf_get_phase(ptr noundef %88)
  %90 = fsub float %87, %89
  store float %90, ptr %16, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %95, %85
  %92 = load float, ptr %16, align 4, !tbaa !9
  %93 = fpext float %92 to double
  %94 = fcmp oge double %93, 0x401921FB54442D18
  br i1 %94, label %95, label %100

95:                                               ; preds = %91
  %96 = load float, ptr %16, align 4, !tbaa !9
  %97 = fpext float %96 to double
  %98 = fsub double %97, 0x401921FB54442D18
  %99 = fptrunc double %98 to float
  store float %99, ptr %16, align 4, !tbaa !9
  br label %91, !llvm.loop !16

100:                                              ; preds = %91
  br label %101

101:                                              ; preds = %105, %100
  %102 = load float, ptr %16, align 4, !tbaa !9
  %103 = fpext float %102 to double
  %104 = fcmp ole double %103, 0xC01921FB54442D18
  br i1 %104, label %105, label %110

105:                                              ; preds = %101
  %106 = load float, ptr %16, align 4, !tbaa !9
  %107 = fpext float %106 to double
  %108 = fadd double %107, 0x401921FB54442D18
  %109 = fptrunc double %108 to float
  store float %109, ptr %16, align 4, !tbaa !9
  br label %101, !llvm.loop !17

110:                                              ; preds = %101
  %111 = load float, ptr %16, align 4, !tbaa !9
  %112 = fsub float %111, 0.000000e+00
  %113 = fpext float %112 to double
  %114 = load float, ptr %16, align 4, !tbaa !9
  %115 = fsub float %114, 0.000000e+00
  %116 = fpext float %115 to double
  %117 = load float, ptr %16, align 4, !tbaa !9
  %118 = fsub float %117, 0.000000e+00
  %119 = fpext float %118 to double
  %120 = load float, ptr %16, align 4, !tbaa !9
  %121 = fsub float %120, 0.000000e+00
  %122 = fpext float %121 to double
  %123 = call double @llvm.fmuladd.f64(double %113, double %116, double 0.000000e+00)
  %124 = call double @sqrt(double noundef %123) #5
  %125 = load float, ptr %12, align 4, !tbaa !9
  %126 = fpext float %125 to double
  %127 = fcmp ogt double %124, %126
  br i1 %127, label %138, label %128

128:                                              ; preds = %110
  %129 = load float, ptr %16, align 4, !tbaa !9
  %130 = call i1 @llvm.is.fpclass.f32(float %129, i32 3)
  br i1 %130, label %138, label %131

131:                                              ; preds = %128
  %132 = load float, ptr %16, align 4, !tbaa !9
  %133 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %133, label %138, label %134

134:                                              ; preds = %131
  %135 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %135, label %138, label %136

136:                                              ; preds = %134
  %137 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %137, label %138, label %155

138:                                              ; preds = %136, %134, %131, %128, %110
  %139 = load float, ptr %16, align 4, !tbaa !9
  %140 = fsub float %139, 0.000000e+00
  %141 = fpext float %140 to double
  %142 = load float, ptr %16, align 4, !tbaa !9
  %143 = fsub float %142, 0.000000e+00
  %144 = fpext float %143 to double
  %145 = load float, ptr %16, align 4, !tbaa !9
  %146 = fsub float %145, 0.000000e+00
  %147 = fpext float %146 to double
  %148 = load float, ptr %16, align 4, !tbaa !9
  %149 = fsub float %148, 0.000000e+00
  %150 = fpext float %149 to double
  %151 = call double @llvm.fmuladd.f64(double %141, double %144, double 0.000000e+00)
  %152 = call double @sqrt(double noundef %151) #5
  %153 = load float, ptr %12, align 4, !tbaa !9
  %154 = fpext float %153 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 75, ptr noundef @.str.1, double noundef %152, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %154)
  br label %156

155:                                              ; preds = %136
  call void (...) @liquid_autotest_passed()
  br label %156

156:                                              ; preds = %155, %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %157 = load ptr, ptr %13, align 8, !tbaa !11
  %158 = call float @nco_crcf_get_frequency(ptr noundef %157)
  %159 = load ptr, ptr %14, align 8, !tbaa !11
  %160 = call float @nco_crcf_get_frequency(ptr noundef %159)
  %161 = fsub float %158, %160
  store float %161, ptr %21, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %166, %156
  %163 = load float, ptr %21, align 4, !tbaa !9
  %164 = fpext float %163 to double
  %165 = fcmp oge double %164, 0x401921FB54442D18
  br i1 %165, label %166, label %171

166:                                              ; preds = %162
  %167 = load float, ptr %21, align 4, !tbaa !9
  %168 = fpext float %167 to double
  %169 = fsub double %168, 0x401921FB54442D18
  %170 = fptrunc double %169 to float
  store float %170, ptr %21, align 4, !tbaa !9
  br label %162, !llvm.loop !18

171:                                              ; preds = %162
  br label %172

172:                                              ; preds = %176, %171
  %173 = load float, ptr %21, align 4, !tbaa !9
  %174 = fpext float %173 to double
  %175 = fcmp ole double %174, 0xC01921FB54442D18
  br i1 %175, label %176, label %181

176:                                              ; preds = %172
  %177 = load float, ptr %21, align 4, !tbaa !9
  %178 = fpext float %177 to double
  %179 = fadd double %178, 0x401921FB54442D18
  %180 = fptrunc double %179 to float
  store float %180, ptr %21, align 4, !tbaa !9
  br label %172, !llvm.loop !19

181:                                              ; preds = %172
  %182 = load float, ptr %21, align 4, !tbaa !9
  %183 = fsub float %182, 0.000000e+00
  %184 = fpext float %183 to double
  %185 = load float, ptr %21, align 4, !tbaa !9
  %186 = fsub float %185, 0.000000e+00
  %187 = fpext float %186 to double
  %188 = load float, ptr %21, align 4, !tbaa !9
  %189 = fsub float %188, 0.000000e+00
  %190 = fpext float %189 to double
  %191 = load float, ptr %21, align 4, !tbaa !9
  %192 = fsub float %191, 0.000000e+00
  %193 = fpext float %192 to double
  %194 = call double @llvm.fmuladd.f64(double %184, double %187, double 0.000000e+00)
  %195 = call double @sqrt(double noundef %194) #5
  %196 = load float, ptr %12, align 4, !tbaa !9
  %197 = fpext float %196 to double
  %198 = fcmp ogt double %195, %197
  br i1 %198, label %209, label %199

199:                                              ; preds = %181
  %200 = load float, ptr %21, align 4, !tbaa !9
  %201 = call i1 @llvm.is.fpclass.f32(float %200, i32 3)
  br i1 %201, label %209, label %202

202:                                              ; preds = %199
  %203 = load float, ptr %21, align 4, !tbaa !9
  %204 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %204, label %209, label %205

205:                                              ; preds = %202
  %206 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %206, label %209, label %207

207:                                              ; preds = %205
  %208 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %208, label %209, label %226

209:                                              ; preds = %207, %205, %202, %199, %181
  %210 = load float, ptr %21, align 4, !tbaa !9
  %211 = fsub float %210, 0.000000e+00
  %212 = fpext float %211 to double
  %213 = load float, ptr %21, align 4, !tbaa !9
  %214 = fsub float %213, 0.000000e+00
  %215 = fpext float %214 to double
  %216 = load float, ptr %21, align 4, !tbaa !9
  %217 = fsub float %216, 0.000000e+00
  %218 = fpext float %217 to double
  %219 = load float, ptr %21, align 4, !tbaa !9
  %220 = fsub float %219, 0.000000e+00
  %221 = fpext float %220 to double
  %222 = call double @llvm.fmuladd.f64(double %212, double %215, double 0.000000e+00)
  %223 = call double @sqrt(double noundef %222) #5
  %224 = load float, ptr %12, align 4, !tbaa !9
  %225 = fpext float %224 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 81, ptr noundef @.str.4, double noundef %223, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %225)
  br label %227

226:                                              ; preds = %207
  call void (...) @liquid_autotest_passed()
  br label %227

227:                                              ; preds = %226, %209
  %228 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %243

230:                                              ; preds = %227
  %231 = load float, ptr %10, align 4, !tbaa !9
  %232 = fpext float %231 to double
  %233 = load i32, ptr %11, align 4, !tbaa !5
  %234 = load float, ptr %8, align 4, !tbaa !9
  %235 = fpext float %234 to double
  %236 = load float, ptr %16, align 4, !tbaa !9
  %237 = fpext float %236 to double
  %238 = load float, ptr %9, align 4, !tbaa !9
  %239 = fpext float %238 to double
  %240 = load float, ptr %21, align 4, !tbaa !9
  %241 = fpext float %240 to double
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %232, i32 noundef %233, double noundef %235, double noundef %237, double noundef %239, double noundef %241)
  br label %243

243:                                              ; preds = %230, %227
  %244 = load ptr, ptr %13, align 8, !tbaa !11
  %245 = call i32 @nco_crcf_destroy(ptr noundef %244)
  %246 = load ptr, ptr %14, align 8, !tbaa !11
  %247 = call i32 @nco_crcf_destroy(ptr noundef %246)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #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 @nco_crcf_create(i32 noundef) #2

declare i32 @nco_crcf_set_phase(ptr noundef, float noundef) #2

declare i32 @nco_crcf_set_frequency(ptr noundef, float noundef) #2

declare i32 @nco_crcf_pll_set_bandwidth(ptr noundef, float noundef) #2

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

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

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

declare i32 @nco_crcf_pll_step(ptr noundef, float noundef) #2

declare i32 @nco_crcf_step(ptr noundef) #2

declare float @nco_crcf_get_phase(ptr noundef) #2

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

; 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 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 float @nco_crcf_get_frequency(ptr noundef) #2

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

declare i32 @nco_crcf_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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"branch_weights", i32 1, i32 1048575}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !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 [92 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @nco_crcf_pll_test(i32 noundef %0, float noundef %1, float noundef %2, float noundef %3, i32 noundef %4, float noundef %5) local_unnamed_addr #0 {
  %7 = alloca { float, float }, align 8
  %8 = alloca { float, float }, align 8
  %9 = tail call ptr @nco_crcf_create(i32 noundef %0) #7
  %10 = tail call ptr @nco_crcf_create(i32 noundef %0) #7
  %11 = tail call i32 @nco_crcf_set_phase(ptr noundef %9, float noundef %1) #7
  %12 = tail call i32 @nco_crcf_set_frequency(ptr noundef %9, float noundef %2) #7
  %13 = tail call i32 @nco_crcf_pll_set_bandwidth(ptr noundef %10, float noundef %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %.not92 = icmp eq i32 %4, 0
  br i1 %.not92, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %6, %35
  %.06278 = phi i32 [ %42, %35 ], [ 0, %6 ]
  %14 = call i32 @nco_crcf_cexpf(ptr noundef %9, ptr noundef nonnull %7) #7
  %15 = call i32 @nco_crcf_cexpf(ptr noundef %10, ptr noundef nonnull %8) #7
  %16 = load <2 x float>, ptr %7, align 8
  %17 = load <2 x float>, ptr %8, align 8
  %18 = extractelement <2 x float> %17, i64 1
  %19 = fneg float %18
  %20 = shufflevector <2 x float> %16, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %21 = fmul <2 x float> %16, %17
  %shift = shufflevector <2 x float> %21, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %22 = fadd <2 x float> %21, %shift
  %23 = extractelement <2 x float> %22, i64 0
  %24 = fmul <2 x float> %20, %17
  %shift116 = shufflevector <2 x float> %24, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %25 = fsub <2 x float> %24, %shift116
  %26 = extractelement <2 x float> %25, i64 0
  %27 = fcmp uno float %23, 0.000000e+00
  br i1 %27, label %28, label %35, !prof !5

28:                                               ; preds = %.lr.ph
  %29 = fcmp uno float %26, 0.000000e+00
  br i1 %29, label %30, label %35, !prof !5

30:                                               ; preds = %28
  %31 = extractelement <2 x float> %16, i64 0
  %32 = extractelement <2 x float> %16, i64 1
  %33 = extractelement <2 x float> %17, i64 0
  %34 = call <2 x float> @__mulsc3(float noundef %31, float noundef %32, float noundef %33, float noundef %19) #7
  %.sroa.016.0.vec.extract = extractelement <2 x float> %34, i64 0
  %.sroa.016.4.vec.extract = extractelement <2 x float> %34, i64 1
  br label %35

35:                                               ; preds = %30, %28, %.lr.ph
  %36 = phi float [ %23, %.lr.ph ], [ %23, %28 ], [ %.sroa.016.0.vec.extract, %30 ]
  %37 = phi float [ %26, %.lr.ph ], [ %26, %28 ], [ %.sroa.016.4.vec.extract, %30 ]
  %.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %36, i64 0
  %.sroa.0.4.vec.insert = insertelement <2 x float> %.sroa.0.0.vec.insert, float %37, i64 1
  %38 = call float @cargf(<2 x float> noundef %.sroa.0.4.vec.insert) #7
  %39 = call i32 @nco_crcf_pll_step(ptr noundef %10, float noundef %38) #7
  %40 = call i32 @nco_crcf_step(ptr noundef %9) #7
  %41 = call i32 @nco_crcf_step(ptr noundef %10) #7
  %42 = add nuw i32 %.06278, 1
  %exitcond.not = icmp eq i32 %42, %4
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !6

._crit_edge:                                      ; preds = %35, %6
  %43 = call float @nco_crcf_get_phase(ptr noundef %9) #7
  %44 = call float @nco_crcf_get_phase(ptr noundef %10) #7
  %45 = fsub float %43, %44
  %46 = fpext float %45 to double
  %47 = fcmp ult double %46, 0x401921FB54442D18
  br i1 %47, label %.preheader76, label %.lr.ph80

.preheader76:                                     ; preds = %.lr.ph80, %._crit_edge
  %.pre-phi = phi double [ %46, %._crit_edge ], [ %52, %.lr.ph80 ]
  %.063.lcssa = phi float [ %45, %._crit_edge ], [ %51, %.lr.ph80 ]
  %48 = fcmp ugt double %.pre-phi, 0xC01921FB54442D18
  br i1 %48, label %._crit_edge82, label %.lr.ph81

.lr.ph80:                                         ; preds = %._crit_edge, %.lr.ph80
  %49 = phi double [ %52, %.lr.ph80 ], [ %46, %._crit_edge ]
  %50 = fadd double %49, 0xC01921FB54442D18
  %51 = fptrunc double %50 to float
  %52 = fpext float %51 to double
  %53 = fcmp ult double %52, 0x401921FB54442D18
  br i1 %53, label %.preheader76, label %.lr.ph80, !llvm.loop !8

.lr.ph81:                                         ; preds = %.preheader76, %.lr.ph81
  %54 = phi double [ %57, %.lr.ph81 ], [ %.pre-phi, %.preheader76 ]
  %55 = fadd double %54, 0x401921FB54442D18
  %56 = fptrunc double %55 to float
  %57 = fpext float %56 to double
  %58 = fcmp ugt double %57, 0xC01921FB54442D18
  br i1 %58, label %._crit_edge82, label %.lr.ph81, !llvm.loop !9

._crit_edge82:                                    ; preds = %.lr.ph81, %.preheader76
  %.164.lcssa = phi float [ %.063.lcssa, %.preheader76 ], [ %56, %.lr.ph81 ]
  %.lcssa77 = phi double [ %.pre-phi, %.preheader76 ], [ %57, %.lr.ph81 ]
  %59 = call double @llvm.fmuladd.f64(double %.lcssa77, double %.lcssa77, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %59)
  %60 = fpext float %5 to double
  %61 = fcmp ogt double %sqrt, %60
  %62 = fcmp uno float %.164.lcssa, 0.000000e+00
  %or.cond = or i1 %62, %61
  br i1 %or.cond, label %63, label %64

63:                                               ; preds = %._crit_edge82
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 75, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef %60) #7
  br label %65

64:                                               ; preds = %._crit_edge82
  call void (...) @liquid_autotest_passed() #7
  br label %65

65:                                               ; preds = %64, %63
  %66 = call float @nco_crcf_get_frequency(ptr noundef %9) #7
  %67 = call float @nco_crcf_get_frequency(ptr noundef %10) #7
  %68 = fsub float %66, %67
  %69 = fpext float %68 to double
  %70 = fcmp ult double %69, 0x401921FB54442D18
  br i1 %70, label %.preheader, label %.lr.ph86

.preheader:                                       ; preds = %.lr.ph86, %65
  %.pre-phi99 = phi double [ %69, %65 ], [ %75, %.lr.ph86 ]
  %.0.lcssa = phi float [ %68, %65 ], [ %74, %.lr.ph86 ]
  %71 = fcmp ugt double %.pre-phi99, 0xC01921FB54442D18
  br i1 %71, label %._crit_edge89, label %.lr.ph88

.lr.ph86:                                         ; preds = %65, %.lr.ph86
  %72 = phi double [ %75, %.lr.ph86 ], [ %69, %65 ]
  %73 = fadd double %72, 0xC01921FB54442D18
  %74 = fptrunc double %73 to float
  %75 = fpext float %74 to double
  %76 = fcmp ult double %75, 0x401921FB54442D18
  br i1 %76, label %.preheader, label %.lr.ph86, !llvm.loop !10

.lr.ph88:                                         ; preds = %.preheader, %.lr.ph88
  %77 = phi double [ %80, %.lr.ph88 ], [ %.pre-phi99, %.preheader ]
  %78 = fadd double %77, 0x401921FB54442D18
  %79 = fptrunc double %78 to float
  %80 = fpext float %79 to double
  %81 = fcmp ugt double %80, 0xC01921FB54442D18
  br i1 %81, label %._crit_edge89, label %.lr.ph88, !llvm.loop !11

._crit_edge89:                                    ; preds = %.lr.ph88, %.preheader
  %.1.lcssa = phi float [ %.0.lcssa, %.preheader ], [ %79, %.lr.ph88 ]
  %.lcssa = phi double [ %.pre-phi99, %.preheader ], [ %80, %.lr.ph88 ]
  %82 = call double @llvm.fmuladd.f64(double %.lcssa, double %.lcssa, double 0.000000e+00)
  %sqrt74 = call double @llvm.sqrt.f64(double %82)
  %83 = fcmp ogt double %sqrt74, %60
  %84 = fcmp uno float %.1.lcssa, 0.000000e+00
  %or.cond72 = or i1 %84, %83
  br i1 %or.cond72, label %85, label %86

85:                                               ; preds = %._crit_edge89
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 81, ptr noundef nonnull @.str.4, double noundef %sqrt74, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef %60) #7
  br label %87

86:                                               ; preds = %._crit_edge89
  call void (...) @liquid_autotest_passed() #7
  br label %87

87:                                               ; preds = %86, %85
  %88 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !12
  %.not = icmp eq i32 %88, 0
  br i1 %.not, label %94, label %89

89:                                               ; preds = %87
  %90 = fpext float %3 to double
  %91 = fpext float %1 to double
  %92 = fpext float %2 to double
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %90, i32 noundef %4, double noundef %91, double noundef %.lcssa77, double noundef %92, double noundef %.lcssa)
  br label %94

94:                                               ; preds = %89, %87
  %95 = call i32 @nco_crcf_destroy(ptr noundef %9) #7
  %96 = call i32 @nco_crcf_destroy(ptr noundef %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  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 @nco_crcf_create(i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

declare i32 @nco_crcf_step(ptr noundef) local_unnamed_addr #2

declare float @nco_crcf_get_phase(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 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 float @nco_crcf_get_frequency(ptr noundef) local_unnamed_addr #2

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

declare i32 @nco_crcf_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) #6

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C/C++ TBAA"}


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