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

; 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 @example(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 double, align 8
  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 %16

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

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

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

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

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

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

28:                                               ; preds = %88, %27
  %29 = load i32, ptr %14, align 4, !tbaa !5
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %34 = load i32, ptr %11, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %46

36:                                               ; preds = %33
  %37 = load ptr, ptr %8, align 8, !tbaa !9
  %38 = load i32, ptr %13, align 4, !tbaa !5
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = mul nsw i32 %38, %39
  %41 = load i32, ptr %14, align 4, !tbaa !5
  %42 = add nsw i32 %40, %41
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %37, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !11
  br label %56

46:                                               ; preds = %33
  %47 = load ptr, ptr %10, align 8, !tbaa !9
  %48 = load i32, ptr %13, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = mul nsw i32 %48, %49
  %51 = load i32, ptr %14, align 4, !tbaa !5
  %52 = add nsw i32 %50, %51
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %47, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %46, %36
  %57 = phi double [ %45, %36 ], [ %55, %46 ]
  store double %57, ptr %15, align 8, !tbaa !11
  %58 = load double, ptr %15, align 8, !tbaa !11
  %59 = load ptr, ptr %7, align 8, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %59, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = load ptr, ptr %9, align 8, !tbaa !9
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = mul nsw i32 %65, %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = mul nsw i32 %67, %68
  %70 = load i32, ptr %13, align 4, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = mul nsw i32 %70, %71
  %73 = add nsw i32 %69, %72
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = add nsw i32 %73, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %64, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = call double @llvm.fmuladd.f64(double %63, double %78, double %58)
  %80 = load ptr, ptr %10, align 8, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !5
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = mul nsw i32 %81, %82
  %84 = load i32, ptr %14, align 4, !tbaa !5
  %85 = add nsw i32 %83, %84
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %80, i64 %86
  store double %79, ptr %87, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %88

88:                                               ; preds = %56
  %89 = load i32, ptr %14, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %14, align 4, !tbaa !5
  br label %28, !llvm.loop !13

91:                                               ; preds = %32
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %13, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %13, align 4, !tbaa !5
  br label %22, !llvm.loop !15

95:                                               ; preds = %26
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %11, align 4, !tbaa !5
  br label %16, !llvm.loop !16

99:                                               ; preds = %20
  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}


; 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 @example(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 %.preheader34.us.preheader, label %._crit_edge

.preheader34.us.preheader:                        ; preds = %5
  %7 = zext nneg i32 %0 to i64
  %8 = zext nneg i32 %0 to i64
  %9 = mul nuw nsw i64 %8, %8
  %10 = shl i64 %9, 3
  %scevgep = getelementptr i8, ptr %4, i64 %10
  %scevgep72 = getelementptr i8, ptr %2, i64 %10
  %scevgep75 = getelementptr i8, ptr %3, i64 %10
  %11 = mul i32 %0, %0
  %12 = zext i32 %11 to i64
  %13 = shl nuw nsw i64 %8, 3
  %scevgep92 = getelementptr i8, ptr %3, i64 %13
  %invariant.gep121 = getelementptr i8, ptr %1, i64 8
  %invariant.gep123 = getelementptr i8, ptr %1, i64 8
  %min.iters.check103 = icmp ult i32 %0, 4
  %n.vec106 = and i64 %8, 2147483644
  %cmp.n117 = icmp eq i64 %n.vec106, %8
  %xtraiter = and i64 %8, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %14 = add nsw i64 %8, -1
  %min.iters.check = icmp ult i32 %0, 6
  %bound0 = icmp ugt ptr %scevgep72, %4
  %bound1 = icmp ugt ptr %scevgep, %2
  %found.conflict = and i1 %bound0, %bound1
  %bound079 = icmp ugt ptr %scevgep75, %4
  %bound180 = icmp ugt ptr %scevgep, %3
  %found.conflict81 = and i1 %bound079, %bound180
  %n.vec = and i64 %8, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %8
  %xtraiter119 = and i64 %8, 1
  %lcmp.mod120.not = icmp eq i64 %xtraiter119, 0
  %15 = add nsw i64 %8, -1
  br label %.preheader34.us

.preheader34.us:                                  ; preds = %.preheader34.us.preheader, %._crit_edge37.split.us.us
  %indvars.iv63 = phi i64 [ 0, %.preheader34.us.preheader ], [ %indvars.iv.next64, %._crit_edge37.split.us.us ]
  %16 = shl nuw nsw i64 %indvars.iv63, 3
  %scevgep89 = getelementptr i8, ptr %1, i64 %16
  %gep122 = getelementptr i8, ptr %invariant.gep121, i64 %16
  %17 = mul i64 %indvars.iv63, %12
  %18 = shl nuw nsw i64 %indvars.iv63, 3
  %scevgep73 = getelementptr i8, ptr %1, i64 %18
  %gep124 = getelementptr i8, ptr %invariant.gep123, i64 %18
  %19 = icmp eq i64 %indvars.iv63, 0
  %20 = getelementptr inbounds double, ptr %1, i64 %indvars.iv63
  %21 = mul nuw nsw i64 %indvars.iv63, %8
  br i1 %19, label %.preheader.us.us.us.preheader, label %.preheader.us.us42.preheader

.preheader.us.us42.preheader:                     ; preds = %.preheader34.us
  %bound094 = icmp ugt ptr %gep122, %4
  %bound195 = icmp ult ptr %scevgep89, %scevgep
  %found.conflict96 = and i1 %bound094, %bound195
  br label %.preheader.us.us42

.preheader.us.us.us.preheader:                    ; preds = %.preheader34.us
  %bound076 = icmp ugt ptr %gep124, %4
  %bound177 = icmp ult ptr %scevgep73, %scevgep
  %found.conflict78 = and i1 %bound076, %bound177
  %conflict.rdx = or i1 %found.conflict, %found.conflict78
  %conflict.rdx82 = or i1 %conflict.rdx, %found.conflict81
  br label %.preheader.us.us.us

.preheader.us.us42:                               ; preds = %.preheader.us.us42.preheader, %._crit_edge.split.us39.us
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %._crit_edge.split.us39.us ], [ 0, %.preheader.us.us42.preheader ]
  %22 = mul nuw nsw i64 %indvars.iv48, %7
  %23 = add nuw nsw i64 %indvars.iv48, %21
  %24 = trunc nuw i64 %23 to i32
  %25 = mul i32 %24, %0
  %26 = sext i32 %25 to i64
  %invariant.gep = getelementptr inbounds double, ptr %4, i64 %22
  %invariant.gep69 = getelementptr double, ptr %3, i64 %26
  br i1 %min.iters.check103, label %scalar.ph102.preheader, label %vector.memcheck88

vector.memcheck88:                                ; preds = %.preheader.us.us42
  %27 = mul i64 %indvars.iv48, %8
  %28 = add i64 %17, %27
  %sext = shl i64 %28, 32
  %29 = ashr exact i64 %sext, 29
  %scevgep93 = getelementptr i8, ptr %scevgep92, i64 %29
  %scevgep91 = getelementptr i8, ptr %3, i64 %29
  %bound097 = icmp ugt ptr %scevgep93, %4
  %bound198 = icmp ult ptr %scevgep91, %scevgep
  %found.conflict99 = and i1 %bound097, %bound198
  %conflict.rdx100 = or i1 %found.conflict96, %found.conflict99
  br i1 %conflict.rdx100, label %scalar.ph102.preheader, label %vector.ph104

vector.ph104:                                     ; preds = %vector.memcheck88
  %30 = load double, ptr %20, align 8, !tbaa !5, !alias.scope !9
  %broadcast.splatinsert114 = insertelement <2 x double> poison, double %30, i64 0
  %broadcast.splat115 = shufflevector <2 x double> %broadcast.splatinsert114, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body108

vector.body108:                                   ; preds = %vector.body108, %vector.ph104
  %index109 = phi i64 [ 0, %vector.ph104 ], [ %index.next116, %vector.body108 ]
  %31 = getelementptr inbounds double, ptr %invariant.gep, i64 %index109
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load110 = load <2 x double>, ptr %31, align 8, !tbaa !5, !alias.scope !12, !noalias !14
  %wide.load111 = load <2 x double>, ptr %32, align 8, !tbaa !5, !alias.scope !12, !noalias !14
  %33 = getelementptr double, ptr %invariant.gep69, i64 %index109
  %34 = getelementptr i8, ptr %33, i64 16
  %wide.load112 = load <2 x double>, ptr %33, align 8, !tbaa !5, !alias.scope !16
  %wide.load113 = load <2 x double>, ptr %34, align 8, !tbaa !5, !alias.scope !16
  %35 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat115, <2 x double> %wide.load112, <2 x double> %wide.load110)
  %36 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat115, <2 x double> %wide.load113, <2 x double> %wide.load111)
  store <2 x double> %35, ptr %31, align 8, !tbaa !5, !alias.scope !12, !noalias !14
  store <2 x double> %36, ptr %32, align 8, !tbaa !5, !alias.scope !12, !noalias !14
  %index.next116 = add nuw i64 %index109, 4
  %37 = icmp eq i64 %index.next116, %n.vec106
  br i1 %37, label %middle.block101, label %vector.body108, !llvm.loop !17

middle.block101:                                  ; preds = %vector.body108
  br i1 %cmp.n117, label %._crit_edge.split.us39.us, label %scalar.ph102.preheader

scalar.ph102.preheader:                           ; preds = %middle.block101, %vector.memcheck88, %.preheader.us.us42
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck88 ], [ 0, %.preheader.us.us42 ], [ %n.vec106, %middle.block101 ]
  br i1 %lcmp.mod.not, label %scalar.ph102.prol.loopexit, label %scalar.ph102.prol

scalar.ph102.prol:                                ; preds = %scalar.ph102.preheader
  %gep.prol = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.ph
  %38 = load double, ptr %gep.prol, align 8, !tbaa !5
  %39 = load double, ptr %20, align 8, !tbaa !5
  %gep70.prol = getelementptr double, ptr %invariant.gep69, i64 %indvars.iv.ph
  %40 = load double, ptr %gep70.prol, align 8, !tbaa !5
  %41 = tail call double @llvm.fmuladd.f64(double %39, double %40, double %38)
  store double %41, ptr %gep.prol, align 8, !tbaa !5
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph102.prol.loopexit

scalar.ph102.prol.loopexit:                       ; preds = %scalar.ph102.prol, %scalar.ph102.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph102.preheader ], [ %indvars.iv.next.prol, %scalar.ph102.prol ]
  %42 = icmp eq i64 %indvars.iv.ph, %14
  br i1 %42, label %._crit_edge.split.us39.us, label %scalar.ph102

scalar.ph102:                                     ; preds = %scalar.ph102.prol.loopexit, %scalar.ph102
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph102 ], [ %indvars.iv.unr, %scalar.ph102.prol.loopexit ]
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv
  %43 = load double, ptr %gep, align 8, !tbaa !5
  %44 = load double, ptr %20, align 8, !tbaa !5
  %gep70 = getelementptr double, ptr %invariant.gep69, i64 %indvars.iv
  %45 = load double, ptr %gep70, align 8, !tbaa !5
  %46 = tail call double @llvm.fmuladd.f64(double %44, double %45, double %43)
  store double %46, ptr %gep, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %gep.1 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next
  %47 = load double, ptr %gep.1, align 8, !tbaa !5
  %48 = load double, ptr %20, align 8, !tbaa !5
  %gep70.1 = getelementptr double, ptr %invariant.gep69, i64 %indvars.iv.next
  %49 = load double, ptr %gep70.1, align 8, !tbaa !5
  %50 = tail call double @llvm.fmuladd.f64(double %48, double %49, double %47)
  store double %50, ptr %gep.1, 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, %8
  br i1 %exitcond.not.1, label %._crit_edge.split.us39.us, label %scalar.ph102, !llvm.loop !21

._crit_edge.split.us39.us:                        ; preds = %scalar.ph102.prol.loopexit, %scalar.ph102, %middle.block101
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %exitcond52.not = icmp eq i64 %indvars.iv.next49, %8
  br i1 %exitcond52.not, label %._crit_edge37.split.us.us, label %.preheader.us.us42, !llvm.loop !22

._crit_edge37.split.us.us:                        ; preds = %._crit_edge.split.us39.us, %._crit_edge.split.us.us.us.us
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next64, %8
  br i1 %exitcond67.not, label %._crit_edge, label %.preheader34.us, !llvm.loop !23

.preheader.us.us.us:                              ; preds = %.preheader.us.us.us.preheader, %._crit_edge.split.us.us.us.us
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %._crit_edge.split.us.us.us.us ], [ 0, %.preheader.us.us.us.preheader ]
  %51 = mul nuw nsw i64 %indvars.iv58, %7
  %brmerge = select i1 %min.iters.check, i1 true, i1 %conflict.rdx82
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader.us.us.us
  %52 = load double, ptr %20, align 8, !tbaa !5, !alias.scope !24
  %broadcast.splatinsert86 = insertelement <2 x double> poison, double %52, i64 0
  %broadcast.splat87 = shufflevector <2 x double> %broadcast.splatinsert86, <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 ]
  %53 = add nuw nsw i64 %index, %51
  %54 = getelementptr inbounds double, ptr %2, i64 %53
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %wide.load = load <2 x double>, ptr %54, align 8, !tbaa !5, !alias.scope !27
  %wide.load83 = load <2 x double>, ptr %55, align 8, !tbaa !5, !alias.scope !27
  %56 = getelementptr inbounds double, ptr %3, i64 %53
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load84 = load <2 x double>, ptr %56, align 8, !tbaa !5, !alias.scope !29
  %wide.load85 = load <2 x double>, ptr %57, align 8, !tbaa !5, !alias.scope !29
  %58 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat87, <2 x double> %wide.load84, <2 x double> %wide.load)
  %59 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat87, <2 x double> %wide.load85, <2 x double> %wide.load83)
  %60 = getelementptr inbounds double, ptr %4, i64 %53
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  store <2 x double> %58, ptr %60, align 8, !tbaa !5, !alias.scope !31, !noalias !33
  store <2 x double> %59, ptr %61, align 8, !tbaa !5, !alias.scope !31, !noalias !33
  %index.next = add nuw i64 %index, 4
  %62 = icmp eq i64 %index.next, %n.vec
  br i1 %62, label %middle.block, label %vector.body, !llvm.loop !34

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

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

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %63 = add nuw nsw i64 %indvars.iv53.ph, %51
  %64 = getelementptr inbounds double, ptr %2, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = load double, ptr %20, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %3, i64 %63
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = tail call double @llvm.fmuladd.f64(double %66, double %68, double %65)
  %70 = getelementptr inbounds double, ptr %4, i64 %63
  store double %69, ptr %70, align 8, !tbaa !5
  %indvars.iv.next54.prol = or disjoint i64 %indvars.iv53.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv53.unr = phi i64 [ %indvars.iv53.ph, %scalar.ph.preheader ], [ %indvars.iv.next54.prol, %scalar.ph.prol ]
  %71 = icmp eq i64 %indvars.iv53.ph, %15
  br i1 %71, label %._crit_edge.split.us.us.us.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv53 = phi i64 [ %indvars.iv.next54.1, %scalar.ph ], [ %indvars.iv53.unr, %scalar.ph.prol.loopexit ]
  %72 = add nuw nsw i64 %indvars.iv53, %51
  %73 = getelementptr inbounds double, ptr %2, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !5
  %75 = load double, ptr %20, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %3, i64 %72
  %77 = load double, ptr %76, align 8, !tbaa !5
  %78 = tail call double @llvm.fmuladd.f64(double %75, double %77, double %74)
  %79 = getelementptr inbounds double, ptr %4, i64 %72
  store double %78, ptr %79, align 8, !tbaa !5
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %80 = add nuw nsw i64 %indvars.iv.next54, %51
  %81 = getelementptr inbounds double, ptr %2, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !5
  %83 = load double, ptr %20, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %3, i64 %80
  %85 = load double, ptr %84, align 8, !tbaa !5
  %86 = tail call double @llvm.fmuladd.f64(double %83, double %85, double %82)
  %87 = getelementptr inbounds double, ptr %4, i64 %80
  store double %86, ptr %87, 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, %8
  br i1 %exitcond57.not.1, label %._crit_edge.split.us.us.us.us, label %scalar.ph, !llvm.loop !35

._crit_edge.split.us.us.us.us:                    ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next59, %8
  br i1 %exitcond62.not, label %._crit_edge37.split.us.us, label %.preheader.us.us.us, !llvm.loop !22

._crit_edge:                                      ; preds = %._crit_edge37.split.us.us, %5
  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 = !{!10, !15}
!15 = distinct !{!15, !11}
!16 = !{!15}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !19}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = !{!30}
!30 = distinct !{!30, !26}
!31 = !{!32}
!32 = distinct !{!32, !26}
!33 = !{!28, !25, !30}
!34 = distinct !{!34, !18, !19, !20}
!35 = distinct !{!35, !18, !19}


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