; LLVM IR from lfarcaro/ARINC653_ARMV7A_Z7000 :: ARINC653_ARMV7A_Z7000.sw/MEASURE/src/Algorithms (algorithm_lms1)

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

@algorithm_lms1.px = external hidden global [51 x float], align 16
@algorithm_lms1.sigma = external hidden global float, align 4

; Function Attrs: nounwind uwtable
define dso_local float @algorithm_lms1(float noundef %0, float noundef %1, ptr noundef %2, i32 noundef %3, float noundef %4, float noundef %5) #0 {
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  store float %0, ptr %7, align 4, !tbaa !5
  store float %1, ptr %8, align 4, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !11
  store float %4, ptr %11, align 4, !tbaa !5
  store float %5, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %17 = load float, ptr %7, align 4, !tbaa !5
  store float %17, ptr @algorithm_lms1.px, align 16, !tbaa !5
  %18 = load ptr, ptr %9, align 8, !tbaa !9
  %19 = getelementptr inbounds float, ptr %18, i64 0
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = load float, ptr @algorithm_lms1.px, align 16, !tbaa !5
  %22 = fmul float %20, %21
  store float %22, ptr %16, align 4, !tbaa !5
  store i32 1, ptr %13, align 4, !tbaa !11
  br label %23

23:                                               ; preds = %39, %6
  %24 = load i32, ptr %13, align 4, !tbaa !11
  %25 = load i32, ptr %10, align 4, !tbaa !11
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %27, label %42

27:                                               ; preds = %23
  %28 = load float, ptr %16, align 4, !tbaa !5
  %29 = load ptr, ptr %9, align 8, !tbaa !9
  %30 = load i32, ptr %13, align 4, !tbaa !11
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds float, ptr %29, i64 %31
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = load i32, ptr %13, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %35
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = call float @llvm.fmuladd.f32(float %33, float %37, float %28)
  store float %38, ptr %16, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %27
  %40 = load i32, ptr %13, align 4, !tbaa !11
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %13, align 4, !tbaa !11
  br label %23, !llvm.loop !13

42:                                               ; preds = %23
  %43 = load float, ptr %8, align 4, !tbaa !5
  %44 = load float, ptr %16, align 4, !tbaa !5
  %45 = fsub float %43, %44
  store float %45, ptr %14, align 4, !tbaa !5
  %46 = load float, ptr %12, align 4, !tbaa !5
  %47 = load float, ptr @algorithm_lms1.px, align 16, !tbaa !5
  %48 = load float, ptr @algorithm_lms1.px, align 16, !tbaa !5
  %49 = fmul float %47, %48
  %50 = load float, ptr %12, align 4, !tbaa !5
  %51 = fsub float 1.000000e+00, %50
  %52 = load float, ptr @algorithm_lms1.sigma, align 4, !tbaa !5
  %53 = fmul float %51, %52
  %54 = call float @llvm.fmuladd.f32(float %46, float %49, float %53)
  store float %54, ptr @algorithm_lms1.sigma, align 4, !tbaa !5
  %55 = load float, ptr %11, align 4, !tbaa !5
  %56 = load float, ptr %14, align 4, !tbaa !5
  %57 = fmul float %55, %56
  %58 = load float, ptr @algorithm_lms1.sigma, align 4, !tbaa !5
  %59 = fdiv float %57, %58
  store float %59, ptr %15, align 4, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %80, %42
  %61 = load i32, ptr %13, align 4, !tbaa !11
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = icmp sle i32 %61, %62
  br i1 %63, label %64, label %83

64:                                               ; preds = %60
  %65 = load ptr, ptr %9, align 8, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %65, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = load float, ptr %15, align 4, !tbaa !5
  %71 = load i32, ptr %13, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = call float @llvm.fmuladd.f32(float %70, float %74, float %69)
  %76 = load ptr, ptr %9, align 8, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds float, ptr %76, i64 %78
  store float %75, ptr %79, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %64
  %81 = load i32, ptr %13, align 4, !tbaa !11
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %13, align 4, !tbaa !11
  br label %60, !llvm.loop !15

83:                                               ; preds = %60
  %84 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %84, ptr %13, align 4, !tbaa !11
  br label %85

85:                                               ; preds = %97, %83
  %86 = load i32, ptr %13, align 4, !tbaa !11
  %87 = icmp sge i32 %86, 1
  br i1 %87, label %88, label %100

88:                                               ; preds = %85
  %89 = load i32, ptr %13, align 4, !tbaa !11
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !5
  %94 = load i32, ptr %13, align 4, !tbaa !11
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %95
  store float %93, ptr %96, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %88
  %98 = load i32, ptr %13, align 4, !tbaa !11
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr %13, align 4, !tbaa !11
  br label %85, !llvm.loop !16

100:                                              ; preds = %85
  %101 = load float, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret float %101
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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"="0" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = !{!"float", !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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

@algorithm_lms1.px = external hidden local_unnamed_addr global [51 x float], align 16
@algorithm_lms1.sigma = external hidden local_unnamed_addr global float, align 4

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local float @algorithm_lms1(float noundef %0, float noundef %1, ptr nocapture noundef %2, i32 noundef %3, float noundef %4, float noundef %5) local_unnamed_addr #0 {
  store float %0, ptr @algorithm_lms1.px, align 16, !tbaa !5
  %7 = load float, ptr %2, align 4, !tbaa !5
  %8 = fmul float %7, %0
  %.not32 = icmp slt i32 %3, 1
  br i1 %.not32, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %6
  %9 = zext nneg i32 %3 to i64
  %xtraiter = and i64 %9, 3
  %10 = icmp ult i32 %3, 4
  br i1 %10, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %9, 2147483644
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.034 = phi float [ %8, %.lr.ph.preheader.new ], [ %30, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %11 = getelementptr inbounds float, ptr %2, i64 %indvars.iv
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = tail call float @llvm.fmuladd.f32(float %12, float %14, float %.034)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next
  %17 = load float, ptr %16, align 4, !tbaa !5
  %18 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv.next
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = tail call float @llvm.fmuladd.f32(float %17, float %19, float %15)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %21 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next.1
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv.next.1
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = tail call float @llvm.fmuladd.f32(float %22, float %24, float %20)
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %26 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next.2
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv.next.2
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = tail call float @llvm.fmuladd.f32(float %27, float %29, float %25)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !9

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph.preheader ], [ %30, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.034.unr = phi float [ %8, %.lr.ph.preheader ], [ %30, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.034.epil = phi float [ %35, %.lr.ph.epil ], [ %.034.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %31 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.epil
  %32 = load float, ptr %31, align 4, !tbaa !5
  %33 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv.epil
  %34 = load float, ptr %33, align 4, !tbaa !5
  %35 = tail call float @llvm.fmuladd.f32(float %32, float %34, float %.034.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !11

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %6
  %.0.lcssa = phi float [ %8, %6 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %35, %.lr.ph.epil ]
  %36 = fsub float %1, %.0.lcssa
  %37 = fmul float %0, %0
  %38 = fsub float 1.000000e+00, %5
  %39 = load float, ptr @algorithm_lms1.sigma, align 4, !tbaa !5
  %40 = fmul float %38, %39
  %41 = tail call float @llvm.fmuladd.f32(float %5, float %37, float %40)
  store float %41, ptr @algorithm_lms1.sigma, align 4, !tbaa !5
  %42 = fmul float %36, %4
  %43 = fdiv float %42, %41
  %.not3135 = icmp slt i32 %3, 0
  br i1 %.not3135, label %._crit_edge41, label %.lr.ph38.preheader

.lr.ph38.preheader:                               ; preds = %._crit_edge
  %44 = add nuw i32 %3, 1
  %wide.trip.count46 = zext i32 %44 to i64
  %min.iters.check = icmp ult i32 %3, 7
  br i1 %min.iters.check, label %.lr.ph38.preheader72, label %vector.memcheck

.lr.ph38.preheader72:                             ; preds = %middle.block, %vector.memcheck, %.lr.ph38.preheader
  %indvars.iv43.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph38.preheader ], [ %n.vec, %middle.block ]
  %45 = zext nneg i32 %3 to i64
  %xtraiter74 = and i64 %wide.trip.count46, 1
  %lcmp.mod75.not = icmp eq i64 %xtraiter74, 0
  br i1 %lcmp.mod75.not, label %.lr.ph38.prol.loopexit, label %.lr.ph38.prol

.lr.ph38.prol:                                    ; preds = %.lr.ph38.preheader72
  %46 = getelementptr inbounds float, ptr %2, i64 %indvars.iv43.ph
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv43.ph
  %49 = load float, ptr %48, align 16, !tbaa !5
  %50 = tail call float @llvm.fmuladd.f32(float %43, float %49, float %47)
  store float %50, ptr %46, align 4, !tbaa !5
  %indvars.iv.next44.prol = or disjoint i64 %indvars.iv43.ph, 1
  br label %.lr.ph38.prol.loopexit

.lr.ph38.prol.loopexit:                           ; preds = %.lr.ph38.prol, %.lr.ph38.preheader72
  %indvars.iv43.unr = phi i64 [ %indvars.iv43.ph, %.lr.ph38.preheader72 ], [ %indvars.iv.next44.prol, %.lr.ph38.prol ]
  %51 = icmp eq i64 %indvars.iv43.ph, %45
  br i1 %51, label %.preheader, label %.lr.ph38

vector.memcheck:                                  ; preds = %.lr.ph38.preheader
  %52 = shl nuw nsw i64 %wide.trip.count46, 2
  %scevgep = getelementptr i8, ptr %2, i64 %52
  %scevgep51 = getelementptr i8, ptr @algorithm_lms1.px, i64 %52
  %bound0 = icmp ugt ptr %scevgep51, %2
  %bound1 = icmp ugt ptr %scevgep, @algorithm_lms1.px
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph38.preheader72, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count46, 4294967288
  %broadcast.splatinsert = insertelement <4 x float> poison, float %43, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %53 = getelementptr inbounds float, ptr %2, i64 %index
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  %wide.load = load <4 x float>, ptr %53, align 4, !tbaa !5, !alias.scope !13, !noalias !16
  %wide.load52 = load <4 x float>, ptr %54, align 4, !tbaa !5, !alias.scope !13, !noalias !16
  %55 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %index
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load53 = load <4 x float>, ptr %55, align 16, !tbaa !5, !alias.scope !16
  %wide.load54 = load <4 x float>, ptr %56, align 16, !tbaa !5, !alias.scope !16
  %57 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load53, <4 x float> %wide.load)
  %58 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load54, <4 x float> %wide.load52)
  store <4 x float> %57, ptr %53, align 4, !tbaa !5, !alias.scope !13, !noalias !16
  store <4 x float> %58, ptr %54, align 4, !tbaa !5, !alias.scope !13, !noalias !16
  %index.next = add nuw i64 %index, 8
  %59 = icmp eq i64 %index.next, %n.vec
  br i1 %59, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count46
  br i1 %cmp.n, label %.preheader, label %.lr.ph38.preheader72

.preheader:                                       ; preds = %.lr.ph38.prol.loopexit, %.lr.ph38, %middle.block
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %._crit_edge41, label %.lr.ph40.preheader

.lr.ph40.preheader:                               ; preds = %.preheader
  %60 = zext nneg i32 %3 to i64
  %min.iters.check57 = icmp ult i32 %3, 8
  br i1 %min.iters.check57, label %.lr.ph40.preheader71, label %vector.ph58

.lr.ph40.preheader71:                             ; preds = %middle.block55, %.lr.ph40.preheader
  %indvars.iv48.ph = phi i64 [ %60, %.lr.ph40.preheader ], [ %ind.end, %middle.block55 ]
  br label %.lr.ph40

vector.ph58:                                      ; preds = %.lr.ph40.preheader
  %n.vec60 = and i64 %60, 2147483640
  %ind.end = and i64 %60, 7
  br label %vector.body62

vector.body62:                                    ; preds = %vector.body62, %vector.ph58
  %index63 = phi i64 [ 0, %vector.ph58 ], [ %index.next69, %vector.body62 ]
  %offset.idx = sub i64 %60, %index63
  %61 = add nsw i64 %offset.idx, -1
  %62 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %61
  %63 = getelementptr inbounds i8, ptr %62, i64 -12
  %64 = getelementptr inbounds i8, ptr %62, i64 -28
  %wide.load64 = load <4 x float>, ptr %63, align 4, !tbaa !5
  %wide.load65 = load <4 x float>, ptr %64, align 4, !tbaa !5
  %65 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %offset.idx
  %66 = getelementptr inbounds i8, ptr %65, i64 -12
  %67 = getelementptr inbounds i8, ptr %65, i64 -28
  store <4 x float> %wide.load64, ptr %66, align 4, !tbaa !5
  store <4 x float> %wide.load65, ptr %67, align 4, !tbaa !5
  %index.next69 = add nuw i64 %index63, 8
  %68 = icmp eq i64 %index.next69, %n.vec60
  br i1 %68, label %middle.block55, label %vector.body62, !llvm.loop !21

middle.block55:                                   ; preds = %vector.body62
  %cmp.n70 = icmp eq i64 %n.vec60, %60
  br i1 %cmp.n70, label %._crit_edge41, label %.lr.ph40.preheader71

.lr.ph38:                                         ; preds = %.lr.ph38.prol.loopexit, %.lr.ph38
  %indvars.iv43 = phi i64 [ %indvars.iv.next44.1, %.lr.ph38 ], [ %indvars.iv43.unr, %.lr.ph38.prol.loopexit ]
  %69 = getelementptr inbounds float, ptr %2, i64 %indvars.iv43
  %70 = load float, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv43
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = tail call float @llvm.fmuladd.f32(float %43, float %72, float %70)
  store float %73, ptr %69, align 4, !tbaa !5
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %74 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next44
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv.next44
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = tail call float @llvm.fmuladd.f32(float %43, float %77, float %75)
  store float %78, ptr %74, align 4, !tbaa !5
  %indvars.iv.next44.1 = add nuw nsw i64 %indvars.iv43, 2
  %exitcond47.not.1 = icmp eq i64 %indvars.iv.next44.1, %wide.trip.count46
  br i1 %exitcond47.not.1, label %.preheader, label %.lr.ph38, !llvm.loop !22

.lr.ph40:                                         ; preds = %.lr.ph40.preheader71, %.lr.ph40
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %.lr.ph40 ], [ %indvars.iv48.ph, %.lr.ph40.preheader71 ]
  %indvars.iv.next49 = add nsw i64 %indvars.iv48, -1
  %79 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv.next49
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = getelementptr inbounds [51 x float], ptr @algorithm_lms1.px, i64 0, i64 %indvars.iv48
  store float %80, ptr %81, align 4, !tbaa !5
  %82 = icmp ugt i64 %indvars.iv48, 1
  br i1 %82, label %.lr.ph40, label %._crit_edge41, !llvm.loop !23

._crit_edge41:                                    ; preds = %.lr.ph40, %middle.block55, %._crit_edge, %.preheader
  ret float %.0.lcssa
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #2

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "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 speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !10, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !10, !19, !20}
!22 = distinct !{!22, !10, !19}
!23 = distinct !{!23, !10, !20, !19}


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