; LLVM IR from cvra/robot-software :: lib/filter (iir)

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

; Function Attrs: nounwind uwtable
define dso_local float @filter_iir_apply(ptr noundef %0, float noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.filter_iir_t, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = getelementptr inbounds float, ptr %10, i64 0
  %12 = load float, ptr %11, align 4, !tbaa !9
  %13 = load float, ptr %4, align 4, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.filter_iir_t, ptr %14, i32 0, i32 3
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds float, ptr %16, i64 0
  %18 = load float, ptr %17, align 4, !tbaa !9
  %19 = call float @llvm.fmuladd.f32(float %12, float %13, float %18)
  store float %19, ptr %5, align 4, !tbaa !9
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.filter_iir_t, ptr %20, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %81

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !16
  br label %25

25:                                               ; preds = %57, %24
  %26 = load i32, ptr %6, align 4, !tbaa !16
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.filter_iir_t, ptr %27, i32 0, i32 2
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %30 = sub nsw i32 %29, 1
  %31 = icmp slt i32 %26, %30
  br i1 %31, label %32, label %60

32:                                               ; preds = %25
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.filter_iir_t, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = load i32, ptr %6, align 4, !tbaa !16
  %37 = add nsw i32 %36, 1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds float, ptr %35, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !9
  %41 = load float, ptr %4, align 4, !tbaa !9
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.filter_iir_t, ptr %42, i32 0, i32 3
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  %45 = load i32, ptr %6, align 4, !tbaa !16
  %46 = add nsw i32 %45, 1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds float, ptr %44, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = call float @llvm.fmuladd.f32(float %40, float %41, float %49)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.filter_iir_t, ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = load i32, ptr %6, align 4, !tbaa !16
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds float, ptr %53, i64 %55
  store float %50, ptr %56, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %32
  %58 = load i32, ptr %6, align 4, !tbaa !16
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %6, align 4, !tbaa !16
  br label %25, !llvm.loop !18

60:                                               ; preds = %25
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.filter_iir_t, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.filter_iir_t, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 8, !tbaa !17
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %63, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = load float, ptr %4, align 4, !tbaa !9
  %71 = fmul float %69, %70
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.filter_iir_t, ptr %72, i32 0, i32 3
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.filter_iir_t, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !17
  %78 = sub nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %74, i64 %79
  store float %71, ptr %80, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %162

81:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !16
  br label %82

82:                                               ; preds = %125, %81
  %83 = load i32, ptr %7, align 4, !tbaa !16
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.filter_iir_t, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %85, align 8, !tbaa !17
  %87 = sub nsw i32 %86, 1
  %88 = icmp slt i32 %83, %87
  br i1 %88, label %89, label %128

89:                                               ; preds = %82
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.filter_iir_t, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = load i32, ptr %7, align 4, !tbaa !16
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %92, i64 %95
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = load float, ptr %4, align 4, !tbaa !9
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.filter_iir_t, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = load i32, ptr %7, align 4, !tbaa !16
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds float, ptr %101, i64 %103
  %105 = load float, ptr %104, align 4, !tbaa !9
  %106 = load float, ptr %5, align 4, !tbaa !9
  %107 = fmul float %105, %106
  %108 = fneg float %107
  %109 = call float @llvm.fmuladd.f32(float %97, float %98, float %108)
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.filter_iir_t, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !14
  %113 = load i32, ptr %7, align 4, !tbaa !16
  %114 = add nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %112, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !9
  %118 = fadd float %109, %117
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.filter_iir_t, ptr %119, i32 0, i32 3
  %121 = load ptr, ptr %120, align 8, !tbaa !14
  %122 = load i32, ptr %7, align 4, !tbaa !16
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds float, ptr %121, i64 %123
  store float %118, ptr %124, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %89
  %126 = load i32, ptr %7, align 4, !tbaa !16
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %7, align 4, !tbaa !16
  br label %82, !llvm.loop !20

128:                                              ; preds = %82
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.filter_iir_t, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.filter_iir_t, ptr %132, i32 0, i32 2
  %134 = load i32, ptr %133, align 8, !tbaa !17
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %131, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !9
  %138 = load float, ptr %4, align 4, !tbaa !9
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.filter_iir_t, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !15
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.filter_iir_t, ptr %142, i32 0, i32 2
  %144 = load i32, ptr %143, align 8, !tbaa !17
  %145 = sub nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds float, ptr %141, i64 %146
  %148 = load float, ptr %147, align 4, !tbaa !9
  %149 = load float, ptr %5, align 4, !tbaa !9
  %150 = fmul float %148, %149
  %151 = fneg float %150
  %152 = call float @llvm.fmuladd.f32(float %137, float %138, float %151)
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.filter_iir_t, ptr %153, i32 0, i32 3
  %155 = load ptr, ptr %154, align 8, !tbaa !14
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.filter_iir_t, ptr %156, i32 0, i32 2
  %158 = load i32, ptr %157, align 8, !tbaa !17
  %159 = sub nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %155, i64 %160
  store float %152, ptr %161, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %162

162:                                              ; preds = %128, %60
  %163 = load float, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret float %163
}

; 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 = !{!"any pointer", !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, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 8, !13, i64 16, !6, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 24}
!15 = !{!12, !6, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !13, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local float @filter_iir_apply(ptr nocapture noundef readonly %0, float noundef %1) local_unnamed_addr #0 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = load float, ptr %3, align 4, !tbaa !11
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = load float, ptr %6, align 4, !tbaa !11
  %8 = tail call float @llvm.fmuladd.f32(float %4, float %1, float %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = icmp eq ptr %10, null
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %14 = add i32 %13, -1
  %15 = icmp sgt i32 %13, 1
  br i1 %11, label %.preheader, label %.preheader43

.preheader43:                                     ; preds = %2
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader43
  %wide.trip.count = zext i32 %14 to i64
  %min.iters.check = icmp ult i32 %13, 9
  br i1 %min.iters.check, label %.lr.ph.preheader100, label %vector.memcheck

.lr.ph.preheader100:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader100
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  %16 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next.prol
  %17 = load float, ptr %16, align 4, !tbaa !11
  %18 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.ph
  %19 = load float, ptr %18, align 4, !tbaa !11
  %20 = fneg float %19
  %21 = fmul float %8, %20
  %22 = tail call float @llvm.fmuladd.f32(float %17, float %1, float %21)
  %23 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next.prol
  %24 = load float, ptr %23, align 4, !tbaa !11
  %25 = fadd float %24, %22
  %26 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.ph
  store float %25, ptr %26, align 4, !tbaa !11
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader100
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader100 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %27 = add nsw i64 %wide.trip.count, -1
  %28 = icmp eq i64 %indvars.iv.ph, %27
  br i1 %28, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %29 = shl nuw nsw i64 %wide.trip.count, 2
  %30 = add nuw nsw i64 %29, 4
  %scevgep = getelementptr i8, ptr %6, i64 %30
  %scevgep62 = getelementptr i8, ptr %3, i64 4
  %scevgep63 = getelementptr i8, ptr %3, i64 %30
  %scevgep64 = getelementptr i8, ptr %10, i64 %29
  %bound0 = icmp ult ptr %6, %scevgep63
  %bound1 = icmp ult ptr %scevgep62, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound065 = icmp ult ptr %6, %scevgep64
  %bound166 = icmp ult ptr %10, %scevgep
  %found.conflict67 = and i1 %bound065, %bound166
  %conflict.rdx = or i1 %found.conflict, %found.conflict67
  br i1 %conflict.rdx, label %.lr.ph.preheader100, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert = insertelement <4 x float> poison, float %8, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert71 = insertelement <4 x float> poison, float %1, i64 0
  %broadcast.splat72 = shufflevector <4 x float> %broadcast.splatinsert71, <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 ]
  %31 = or disjoint i64 %index, 1
  %32 = getelementptr inbounds float, ptr %3, i64 %31
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %wide.load = load <4 x float>, ptr %32, align 4, !tbaa !11, !alias.scope !16
  %wide.load68 = load <4 x float>, ptr %33, align 4, !tbaa !11, !alias.scope !16
  %34 = getelementptr inbounds float, ptr %10, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %wide.load69 = load <4 x float>, ptr %34, align 4, !tbaa !11, !alias.scope !19
  %wide.load70 = load <4 x float>, ptr %35, align 4, !tbaa !11, !alias.scope !19
  %36 = fneg <4 x float> %wide.load69
  %37 = fneg <4 x float> %wide.load70
  %38 = fmul <4 x float> %broadcast.splat, %36
  %39 = fmul <4 x float> %broadcast.splat, %37
  %40 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load, <4 x float> %broadcast.splat72, <4 x float> %38)
  %41 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load68, <4 x float> %broadcast.splat72, <4 x float> %39)
  %42 = getelementptr inbounds float, ptr %6, i64 %31
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %wide.load73 = load <4 x float>, ptr %42, align 4, !tbaa !11, !alias.scope !21, !noalias !23
  %wide.load74 = load <4 x float>, ptr %43, align 4, !tbaa !11, !alias.scope !21, !noalias !23
  %44 = fadd <4 x float> %wide.load73, %40
  %45 = fadd <4 x float> %wide.load74, %41
  %46 = getelementptr inbounds float, ptr %6, i64 %index
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store <4 x float> %44, ptr %46, align 4, !tbaa !11, !alias.scope !21, !noalias !23
  store <4 x float> %45, ptr %47, align 4, !tbaa !11, !alias.scope !21, !noalias !23
  %index.next = add nuw i64 %index, 8
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader100

.preheader:                                       ; preds = %2
  br i1 %15, label %.lr.ph50.preheader, label %._crit_edge51

.lr.ph50.preheader:                               ; preds = %.preheader
  %wide.trip.count58 = zext i32 %14 to i64
  %min.iters.check84 = icmp ult i32 %13, 9
  br i1 %min.iters.check84, label %.lr.ph50.preheader99, label %vector.memcheck75

vector.memcheck75:                                ; preds = %.lr.ph50.preheader
  %49 = shl nuw nsw i64 %wide.trip.count58, 2
  %50 = add nuw nsw i64 %49, 4
  %scevgep76 = getelementptr i8, ptr %6, i64 %50
  %scevgep77 = getelementptr i8, ptr %3, i64 4
  %scevgep78 = getelementptr i8, ptr %3, i64 %50
  %bound079 = icmp ult ptr %6, %scevgep78
  %bound180 = icmp ult ptr %scevgep77, %scevgep76
  %found.conflict81 = and i1 %bound079, %bound180
  br i1 %found.conflict81, label %.lr.ph50.preheader99, label %vector.ph85

vector.ph85:                                      ; preds = %vector.memcheck75
  %n.vec87 = and i64 %wide.trip.count58, 2147483640
  %broadcast.splatinsert95 = insertelement <4 x float> poison, float %1, i64 0
  %broadcast.splat96 = shufflevector <4 x float> %broadcast.splatinsert95, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body89

vector.body89:                                    ; preds = %vector.body89, %vector.ph85
  %index90 = phi i64 [ 0, %vector.ph85 ], [ %index.next97, %vector.body89 ]
  %51 = or disjoint i64 %index90, 1
  %52 = getelementptr inbounds float, ptr %3, i64 %51
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %wide.load91 = load <4 x float>, ptr %52, align 4, !tbaa !11, !alias.scope !28
  %wide.load92 = load <4 x float>, ptr %53, align 4, !tbaa !11, !alias.scope !28
  %54 = getelementptr inbounds float, ptr %6, i64 %51
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %wide.load93 = load <4 x float>, ptr %54, align 4, !tbaa !11, !alias.scope !31, !noalias !28
  %wide.load94 = load <4 x float>, ptr %55, align 4, !tbaa !11, !alias.scope !31, !noalias !28
  %56 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load91, <4 x float> %broadcast.splat96, <4 x float> %wide.load93)
  %57 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load92, <4 x float> %broadcast.splat96, <4 x float> %wide.load94)
  %58 = getelementptr inbounds float, ptr %6, i64 %index90
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  store <4 x float> %56, ptr %58, align 4, !tbaa !11, !alias.scope !31, !noalias !28
  store <4 x float> %57, ptr %59, align 4, !tbaa !11, !alias.scope !31, !noalias !28
  %index.next97 = add nuw i64 %index90, 8
  %60 = icmp eq i64 %index.next97, %n.vec87
  br i1 %60, label %middle.block82, label %vector.body89, !llvm.loop !33

middle.block82:                                   ; preds = %vector.body89
  %cmp.n98 = icmp eq i64 %n.vec87, %wide.trip.count58
  br i1 %cmp.n98, label %._crit_edge51, label %.lr.ph50.preheader99

.lr.ph50.preheader99:                             ; preds = %middle.block82, %vector.memcheck75, %.lr.ph50.preheader
  %indvars.iv55.ph = phi i64 [ 0, %vector.memcheck75 ], [ 0, %.lr.ph50.preheader ], [ %n.vec87, %middle.block82 ]
  %xtraiter101 = and i64 %wide.trip.count58, 1
  %lcmp.mod102.not = icmp eq i64 %xtraiter101, 0
  br i1 %lcmp.mod102.not, label %.lr.ph50.prol.loopexit, label %.lr.ph50.prol

.lr.ph50.prol:                                    ; preds = %.lr.ph50.preheader99
  %indvars.iv.next56.prol = or disjoint i64 %indvars.iv55.ph, 1
  %61 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next56.prol
  %62 = load float, ptr %61, align 4, !tbaa !11
  %63 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next56.prol
  %64 = load float, ptr %63, align 4, !tbaa !11
  %65 = tail call float @llvm.fmuladd.f32(float %62, float %1, float %64)
  %66 = getelementptr inbounds float, ptr %6, i64 %indvars.iv55.ph
  store float %65, ptr %66, align 4, !tbaa !11
  br label %.lr.ph50.prol.loopexit

.lr.ph50.prol.loopexit:                           ; preds = %.lr.ph50.prol, %.lr.ph50.preheader99
  %indvars.iv55.unr = phi i64 [ %indvars.iv55.ph, %.lr.ph50.preheader99 ], [ %indvars.iv.next56.prol, %.lr.ph50.prol ]
  %67 = add nsw i64 %wide.trip.count58, -1
  %68 = icmp eq i64 %indvars.iv55.ph, %67
  br i1 %68, label %._crit_edge51, label %.lr.ph50

.lr.ph50:                                         ; preds = %.lr.ph50.prol.loopexit, %.lr.ph50
  %indvars.iv55 = phi i64 [ %indvars.iv.next56.1, %.lr.ph50 ], [ %indvars.iv55.unr, %.lr.ph50.prol.loopexit ]
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %69 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next56
  %70 = load float, ptr %69, align 4, !tbaa !11
  %71 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next56
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = tail call float @llvm.fmuladd.f32(float %70, float %1, float %72)
  %74 = getelementptr inbounds float, ptr %6, i64 %indvars.iv55
  store float %73, ptr %74, align 4, !tbaa !11
  %indvars.iv.next56.1 = add nuw nsw i64 %indvars.iv55, 2
  %75 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next56.1
  %76 = load float, ptr %75, align 4, !tbaa !11
  %77 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next56.1
  %78 = load float, ptr %77, align 4, !tbaa !11
  %79 = tail call float @llvm.fmuladd.f32(float %76, float %1, float %78)
  %80 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next56
  store float %79, ptr %80, align 4, !tbaa !11
  %exitcond59.not.1 = icmp eq i64 %indvars.iv.next56.1, %wide.trip.count58
  br i1 %exitcond59.not.1, label %._crit_edge51, label %.lr.ph50, !llvm.loop !34

._crit_edge51:                                    ; preds = %.lr.ph50.prol.loopexit, %.lr.ph50, %middle.block82, %.preheader
  %81 = sext i32 %13 to i64
  %82 = getelementptr inbounds float, ptr %3, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !11
  %84 = fmul float %83, %1
  %85 = sext i32 %14 to i64
  br label %117

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = getelementptr inbounds float, ptr %10, i64 %indvars.iv
  %89 = load float, ptr %88, align 4, !tbaa !11
  %90 = fneg float %89
  %91 = fmul float %8, %90
  %92 = tail call float @llvm.fmuladd.f32(float %87, float %1, float %91)
  %93 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next
  %94 = load float, ptr %93, align 4, !tbaa !11
  %95 = fadd float %94, %92
  %96 = getelementptr inbounds float, ptr %6, i64 %indvars.iv
  store float %95, ptr %96, align 4, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %97 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.next.1
  %98 = load float, ptr %97, align 4, !tbaa !11
  %99 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = fneg float %100
  %102 = fmul float %8, %101
  %103 = tail call float @llvm.fmuladd.f32(float %98, float %1, float %102)
  %104 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next.1
  %105 = load float, ptr %104, align 4, !tbaa !11
  %106 = fadd float %105, %103
  %107 = getelementptr inbounds float, ptr %6, i64 %indvars.iv.next
  store float %106, ptr %107, align 4, !tbaa !11
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph, !llvm.loop !35

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %.preheader43
  %108 = sext i32 %13 to i64
  %109 = getelementptr inbounds float, ptr %3, i64 %108
  %110 = load float, ptr %109, align 4, !tbaa !11
  %111 = sext i32 %14 to i64
  %112 = getelementptr inbounds float, ptr %10, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = fneg float %113
  %115 = fmul float %8, %114
  %116 = tail call float @llvm.fmuladd.f32(float %110, float %1, float %115)
  br label %117

117:                                              ; preds = %._crit_edge, %._crit_edge51
  %.sink61 = phi i64 [ %111, %._crit_edge ], [ %85, %._crit_edge51 ]
  %.sink = phi float [ %116, %._crit_edge ], [ %84, %._crit_edge51 ]
  %118 = getelementptr inbounds float, ptr %6, i64 %.sink61
  store float %.sink, ptr %118, align 4, !tbaa !11
  ret float %8
}

; 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !10, i64 16}
!16 = !{!17}
!17 = distinct !{!17, !18}
!18 = distinct !{!18, !"LVerDomain"}
!19 = !{!20}
!20 = distinct !{!20, !18}
!21 = !{!22}
!22 = distinct !{!22, !18}
!23 = !{!17, !20}
!24 = distinct !{!24, !25, !26, !27}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = !{!29}
!29 = distinct !{!29, !30}
!30 = distinct !{!30, !"LVerDomain"}
!31 = !{!32}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !25, !26, !27}
!34 = distinct !{!34, !25, !26}
!35 = distinct !{!35, !25, !26}


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