; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (dlar2v)

; 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 i32 @dlar2v_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i64, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i64, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  %32 = load ptr, ptr %15, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i32 -1
  store ptr %33, ptr %15, align 8, !tbaa !5
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i32 -1
  store ptr %35, ptr %14, align 8, !tbaa !5
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i32 -1
  store ptr %37, ptr %12, align 8, !tbaa !5
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i32 -1
  store ptr %39, ptr %11, align 8, !tbaa !5
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i32 -1
  store ptr %41, ptr %10, align 8, !tbaa !5
  store i64 1, ptr %28, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !9
  store i64 %43, ptr %17, align 8, !tbaa !9
  store i64 1, ptr %18, align 8, !tbaa !9
  br label %44

44:                                               ; preds = %130, %8
  %45 = load i64, ptr %18, align 8, !tbaa !9
  %46 = load i64, ptr %17, align 8, !tbaa !9
  %47 = icmp sle i64 %45, %46
  br i1 %47, label %48, label %133

48:                                               ; preds = %44
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load i64, ptr %28, align 8, !tbaa !9
  %51 = getelementptr inbounds double, ptr %49, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  store double %52, ptr %29, align 8, !tbaa !11
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load i64, ptr %28, align 8, !tbaa !9
  %55 = getelementptr inbounds double, ptr %53, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !11
  store double %56, ptr %30, align 8, !tbaa !11
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i64, ptr %28, align 8, !tbaa !9
  %59 = getelementptr inbounds double, ptr %57, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  store double %60, ptr %31, align 8, !tbaa !11
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = load i64, ptr %25, align 8, !tbaa !9
  %63 = getelementptr inbounds double, ptr %61, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !11
  store double %64, ptr %26, align 8, !tbaa !11
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = load i64, ptr %25, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %65, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !11
  store double %68, ptr %27, align 8, !tbaa !11
  %69 = load double, ptr %27, align 8, !tbaa !11
  %70 = load double, ptr %31, align 8, !tbaa !11
  %71 = fmul double %69, %70
  store double %71, ptr %19, align 8, !tbaa !11
  %72 = load double, ptr %26, align 8, !tbaa !11
  %73 = load double, ptr %31, align 8, !tbaa !11
  %74 = fmul double %72, %73
  store double %74, ptr %20, align 8, !tbaa !11
  %75 = load double, ptr %20, align 8, !tbaa !11
  %76 = load double, ptr %27, align 8, !tbaa !11
  %77 = load double, ptr %29, align 8, !tbaa !11
  %78 = fneg double %76
  %79 = call double @llvm.fmuladd.f64(double %78, double %77, double %75)
  store double %79, ptr %21, align 8, !tbaa !11
  %80 = load double, ptr %20, align 8, !tbaa !11
  %81 = load double, ptr %27, align 8, !tbaa !11
  %82 = load double, ptr %30, align 8, !tbaa !11
  %83 = call double @llvm.fmuladd.f64(double %81, double %82, double %80)
  store double %83, ptr %22, align 8, !tbaa !11
  %84 = load double, ptr %26, align 8, !tbaa !11
  %85 = load double, ptr %29, align 8, !tbaa !11
  %86 = load double, ptr %19, align 8, !tbaa !11
  %87 = call double @llvm.fmuladd.f64(double %84, double %85, double %86)
  store double %87, ptr %23, align 8, !tbaa !11
  %88 = load double, ptr %26, align 8, !tbaa !11
  %89 = load double, ptr %30, align 8, !tbaa !11
  %90 = load double, ptr %19, align 8, !tbaa !11
  %91 = fneg double %90
  %92 = call double @llvm.fmuladd.f64(double %88, double %89, double %91)
  store double %92, ptr %24, align 8, !tbaa !11
  %93 = load double, ptr %26, align 8, !tbaa !11
  %94 = load double, ptr %23, align 8, !tbaa !11
  %95 = load double, ptr %27, align 8, !tbaa !11
  %96 = load double, ptr %22, align 8, !tbaa !11
  %97 = fmul double %95, %96
  %98 = call double @llvm.fmuladd.f64(double %93, double %94, double %97)
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load i64, ptr %28, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  store double %98, ptr %101, align 8, !tbaa !11
  %102 = load double, ptr %26, align 8, !tbaa !11
  %103 = load double, ptr %24, align 8, !tbaa !11
  %104 = load double, ptr %27, align 8, !tbaa !11
  %105 = load double, ptr %21, align 8, !tbaa !11
  %106 = fmul double %104, %105
  %107 = fneg double %106
  %108 = call double @llvm.fmuladd.f64(double %102, double %103, double %107)
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i64, ptr %28, align 8, !tbaa !9
  %111 = getelementptr inbounds double, ptr %109, i64 %110
  store double %108, ptr %111, align 8, !tbaa !11
  %112 = load double, ptr %26, align 8, !tbaa !11
  %113 = load double, ptr %22, align 8, !tbaa !11
  %114 = load double, ptr %27, align 8, !tbaa !11
  %115 = load double, ptr %23, align 8, !tbaa !11
  %116 = fmul double %114, %115
  %117 = fneg double %116
  %118 = call double @llvm.fmuladd.f64(double %112, double %113, double %117)
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load i64, ptr %28, align 8, !tbaa !9
  %121 = getelementptr inbounds double, ptr %119, i64 %120
  store double %118, ptr %121, align 8, !tbaa !11
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = load i64, ptr %28, align 8, !tbaa !9
  %125 = add nsw i64 %124, %123
  store i64 %125, ptr %28, align 8, !tbaa !9
  %126 = load ptr, ptr %16, align 8, !tbaa !5
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = load i64, ptr %25, align 8, !tbaa !9
  %129 = add nsw i64 %128, %127
  store i64 %129, ptr %25, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %48
  %131 = load i64, ptr %18, align 8, !tbaa !9
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %18, align 8, !tbaa !9
  br label %44, !llvm.loop !13

133:                                              ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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 noundef i32 @dlar2v_(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7) local_unnamed_addr #0 {
  %9 = getelementptr inbounds i8, ptr %6, i64 -8
  %10 = getelementptr inbounds i8, ptr %5, i64 -8
  %11 = getelementptr inbounds i8, ptr %3, i64 -8
  %12 = getelementptr inbounds i8, ptr %2, i64 -8
  %13 = getelementptr inbounds i8, ptr %1, i64 -8
  %14 = load i64, ptr %0, align 8, !tbaa !5
  %.not58 = icmp slt i64 %14, 1
  br i1 %.not58, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %15 = load i64, ptr %4, align 8, !tbaa !5
  %16 = load i64, ptr %7, align 8, !tbaa !5
  %min.iters.check = icmp ult i64 %14, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph
  %ident.check = icmp ne i64 %15, 1
  %ident.check62 = icmp ne i64 %16, 1
  %17 = or i1 %ident.check, %ident.check62
  br i1 %17, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %18 = shl i64 %14, 3
  %scevgep = getelementptr i8, ptr %1, i64 %18
  %scevgep63 = getelementptr i8, ptr %2, i64 %18
  %scevgep64 = getelementptr i8, ptr %3, i64 %18
  %scevgep65 = getelementptr i8, ptr %5, i64 %18
  %scevgep66 = getelementptr i8, ptr %6, i64 %18
  %bound0 = icmp ugt ptr %scevgep63, %1
  %bound1 = icmp ugt ptr %scevgep, %2
  %found.conflict = and i1 %bound0, %bound1
  %bound067 = icmp ugt ptr %scevgep64, %1
  %bound168 = icmp ugt ptr %scevgep, %3
  %found.conflict69 = and i1 %bound067, %bound168
  %conflict.rdx = or i1 %found.conflict, %found.conflict69
  %bound070 = icmp ugt ptr %scevgep65, %1
  %bound171 = icmp ugt ptr %scevgep, %5
  %found.conflict72 = and i1 %bound070, %bound171
  %conflict.rdx73 = or i1 %conflict.rdx, %found.conflict72
  %bound074 = icmp ugt ptr %scevgep66, %1
  %bound175 = icmp ugt ptr %scevgep, %6
  %found.conflict76 = and i1 %bound074, %bound175
  %conflict.rdx77 = or i1 %conflict.rdx73, %found.conflict76
  %bound078 = icmp ugt ptr %scevgep64, %2
  %bound179 = icmp ugt ptr %scevgep63, %3
  %found.conflict80 = and i1 %bound078, %bound179
  %conflict.rdx81 = or i1 %conflict.rdx77, %found.conflict80
  %bound082 = icmp ugt ptr %scevgep65, %2
  %bound183 = icmp ugt ptr %scevgep63, %5
  %found.conflict84 = and i1 %bound082, %bound183
  %conflict.rdx85 = or i1 %conflict.rdx81, %found.conflict84
  %bound086 = icmp ugt ptr %scevgep66, %2
  %bound187 = icmp ugt ptr %scevgep63, %6
  %found.conflict88 = and i1 %bound086, %bound187
  %conflict.rdx89 = or i1 %conflict.rdx85, %found.conflict88
  %bound090 = icmp ugt ptr %scevgep65, %3
  %bound191 = icmp ugt ptr %scevgep64, %5
  %found.conflict92 = and i1 %bound090, %bound191
  %conflict.rdx93 = or i1 %conflict.rdx89, %found.conflict92
  %bound094 = icmp ugt ptr %scevgep66, %3
  %bound195 = icmp ugt ptr %scevgep64, %6
  %found.conflict96 = and i1 %bound094, %bound195
  %conflict.rdx97 = or i1 %conflict.rdx93, %found.conflict96
  br i1 %conflict.rdx97, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %14, 9223372036854775806
  %ind.end = or i64 %14, 1
  %ind.end98 = or i64 %14, 1
  %ind.end100 = or i64 %14, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %19 = getelementptr double, ptr %1, i64 %index
  %wide.load = load <2 x double>, ptr %19, align 8, !tbaa !9, !alias.scope !11, !noalias !14
  %20 = getelementptr double, ptr %2, i64 %index
  %wide.load103 = load <2 x double>, ptr %20, align 8, !tbaa !9, !alias.scope !19, !noalias !20
  %21 = getelementptr double, ptr %3, i64 %index
  %wide.load104 = load <2 x double>, ptr %21, align 8, !tbaa !9, !alias.scope !21, !noalias !22
  %22 = getelementptr double, ptr %5, i64 %index
  %wide.load105 = load <2 x double>, ptr %22, align 8, !tbaa !9, !alias.scope !23
  %23 = getelementptr double, ptr %6, i64 %index
  %wide.load106 = load <2 x double>, ptr %23, align 8, !tbaa !9, !alias.scope !24
  %24 = fmul <2 x double> %wide.load104, %wide.load106
  %25 = fmul <2 x double> %wide.load104, %wide.load105
  %26 = fneg <2 x double> %wide.load106
  %27 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %26, <2 x double> %wide.load, <2 x double> %25)
  %28 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load106, <2 x double> %wide.load103, <2 x double> %25)
  %29 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load105, <2 x double> %wide.load, <2 x double> %24)
  %30 = fneg <2 x double> %24
  %31 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load105, <2 x double> %wide.load103, <2 x double> %30)
  %32 = fmul <2 x double> %wide.load106, %28
  %33 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load105, <2 x double> %29, <2 x double> %32)
  store <2 x double> %33, ptr %19, align 8, !tbaa !9, !alias.scope !11, !noalias !14
  %34 = fmul <2 x double> %27, %26
  %35 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load105, <2 x double> %31, <2 x double> %34)
  store <2 x double> %35, ptr %20, align 8, !tbaa !9, !alias.scope !19, !noalias !20
  %36 = fmul <2 x double> %29, %26
  %37 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load105, <2 x double> %28, <2 x double> %36)
  store <2 x double> %37, ptr %21, align 8, !tbaa !9, !alias.scope !21, !noalias !22
  %index.next = add nuw i64 %index, 2
  %38 = icmp eq i64 %index.next, %n.vec
  br i1 %38, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %14, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph
  %.061.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %vector.scevcheck ], [ 1, %.lr.ph ], [ %ind.end, %middle.block ]
  %.05660.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %vector.scevcheck ], [ 1, %.lr.ph ], [ %ind.end98, %middle.block ]
  %.05759.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %vector.scevcheck ], [ 1, %.lr.ph ], [ %ind.end100, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.061 = phi i64 [ %63, %scalar.ph ], [ %.061.ph, %scalar.ph.preheader ]
  %.05660 = phi i64 [ %64, %scalar.ph ], [ %.05660.ph, %scalar.ph.preheader ]
  %.05759 = phi i64 [ %65, %scalar.ph ], [ %.05759.ph, %scalar.ph.preheader ]
  %39 = getelementptr inbounds double, ptr %13, i64 %.061
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %12, i64 %.061
  %42 = load double, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds double, ptr %11, i64 %.061
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds double, ptr %10, i64 %.05660
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds double, ptr %9, i64 %.05660
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = fmul double %44, %48
  %50 = fmul double %44, %46
  %51 = fneg double %48
  %52 = tail call double @llvm.fmuladd.f64(double %51, double %40, double %50)
  %53 = tail call double @llvm.fmuladd.f64(double %48, double %42, double %50)
  %54 = tail call double @llvm.fmuladd.f64(double %46, double %40, double %49)
  %55 = fneg double %49
  %56 = tail call double @llvm.fmuladd.f64(double %46, double %42, double %55)
  %57 = fmul double %48, %53
  %58 = tail call double @llvm.fmuladd.f64(double %46, double %54, double %57)
  store double %58, ptr %39, align 8, !tbaa !9
  %59 = fmul double %52, %51
  %60 = tail call double @llvm.fmuladd.f64(double %46, double %56, double %59)
  store double %60, ptr %41, align 8, !tbaa !9
  %61 = fmul double %54, %51
  %62 = tail call double @llvm.fmuladd.f64(double %46, double %53, double %61)
  store double %62, ptr %43, align 8, !tbaa !9
  %63 = add nsw i64 %15, %.061
  %64 = add nsw i64 %16, %.05660
  %65 = add nuw i64 %.05759, 1
  %exitcond.not = icmp eq i64 %.05759, %14
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !29

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %8
  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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = !{!15, !16, !17, !18}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{!15}
!20 = !{!16, !17, !18}
!21 = !{!16}
!22 = !{!17, !18}
!23 = !{!17}
!24 = !{!18}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !26, !27}


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