; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/BLAS/SRC (drot)

; 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 @f2c_drot(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %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 i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  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
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  %23 = getelementptr inbounds double, ptr %22, i32 -1
  store ptr %23, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i32 -1
  store ptr %25, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = icmp sle i64 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %7
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %169

30:                                               ; preds = %7
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = icmp eq i64 %32, 1
  br i1 %33, label %34, label %39

34:                                               ; preds = %30
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = icmp eq i64 %36, 1
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  br label %121

39:                                               ; preds = %34, %30
  store i64 1, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %19, align 8, !tbaa !9
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = icmp slt i64 %41, 0
  br i1 %42, label %43, label %52

43:                                               ; preds = %39
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = sub nsw i64 0, %45
  %47 = add nsw i64 %46, 1
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = mul nsw i64 %47, %49
  %51 = add nsw i64 %50, 1
  store i64 %51, ptr %18, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %43, %39
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = icmp slt i64 %54, 0
  br i1 %55, label %56, label %65

56:                                               ; preds = %52
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = sub nsw i64 0, %58
  %60 = add nsw i64 %59, 1
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = mul nsw i64 %60, %62
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %19, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %56, %52
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i64, ptr %66, align 8, !tbaa !9
  store i64 %67, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %68

68:                                               ; preds = %117, %65
  %69 = load i64, ptr %17, align 8, !tbaa !9
  %70 = load i64, ptr %16, align 8, !tbaa !9
  %71 = icmp sle i64 %69, %70
  br i1 %71, label %72, label %120

72:                                               ; preds = %68
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load i64, ptr %18, align 8, !tbaa !9
  %77 = getelementptr inbounds double, ptr %75, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !11
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = load i64, ptr %19, align 8, !tbaa !9
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = fmul double %80, %84
  %86 = call double @llvm.fmuladd.f64(double %74, double %78, double %85)
  store double %86, ptr %20, align 8, !tbaa !11
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load i64, ptr %19, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = load i64, ptr %18, align 8, !tbaa !9
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = fmul double %94, %98
  %100 = fneg double %99
  %101 = call double @llvm.fmuladd.f64(double %88, double %92, double %100)
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load i64, ptr %19, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double %101, ptr %104, align 8, !tbaa !11
  %105 = load double, ptr %20, align 8, !tbaa !11
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load i64, ptr %18, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  store double %105, ptr %108, align 8, !tbaa !11
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !9
  %111 = load i64, ptr %18, align 8, !tbaa !9
  %112 = add nsw i64 %111, %110
  store i64 %112, ptr %18, align 8, !tbaa !9
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = load i64, ptr %19, align 8, !tbaa !9
  %116 = add nsw i64 %115, %114
  store i64 %116, ptr %19, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %72
  %118 = load i64, ptr %17, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %17, align 8, !tbaa !9
  br label %68, !llvm.loop !13

120:                                              ; preds = %68
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %169

121:                                              ; preds = %38
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = load i64, ptr %122, align 8, !tbaa !9
  store i64 %123, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %165, %121
  %125 = load i64, ptr %17, align 8, !tbaa !9
  %126 = load i64, ptr %16, align 8, !tbaa !9
  %127 = icmp sle i64 %125, %126
  br i1 %127, label %128, label %168

128:                                              ; preds = %124
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load double, ptr %129, align 8, !tbaa !11
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load i64, ptr %17, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = load i64, ptr %17, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !11
  %141 = fmul double %136, %140
  %142 = call double @llvm.fmuladd.f64(double %130, double %134, double %141)
  store double %142, ptr %20, align 8, !tbaa !11
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load double, ptr %143, align 8, !tbaa !11
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = load i64, ptr %17, align 8, !tbaa !9
  %147 = getelementptr inbounds double, ptr %145, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !11
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = load double, ptr %149, align 8, !tbaa !11
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = load i64, ptr %17, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !11
  %155 = fmul double %150, %154
  %156 = fneg double %155
  %157 = call double @llvm.fmuladd.f64(double %144, double %148, double %156)
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = load i64, ptr %17, align 8, !tbaa !9
  %160 = getelementptr inbounds double, ptr %158, i64 %159
  store double %157, ptr %160, align 8, !tbaa !11
  %161 = load double, ptr %20, align 8, !tbaa !11
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = load i64, ptr %17, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  store double %161, ptr %164, align 8, !tbaa !11
  br label %165

165:                                              ; preds = %128
  %166 = load i64, ptr %17, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %17, align 8, !tbaa !9
  br label %124, !llvm.loop !15

168:                                              ; preds = %124
  store i32 0, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %169

169:                                              ; preds = %168, %120, %29
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %170 = load i32, ptr %8, align 4
  ret i32 %170
}

; 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"}
!15 = distinct !{!15, !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 noundef i32 @f2c_drot(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6) local_unnamed_addr #0 {
  %8 = getelementptr inbounds i8, ptr %3, i64 -8
  %9 = getelementptr inbounds i8, ptr %1, i64 -8
  %10 = load i64, ptr %0, align 8, !tbaa !5
  %11 = icmp slt i64 %10, 1
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %7
  %13 = load i64, ptr %2, align 8, !tbaa !5
  %14 = icmp eq i64 %13, 1
  br i1 %14, label %15, label %thread-pre-split

15:                                               ; preds = %12
  %16 = load i64, ptr %4, align 8, !tbaa !5
  %17 = icmp eq i64 %16, 1
  br i1 %17, label %.lr.ph73.preheader, label %..thread_crit_edge

.lr.ph73.preheader:                               ; preds = %15
  %min.iters.check133 = icmp ult i64 %10, 10
  br i1 %min.iters.check133, label %.lr.ph73.preheader150, label %vector.memcheck107

.lr.ph73.preheader150:                            ; preds = %middle.block131, %vector.memcheck107, %.lr.ph73.preheader
  %.16072.ph = phi i64 [ 1, %vector.memcheck107 ], [ 1, %.lr.ph73.preheader ], [ %ind.end137, %middle.block131 ]
  br label %.lr.ph73

vector.memcheck107:                               ; preds = %.lr.ph73.preheader
  %18 = shl i64 %10, 3
  %scevgep108 = getelementptr i8, ptr %3, i64 %18
  %scevgep109 = getelementptr i8, ptr %1, i64 %18
  %scevgep110 = getelementptr i8, ptr %5, i64 8
  %scevgep111 = getelementptr i8, ptr %6, i64 8
  %bound0112 = icmp ugt ptr %scevgep109, %3
  %bound1113 = icmp ugt ptr %scevgep108, %1
  %found.conflict114 = and i1 %bound0112, %bound1113
  %bound0115 = icmp ugt ptr %scevgep110, %3
  %bound1116 = icmp ugt ptr %scevgep108, %5
  %found.conflict117 = and i1 %bound0115, %bound1116
  %conflict.rdx118 = or i1 %found.conflict114, %found.conflict117
  %bound0119 = icmp ugt ptr %scevgep111, %3
  %bound1120 = icmp ugt ptr %scevgep108, %6
  %found.conflict121 = and i1 %bound0119, %bound1120
  %conflict.rdx122 = or i1 %conflict.rdx118, %found.conflict121
  %bound0123 = icmp ugt ptr %scevgep110, %1
  %bound1124 = icmp ugt ptr %scevgep109, %5
  %found.conflict125 = and i1 %bound0123, %bound1124
  %conflict.rdx126 = or i1 %conflict.rdx122, %found.conflict125
  %bound0127 = icmp ugt ptr %scevgep111, %1
  %bound1128 = icmp ugt ptr %scevgep109, %6
  %found.conflict129 = and i1 %bound0127, %bound1128
  %conflict.rdx130 = or i1 %conflict.rdx126, %found.conflict129
  br i1 %conflict.rdx130, label %.lr.ph73.preheader150, label %vector.ph134

vector.ph134:                                     ; preds = %vector.memcheck107
  %n.vec136 = and i64 %10, 9223372036854775806
  %ind.end137 = or i64 %10, 1
  %19 = load double, ptr %5, align 8, !tbaa !9, !alias.scope !11
  %broadcast.splatinsert146 = insertelement <2 x double> poison, double %19, i64 0
  %broadcast.splat147 = shufflevector <2 x double> %broadcast.splatinsert146, <2 x double> poison, <2 x i32> zeroinitializer
  %20 = load double, ptr %6, align 8, !tbaa !9, !alias.scope !14
  %broadcast.splatinsert144 = insertelement <2 x double> poison, double %20, i64 0
  %broadcast.splat145 = shufflevector <2 x double> %broadcast.splatinsert144, <2 x double> poison, <2 x i32> zeroinitializer
  %21 = fneg <2 x double> %broadcast.splat145
  br label %vector.body139

vector.body139:                                   ; preds = %vector.body139, %vector.ph134
  %index140 = phi i64 [ 0, %vector.ph134 ], [ %index.next148, %vector.body139 ]
  %22 = getelementptr double, ptr %1, i64 %index140
  %wide.load142 = load <2 x double>, ptr %22, align 8, !tbaa !9, !alias.scope !16, !noalias !18
  %23 = getelementptr double, ptr %3, i64 %index140
  %wide.load143 = load <2 x double>, ptr %23, align 8, !tbaa !9, !alias.scope !19, !noalias !21
  %24 = fmul <2 x double> %broadcast.splat145, %wide.load143
  %25 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat147, <2 x double> %wide.load142, <2 x double> %24)
  %26 = fmul <2 x double> %wide.load142, %21
  %27 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat147, <2 x double> %wide.load143, <2 x double> %26)
  store <2 x double> %27, ptr %23, align 8, !tbaa !9, !alias.scope !19, !noalias !21
  store <2 x double> %25, ptr %22, align 8, !tbaa !9, !alias.scope !16, !noalias !18
  %index.next148 = add nuw i64 %index140, 2
  %28 = icmp eq i64 %index.next148, %n.vec136
  br i1 %28, label %middle.block131, label %vector.body139, !llvm.loop !22

middle.block131:                                  ; preds = %vector.body139
  %cmp.n149 = icmp eq i64 %10, %n.vec136
  br i1 %cmp.n149, label %.loopexit, label %.lr.ph73.preheader150

..thread_crit_edge:                               ; preds = %15
  %.pre = sub nsw i64 1, %10
  br label %.lr.ph.preheader

thread-pre-split:                                 ; preds = %12
  %29 = icmp slt i64 %13, 0
  %30 = sub nsw i64 1, %10
  %31 = mul nsw i64 %13, %30
  %32 = add nuw nsw i64 %31, 1
  %.057.ph = select i1 %29, i64 %32, i64 1
  %.pr = load i64, ptr %4, align 8, !tbaa !5
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %thread-pre-split, %..thread_crit_edge
  %.pre-phi = phi i64 [ %.pre, %..thread_crit_edge ], [ %30, %thread-pre-split ]
  %33 = phi i64 [ %16, %..thread_crit_edge ], [ %.pr, %thread-pre-split ]
  %.057 = phi i64 [ 1, %..thread_crit_edge ], [ %.057.ph, %thread-pre-split ]
  %34 = icmp slt i64 %33, 0
  %35 = mul nsw i64 %33, %.pre-phi
  %36 = add nuw nsw i64 %35, 1
  %.0 = select i1 %34, i64 %36, i64 1
  %min.iters.check = icmp ult i64 %10, 14
  br i1 %min.iters.check, label %.lr.ph.preheader151, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph.preheader
  %ident.check = icmp ne i64 %13, 1
  %ident.check78 = icmp ne i64 %33, 1
  %37 = or i1 %ident.check, %ident.check78
  br i1 %37, label %.lr.ph.preheader151, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %38 = shl i64 %.0, 3
  %39 = getelementptr i8, ptr %3, i64 %38
  %scevgep = getelementptr i8, ptr %39, i64 -8
  %40 = shl i64 %10, 3
  %41 = getelementptr i8, ptr %3, i64 %38
  %42 = getelementptr i8, ptr %41, i64 %40
  %scevgep79 = getelementptr i8, ptr %42, i64 -8
  %43 = shl i64 %.057, 3
  %44 = getelementptr i8, ptr %1, i64 %43
  %scevgep80 = getelementptr i8, ptr %44, i64 -8
  %45 = getelementptr i8, ptr %1, i64 %43
  %46 = getelementptr i8, ptr %45, i64 %40
  %scevgep81 = getelementptr i8, ptr %46, i64 -8
  %scevgep82 = getelementptr i8, ptr %5, i64 8
  %scevgep83 = getelementptr i8, ptr %6, i64 8
  %bound0 = icmp ult ptr %39, %46
  %bound1 = icmp ult ptr %44, %42
  %found.conflict = and i1 %bound0, %bound1
  %bound084 = icmp ult ptr %scevgep, %scevgep82
  %bound185 = icmp ugt ptr %scevgep79, %5
  %found.conflict86 = and i1 %bound084, %bound185
  %conflict.rdx = or i1 %found.conflict, %found.conflict86
  %bound087 = icmp ult ptr %scevgep, %scevgep83
  %bound188 = icmp ugt ptr %scevgep79, %6
  %found.conflict89 = and i1 %bound087, %bound188
  %conflict.rdx90 = or i1 %conflict.rdx, %found.conflict89
  %bound091 = icmp ult ptr %scevgep80, %scevgep82
  %bound192 = icmp ugt ptr %scevgep81, %5
  %found.conflict93 = and i1 %bound091, %bound192
  %conflict.rdx94 = or i1 %conflict.rdx90, %found.conflict93
  %bound095 = icmp ult ptr %scevgep80, %scevgep83
  %bound196 = icmp ugt ptr %scevgep81, %6
  %found.conflict97 = and i1 %bound095, %bound196
  %conflict.rdx98 = or i1 %conflict.rdx94, %found.conflict97
  br i1 %conflict.rdx98, label %.lr.ph.preheader151, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %10, 9223372036854775806
  %47 = mul nuw i64 %n.vec, %33
  %ind.end = add i64 %.0, %47
  %48 = mul nuw i64 %n.vec, %13
  %ind.end99 = add i64 %.057, %48
  %ind.end101 = or i64 %10, 1
  %49 = load double, ptr %5, align 8, !tbaa !9, !alias.scope !26
  %broadcast.splatinsert105 = insertelement <2 x double> poison, double %49, i64 0
  %broadcast.splat106 = shufflevector <2 x double> %broadcast.splatinsert105, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = getelementptr double, ptr %9, i64 %.057
  %51 = load double, ptr %6, align 8, !tbaa !9, !alias.scope !29
  %broadcast.splatinsert = insertelement <2 x double> poison, double %51, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %52 = getelementptr double, ptr %8, i64 %.0
  %53 = fneg <2 x double> %broadcast.splat
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %54 = getelementptr double, ptr %50, i64 %index
  %wide.load = load <2 x double>, ptr %54, align 8, !tbaa !9, !alias.scope !31, !noalias !33
  %55 = getelementptr double, ptr %52, i64 %index
  %wide.load104 = load <2 x double>, ptr %55, align 8, !tbaa !9, !alias.scope !34, !noalias !36
  %56 = fmul <2 x double> %broadcast.splat, %wide.load104
  %57 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat106, <2 x double> %wide.load, <2 x double> %56)
  %58 = fmul <2 x double> %wide.load, %53
  %59 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat106, <2 x double> %wide.load104, <2 x double> %58)
  store <2 x double> %59, ptr %55, align 8, !tbaa !9, !alias.scope !34, !noalias !36
  store <2 x double> %57, ptr %54, align 8, !tbaa !9, !alias.scope !31, !noalias !33
  %index.next = add nuw i64 %index, 2
  %60 = icmp eq i64 %index.next, %n.vec
  br i1 %60, label %middle.block, label %vector.body, !llvm.loop !37

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %10, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader151

.lr.ph.preheader151:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph.preheader
  %.170.ph = phi i64 [ %.0, %vector.memcheck ], [ %.0, %vector.scevcheck ], [ %.0, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.15869.ph = phi i64 [ %.057, %vector.memcheck ], [ %.057, %vector.scevcheck ], [ %.057, %.lr.ph.preheader ], [ %ind.end99, %middle.block ]
  %.05968.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %vector.scevcheck ], [ 1, %.lr.ph.preheader ], [ %ind.end101, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader151, %.lr.ph
  %.170 = phi i64 [ %73, %.lr.ph ], [ %.170.ph, %.lr.ph.preheader151 ]
  %.15869 = phi i64 [ %72, %.lr.ph ], [ %.15869.ph, %.lr.ph.preheader151 ]
  %.05968 = phi i64 [ %74, %.lr.ph ], [ %.05968.ph, %.lr.ph.preheader151 ]
  %61 = load double, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds double, ptr %9, i64 %.15869
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = load double, ptr %6, align 8, !tbaa !9
  %65 = getelementptr inbounds double, ptr %8, i64 %.170
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = fmul double %64, %66
  %68 = tail call double @llvm.fmuladd.f64(double %61, double %63, double %67)
  %69 = fneg double %64
  %70 = fmul double %63, %69
  %71 = tail call double @llvm.fmuladd.f64(double %61, double %66, double %70)
  store double %71, ptr %65, align 8, !tbaa !9
  store double %68, ptr %62, align 8, !tbaa !9
  %72 = add nsw i64 %.15869, %13
  %73 = add nsw i64 %.170, %33
  %74 = add nuw i64 %.05968, 1
  %exitcond.not = icmp eq i64 %.05968, %10
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !38

.lr.ph73:                                         ; preds = %.lr.ph73.preheader150, %.lr.ph73
  %.16072 = phi i64 [ %86, %.lr.ph73 ], [ %.16072.ph, %.lr.ph73.preheader150 ]
  %75 = load double, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %9, i64 %.16072
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = load double, ptr %6, align 8, !tbaa !9
  %79 = getelementptr inbounds double, ptr %8, i64 %.16072
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = fmul double %78, %80
  %82 = tail call double @llvm.fmuladd.f64(double %75, double %77, double %81)
  %83 = fneg double %78
  %84 = fmul double %77, %83
  %85 = tail call double @llvm.fmuladd.f64(double %75, double %80, double %84)
  store double %85, ptr %79, align 8, !tbaa !9
  store double %82, ptr %76, align 8, !tbaa !9
  %86 = add nuw i64 %.16072, 1
  %exitcond75.not = icmp eq i64 %.16072, %10
  br i1 %exitcond75.not, label %.loopexit, label %.lr.ph73, !llvm.loop !39

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph73, %middle.block, %middle.block131, %7
  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}
!15 = distinct !{!15, !13}
!16 = !{!17}
!17 = distinct !{!17, !13}
!18 = !{!12, !15}
!19 = !{!20}
!20 = distinct !{!20, !13}
!21 = !{!17, !12, !15}
!22 = distinct !{!22, !23, !24, !25}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = !{!27}
!27 = distinct !{!27, !28}
!28 = distinct !{!28, !"LVerDomain"}
!29 = !{!30}
!30 = distinct !{!30, !28}
!31 = !{!32}
!32 = distinct !{!32, !28}
!33 = !{!27, !30}
!34 = !{!35}
!35 = distinct !{!35, !28}
!36 = !{!32, !27, !30}
!37 = distinct !{!37, !23, !24, !25}
!38 = distinct !{!38, !23, !24}
!39 = distinct !{!39, !23, !24}


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