; LLVM IR from softmin/ReHLine-SVM :: liblinear/blas (daxpy)

; 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 @daxpy_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, 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
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  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
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  store i64 %23, ptr %17, align 8, !tbaa !11
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load double, ptr %24, align 8, !tbaa !13
  store double %25, ptr %20, align 8, !tbaa !13
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  store i64 %28, ptr %18, align 8, !tbaa !11
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  store i64 %31, ptr %19, align 8, !tbaa !11
  %32 = load i64, ptr %17, align 8, !tbaa !11
  %33 = icmp sgt i64 %32, 0
  br i1 %33, label %34, label %167

34:                                               ; preds = %6
  %35 = load double, ptr %20, align 8, !tbaa !13
  %36 = fcmp une double %35, 0.000000e+00
  br i1 %36, label %37, label %167

37:                                               ; preds = %34
  %38 = load i64, ptr %18, align 8, !tbaa !11
  %39 = icmp eq i64 %38, 1
  br i1 %39, label %40, label %120

40:                                               ; preds = %37
  %41 = load i64, ptr %19, align 8, !tbaa !11
  %42 = icmp eq i64 %41, 1
  br i1 %42, label %43, label %120

43:                                               ; preds = %40
  %44 = load i64, ptr %17, align 8, !tbaa !11
  %45 = sub nsw i64 %44, 3
  store i64 %45, ptr %14, align 8, !tbaa !11
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %46

46:                                               ; preds = %97, %43
  %47 = load i64, ptr %13, align 8, !tbaa !11
  %48 = load i64, ptr %14, align 8, !tbaa !11
  %49 = icmp slt i64 %47, %48
  br i1 %49, label %50, label %100

50:                                               ; preds = %46
  %51 = load double, ptr %20, align 8, !tbaa !13
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load i64, ptr %13, align 8, !tbaa !11
  %54 = getelementptr inbounds double, ptr %52, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !13
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load i64, ptr %13, align 8, !tbaa !11
  %58 = getelementptr inbounds double, ptr %56, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !13
  %60 = call double @llvm.fmuladd.f64(double %51, double %55, double %59)
  store double %60, ptr %58, align 8, !tbaa !13
  %61 = load double, ptr %20, align 8, !tbaa !13
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load i64, ptr %13, align 8, !tbaa !11
  %64 = add nsw i64 %63, 1
  %65 = getelementptr inbounds double, ptr %62, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !13
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i64, ptr %13, align 8, !tbaa !11
  %69 = add nsw i64 %68, 1
  %70 = getelementptr inbounds double, ptr %67, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !13
  %72 = call double @llvm.fmuladd.f64(double %61, double %66, double %71)
  store double %72, ptr %70, align 8, !tbaa !13
  %73 = load double, ptr %20, align 8, !tbaa !13
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i64, ptr %13, align 8, !tbaa !11
  %76 = add nsw i64 %75, 2
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !13
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load i64, ptr %13, align 8, !tbaa !11
  %81 = add nsw i64 %80, 2
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !13
  %84 = call double @llvm.fmuladd.f64(double %73, double %78, double %83)
  store double %84, ptr %82, align 8, !tbaa !13
  %85 = load double, ptr %20, align 8, !tbaa !13
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load i64, ptr %13, align 8, !tbaa !11
  %88 = add nsw i64 %87, 3
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !13
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load i64, ptr %13, align 8, !tbaa !11
  %93 = add nsw i64 %92, 3
  %94 = getelementptr inbounds double, ptr %91, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !13
  %96 = call double @llvm.fmuladd.f64(double %85, double %90, double %95)
  store double %96, ptr %94, align 8, !tbaa !13
  br label %97

97:                                               ; preds = %50
  %98 = load i64, ptr %13, align 8, !tbaa !11
  %99 = add nsw i64 %98, 4
  store i64 %99, ptr %13, align 8, !tbaa !11
  br label %46, !llvm.loop !15

100:                                              ; preds = %46
  br label %101

101:                                              ; preds = %116, %100
  %102 = load i64, ptr %13, align 8, !tbaa !11
  %103 = load i64, ptr %17, align 8, !tbaa !11
  %104 = icmp slt i64 %102, %103
  br i1 %104, label %105, label %119

105:                                              ; preds = %101
  %106 = load double, ptr %20, align 8, !tbaa !13
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load i64, ptr %13, align 8, !tbaa !11
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !13
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = load i64, ptr %13, align 8, !tbaa !11
  %113 = getelementptr inbounds double, ptr %111, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !13
  %115 = call double @llvm.fmuladd.f64(double %106, double %110, double %114)
  store double %115, ptr %113, align 8, !tbaa !13
  br label %116

116:                                              ; preds = %105
  %117 = load i64, ptr %13, align 8, !tbaa !11
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %13, align 8, !tbaa !11
  br label %101, !llvm.loop !17

119:                                              ; preds = %101
  br label %166

120:                                              ; preds = %40, %37
  %121 = load i64, ptr %18, align 8, !tbaa !11
  %122 = icmp sge i64 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %120
  br label %129

124:                                              ; preds = %120
  %125 = load i64, ptr %17, align 8, !tbaa !11
  %126 = sub nsw i64 1, %125
  %127 = load i64, ptr %18, align 8, !tbaa !11
  %128 = mul nsw i64 %126, %127
  br label %129

129:                                              ; preds = %124, %123
  %130 = phi i64 [ 0, %123 ], [ %128, %124 ]
  store i64 %130, ptr %15, align 8, !tbaa !11
  %131 = load i64, ptr %19, align 8, !tbaa !11
  %132 = icmp sge i64 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %129
  br label %139

134:                                              ; preds = %129
  %135 = load i64, ptr %17, align 8, !tbaa !11
  %136 = sub nsw i64 1, %135
  %137 = load i64, ptr %19, align 8, !tbaa !11
  %138 = mul nsw i64 %136, %137
  br label %139

139:                                              ; preds = %134, %133
  %140 = phi i64 [ 0, %133 ], [ %138, %134 ]
  store i64 %140, ptr %16, align 8, !tbaa !11
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %141

141:                                              ; preds = %162, %139
  %142 = load i64, ptr %13, align 8, !tbaa !11
  %143 = load i64, ptr %17, align 8, !tbaa !11
  %144 = icmp slt i64 %142, %143
  br i1 %144, label %145, label %165

145:                                              ; preds = %141
  %146 = load double, ptr %20, align 8, !tbaa !13
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = load i64, ptr %15, align 8, !tbaa !11
  %149 = getelementptr inbounds double, ptr %147, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !13
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = load i64, ptr %16, align 8, !tbaa !11
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !13
  %155 = call double @llvm.fmuladd.f64(double %146, double %150, double %154)
  store double %155, ptr %153, align 8, !tbaa !13
  %156 = load i64, ptr %18, align 8, !tbaa !11
  %157 = load i64, ptr %15, align 8, !tbaa !11
  %158 = add nsw i64 %157, %156
  store i64 %158, ptr %15, align 8, !tbaa !11
  %159 = load i64, ptr %19, align 8, !tbaa !11
  %160 = load i64, ptr %16, align 8, !tbaa !11
  %161 = add nsw i64 %160, %159
  store i64 %161, ptr %16, align 8, !tbaa !11
  br label %162

162:                                              ; preds = %145
  %163 = load i64, ptr %13, align 8, !tbaa !11
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %13, align 8, !tbaa !11
  br label %141, !llvm.loop !18

165:                                              ; preds = %141
  br label %166

166:                                              ; preds = %165, %119
  br label %167

167:                                              ; preds = %166, %34, %6
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; 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 @daxpy_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4, ptr nocapture noundef readonly %5) local_unnamed_addr #0 {
  %7 = load i32, ptr %0, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = load double, ptr %1, align 8, !tbaa !9
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = icmp sgt i32 %7, 0
  %15 = fcmp une double %9, 0.000000e+00
  %or.cond = select i1 %14, i1 %15, i1 false
  br i1 %or.cond, label %16, label %.loopexit

16:                                               ; preds = %6
  %17 = icmp eq i32 %10, 1
  %18 = icmp eq i32 %12, 1
  %or.cond3 = select i1 %17, i1 %18, i1 false
  br i1 %or.cond3, label %19, label %.lr.ph.preheader

19:                                               ; preds = %16
  %20 = add nsw i64 %8, -3
  %21 = icmp ugt i32 %7, 3
  br i1 %21, label %.lr.ph71.preheader, label %.preheader

.lr.ph71.preheader:                               ; preds = %19
  %smax95 = tail call i64 @llvm.smax.i64(i64 %20, i64 4)
  %22 = add nsw i64 %smax95, -1
  %23 = lshr i64 %22, 2
  %24 = add nuw nsw i64 %23, 1
  %min.iters.check98 = icmp slt i32 %7, 16
  br i1 %min.iters.check98, label %.lr.ph71.preheader139, label %vector.memcheck89

.lr.ph71.preheader139:                            ; preds = %middle.block96, %vector.memcheck89, %.lr.ph71.preheader
  %.070.ph = phi i64 [ 0, %vector.memcheck89 ], [ 0, %.lr.ph71.preheader ], [ %ind.end102, %middle.block96 ]
  br label %.lr.ph71

vector.memcheck89:                                ; preds = %.lr.ph71.preheader
  %smax = tail call i64 @llvm.smax.i64(i64 %20, i64 4)
  %25 = shl i64 %smax, 3
  %26 = add i64 %25, -8
  %27 = and i64 %26, -32
  %28 = add nuw nsw i64 %27, 32
  %scevgep90 = getelementptr i8, ptr %4, i64 %28
  %scevgep91 = getelementptr i8, ptr %2, i64 %28
  %bound092 = icmp ugt ptr %scevgep91, %4
  %bound193 = icmp ugt ptr %scevgep90, %2
  %found.conflict94 = and i1 %bound092, %bound193
  br i1 %found.conflict94, label %.lr.ph71.preheader139, label %vector.ph99

vector.ph99:                                      ; preds = %vector.memcheck89
  %n.vec101 = and i64 %24, 9223372036854775806
  %ind.end102 = shl i64 %n.vec101, 2
  %broadcast.splatinsert107 = insertelement <2 x double> poison, double %9, i64 0
  %broadcast.splat108 = shufflevector <2 x double> %broadcast.splatinsert107, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body104

vector.body104:                                   ; preds = %vector.body104, %vector.ph99
  %index105 = phi i64 [ 0, %vector.ph99 ], [ %index.next109, %vector.body104 ]
  %offset.idx106 = shl i64 %index105, 2
  %29 = or disjoint i64 %offset.idx106, 4
  %30 = getelementptr inbounds double, ptr %2, i64 %offset.idx106
  %31 = getelementptr inbounds double, ptr %2, i64 %29
  %32 = load double, ptr %30, align 8, !tbaa !9, !alias.scope !11
  %33 = load double, ptr %31, align 8, !tbaa !9, !alias.scope !11
  %34 = insertelement <2 x double> poison, double %32, i64 0
  %35 = insertelement <2 x double> %34, double %33, i64 1
  %36 = getelementptr inbounds double, ptr %4, i64 %offset.idx106
  %37 = getelementptr inbounds double, ptr %4, i64 %29
  %38 = load double, ptr %36, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %39 = load double, ptr %37, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %40 = insertelement <2 x double> poison, double %38, i64 0
  %41 = insertelement <2 x double> %40, double %39, i64 1
  %42 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat108, <2 x double> %35, <2 x double> %41)
  %43 = or disjoint i64 %offset.idx106, 1
  %44 = or disjoint i64 %offset.idx106, 5
  %45 = getelementptr inbounds double, ptr %2, i64 %43
  %46 = getelementptr inbounds double, ptr %2, i64 %44
  %47 = load double, ptr %45, align 8, !tbaa !9, !alias.scope !11
  %48 = load double, ptr %46, align 8, !tbaa !9, !alias.scope !11
  %49 = insertelement <2 x double> poison, double %47, i64 0
  %50 = insertelement <2 x double> %49, double %48, i64 1
  %51 = getelementptr inbounds double, ptr %4, i64 %43
  %52 = getelementptr inbounds double, ptr %4, i64 %44
  %53 = load double, ptr %51, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %54 = load double, ptr %52, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %55 = insertelement <2 x double> poison, double %53, i64 0
  %56 = insertelement <2 x double> %55, double %54, i64 1
  %57 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat108, <2 x double> %50, <2 x double> %56)
  %58 = or disjoint i64 %offset.idx106, 2
  %59 = or disjoint i64 %offset.idx106, 6
  %60 = getelementptr inbounds double, ptr %2, i64 %58
  %61 = getelementptr inbounds double, ptr %2, i64 %59
  %62 = load double, ptr %60, align 8, !tbaa !9, !alias.scope !11
  %63 = load double, ptr %61, align 8, !tbaa !9, !alias.scope !11
  %64 = insertelement <2 x double> poison, double %62, i64 0
  %65 = insertelement <2 x double> %64, double %63, i64 1
  %66 = getelementptr inbounds double, ptr %4, i64 %58
  %67 = getelementptr inbounds double, ptr %4, i64 %59
  %68 = load double, ptr %66, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %69 = load double, ptr %67, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %70 = insertelement <2 x double> poison, double %68, i64 0
  %71 = insertelement <2 x double> %70, double %69, i64 1
  %72 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat108, <2 x double> %65, <2 x double> %71)
  %73 = or disjoint i64 %offset.idx106, 3
  %74 = or disjoint i64 %offset.idx106, 7
  %75 = getelementptr inbounds double, ptr %2, i64 %73
  %76 = getelementptr inbounds double, ptr %2, i64 %74
  %77 = load double, ptr %75, align 8, !tbaa !9, !alias.scope !11
  %78 = load double, ptr %76, align 8, !tbaa !9, !alias.scope !11
  %79 = insertelement <2 x double> poison, double %77, i64 0
  %80 = insertelement <2 x double> %79, double %78, i64 1
  %81 = getelementptr inbounds double, ptr %4, i64 %73
  %82 = getelementptr inbounds double, ptr %4, i64 %74
  %83 = load double, ptr %81, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %84 = load double, ptr %82, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %85 = insertelement <2 x double> poison, double %83, i64 0
  %86 = insertelement <2 x double> %85, double %84, i64 1
  %87 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat108, <2 x double> %80, <2 x double> %86)
  %88 = getelementptr inbounds i8, ptr %81, i64 -24
  %89 = shufflevector <2 x double> %42, <2 x double> %57, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %90 = shufflevector <2 x double> %72, <2 x double> %87, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %interleaved.vec = shufflevector <4 x double> %89, <4 x double> %90, <8 x i32> <i32 0, i32 2, i32 4, i32 6, i32 1, i32 3, i32 5, i32 7>
  store <8 x double> %interleaved.vec, ptr %88, align 8, !tbaa !9
  %index.next109 = add nuw i64 %index105, 2
  %91 = icmp eq i64 %index.next109, %n.vec101
  br i1 %91, label %middle.block96, label %vector.body104, !llvm.loop !16

middle.block96:                                   ; preds = %vector.body104
  %cmp.n110 = icmp eq i64 %24, %n.vec101
  br i1 %cmp.n110, label %.preheader, label %.lr.ph71.preheader139

.preheader:                                       ; preds = %.lr.ph71, %middle.block96, %19
  %.0.lcssa = phi i64 [ 0, %19 ], [ %ind.end102, %middle.block96 ], [ %135, %.lr.ph71 ]
  %92 = icmp slt i64 %.0.lcssa, %8
  br i1 %92, label %.lr.ph73.preheader, label %.loopexit

.lr.ph73.preheader:                               ; preds = %.preheader
  %93 = sub i64 %8, %.0.lcssa
  %min.iters.check121 = icmp ult i64 %93, 6
  br i1 %min.iters.check121, label %.lr.ph73.preheader138, label %vector.memcheck111

.lr.ph73.preheader138:                            ; preds = %middle.block119, %vector.memcheck111, %.lr.ph73.preheader
  %.172.ph = phi i64 [ %.0.lcssa, %vector.memcheck111 ], [ %.0.lcssa, %.lr.ph73.preheader ], [ %ind.end125, %middle.block119 ]
  %94 = sub i64 %8, %.172.ph
  %xtraiter142 = and i64 %94, 1
  %lcmp.mod143.not = icmp eq i64 %xtraiter142, 0
  br i1 %lcmp.mod143.not, label %.lr.ph73.prol.loopexit, label %.lr.ph73.prol

.lr.ph73.prol:                                    ; preds = %.lr.ph73.preheader138
  %95 = getelementptr inbounds double, ptr %2, i64 %.172.ph
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds double, ptr %4, i64 %.172.ph
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = tail call double @llvm.fmuladd.f64(double %9, double %96, double %98)
  store double %99, ptr %97, align 8, !tbaa !9
  %100 = add nuw nsw i64 %.172.ph, 1
  br label %.lr.ph73.prol.loopexit

.lr.ph73.prol.loopexit:                           ; preds = %.lr.ph73.prol, %.lr.ph73.preheader138
  %.172.unr = phi i64 [ %.172.ph, %.lr.ph73.preheader138 ], [ %100, %.lr.ph73.prol ]
  %101 = add nsw i64 %8, -1
  %102 = icmp eq i64 %.172.ph, %101
  br i1 %102, label %.loopexit, label %.lr.ph73

vector.memcheck111:                               ; preds = %.lr.ph73.preheader
  %103 = shl nuw nsw i64 %.0.lcssa, 3
  %scevgep112 = getelementptr i8, ptr %4, i64 %103
  %104 = shl nuw nsw i64 %8, 3
  %scevgep113 = getelementptr i8, ptr %4, i64 %104
  %scevgep114 = getelementptr i8, ptr %2, i64 %103
  %scevgep115 = getelementptr i8, ptr %2, i64 %104
  %bound0116 = icmp ult ptr %scevgep112, %scevgep115
  %bound1117 = icmp ult ptr %scevgep114, %scevgep113
  %found.conflict118 = and i1 %bound0116, %bound1117
  br i1 %found.conflict118, label %.lr.ph73.preheader138, label %vector.ph122

vector.ph122:                                     ; preds = %vector.memcheck111
  %n.vec124 = and i64 %93, -4
  %ind.end125 = add i64 %.0.lcssa, %n.vec124
  %broadcast.splatinsert134 = insertelement <2 x double> poison, double %9, i64 0
  %broadcast.splat135 = shufflevector <2 x double> %broadcast.splatinsert134, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body127

vector.body127:                                   ; preds = %vector.body127, %vector.ph122
  %index128 = phi i64 [ 0, %vector.ph122 ], [ %index.next136, %vector.body127 ]
  %offset.idx129 = add i64 %.0.lcssa, %index128
  %105 = getelementptr inbounds double, ptr %2, i64 %offset.idx129
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  %wide.load130 = load <2 x double>, ptr %105, align 8, !tbaa !9, !alias.scope !20
  %wide.load131 = load <2 x double>, ptr %106, align 8, !tbaa !9, !alias.scope !20
  %107 = getelementptr inbounds double, ptr %4, i64 %offset.idx129
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  %wide.load132 = load <2 x double>, ptr %107, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %wide.load133 = load <2 x double>, ptr %108, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %109 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat135, <2 x double> %wide.load130, <2 x double> %wide.load132)
  %110 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat135, <2 x double> %wide.load131, <2 x double> %wide.load133)
  store <2 x double> %109, ptr %107, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  store <2 x double> %110, ptr %108, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %index.next136 = add nuw i64 %index128, 4
  %111 = icmp eq i64 %index.next136, %n.vec124
  br i1 %111, label %middle.block119, label %vector.body127, !llvm.loop !25

middle.block119:                                  ; preds = %vector.body127
  %cmp.n137 = icmp eq i64 %93, %n.vec124
  br i1 %cmp.n137, label %.loopexit, label %.lr.ph73.preheader138

.lr.ph71:                                         ; preds = %.lr.ph71.preheader139, %.lr.ph71
  %.070 = phi i64 [ %135, %.lr.ph71 ], [ %.070.ph, %.lr.ph71.preheader139 ]
  %112 = getelementptr inbounds double, ptr %2, i64 %.070
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %4, i64 %.070
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = tail call double @llvm.fmuladd.f64(double %9, double %113, double %115)
  store double %116, ptr %114, align 8, !tbaa !9
  %117 = or disjoint i64 %.070, 1
  %118 = getelementptr inbounds double, ptr %2, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %4, i64 %117
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = tail call double @llvm.fmuladd.f64(double %9, double %119, double %121)
  store double %122, ptr %120, align 8, !tbaa !9
  %123 = or disjoint i64 %.070, 2
  %124 = getelementptr inbounds double, ptr %2, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds double, ptr %4, i64 %123
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = tail call double @llvm.fmuladd.f64(double %9, double %125, double %127)
  store double %128, ptr %126, align 8, !tbaa !9
  %129 = or disjoint i64 %.070, 3
  %130 = getelementptr inbounds double, ptr %2, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %4, i64 %129
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = tail call double @llvm.fmuladd.f64(double %9, double %131, double %133)
  store double %134, ptr %132, align 8, !tbaa !9
  %135 = add nuw nsw i64 %.070, 4
  %136 = icmp slt i64 %135, %20
  br i1 %136, label %.lr.ph71, label %.preheader, !llvm.loop !26

.lr.ph73:                                         ; preds = %.lr.ph73.prol.loopexit, %.lr.ph73
  %.172 = phi i64 [ %148, %.lr.ph73 ], [ %.172.unr, %.lr.ph73.prol.loopexit ]
  %137 = getelementptr inbounds double, ptr %2, i64 %.172
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %4, i64 %.172
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = tail call double @llvm.fmuladd.f64(double %9, double %138, double %140)
  store double %141, ptr %139, align 8, !tbaa !9
  %142 = add nuw nsw i64 %.172, 1
  %143 = getelementptr inbounds double, ptr %2, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %4, i64 %142
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = tail call double @llvm.fmuladd.f64(double %9, double %144, double %146)
  store double %147, ptr %145, align 8, !tbaa !9
  %148 = add nuw nsw i64 %.172, 2
  %exitcond75.not.1 = icmp eq i64 %148, %8
  br i1 %exitcond75.not.1, label %.loopexit, label %.lr.ph73, !llvm.loop !27

.lr.ph.preheader:                                 ; preds = %16
  %149 = icmp sgt i32 %12, -1
  %150 = sub nsw i64 1, %8
  %151 = mul nsw i64 %150, %13
  %152 = select i1 %149, i64 0, i64 %151
  %153 = icmp sgt i32 %10, -1
  %154 = mul nsw i64 %150, %11
  %155 = select i1 %153, i64 0, i64 %154
  %min.iters.check = icmp ult i32 %7, 10
  br i1 %min.iters.check, label %.lr.ph.preheader140, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph.preheader
  %ident.check = icmp ne i32 %12, 1
  %ident.check78 = icmp ne i32 %10, 1
  %156 = or i1 %ident.check, %ident.check78
  br i1 %156, label %.lr.ph.preheader140, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %157 = shl i64 %152, 3
  %scevgep = getelementptr i8, ptr %4, i64 %157
  %158 = shl nuw nsw i64 %8, 3
  %159 = getelementptr i8, ptr %4, i64 %157
  %scevgep79 = getelementptr i8, ptr %159, i64 %158
  %160 = shl i64 %155, 3
  %scevgep80 = getelementptr i8, ptr %2, i64 %160
  %161 = getelementptr i8, ptr %2, i64 %160
  %scevgep81 = getelementptr i8, ptr %161, i64 %158
  %bound0 = icmp ult ptr %scevgep, %scevgep81
  %bound1 = icmp ult ptr %scevgep80, %scevgep79
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader140, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %8, 2147483644
  %162 = mul nuw nsw i64 %n.vec, %11
  %ind.end = add nsw i64 %155, %162
  %163 = mul nuw nsw i64 %n.vec, %13
  %ind.end83 = add nsw i64 %152, %163
  %broadcast.splatinsert = insertelement <2 x double> poison, double %9, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %164 = getelementptr double, ptr %2, i64 %155
  %165 = getelementptr double, ptr %4, i64 %152
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %166 = mul nuw i64 %index, %11
  %167 = mul nuw i64 %index, %13
  %168 = getelementptr double, ptr %164, i64 %166
  %169 = getelementptr inbounds i8, ptr %168, i64 16
  %wide.load = load <2 x double>, ptr %168, align 8, !tbaa !9, !alias.scope !28
  %wide.load86 = load <2 x double>, ptr %169, align 8, !tbaa !9, !alias.scope !28
  %170 = getelementptr double, ptr %165, i64 %167
  %171 = getelementptr inbounds i8, ptr %170, i64 16
  %wide.load87 = load <2 x double>, ptr %170, align 8, !tbaa !9, !alias.scope !31, !noalias !28
  %wide.load88 = load <2 x double>, ptr %171, align 8, !tbaa !9, !alias.scope !31, !noalias !28
  %172 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load87)
  %173 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load86, <2 x double> %wide.load88)
  store <2 x double> %172, ptr %170, align 8, !tbaa !9, !alias.scope !31, !noalias !28
  store <2 x double> %173, ptr %171, align 8, !tbaa !9, !alias.scope !31, !noalias !28
  %index.next = add nuw i64 %index, 4
  %174 = icmp eq i64 %index.next, %n.vec
  br i1 %174, label %middle.block, label %vector.body, !llvm.loop !33

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

.lr.ph.preheader140:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph.preheader
  %.269.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %vector.scevcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.06068.ph = phi i64 [ %155, %vector.memcheck ], [ %155, %vector.scevcheck ], [ %155, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.06167.ph = phi i64 [ %152, %vector.memcheck ], [ %152, %vector.scevcheck ], [ %152, %.lr.ph.preheader ], [ %ind.end83, %middle.block ]
  %xtraiter = and i64 %8, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader140
  %175 = getelementptr inbounds double, ptr %2, i64 %.06068.ph
  %176 = load double, ptr %175, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %4, i64 %.06167.ph
  %178 = load double, ptr %177, align 8, !tbaa !9
  %179 = tail call double @llvm.fmuladd.f64(double %9, double %176, double %178)
  store double %179, ptr %177, align 8, !tbaa !9
  %180 = add nsw i64 %.06068.ph, %11
  %181 = add nsw i64 %.06167.ph, %13
  %182 = or disjoint i64 %.269.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader140
  %.269.unr = phi i64 [ %.269.ph, %.lr.ph.preheader140 ], [ %182, %.lr.ph.prol ]
  %.06068.unr = phi i64 [ %.06068.ph, %.lr.ph.preheader140 ], [ %180, %.lr.ph.prol ]
  %.06167.unr = phi i64 [ %.06167.ph, %.lr.ph.preheader140 ], [ %181, %.lr.ph.prol ]
  %183 = add nsw i64 %8, -1
  %184 = icmp eq i64 %.269.ph, %183
  br i1 %184, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.269 = phi i64 [ %199, %.lr.ph ], [ %.269.unr, %.lr.ph.prol.loopexit ]
  %.06068 = phi i64 [ %197, %.lr.ph ], [ %.06068.unr, %.lr.ph.prol.loopexit ]
  %.06167 = phi i64 [ %198, %.lr.ph ], [ %.06167.unr, %.lr.ph.prol.loopexit ]
  %185 = getelementptr inbounds double, ptr %2, i64 %.06068
  %186 = load double, ptr %185, align 8, !tbaa !9
  %187 = getelementptr inbounds double, ptr %4, i64 %.06167
  %188 = load double, ptr %187, align 8, !tbaa !9
  %189 = tail call double @llvm.fmuladd.f64(double %9, double %186, double %188)
  store double %189, ptr %187, align 8, !tbaa !9
  %190 = add nsw i64 %.06068, %11
  %191 = add nsw i64 %.06167, %13
  %192 = getelementptr inbounds double, ptr %2, i64 %190
  %193 = load double, ptr %192, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %4, i64 %191
  %195 = load double, ptr %194, align 8, !tbaa !9
  %196 = tail call double @llvm.fmuladd.f64(double %9, double %193, double %195)
  store double %196, ptr %194, align 8, !tbaa !9
  %197 = add nsw i64 %190, %11
  %198 = add nsw i64 %191, %13
  %199 = add nuw nsw i64 %.269, 2
  %exitcond.not.1 = icmp eq i64 %199, %8
  br i1 %exitcond.not.1, label %.loopexit, label %.lr.ph, !llvm.loop !34

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph73.prol.loopexit, %.lr.ph73, %middle.block, %middle.block119, %.preheader, %6
  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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #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 = !{!"int", !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 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = !{!24}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !17, !18, !19}
!26 = distinct !{!26, !17, !18}
!27 = distinct !{!27, !17, !18}
!28 = !{!29}
!29 = distinct !{!29, !30}
!30 = distinct !{!30, !"LVerDomain"}
!31 = !{!32}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !17, !18, !19}
!34 = distinct !{!34, !17, !18}


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