; LLVM IR from codee-com/open-catalog :: Checks/PWR022 (solution)

; 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: nounwind uwtable
define dso_local void @solution(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %63, %5
  %18 = load i32, ptr %11, align 4, !tbaa !5
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %66

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

23:                                               ; preds = %59, %22
  %24 = load i32, ptr %13, align 4, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %62

28:                                               ; preds = %23
  %29 = load ptr, ptr %8, align 8, !tbaa !9
  %30 = load i32, ptr %11, align 4, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = mul nsw i32 %30, %31
  %33 = load i32, ptr %13, align 4, !tbaa !5
  %34 = add nsw i32 %32, %33
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %29, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !11
  %38 = load ptr, ptr %7, align 8, !tbaa !9
  %39 = getelementptr inbounds double, ptr %38, i64 0
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = load ptr, ptr %9, align 8, !tbaa !9
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = mul nsw i32 %42, %43
  %45 = load i32, ptr %13, align 4, !tbaa !5
  %46 = add nsw i32 %44, %45
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %41, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !11
  %50 = call double @llvm.fmuladd.f64(double %40, double %49, double %37)
  %51 = load ptr, ptr %10, align 8, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !5
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = mul nsw i32 %52, %53
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = add nsw i32 %54, %55
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %51, i64 %57
  store double %50, ptr %58, align 8, !tbaa !11
  br label %59

59:                                               ; preds = %28
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %13, align 4, !tbaa !5
  br label %23, !llvm.loop !13

62:                                               ; preds = %27
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %11, align 4, !tbaa !5
  br label %17, !llvm.loop !15

66:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %131, %66
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %134

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

73:                                               ; preds = %127, %72
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %130

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %123, %78
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %126

84:                                               ; preds = %79
  %85 = load ptr, ptr %10, align 8, !tbaa !9
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = mul nsw i32 %86, %87
  %89 = load i32, ptr %16, align 4, !tbaa !5
  %90 = add nsw i32 %88, %89
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %85, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = load ptr, ptr %7, align 8, !tbaa !9
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = load ptr, ptr %9, align 8, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = mul nsw i32 %100, %101
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = mul nsw i32 %102, %103
  %105 = load i32, ptr %15, align 4, !tbaa !5
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = mul nsw i32 %105, %106
  %108 = add nsw i32 %104, %107
  %109 = load i32, ptr %16, align 4, !tbaa !5
  %110 = add nsw i32 %108, %109
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %99, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = call double @llvm.fmuladd.f64(double %98, double %113, double %93)
  %115 = load ptr, ptr %10, align 8, !tbaa !9
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = mul nsw i32 %116, %117
  %119 = load i32, ptr %16, align 4, !tbaa !5
  %120 = add nsw i32 %118, %119
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %115, i64 %121
  store double %114, ptr %122, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %84
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %16, align 4, !tbaa !5
  br label %79, !llvm.loop !16

126:                                              ; preds = %83
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %15, align 4, !tbaa !5
  br label %73, !llvm.loop !17

130:                                              ; preds = %77
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %14, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %14, align 4, !tbaa !5
  br label %67, !llvm.loop !18

134:                                              ; preds = %71
  ret void
}

; 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @solution(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = icmp sgt i32 %0, 0
  br i1 %6, label %.preheader51.us.preheader, label %._crit_edge

.preheader51.us.preheader:                        ; preds = %5
  %7 = zext nneg i32 %0 to i64
  %8 = mul nuw nsw i64 %7, %7
  %9 = shl i64 %8, 3
  %scevgep = getelementptr i8, ptr %4, i64 %9
  %scevgep82 = getelementptr i8, ptr %2, i64 %9
  %scevgep83 = getelementptr i8, ptr %1, i64 8
  %scevgep84 = getelementptr i8, ptr %3, i64 %9
  %min.iters.check = icmp ult i32 %0, 6
  %bound0 = icmp ugt ptr %scevgep82, %4
  %bound1 = icmp ugt ptr %scevgep, %2
  %found.conflict = and i1 %bound0, %bound1
  %bound085 = icmp ugt ptr %scevgep83, %4
  %bound186 = icmp ugt ptr %scevgep, %1
  %found.conflict87 = and i1 %bound085, %bound186
  %conflict.rdx = or i1 %found.conflict, %found.conflict87
  %bound088 = icmp ugt ptr %scevgep84, %4
  %bound189 = icmp ugt ptr %scevgep, %3
  %found.conflict90 = and i1 %bound088, %bound189
  %conflict.rdx91 = or i1 %conflict.rdx, %found.conflict90
  %n.vec = and i64 %7, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %7
  %xtraiter = and i64 %7, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %10 = add nsw i64 %7, -1
  br label %.preheader51.us

.preheader51.us:                                  ; preds = %.preheader51.us.preheader, %._crit_edge.us
  %indvars.iv60 = phi i64 [ 0, %.preheader51.us.preheader ], [ %indvars.iv.next61, %._crit_edge.us ]
  %11 = mul nuw nsw i64 %indvars.iv60, %7
  %brmerge = select i1 %min.iters.check, i1 true, i1 %conflict.rdx91
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader51.us
  %12 = load double, ptr %1, align 8, !tbaa !5, !alias.scope !9
  %broadcast.splatinsert95 = insertelement <2 x double> poison, double %12, i64 0
  %broadcast.splat96 = shufflevector <2 x double> %broadcast.splatinsert95, <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 ]
  %13 = add nuw nsw i64 %index, %11
  %14 = getelementptr inbounds double, ptr %2, i64 %13
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load = load <2 x double>, ptr %14, align 8, !tbaa !5, !alias.scope !12
  %wide.load92 = load <2 x double>, ptr %15, align 8, !tbaa !5, !alias.scope !12
  %16 = getelementptr inbounds double, ptr %3, i64 %13
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %wide.load93 = load <2 x double>, ptr %16, align 8, !tbaa !5, !alias.scope !14
  %wide.load94 = load <2 x double>, ptr %17, align 8, !tbaa !5, !alias.scope !14
  %18 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat96, <2 x double> %wide.load93, <2 x double> %wide.load)
  %19 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat96, <2 x double> %wide.load94, <2 x double> %wide.load92)
  %20 = getelementptr inbounds double, ptr %4, i64 %13
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <2 x double> %18, ptr %20, align 8, !tbaa !5, !alias.scope !16, !noalias !18
  store <2 x double> %19, ptr %21, align 8, !tbaa !5, !alias.scope !16, !noalias !18
  %index.next = add nuw i64 %index, 4
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %.preheader51.us, %middle.block
  %indvars.iv.ph = phi i64 [ 0, %.preheader51.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %23 = add nuw nsw i64 %indvars.iv.ph, %11
  %24 = getelementptr inbounds double, ptr %2, i64 %23
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = load double, ptr %1, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %3, i64 %23
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = tail call double @llvm.fmuladd.f64(double %26, double %28, double %25)
  %30 = getelementptr inbounds double, ptr %4, i64 %23
  store double %29, ptr %30, align 8, !tbaa !5
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %31 = icmp eq i64 %indvars.iv.ph, %10
  br i1 %31, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %32 = add nuw nsw i64 %indvars.iv, %11
  %33 = getelementptr inbounds double, ptr %2, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = load double, ptr %1, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %3, i64 %32
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = tail call double @llvm.fmuladd.f64(double %35, double %37, double %34)
  %39 = getelementptr inbounds double, ptr %4, i64 %32
  store double %38, ptr %39, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %40 = add nuw nsw i64 %indvars.iv.next, %11
  %41 = getelementptr inbounds double, ptr %2, i64 %40
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = load double, ptr %1, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %3, i64 %40
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = tail call double @llvm.fmuladd.f64(double %43, double %45, double %42)
  %47 = getelementptr inbounds double, ptr %4, i64 %40
  store double %46, ptr %47, 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, %7
  br i1 %exitcond.not.1, label %._crit_edge.us, label %scalar.ph, !llvm.loop !23

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next61, %7
  br i1 %exitcond64.not, label %.preheader50, label %.preheader51.us, !llvm.loop !24

.preheader50:                                     ; preds = %._crit_edge.us
  %.not = icmp eq i32 %0, 1
  br i1 %.not, label %._crit_edge, label %.preheader49.us.preheader

.preheader49.us.preheader:                        ; preds = %.preheader50
  %48 = zext nneg i32 %0 to i64
  %49 = zext nneg i32 %0 to i64
  %50 = mul nuw nsw i64 %7, %7
  %51 = shl i64 %50, 3
  %scevgep98 = getelementptr i8, ptr %4, i64 %51
  %52 = mul i32 %0, %0
  %53 = zext i32 %52 to i64
  %54 = shl nuw nsw i64 %7, 3
  %scevgep102 = getelementptr i8, ptr %3, i64 %54
  %invariant.gep130 = getelementptr i8, ptr %1, i64 8
  %invariant.gep132 = getelementptr i8, ptr %1, i64 16
  %min.iters.check113 = icmp ult i32 %0, 4
  %n.vec116 = and i64 %7, 2147483644
  %cmp.n127 = icmp eq i64 %n.vec116, %7
  %xtraiter128 = and i64 %49, 1
  %lcmp.mod129.not = icmp eq i64 %xtraiter128, 0
  %55 = add nsw i64 %49, -1
  br label %.preheader49.us

.preheader49.us:                                  ; preds = %.preheader49.us.preheader, %._crit_edge56.split.us.us
  %indvar = phi i64 [ 0, %.preheader49.us.preheader ], [ %indvar.next, %._crit_edge56.split.us.us ]
  %indvars.iv75 = phi i64 [ 1, %.preheader49.us.preheader ], [ %indvars.iv.next76, %._crit_edge56.split.us.us ]
  %56 = shl i64 %indvar, 3
  %gep131 = getelementptr i8, ptr %invariant.gep130, i64 %56
  %gep133 = getelementptr i8, ptr %invariant.gep132, i64 %56
  %57 = add i64 %indvar, 1
  %58 = mul i64 %57, %53
  %59 = getelementptr inbounds double, ptr %1, i64 %indvars.iv75
  %60 = mul nuw nsw i64 %indvars.iv75, %49
  %bound0104 = icmp ugt ptr %gep133, %4
  %bound1105 = icmp ult ptr %gep131, %scevgep98
  %found.conflict106 = and i1 %bound0104, %bound1105
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %._crit_edge.us57.us, %.preheader49.us
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %._crit_edge.us57.us ], [ 0, %.preheader49.us ]
  %61 = mul nuw nsw i64 %indvars.iv70, %48
  %62 = add nuw nsw i64 %indvars.iv70, %60
  %63 = trunc nuw i64 %62 to i32
  %64 = mul i32 %63, %0
  %65 = sext i32 %64 to i64
  %invariant.gep = getelementptr inbounds double, ptr %4, i64 %61
  %invariant.gep80 = getelementptr double, ptr %3, i64 %65
  br i1 %min.iters.check113, label %scalar.ph112.preheader, label %vector.memcheck97

vector.memcheck97:                                ; preds = %.preheader.us.us
  %66 = mul i64 %indvars.iv70, %7
  %67 = add i64 %58, %66
  %sext = shl i64 %67, 32
  %68 = ashr exact i64 %sext, 29
  %scevgep103 = getelementptr i8, ptr %scevgep102, i64 %68
  %scevgep101 = getelementptr i8, ptr %3, i64 %68
  %bound0107 = icmp ugt ptr %scevgep103, %4
  %bound1108 = icmp ult ptr %scevgep101, %scevgep98
  %found.conflict109 = and i1 %bound0107, %bound1108
  %conflict.rdx110 = or i1 %found.conflict106, %found.conflict109
  br i1 %conflict.rdx110, label %scalar.ph112.preheader, label %vector.ph114

vector.ph114:                                     ; preds = %vector.memcheck97
  %69 = load double, ptr %59, align 8, !tbaa !5, !alias.scope !25
  %broadcast.splatinsert124 = insertelement <2 x double> poison, double %69, i64 0
  %broadcast.splat125 = shufflevector <2 x double> %broadcast.splatinsert124, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body118

vector.body118:                                   ; preds = %vector.body118, %vector.ph114
  %index119 = phi i64 [ 0, %vector.ph114 ], [ %index.next126, %vector.body118 ]
  %70 = getelementptr inbounds double, ptr %invariant.gep, i64 %index119
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load120 = load <2 x double>, ptr %70, align 8, !tbaa !5, !alias.scope !28, !noalias !30
  %wide.load121 = load <2 x double>, ptr %71, align 8, !tbaa !5, !alias.scope !28, !noalias !30
  %72 = getelementptr double, ptr %invariant.gep80, i64 %index119
  %73 = getelementptr i8, ptr %72, i64 16
  %wide.load122 = load <2 x double>, ptr %72, align 8, !tbaa !5, !alias.scope !32
  %wide.load123 = load <2 x double>, ptr %73, align 8, !tbaa !5, !alias.scope !32
  %74 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat125, <2 x double> %wide.load122, <2 x double> %wide.load120)
  %75 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat125, <2 x double> %wide.load123, <2 x double> %wide.load121)
  store <2 x double> %74, ptr %70, align 8, !tbaa !5, !alias.scope !28, !noalias !30
  store <2 x double> %75, ptr %71, align 8, !tbaa !5, !alias.scope !28, !noalias !30
  %index.next126 = add nuw i64 %index119, 4
  %76 = icmp eq i64 %index.next126, %n.vec116
  br i1 %76, label %middle.block111, label %vector.body118, !llvm.loop !33

middle.block111:                                  ; preds = %vector.body118
  br i1 %cmp.n127, label %._crit_edge.us57.us, label %scalar.ph112.preheader

scalar.ph112.preheader:                           ; preds = %middle.block111, %vector.memcheck97, %.preheader.us.us
  %indvars.iv65.ph = phi i64 [ 0, %vector.memcheck97 ], [ 0, %.preheader.us.us ], [ %n.vec116, %middle.block111 ]
  br i1 %lcmp.mod129.not, label %scalar.ph112.prol.loopexit, label %scalar.ph112.prol

scalar.ph112.prol:                                ; preds = %scalar.ph112.preheader
  %gep.prol = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv65.ph
  %77 = load double, ptr %gep.prol, align 8, !tbaa !5
  %78 = load double, ptr %59, align 8, !tbaa !5
  %gep81.prol = getelementptr double, ptr %invariant.gep80, i64 %indvars.iv65.ph
  %79 = load double, ptr %gep81.prol, align 8, !tbaa !5
  %80 = tail call double @llvm.fmuladd.f64(double %78, double %79, double %77)
  store double %80, ptr %gep.prol, align 8, !tbaa !5
  %indvars.iv.next66.prol = or disjoint i64 %indvars.iv65.ph, 1
  br label %scalar.ph112.prol.loopexit

scalar.ph112.prol.loopexit:                       ; preds = %scalar.ph112.prol, %scalar.ph112.preheader
  %indvars.iv65.unr = phi i64 [ %indvars.iv65.ph, %scalar.ph112.preheader ], [ %indvars.iv.next66.prol, %scalar.ph112.prol ]
  %81 = icmp eq i64 %indvars.iv65.ph, %55
  br i1 %81, label %._crit_edge.us57.us, label %scalar.ph112

scalar.ph112:                                     ; preds = %scalar.ph112.prol.loopexit, %scalar.ph112
  %indvars.iv65 = phi i64 [ %indvars.iv.next66.1, %scalar.ph112 ], [ %indvars.iv65.unr, %scalar.ph112.prol.loopexit ]
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv65
  %82 = load double, ptr %gep, align 8, !tbaa !5
  %83 = load double, ptr %59, align 8, !tbaa !5
  %gep81 = getelementptr double, ptr %invariant.gep80, i64 %indvars.iv65
  %84 = load double, ptr %gep81, align 8, !tbaa !5
  %85 = tail call double @llvm.fmuladd.f64(double %83, double %84, double %82)
  store double %85, ptr %gep, align 8, !tbaa !5
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %gep.1 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next66
  %86 = load double, ptr %gep.1, align 8, !tbaa !5
  %87 = load double, ptr %59, align 8, !tbaa !5
  %gep81.1 = getelementptr double, ptr %invariant.gep80, i64 %indvars.iv.next66
  %88 = load double, ptr %gep81.1, align 8, !tbaa !5
  %89 = tail call double @llvm.fmuladd.f64(double %87, double %88, double %86)
  store double %89, ptr %gep.1, align 8, !tbaa !5
  %indvars.iv.next66.1 = add nuw nsw i64 %indvars.iv65, 2
  %exitcond69.not.1 = icmp eq i64 %indvars.iv.next66.1, %49
  br i1 %exitcond69.not.1, label %._crit_edge.us57.us, label %scalar.ph112, !llvm.loop !34

._crit_edge.us57.us:                              ; preds = %scalar.ph112.prol.loopexit, %scalar.ph112, %middle.block111
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next71, %49
  br i1 %exitcond74.not, label %._crit_edge56.split.us.us, label %.preheader.us.us, !llvm.loop !35

._crit_edge56.split.us.us:                        ; preds = %._crit_edge.us57.us
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %49
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond79.not, label %._crit_edge, label %.preheader49.us, !llvm.loop !36

._crit_edge:                                      ; preds = %._crit_edge56.split.us.us, %5, %.preheader50
  ret void
}

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


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