; LLVM IR from Tiramisu-Compiler/tiramisu :: benchmarks/linear_algebra/cg/waxpby.ll (Z12hpccg_waxpbyidPKddS0_Pd)

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z12hpccg_waxpbyidPKddS0_Pd(i32 noundef %0, double noundef %1, ptr noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !11
  store double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !11
  store ptr %5, ptr %12, align 8, !tbaa !11
  %16 = load double, ptr %8, align 8, !tbaa !9
  %17 = fcmp oeq double %16, 1.000000e+00
  br i1 %17, label %18, label %45

18:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %41, %18
  %20 = load i32, ptr %13, align 4, !tbaa !5
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %44

24:                                               ; preds = %19
  %25 = load ptr, ptr %9, align 8, !tbaa !11
  %26 = load i32, ptr %13, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds double, ptr %25, i64 %27
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = load double, ptr %10, align 8, !tbaa !9
  %31 = load ptr, ptr %11, align 8, !tbaa !11
  %32 = load i32, ptr %13, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %31, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = call double @llvm.fmuladd.f64(double %30, double %35, double %29)
  %37 = load ptr, ptr %12, align 8, !tbaa !11
  %38 = load i32, ptr %13, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %37, i64 %39
  store double %36, ptr %40, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %24
  %42 = load i32, ptr %13, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %13, align 4, !tbaa !5
  br label %19, !llvm.loop !13

44:                                               ; preds = %23
  br label %105

45:                                               ; preds = %6
  %46 = load double, ptr %10, align 8, !tbaa !9
  %47 = fcmp oeq double %46, 1.000000e+00
  br i1 %47, label %48, label %75

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %71, %48
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %74

54:                                               ; preds = %49
  %55 = load double, ptr %8, align 8, !tbaa !9
  %56 = load ptr, ptr %9, align 8, !tbaa !11
  %57 = load i32, ptr %14, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds double, ptr %56, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = load ptr, ptr %11, align 8, !tbaa !11
  %62 = load i32, ptr %14, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = call double @llvm.fmuladd.f64(double %55, double %60, double %65)
  %67 = load ptr, ptr %12, align 8, !tbaa !11
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %67, i64 %69
  store double %66, ptr %70, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %54
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %14, align 4, !tbaa !5
  br label %49, !llvm.loop !15

74:                                               ; preds = %53
  br label %104

75:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %100, %75
  %77 = load i32, ptr %15, align 4, !tbaa !5
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %103

81:                                               ; preds = %76
  %82 = load double, ptr %8, align 8, !tbaa !9
  %83 = load ptr, ptr %9, align 8, !tbaa !11
  %84 = load i32, ptr %15, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = load double, ptr %10, align 8, !tbaa !9
  %89 = load ptr, ptr %11, align 8, !tbaa !11
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = fmul double %88, %93
  %95 = call double @llvm.fmuladd.f64(double %82, double %87, double %94)
  %96 = load ptr, ptr %12, align 8, !tbaa !11
  %97 = load i32, ptr %15, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  store double %95, ptr %99, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %81
  %101 = load i32, ptr %15, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %15, align 4, !tbaa !5
  br label %76, !llvm.loop !16

103:                                              ; preds = %80
  br label %104

104:                                              ; preds = %103, %74
  br label %105

105:                                              ; preds = %104, %44
  ret i32 0
}

; 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 double @llvm.fmuladd.f64(double, double, double) #2

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

attributes #0 = { mustprogress 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !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"

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local noundef i32 @_Z12hpccg_waxpbyidPKddS0_Pd(i32 noundef %0, double noundef %1, ptr nocapture noundef readonly %2, double noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 {
  %7 = ptrtoint ptr %4 to i64
  %8 = ptrtoint ptr %2 to i64
  %9 = ptrtoint ptr %5 to i64
  %10 = ptrtoint ptr %4 to i64
  %11 = ptrtoint ptr %2 to i64
  %12 = ptrtoint ptr %5 to i64
  %13 = ptrtoint ptr %4 to i64
  %14 = ptrtoint ptr %2 to i64
  %15 = ptrtoint ptr %5 to i64
  %16 = fcmp oeq double %1, 1.000000e+00
  br i1 %16, label %.preheader, label %49

.preheader:                                       ; preds = %6
  %17 = icmp sgt i32 %0, 0
  br i1 %17, label %.lr.ph44.preheader, label %.loopexit

.lr.ph44.preheader:                               ; preds = %.preheader
  %wide.trip.count56 = zext nneg i32 %0 to i64
  %min.iters.check95 = icmp ult i32 %0, 6
  br i1 %min.iters.check95, label %.lr.ph44.preheader110, label %vector.memcheck89

vector.memcheck89:                                ; preds = %.lr.ph44.preheader
  %18 = sub i64 %9, %8
  %diff.check90 = icmp ult i64 %18, 32
  %19 = sub i64 %9, %7
  %diff.check91 = icmp ult i64 %19, 32
  %conflict.rdx92 = or i1 %diff.check90, %diff.check91
  br i1 %conflict.rdx92, label %.lr.ph44.preheader110, label %vector.ph96

vector.ph96:                                      ; preds = %vector.memcheck89
  %n.vec98 = and i64 %wide.trip.count56, 2147483644
  %broadcast.splatinsert106 = insertelement <2 x double> poison, double %3, i64 0
  %broadcast.splat107 = shufflevector <2 x double> %broadcast.splatinsert106, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body100

vector.body100:                                   ; preds = %vector.body100, %vector.ph96
  %index101 = phi i64 [ 0, %vector.ph96 ], [ %index.next108, %vector.body100 ]
  %20 = getelementptr inbounds double, ptr %2, i64 %index101
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %wide.load102 = load <2 x double>, ptr %20, align 8, !tbaa !5
  %wide.load103 = load <2 x double>, ptr %21, align 8, !tbaa !5
  %22 = getelementptr inbounds double, ptr %4, i64 %index101
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %wide.load104 = load <2 x double>, ptr %22, align 8, !tbaa !5
  %wide.load105 = load <2 x double>, ptr %23, align 8, !tbaa !5
  %24 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat107, <2 x double> %wide.load104, <2 x double> %wide.load102)
  %25 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat107, <2 x double> %wide.load105, <2 x double> %wide.load103)
  %26 = getelementptr inbounds double, ptr %5, i64 %index101
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  store <2 x double> %24, ptr %26, align 8, !tbaa !5
  store <2 x double> %25, ptr %27, align 8, !tbaa !5
  %index.next108 = add nuw i64 %index101, 4
  %28 = icmp eq i64 %index.next108, %n.vec98
  br i1 %28, label %middle.block93, label %vector.body100, !llvm.loop !9

middle.block93:                                   ; preds = %vector.body100
  %cmp.n109 = icmp eq i64 %n.vec98, %wide.trip.count56
  br i1 %cmp.n109, label %.loopexit, label %.lr.ph44.preheader110

.lr.ph44.preheader110:                            ; preds = %middle.block93, %vector.memcheck89, %.lr.ph44.preheader
  %indvars.iv53.ph = phi i64 [ 0, %vector.memcheck89 ], [ 0, %.lr.ph44.preheader ], [ %n.vec98, %middle.block93 ]
  %xtraiter117 = and i64 %wide.trip.count56, 1
  %lcmp.mod118.not = icmp eq i64 %xtraiter117, 0
  br i1 %lcmp.mod118.not, label %.lr.ph44.prol.loopexit, label %.lr.ph44.prol

.lr.ph44.prol:                                    ; preds = %.lr.ph44.preheader110
  %29 = getelementptr inbounds double, ptr %2, i64 %indvars.iv53.ph
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %4, i64 %indvars.iv53.ph
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = tail call double @llvm.fmuladd.f64(double %3, double %32, double %30)
  %34 = getelementptr inbounds double, ptr %5, i64 %indvars.iv53.ph
  store double %33, ptr %34, align 8, !tbaa !5
  %indvars.iv.next54.prol = or disjoint i64 %indvars.iv53.ph, 1
  br label %.lr.ph44.prol.loopexit

.lr.ph44.prol.loopexit:                           ; preds = %.lr.ph44.prol, %.lr.ph44.preheader110
  %indvars.iv53.unr = phi i64 [ %indvars.iv53.ph, %.lr.ph44.preheader110 ], [ %indvars.iv.next54.prol, %.lr.ph44.prol ]
  %35 = add nsw i64 %wide.trip.count56, -1
  %36 = icmp eq i64 %indvars.iv53.ph, %35
  br i1 %36, label %.loopexit, label %.lr.ph44

.lr.ph44:                                         ; preds = %.lr.ph44.prol.loopexit, %.lr.ph44
  %indvars.iv53 = phi i64 [ %indvars.iv.next54.1, %.lr.ph44 ], [ %indvars.iv53.unr, %.lr.ph44.prol.loopexit ]
  %37 = getelementptr inbounds double, ptr %2, i64 %indvars.iv53
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %4, i64 %indvars.iv53
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = tail call double @llvm.fmuladd.f64(double %3, double %40, double %38)
  %42 = getelementptr inbounds double, ptr %5, i64 %indvars.iv53
  store double %41, ptr %42, align 8, !tbaa !5
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %43 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next54
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next54
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = tail call double @llvm.fmuladd.f64(double %3, double %46, double %44)
  %48 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next54
  store double %47, ptr %48, align 8, !tbaa !5
  %indvars.iv.next54.1 = add nuw nsw i64 %indvars.iv53, 2
  %exitcond57.not.1 = icmp eq i64 %indvars.iv.next54.1, %wide.trip.count56
  br i1 %exitcond57.not.1, label %.loopexit, label %.lr.ph44, !llvm.loop !13

49:                                               ; preds = %6
  %50 = fcmp oeq double %3, 1.000000e+00
  %51 = icmp sgt i32 %0, 0
  br i1 %50, label %.preheader36, label %.preheader38

.preheader38:                                     ; preds = %49
  br i1 %51, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader38
  %wide.trip.count = zext nneg i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 6
  br i1 %min.iters.check, label %.lr.ph.preheader113, label %vector.memcheck

.lr.ph.preheader113:                              ; 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.preheader113
  %52 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.ph
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.ph
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = fmul double %55, %3
  %57 = tail call double @llvm.fmuladd.f64(double %1, double %53, double %56)
  %58 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.ph
  store double %57, ptr %58, align 8, !tbaa !5
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %.lr.ph.prol.loopexit

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

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %61 = sub i64 %15, %14
  %diff.check = icmp ult i64 %61, 32
  %62 = sub i64 %15, %13
  %diff.check62 = icmp ult i64 %62, 32
  %conflict.rdx = or i1 %diff.check, %diff.check62
  br i1 %conflict.rdx, label %.lr.ph.preheader113, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %3, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert66 = insertelement <2 x double> poison, double %1, i64 0
  %broadcast.splat67 = shufflevector <2 x double> %broadcast.splatinsert66, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %63 = getelementptr inbounds double, ptr %2, i64 %index
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %wide.load = load <2 x double>, ptr %63, align 8, !tbaa !5
  %wide.load63 = load <2 x double>, ptr %64, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %4, i64 %index
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %wide.load64 = load <2 x double>, ptr %65, align 8, !tbaa !5
  %wide.load65 = load <2 x double>, ptr %66, align 8, !tbaa !5
  %67 = fmul <2 x double> %wide.load64, %broadcast.splat
  %68 = fmul <2 x double> %wide.load65, %broadcast.splat
  %69 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat67, <2 x double> %wide.load, <2 x double> %67)
  %70 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat67, <2 x double> %wide.load63, <2 x double> %68)
  %71 = getelementptr inbounds double, ptr %5, i64 %index
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  store <2 x double> %69, ptr %71, align 8, !tbaa !5
  store <2 x double> %70, ptr %72, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %73 = icmp eq i64 %index.next, %n.vec
  br i1 %73, label %middle.block, label %vector.body, !llvm.loop !14

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

.preheader36:                                     ; preds = %49
  br i1 %51, label %.lr.ph42.preheader, label %.loopexit

.lr.ph42.preheader:                               ; preds = %.preheader36
  %wide.trip.count51 = zext nneg i32 %0 to i64
  %min.iters.check74 = icmp ult i32 %0, 6
  br i1 %min.iters.check74, label %.lr.ph42.preheader111, label %vector.memcheck68

vector.memcheck68:                                ; preds = %.lr.ph42.preheader
  %74 = sub i64 %12, %11
  %diff.check69 = icmp ult i64 %74, 32
  %75 = sub i64 %12, %10
  %diff.check70 = icmp ult i64 %75, 32
  %conflict.rdx71 = or i1 %diff.check69, %diff.check70
  br i1 %conflict.rdx71, label %.lr.ph42.preheader111, label %vector.ph75

vector.ph75:                                      ; preds = %vector.memcheck68
  %n.vec77 = and i64 %wide.trip.count51, 2147483644
  %broadcast.splatinsert85 = insertelement <2 x double> poison, double %1, i64 0
  %broadcast.splat86 = shufflevector <2 x double> %broadcast.splatinsert85, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body79

vector.body79:                                    ; preds = %vector.body79, %vector.ph75
  %index80 = phi i64 [ 0, %vector.ph75 ], [ %index.next87, %vector.body79 ]
  %76 = getelementptr inbounds double, ptr %2, i64 %index80
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %wide.load81 = load <2 x double>, ptr %76, align 8, !tbaa !5
  %wide.load82 = load <2 x double>, ptr %77, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %4, i64 %index80
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  %wide.load83 = load <2 x double>, ptr %78, align 8, !tbaa !5
  %wide.load84 = load <2 x double>, ptr %79, align 8, !tbaa !5
  %80 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat86, <2 x double> %wide.load81, <2 x double> %wide.load83)
  %81 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat86, <2 x double> %wide.load82, <2 x double> %wide.load84)
  %82 = getelementptr inbounds double, ptr %5, i64 %index80
  %83 = getelementptr inbounds i8, ptr %82, i64 16
  store <2 x double> %80, ptr %82, align 8, !tbaa !5
  store <2 x double> %81, ptr %83, align 8, !tbaa !5
  %index.next87 = add nuw i64 %index80, 4
  %84 = icmp eq i64 %index.next87, %n.vec77
  br i1 %84, label %middle.block72, label %vector.body79, !llvm.loop !15

middle.block72:                                   ; preds = %vector.body79
  %cmp.n88 = icmp eq i64 %n.vec77, %wide.trip.count51
  br i1 %cmp.n88, label %.loopexit, label %.lr.ph42.preheader111

.lr.ph42.preheader111:                            ; preds = %middle.block72, %vector.memcheck68, %.lr.ph42.preheader
  %indvars.iv48.ph = phi i64 [ 0, %vector.memcheck68 ], [ 0, %.lr.ph42.preheader ], [ %n.vec77, %middle.block72 ]
  %xtraiter115 = and i64 %wide.trip.count51, 1
  %lcmp.mod116.not = icmp eq i64 %xtraiter115, 0
  br i1 %lcmp.mod116.not, label %.lr.ph42.prol.loopexit, label %.lr.ph42.prol

.lr.ph42.prol:                                    ; preds = %.lr.ph42.preheader111
  %85 = getelementptr inbounds double, ptr %2, i64 %indvars.iv48.ph
  %86 = load double, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %4, i64 %indvars.iv48.ph
  %88 = load double, ptr %87, align 8, !tbaa !5
  %89 = tail call double @llvm.fmuladd.f64(double %1, double %86, double %88)
  %90 = getelementptr inbounds double, ptr %5, i64 %indvars.iv48.ph
  store double %89, ptr %90, align 8, !tbaa !5
  %indvars.iv.next49.prol = or disjoint i64 %indvars.iv48.ph, 1
  br label %.lr.ph42.prol.loopexit

.lr.ph42.prol.loopexit:                           ; preds = %.lr.ph42.prol, %.lr.ph42.preheader111
  %indvars.iv48.unr = phi i64 [ %indvars.iv48.ph, %.lr.ph42.preheader111 ], [ %indvars.iv.next49.prol, %.lr.ph42.prol ]
  %91 = add nsw i64 %wide.trip.count51, -1
  %92 = icmp eq i64 %indvars.iv48.ph, %91
  br i1 %92, label %.loopexit, label %.lr.ph42

.lr.ph42:                                         ; preds = %.lr.ph42.prol.loopexit, %.lr.ph42
  %indvars.iv48 = phi i64 [ %indvars.iv.next49.1, %.lr.ph42 ], [ %indvars.iv48.unr, %.lr.ph42.prol.loopexit ]
  %93 = getelementptr inbounds double, ptr %2, i64 %indvars.iv48
  %94 = load double, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %4, i64 %indvars.iv48
  %96 = load double, ptr %95, align 8, !tbaa !5
  %97 = tail call double @llvm.fmuladd.f64(double %1, double %94, double %96)
  %98 = getelementptr inbounds double, ptr %5, i64 %indvars.iv48
  store double %97, ptr %98, align 8, !tbaa !5
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %99 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next49
  %100 = load double, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next49
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = tail call double @llvm.fmuladd.f64(double %1, double %100, double %102)
  %104 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next49
  store double %103, ptr %104, align 8, !tbaa !5
  %indvars.iv.next49.1 = add nuw nsw i64 %indvars.iv48, 2
  %exitcond52.not.1 = icmp eq i64 %indvars.iv.next49.1, %wide.trip.count51
  br i1 %exitcond52.not.1, label %.loopexit, label %.lr.ph42, !llvm.loop !16

.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 ]
  %105 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  %108 = load double, ptr %107, align 8, !tbaa !5
  %109 = fmul double %108, %3
  %110 = tail call double @llvm.fmuladd.f64(double %1, double %106, double %109)
  %111 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  store double %110, ptr %111, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %112 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next
  %113 = load double, ptr %112, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next
  %115 = load double, ptr %114, align 8, !tbaa !5
  %116 = fmul double %115, %3
  %117 = tail call double @llvm.fmuladd.f64(double %1, double %113, double %116)
  %118 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next
  store double %117, ptr %118, align 8, !tbaa !5
  %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 %.loopexit, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph42.prol.loopexit, %.lr.ph42, %.lr.ph44.prol.loopexit, %.lr.ph44, %middle.block, %middle.block72, %middle.block93, %.preheader38, %.preheader36, %.preheader
  ret i32 0
}

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

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

attributes #0 = { mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !11}
!17 = distinct !{!17, !10, !11}


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