; LLVM IR from jgaeddert/liquid-dsp :: src/multichannel/src (ofdmframesync)

; 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.ofdmframesync_s = type { i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, float, float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, float, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, float, float, i32, i32, i32, { float, float }, { float, float }, float, float, ptr, ptr }

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @ofdmframesync_execute_seekplcp(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca { float, float }, align 4
  %8 = alloca float, align 4
  %9 = alloca { float, float }, align 4
  %10 = alloca { float, float }, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ofdmframesync_s, ptr %12, i32 0, i32 33
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = add i32 %14, 1
  store i32 %15, ptr %13, align 8, !tbaa !9
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ofdmframesync_s, ptr %16, i32 0, i32 33
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ofdmframesync_s, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !13
  %22 = icmp ult i32 %18, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %1
  store i32 0, ptr %2, align 4
  br label %172

24:                                               ; preds = %1
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ofdmframesync_s, ptr %25, i32 0, i32 33
  store i32 0, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ofdmframesync_s, ptr %27, i32 0, i32 16
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  %30 = call i32 @windowcf_read(ptr noundef %29, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store float 0x3E112E0BE0000000, ptr %6, align 4, !tbaa !15
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ofdmframesync_s, ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 8, !tbaa !16
  store i32 %33, ptr %5, align 4, !tbaa !17
  br label %34

34:                                               ; preds = %81, %24
  %35 = load i32, ptr %5, align 4, !tbaa !17
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ofdmframesync_s, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !13
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ofdmframesync_s, ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %42 = add i32 %38, %41
  %43 = icmp ult i32 %35, %42
  br i1 %43, label %44, label %84

44:                                               ; preds = %34
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load i32, ptr %5, align 4, !tbaa !17
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds { float, float }, ptr %45, i64 %47
  %49 = getelementptr inbounds { float, float }, ptr %48, i32 0, i32 0
  %50 = load float, ptr %49, align 4
  %51 = getelementptr inbounds { float, float }, ptr %48, i32 0, i32 1
  %52 = load float, ptr %51, align 4
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load i32, ptr %5, align 4, !tbaa !17
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds { float, float }, ptr %53, i64 %55
  %57 = getelementptr inbounds { float, float }, ptr %56, i32 0, i32 0
  %58 = load float, ptr %57, align 4
  %59 = getelementptr inbounds { float, float }, ptr %56, i32 0, i32 1
  %60 = load float, ptr %59, align 4
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load i32, ptr %5, align 4, !tbaa !17
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds { float, float }, ptr %61, i64 %63
  %65 = getelementptr inbounds { float, float }, ptr %64, i32 0, i32 0
  %66 = load float, ptr %65, align 4
  %67 = getelementptr inbounds { float, float }, ptr %64, i32 0, i32 1
  %68 = load float, ptr %67, align 4
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %5, align 4, !tbaa !17
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds { float, float }, ptr %69, i64 %71
  %73 = getelementptr inbounds { float, float }, ptr %72, i32 0, i32 0
  %74 = load float, ptr %73, align 4
  %75 = getelementptr inbounds { float, float }, ptr %72, i32 0, i32 1
  %76 = load float, ptr %75, align 4
  %77 = fmul float %68, %76
  %78 = call float @llvm.fmuladd.f32(float %50, float %58, float %77)
  %79 = load float, ptr %6, align 4, !tbaa !15
  %80 = fadd float %79, %78
  store float %80, ptr %6, align 4, !tbaa !15
  br label %81

81:                                               ; preds = %44
  %82 = load i32, ptr %5, align 4, !tbaa !17
  %83 = add i32 %82, 1
  store i32 %83, ptr %5, align 4, !tbaa !17
  br label %34, !llvm.loop !18

84:                                               ; preds = %34
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ofdmframesync_s, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !13
  %88 = uitofp i32 %87 to float
  %89 = load float, ptr %6, align 4, !tbaa !15
  %90 = fdiv float %88, %89
  store float %90, ptr %6, align 4, !tbaa !15
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ofdmframesync_s, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !16
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds { float, float }, ptr %92, i64 %96
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ofdmframesync_s, ptr %98, i32 0, i32 22
  %100 = load ptr, ptr %99, align 8, !tbaa !20
  %101 = call i32 @ofdmframesync_estimate_gain_S0(ptr noundef %91, ptr noundef %97, ptr noundef %100)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ofdmframesync_s, ptr %103, i32 0, i32 22
  %105 = load ptr, ptr %104, align 8, !tbaa !20
  %106 = call i32 @ofdmframesync_S0_metrics(ptr noundef %102, ptr noundef %105, ptr noundef %7)
  %107 = load float, ptr %6, align 4, !tbaa !15
  %108 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %109 = load float, ptr %108, align 4
  %110 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  %112 = fmul float %109, %107
  %113 = fmul float %111, %107
  %114 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %115 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  store float %112, ptr %114, align 4
  store float %113, ptr %115, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %116 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %117 = load float, ptr %116, align 4
  %118 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  %119 = load float, ptr %118, align 4
  %120 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 0
  %121 = getelementptr inbounds { float, float }, ptr %9, i32 0, i32 1
  store float %117, ptr %120, align 4
  store float %119, ptr %121, align 4
  %122 = load <2 x float>, ptr %9, align 4
  %123 = call float @cargf(<2 x float> noundef %122) #5
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ofdmframesync_s, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !21
  %127 = uitofp i32 %126 to float
  %128 = fmul float %123, %127
  %129 = fpext float %128 to double
  %130 = fdiv double %129, 0x401921FB54442D18
  %131 = fptrunc double %130 to float
  store float %131, ptr %8, align 4, !tbaa !15
  %132 = load float, ptr %6, align 4, !tbaa !15
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ofdmframesync_s, ptr %133, i32 0, i32 21
  store float %132, ptr %134, align 8, !tbaa !22
  %135 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 0
  %136 = load float, ptr %135, align 4
  %137 = getelementptr inbounds { float, float }, ptr %7, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  %139 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 0
  %140 = getelementptr inbounds { float, float }, ptr %10, i32 0, i32 1
  store float %136, ptr %139, align 4
  store float %138, ptr %140, align 4
  %141 = load <2 x float>, ptr %10, align 4
  %142 = call float @cabsf(<2 x float> noundef %141) #5
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ofdmframesync_s, ptr %143, i32 0, i32 38
  %145 = load float, ptr %144, align 4, !tbaa !23
  %146 = fcmp ogt float %142, %145
  br i1 %146, label %147, label %171

147:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %148 = load float, ptr %8, align 4, !tbaa !15
  %149 = call float @llvm.round.f32(float %148)
  %150 = fptosi float %149 to i32
  store i32 %150, ptr %11, align 4, !tbaa !17
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ofdmframesync_s, ptr %151, i32 0, i32 0
  %153 = load i32, ptr %152, align 8, !tbaa !13
  %154 = load i32, ptr %11, align 4, !tbaa !17
  %155 = add i32 %153, %154
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ofdmframesync_s, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !21
  %159 = urem i32 %155, %158
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ofdmframesync_s, ptr %160, i32 0, i32 33
  store i32 %159, ptr %161, align 8, !tbaa !9
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ofdmframesync_s, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 8, !tbaa !13
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.ofdmframesync_s, ptr %165, i32 0, i32 33
  %167 = load i32, ptr %166, align 8, !tbaa !9
  %168 = add i32 %167, %164
  store i32 %168, ptr %166, align 8, !tbaa !9
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ofdmframesync_s, ptr %169, i32 0, i32 28
  store i32 1, ptr %170, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %171

171:                                              ; preds = %147, %84
  store i32 0, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  br label %172

172:                                              ; preds = %171, %23
  %173 = load i32, ptr %2, align 4
  ret i32 %173
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmframesync_estimate_gain_S0(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmframesync_S0_metrics(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 216}
!10 = !{!"ofdmframesync_s", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !11, i64 184, !6, i64 192, !6, i64 200, !12, i64 208, !12, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !7, i64 228, !7, i64 236, !12, i64 244, !12, i64 248, !6, i64 256, !6, i64 264}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !6, i64 88}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 136}
!21 = !{!10, !11, i64 4}
!22 = !{!10, !12, i64 128}
!23 = !{!10, !12, i64 244}
!24 = !{!10, !11, i64 184}


; 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"

; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ofdmframesync_execute_seekplcp(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca ptr, align 8
  %3 = alloca { float, float }, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 216
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, 1
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = load i32, ptr %0, align 8, !tbaa !12
  %8 = icmp ult i32 %6, %7
  br i1 %8, label %80, label %9

9:                                                ; preds = %1
  store i32 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 88
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = call i32 @windowcf_read(ptr noundef %11, ptr noundef nonnull %2) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !14
  %15 = load i32, ptr %0, align 8, !tbaa !12
  %16 = add i32 %15, %14
  %17 = icmp ult i32 %14, %16
  %.pre = load ptr, ptr %2, align 8, !tbaa !15
  %18 = zext i32 %14 to i64
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %wide.trip.count = zext i32 %16 to i64
  %19 = sub nsw i64 %wide.trip.count, %18
  %xtraiter = and i64 %19, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph
  %20 = getelementptr inbounds { float, float }, ptr %.pre, i64 %18
  %21 = load float, ptr %20, align 4
  %22 = getelementptr inbounds i8, ptr %20, i64 4
  %23 = load float, ptr %22, align 4
  %24 = fmul float %23, %23
  %25 = call float @llvm.fmuladd.f32(float %21, float %21, float %24)
  %26 = fadd float %25, 0x3E112E0BE0000000
  %indvars.iv.next.prol = add nuw nsw i64 %18, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph
  %.lcssa.unr = phi float [ poison, %.lr.ph ], [ %26, %.prol.loopexit.unr-lcssa ]
  %indvars.iv.unr = phi i64 [ %18, %.lr.ph ], [ %indvars.iv.next.prol, %.prol.loopexit.unr-lcssa ]
  %.03940.unr = phi float [ 0x3E112E0BE0000000, %.lr.ph ], [ %26, %.prol.loopexit.unr-lcssa ]
  %27 = add nsw i64 %wide.trip.count, -1
  %28 = icmp eq i64 %27, %18
  br i1 %28, label %._crit_edge, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph.new ], [ %indvars.iv.unr, %.prol.loopexit ]
  %.03940 = phi float [ %43, %.lr.ph.new ], [ %.03940.unr, %.prol.loopexit ]
  %29 = getelementptr inbounds { float, float }, ptr %.pre, i64 %indvars.iv
  %30 = load float, ptr %29, align 4
  %31 = getelementptr inbounds i8, ptr %29, i64 4
  %32 = load float, ptr %31, align 4
  %33 = fmul float %32, %32
  %34 = call float @llvm.fmuladd.f32(float %30, float %30, float %33)
  %35 = fadd float %.03940, %34
  %36 = getelementptr { float, float }, ptr %.pre, i64 %indvars.iv
  %37 = getelementptr i8, ptr %36, i64 8
  %38 = load float, ptr %37, align 4
  %39 = getelementptr i8, ptr %36, i64 12
  %40 = load float, ptr %39, align 4
  %41 = fmul float %40, %40
  %42 = call float @llvm.fmuladd.f32(float %38, float %38, float %41)
  %43 = fadd float %35, %42
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph.new, !llvm.loop !16

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph.new, %9
  %.039.lcssa = phi float [ 0x3E112E0BE0000000, %9 ], [ %.lcssa.unr, %.prol.loopexit ], [ %43, %.lr.ph.new ]
  %44 = uitofp i32 %15 to float
  %45 = fdiv float %44, %.039.lcssa
  %46 = getelementptr inbounds { float, float }, ptr %.pre, i64 %18
  %47 = getelementptr inbounds i8, ptr %0, i64 136
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = call i32 @ofdmframesync_estimate_gain_S0(ptr noundef nonnull %0, ptr noundef %46, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %50 = load ptr, ptr %47, align 8, !tbaa !18
  %51 = call i32 @ofdmframesync_S0_metrics(ptr noundef nonnull %0, ptr noundef %50, ptr noundef nonnull %3)
  %52 = load <2 x float>, ptr %3, align 8
  %53 = insertelement <2 x float> poison, float %45, i64 0
  %54 = shufflevector <2 x float> %53, <2 x float> poison, <2 x i32> zeroinitializer
  %55 = fmul <2 x float> %54, %52
  store <2 x float> %55, ptr %3, align 8
  %56 = call float @cargf(<2 x float> noundef %55) #5
  %57 = getelementptr inbounds i8, ptr %0, i64 4
  %58 = load i32, ptr %57, align 4, !tbaa !19
  %59 = getelementptr inbounds i8, ptr %0, i64 128
  store float %45, ptr %59, align 8, !tbaa !20
  %60 = load <2 x float>, ptr %3, align 8
  %61 = call float @cabsf(<2 x float> noundef %60) #5
  %62 = getelementptr inbounds i8, ptr %0, i64 244
  %63 = load float, ptr %62, align 4, !tbaa !21
  %64 = fcmp ogt float %61, %63
  br i1 %64, label %65, label %79

65:                                               ; preds = %._crit_edge
  %66 = uitofp i32 %58 to float
  %67 = fmul float %56, %66
  %68 = fpext float %67 to double
  %69 = fdiv double %68, 0x401921FB54442D18
  %70 = fptrunc double %69 to float
  %71 = call float @llvm.round.f32(float %70)
  %72 = fptosi float %71 to i32
  %73 = load i32, ptr %0, align 8, !tbaa !12
  %74 = add i32 %73, %72
  %75 = load i32, ptr %57, align 4, !tbaa !19
  %76 = urem i32 %74, %75
  %77 = add i32 %76, %73
  store i32 %77, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 1, ptr %78, align 8, !tbaa !22
  br label %79

79:                                               ; preds = %65, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %80

80:                                               ; preds = %1, %79
  ret i32 0
}

declare i32 @windowcf_read(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmframesync_estimate_gain_S0(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @ofdmframesync_S0_metrics(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !7, i64 216}
!6 = !{!"ofdmframesync_s", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !11, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !7, i64 184, !10, i64 192, !10, i64 200, !11, i64 208, !11, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !8, i64 228, !8, i64 236, !11, i64 244, !11, i64 248, !10, i64 256, !10, i64 264}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !10, i64 88}
!14 = !{!6, !7, i64 8}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !10, i64 136}
!19 = !{!6, !7, i64 4}
!20 = !{!6, !11, i64 128}
!21 = !{!6, !11, i64 244}
!22 = !{!6, !7, i64 184}


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