; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (framing_cccf)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.symtrack_cccf_s = type { i32, i32, i32, float, i32, float, ptr, float, ptr, float, [8 x { float, float }], i32, ptr, i32, float, i32, ptr, float, ptr, i32 }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

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

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

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

declare i32 @nco_crcf_step(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @symtrack_cccf_execute(ptr noundef %0, <2 x float> noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca i32, align 4
  %6 = alloca { float, float }, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca { float, float }, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca i32, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca i32, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca float, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca i32, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca { float, float }, align 4
  store <2 x float> %1, ptr %6, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %26, i32 0, i32 6
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 0
  %30 = load float, ptr %29, align 4
  %31 = getelementptr inbounds { float, float }, ptr %6, i32 0, i32 1
  %32 = load float, ptr %31, align 4
  %33 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %34 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %30, ptr %33, align 4
  store float %32, ptr %34, align 4
  %35 = load <2 x float>, ptr %13, align 4
  %36 = call i32 @agc_crcf_execute(ptr noundef %28, <2 x float> noundef %35, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %37, i32 0, i32 8
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %40, i32 0, i32 10
  %42 = getelementptr inbounds [8 x { float, float }], ptr %41, i64 0, i64 0
  %43 = call i32 @symsync_crcf_execute(ptr noundef %39, ptr noundef %10, i32 noundef 1, ptr noundef %42, ptr noundef %14)
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %192, %4
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %48, label %195

48:                                               ; preds = %44
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %49, i32 0, i32 16
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = call i32 @nco_crcf_step(ptr noundef %51)
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %53, i32 0, i32 16
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %56, i32 0, i32 10
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [8 x { float, float }], ptr %57, i64 0, i64 %59
  %61 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 0
  %62 = load float, ptr %61, align 4
  %63 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 1
  %64 = load float, ptr %63, align 4
  %65 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %66 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  store float %62, ptr %65, align 4
  store float %64, ptr %66, align 4
  %67 = load <2 x float>, ptr %15, align 4
  %68 = call i32 @nco_crcf_mix_down(ptr noundef %55, <2 x float> noundef %67, ptr noundef %10)
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %69, i32 0, i32 12
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %73 = load float, ptr %72, align 4
  %74 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  %75 = load float, ptr %74, align 4
  %76 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %77 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %73, ptr %76, align 4
  store float %75, ptr %77, align 4
  %78 = load <2 x float>, ptr %16, align 4
  %79 = call i32 @eqlms_cccf_push(ptr noundef %71, <2 x float> noundef %78)
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %80, i32 0, i32 11
  %82 = load i32, ptr %81, align 4, !tbaa !17
  %83 = add i32 %82, 1
  store i32 %83, ptr %81, align 4, !tbaa !17
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %84, i32 0, i32 11
  %86 = load i32, ptr %85, align 4, !tbaa !17
  %87 = urem i32 %86, 2
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %90, label %89

89:                                               ; preds = %48
  br label %192

90:                                               ; preds = %48
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %91, i32 0, i32 19
  %93 = load i32, ptr %92, align 8, !tbaa !18
  %94 = add i32 %93, 1
  store i32 %94, ptr %92, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %95, i32 0, i32 12
  %97 = load ptr, ptr %96, align 8, !tbaa !16
  %98 = call i32 @eqlms_cccf_execute(ptr noundef %97, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %99, i32 0, i32 18
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %103 = load float, ptr %102, align 4
  %104 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %105 = load float, ptr %104, align 4
  %106 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %107 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %103, ptr %106, align 4
  store float %105, ptr %107, align 4
  %108 = load <2 x float>, ptr %19, align 4
  %109 = call i32 @modemcf_demodulate(ptr noundef %101, <2 x float> noundef %108, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %110, i32 0, i32 18
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %113 = call float @modemcf_get_demodulator_phase_error(ptr noundef %112)
  store float %113, ptr %20, align 4, !tbaa !20
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %114, i32 0, i32 16
  %116 = load ptr, ptr %115, align 8, !tbaa !15
  %117 = load float, ptr %20, align 4, !tbaa !20
  %118 = call i32 @nco_crcf_pll_step(ptr noundef %116, float noundef %117)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %119 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %120 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float 0.000000e+00, ptr %119, align 4
  store float 0.000000e+00, ptr %120, align 4
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %121, i32 0, i32 19
  %123 = load i32, ptr %122, align 8, !tbaa !18
  %124 = icmp ugt i32 %123, 200
  br i1 %124, label %125, label %177

125:                                              ; preds = %90
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %126, i32 0, i32 15
  %128 = load i32, ptr %127, align 8, !tbaa !21
  %129 = icmp ne i32 %128, 2
  br i1 %129, label %130, label %177

130:                                              ; preds = %125
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %131, i32 0, i32 15
  %133 = load i32, ptr %132, align 8, !tbaa !21
  switch i32 %133, label %156 [
    i32 0, label %134
    i32 1, label %151
  ]

134:                                              ; preds = %130
  %135 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %136 = load float, ptr %135, align 4
  %137 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  %139 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %140 = load float, ptr %139, align 4
  %141 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %142 = load float, ptr %141, align 4
  %143 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %144 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  store float %140, ptr %143, align 4
  store float %142, ptr %144, align 4
  %145 = load <2 x float>, ptr %22, align 4
  %146 = call float @cabsf(<2 x float> noundef %145) #4
  %147 = fdiv float %136, %146
  %148 = fdiv float %138, %146
  %149 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %150 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %147, ptr %149, align 4
  store float %148, ptr %150, align 4
  br label %158

151:                                              ; preds = %130
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %152, i32 0, i32 18
  %154 = load ptr, ptr %153, align 8, !tbaa !19
  %155 = call i32 @modemcf_get_demodulator_sample(ptr noundef %154, ptr noundef %21)
  br label %158

156:                                              ; preds = %130
  %157 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 1, ptr noundef @.str.41, i32 noundef 385, ptr noundef @.str.50, ptr noundef @.str.2)
  store i32 %157, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %189

158:                                              ; preds = %151, %134
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.symtrack_cccf_s, ptr %159, i32 0, i32 12
  %161 = load ptr, ptr %160, align 8, !tbaa !16
  %162 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %163 = load float, ptr %162, align 4
  %164 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %165 = load float, ptr %164, align 4
  %166 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %167 = load float, ptr %166, align 4
  %168 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %169 = load float, ptr %168, align 4
  %170 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %171 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  store float %163, ptr %170, align 4
  store float %165, ptr %171, align 4
  %172 = load <2 x float>, ptr %24, align 4
  %173 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %174 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  store float %167, ptr %173, align 4
  store float %169, ptr %174, align 4
  %175 = load <2 x float>, ptr %25, align 4
  %176 = call i32 @eqlms_cccf_step(ptr noundef %161, <2 x float> noundef %172, <2 x float> noundef %175)
  br label %177

177:                                              ; preds = %158, %125, %90
  %178 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %179 = load float, ptr %178, align 4
  %180 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %181 = load float, ptr %180, align 4
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = add i32 %183, 1
  store i32 %184, ptr %12, align 4, !tbaa !9
  %185 = zext i32 %183 to i64
  %186 = getelementptr inbounds { float, float }, ptr %182, i64 %185
  %187 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 1
  store float %179, ptr %187, align 4
  store float %181, ptr %188, align 4
  store i32 0, ptr %23, align 4
  br label %189

189:                                              ; preds = %177, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %190 = load i32, ptr %23, align 4
  switch i32 %190, label %198 [
    i32 0, label %191
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %89
  %193 = load i32, ptr %11, align 4, !tbaa !9
  %194 = add i32 %193, 1
  store i32 %194, ptr %11, align 4, !tbaa !9
  br label %44, !llvm.loop !22

195:                                              ; preds = %44
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %196, ptr %197, align 4, !tbaa !9
  store i32 0, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %198

198:                                              ; preds = %195, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %199 = load i32, ptr %5, align 4
  ret i32 %199
}

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

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

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

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

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

declare float @modemcf_get_demodulator_phase_error(ptr noundef) #2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"symtrack_cccf_s", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 12, !10, i64 16, !13, i64 20, !6, i64 24, !13, i64 32, !6, i64 40, !13, i64 48, !7, i64 52, !10, i64 116, !6, i64 120, !10, i64 128, !13, i64 132, !10, i64 136, !6, i64 144, !13, i64 152, !6, i64 160, !10, i64 168}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !6, i64 40}
!15 = !{!12, !6, i64 144}
!16 = !{!12, !6, i64 120}
!17 = !{!12, !10, i64 116}
!18 = !{!12, !10, i64 168}
!19 = !{!12, !6, i64 160}
!20 = !{!13, !13, i64 0}
!21 = !{!12, !10, i64 136}
!22 = distinct !{!22, !23}
!23 = !{!"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.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

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

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

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

declare i32 @nco_crcf_step(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @symtrack_cccf_execute(ptr noundef %0, <2 x float> noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #3 {
  %5 = alloca { float, float }, align 8
  %6 = alloca i32, align 4
  %7 = alloca { float, float }, align 8
  %8 = alloca i32, align 4
  %9 = alloca { float, float }, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = call i32 @agc_crcf_execute(ptr noundef %11, <2 x float> noundef %1, ptr noundef nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 0, ptr %6, align 4, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %0, i64 52
  %16 = call i32 @symsync_crcf_execute(ptr noundef %14, ptr noundef nonnull %5, i32 noundef 1, ptr noundef nonnull %15, ptr noundef nonnull %6) #4
  %17 = load i32, ptr %6, align 4, !tbaa !12
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %18 = getelementptr inbounds i8, ptr %0, i64 144
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  %20 = getelementptr inbounds i8, ptr %0, i64 116
  %21 = getelementptr inbounds i8, ptr %0, i64 168
  %22 = getelementptr inbounds i8, ptr %0, i64 160
  %23 = getelementptr inbounds i8, ptr %0, i64 136
  br label %24

24:                                               ; preds = %.lr.ph, %74
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %74 ]
  %.04356 = phi i32 [ 0, %.lr.ph ], [ %.245, %74 ]
  %25 = load ptr, ptr %18, align 8, !tbaa !14
  %26 = call i32 @nco_crcf_step(ptr noundef %25) #4
  %27 = load ptr, ptr %18, align 8, !tbaa !14
  %28 = getelementptr inbounds [8 x { float, float }], ptr %15, i64 0, i64 %indvars.iv
  %29 = load <2 x float>, ptr %28, align 4
  %30 = call i32 @nco_crcf_mix_down(ptr noundef %27, <2 x float> noundef %29, ptr noundef nonnull %5) #4
  %31 = load ptr, ptr %19, align 8, !tbaa !15
  %32 = load <2 x float>, ptr %5, align 8
  %33 = call i32 @eqlms_cccf_push(ptr noundef %31, <2 x float> noundef %32) #4
  %34 = load i32, ptr %20, align 4, !tbaa !16
  %35 = add i32 %34, 1
  store i32 %35, ptr %20, align 4, !tbaa !16
  %36 = and i32 %34, 1
  %.not.not = icmp eq i32 %36, 0
  br i1 %.not.not, label %37, label %74

37:                                               ; preds = %24
  %38 = load i32, ptr %21, align 8, !tbaa !17
  %39 = add i32 %38, 1
  store i32 %39, ptr %21, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %40 = load ptr, ptr %19, align 8, !tbaa !15
  %41 = call i32 @eqlms_cccf_execute(ptr noundef %40, ptr noundef nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %42 = load ptr, ptr %22, align 8, !tbaa !18
  %43 = load <2 x float>, ptr %7, align 8
  %44 = call i32 @modemcf_demodulate(ptr noundef %42, <2 x float> noundef %43, ptr noundef nonnull %8) #4
  %45 = load ptr, ptr %22, align 8, !tbaa !18
  %46 = call float @modemcf_get_demodulator_phase_error(ptr noundef %45) #4
  %47 = load ptr, ptr %18, align 8, !tbaa !14
  %48 = call i32 @nco_crcf_pll_step(ptr noundef %47, float noundef %46) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store <2 x float> zeroinitializer, ptr %9, align 8
  %49 = load i32, ptr %21, align 8, !tbaa !17
  %50 = icmp ugt i32 %49, 200
  br i1 %50, label %51, label %.thread

51:                                               ; preds = %37
  %52 = load i32, ptr %23, align 8, !tbaa !19
  switch i32 %52, label %72 [
    i32 2, label %.thread
    i32 0, label %53
    i32 1, label %59
  ]

53:                                               ; preds = %51
  %54 = load <2 x float>, ptr %7, align 8
  %55 = call float @cabsf(<2 x float> noundef %54) #4
  %56 = insertelement <2 x float> poison, float %55, i64 0
  %57 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> zeroinitializer
  %58 = fdiv <2 x float> %54, %57
  store <2 x float> %58, ptr %9, align 8
  br label %63

59:                                               ; preds = %51
  %60 = load ptr, ptr %22, align 8, !tbaa !18
  %61 = call i32 @modemcf_get_demodulator_sample(ptr noundef %60, ptr noundef nonnull %9) #4
  %62 = load <2 x float>, ptr %9, align 8
  br label %63

63:                                               ; preds = %59, %53
  %64 = phi <2 x float> [ %62, %59 ], [ %58, %53 ]
  %65 = load ptr, ptr %19, align 8, !tbaa !15
  %66 = load <2 x float>, ptr %7, align 8
  %67 = call i32 @eqlms_cccf_step(ptr noundef %65, <2 x float> noundef %64, <2 x float> noundef %66) #4
  br label %.thread

.thread:                                          ; preds = %37, %63, %51
  %68 = add i32 %.04356, 1
  %69 = zext i32 %.04356 to i64
  %70 = getelementptr inbounds { float, float }, ptr %2, i64 %69
  %71 = load <2 x float>, ptr %7, align 8
  store <2 x float> %71, ptr %70, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %74

72:                                               ; preds = %51
  %73 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 1, ptr noundef nonnull @.str.41, i32 noundef 385, ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %78

74:                                               ; preds = %.thread, %24
  %.245 = phi i32 [ %.04356, %24 ], [ %68, %.thread ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = load i32, ptr %6, align 4, !tbaa !12
  %76 = zext i32 %75 to i64
  %77 = icmp ult i64 %indvars.iv.next, %76
  br i1 %77, label %24, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %74, %4
  %.043.lcssa = phi i32 [ 0, %4 ], [ %.245, %74 ]
  store i32 %.043.lcssa, ptr %3, align 4, !tbaa !12
  br label %78

78:                                               ; preds = %72, %._crit_edge
  %.3 = phi i32 [ %73, %72 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret i32 %.3
}

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

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

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

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

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

declare float @modemcf_get_demodulator_phase_error(ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #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, !11, i64 24}
!6 = !{!"symtrack_cccf_s", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !7, i64 16, !10, i64 20, !11, i64 24, !10, i64 32, !11, i64 40, !10, i64 48, !8, i64 52, !7, i64 116, !11, i64 120, !7, i64 128, !10, i64 132, !7, i64 136, !11, i64 144, !10, i64 152, !11, i64 160, !7, i64 168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !11, i64 40}
!14 = !{!6, !11, i64 144}
!15 = !{!6, !11, i64 120}
!16 = !{!6, !7, i64 116}
!17 = !{!6, !7, i64 168}
!18 = !{!6, !11, i64 160}
!19 = !{!6, !7, i64 136}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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