; LLVM IR from emathew1/3DCompactSolver :: Utils.ll (Z6cyclicPdS_S_ddS_iS_)

; 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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8solveTriPdS_S_S_S_S_i(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6cyclicPdS_S_ddS_iS_(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, 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 double %3, ptr %12, align 8, !tbaa !9
  store double %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i32 %6, ptr %15, align 4, !tbaa !11
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %25 = load i32, ptr %15, align 4, !tbaa !11
  %26 = zext i32 %25 to i64
  %27 = call ptr @llvm.stacksave.p0()
  store ptr %27, ptr %20, align 8
  %28 = alloca double, i64 %26, align 16
  store i64 %26, ptr %21, align 8
  %29 = load i32, ptr %15, align 4, !tbaa !11
  %30 = zext i32 %29 to i64
  %31 = alloca double, i64 %30, align 16
  store i64 %30, ptr %22, align 8
  %32 = load i32, ptr %15, align 4, !tbaa !11
  %33 = zext i32 %32 to i64
  %34 = alloca double, i64 %33, align 16
  store i64 %33, ptr %23, align 8
  %35 = load i32, ptr %15, align 4, !tbaa !11
  %36 = zext i32 %35 to i64
  %37 = alloca double, i64 %36, align 16
  store i64 %36, ptr %24, align 8
  %38 = load i32, ptr %15, align 4, !tbaa !11
  %39 = icmp sle i32 %38, 2
  br i1 %39, label %40, label %43

40:                                               ; preds = %8
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %43

43:                                               ; preds = %40, %8
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 0
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = fneg double %46
  store double %47, ptr %19, align 8, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !13
  br label %48

48:                                               ; preds = %60, %43
  %49 = load i64, ptr %17, align 8, !tbaa !13
  %50 = load i32, ptr %15, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = icmp ult i64 %49, %51
  br i1 %52, label %53, label %63

53:                                               ; preds = %48
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i64, ptr %17, align 8, !tbaa !13
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = load i64, ptr %17, align 8, !tbaa !13
  %59 = getelementptr inbounds double, ptr %28, i64 %58
  store double %57, ptr %59, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %53
  %61 = load i64, ptr %17, align 8, !tbaa !13
  %62 = add i64 %61, 1
  store i64 %62, ptr %17, align 8, !tbaa !13
  br label %48, !llvm.loop !15

63:                                               ; preds = %48
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 0
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = load double, ptr %19, align 8, !tbaa !9
  %68 = fsub double %66, %67
  %69 = getelementptr inbounds double, ptr %28, i64 0
  store double %68, ptr %69, align 16, !tbaa !9
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load i32, ptr %15, align 4, !tbaa !11
  %72 = sub nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %70, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = load double, ptr %12, align 8, !tbaa !9
  %77 = load double, ptr %13, align 8, !tbaa !9
  %78 = fmul double %76, %77
  %79 = load double, ptr %19, align 8, !tbaa !9
  %80 = fdiv double %78, %79
  %81 = fsub double %75, %80
  %82 = load i32, ptr %15, align 4, !tbaa !11
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %28, i64 %84
  store double %81, ptr %85, align 8, !tbaa !9
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load i32, ptr %15, align 4, !tbaa !11
  call void @_Z8solveTriPdS_S_S_S_S_i(ptr noundef %86, ptr noundef %28, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %37, i32 noundef %90)
  store i64 0, ptr %17, align 8, !tbaa !13
  br label %91

91:                                               ; preds = %99, %63
  %92 = load i64, ptr %17, align 8, !tbaa !13
  %93 = load i32, ptr %15, align 4, !tbaa !11
  %94 = sext i32 %93 to i64
  %95 = icmp ult i64 %92, %94
  br i1 %95, label %96, label %102

96:                                               ; preds = %91
  %97 = load i64, ptr %17, align 8, !tbaa !13
  %98 = getelementptr inbounds double, ptr %31, i64 %97
  store double 0.000000e+00, ptr %98, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %96
  %100 = load i64, ptr %17, align 8, !tbaa !13
  %101 = add i64 %100, 1
  store i64 %101, ptr %17, align 8, !tbaa !13
  br label %91, !llvm.loop !17

102:                                              ; preds = %91
  %103 = load double, ptr %19, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %31, i64 0
  store double %103, ptr %104, align 16, !tbaa !9
  %105 = load double, ptr %12, align 8, !tbaa !9
  %106 = load i32, ptr %15, align 4, !tbaa !11
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %31, i64 %108
  store double %105, ptr %109, align 8, !tbaa !9
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = load i32, ptr %15, align 4, !tbaa !11
  call void @_Z8solveTriPdS_S_S_S_S_i(ptr noundef %110, ptr noundef %28, ptr noundef %111, ptr noundef %31, ptr noundef %34, ptr noundef %37, i32 noundef %112)
  %113 = load ptr, ptr %16, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %113, i64 0
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = load double, ptr %13, align 8, !tbaa !9
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = load i32, ptr %15, align 4, !tbaa !11
  %119 = sub nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %117, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = fmul double %116, %122
  %124 = load double, ptr %19, align 8, !tbaa !9
  %125 = fdiv double %123, %124
  %126 = fadd double %115, %125
  %127 = getelementptr inbounds double, ptr %34, i64 0
  %128 = load double, ptr %127, align 16, !tbaa !9
  %129 = fadd double 1.000000e+00, %128
  %130 = load double, ptr %13, align 8, !tbaa !9
  %131 = load i32, ptr %15, align 4, !tbaa !11
  %132 = sub nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %34, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = fmul double %130, %135
  %137 = load double, ptr %19, align 8, !tbaa !9
  %138 = fdiv double %136, %137
  %139 = fadd double %129, %138
  %140 = fdiv double %126, %139
  store double %140, ptr %18, align 8, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !13
  br label %141

141:                                              ; preds = %157, %102
  %142 = load i64, ptr %17, align 8, !tbaa !13
  %143 = load i32, ptr %15, align 4, !tbaa !11
  %144 = sext i32 %143 to i64
  %145 = icmp ult i64 %142, %144
  br i1 %145, label %146, label %160

146:                                              ; preds = %141
  %147 = load double, ptr %18, align 8, !tbaa !9
  %148 = load i64, ptr %17, align 8, !tbaa !13
  %149 = getelementptr inbounds double, ptr %34, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = load i64, ptr %17, align 8, !tbaa !13
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = fneg double %147
  %156 = call double @llvm.fmuladd.f64(double %155, double %150, double %154)
  store double %156, ptr %153, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %146
  %158 = load i64, ptr %17, align 8, !tbaa !13
  %159 = add i64 %158, 1
  store i64 %159, ptr %17, align 8, !tbaa !13
  br label %141, !llvm.loop !18

160:                                              ; preds = %141
  %161 = load ptr, ptr %20, align 8
  call void @llvm.stackrestore.p0(ptr %161)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress 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 = { mustprogress 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 #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { inlinehint mustprogress 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 #6 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8solveTriPdS_S_S_S_S_i(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6cyclicPdS_S_ddS_iS_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, double noundef %3, double noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = zext i32 %6 to i64
  %10 = alloca double, i64 %9, align 16
  %11 = alloca double, i64 %9, align 16
  %12 = alloca double, i64 %9, align 16
  %13 = alloca double, i64 %9, align 16
  %14 = icmp slt i32 %6, 3
  br i1 %14, label %18, label %.thread

.thread:                                          ; preds = %8
  %15 = load double, ptr %1, align 8, !tbaa !5
  %16 = fneg double %15
  %17 = zext nneg i32 %6 to i64
  br label %.lr.ph.preheader

18:                                               ; preds = %8
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %21 = load double, ptr %1, align 8, !tbaa !5
  %22 = fneg double %21
  %23 = sext i32 %6 to i64
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.thread, %18
  %24 = phi i64 [ %17, %.thread ], [ %23, %18 ]
  %25 = phi double [ %16, %.thread ], [ %22, %18 ]
  %26 = phi double [ %15, %.thread ], [ %21, %18 ]
  %27 = shl nuw nsw i64 %24, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %10, ptr nonnull align 8 %1, i64 %27, i1 false), !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %18
  %.not64 = phi i1 [ false, %.lr.ph.preheader ], [ true, %18 ]
  %28 = phi i64 [ %24, %.lr.ph.preheader ], [ 0, %18 ]
  %29 = phi double [ %25, %.lr.ph.preheader ], [ %22, %18 ]
  %30 = phi double [ %26, %.lr.ph.preheader ], [ %21, %18 ]
  %31 = fadd double %30, %30
  store double %31, ptr %10, align 16, !tbaa !5
  %32 = add nsw i32 %6, -1
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %1, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = fmul double %3, %4
  %37 = fdiv double %36, %30
  %38 = fadd double %37, %35
  %39 = getelementptr inbounds double, ptr %10, i64 %33
  store double %38, ptr %39, align 8, !tbaa !5
  call void @_Z8solveTriPdS_S_S_S_S_i(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %2, ptr noundef %5, ptr noundef %7, ptr noundef nonnull %13, i32 noundef %6)
  br i1 %.not64, label %._crit_edge55.thread, label %.lr.ph58

._crit_edge55.thread:                             ; preds = %._crit_edge
  store double %29, ptr %11, align 16, !tbaa !5
  %40 = getelementptr inbounds double, ptr %11, i64 %33
  store double %3, ptr %40, align 8, !tbaa !5
  call void @_Z8solveTriPdS_S_S_S_S_i(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %2, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, i32 noundef %6)
  br label %._crit_edge59

.lr.ph58:                                         ; preds = %._crit_edge
  %41 = shl nuw nsw i64 %28, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %11, i8 0, i64 %41, i1 false), !tbaa !5
  store double %29, ptr %11, align 16, !tbaa !5
  %42 = getelementptr inbounds double, ptr %11, i64 %33
  store double %3, ptr %42, align 8, !tbaa !5
  call void @_Z8solveTriPdS_S_S_S_S_i(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %2, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, i32 noundef %6)
  %43 = load double, ptr %12, align 16, !tbaa !5
  %44 = fadd double %43, 1.000000e+00
  %45 = getelementptr inbounds double, ptr %12, i64 %33
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = fmul double %46, %4
  %48 = fdiv double %47, %30
  %49 = fsub double %44, %48
  %50 = load double, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %7, i64 %33
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = fmul double %52, %4
  %54 = fdiv double %53, %30
  %55 = fsub double %50, %54
  %56 = fneg double %55
  %57 = fdiv double %56, %49
  %min.iters.check = icmp ult i64 %28, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph58
  %n.vec = and i64 %28, -4
  %broadcast.splatinsert = insertelement <2 x double> poison, double %57, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <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 ]
  %58 = getelementptr inbounds double, ptr %12, i64 %index
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load = load <2 x double>, ptr %58, align 16, !tbaa !5
  %wide.load65 = load <2 x double>, ptr %59, align 16, !tbaa !5
  %60 = getelementptr inbounds double, ptr %7, i64 %index
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  %wide.load66 = load <2 x double>, ptr %60, align 8, !tbaa !5
  %wide.load67 = load <2 x double>, ptr %61, align 8, !tbaa !5
  %62 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load66)
  %63 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load65, <2 x double> %wide.load67)
  store <2 x double> %62, ptr %60, align 8, !tbaa !5
  store <2 x double> %63, ptr %61, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %64 = icmp eq i64 %index.next, %n.vec
  br i1 %64, label %middle.block, label %vector.body, !llvm.loop !9

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

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph58
  %.256.ph = phi i64 [ 0, %.lr.ph58 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.256 = phi i64 [ %70, %scalar.ph ], [ %.256.ph, %scalar.ph.preheader ]
  %65 = getelementptr inbounds double, ptr %12, i64 %.256
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %7, i64 %.256
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = call double @llvm.fmuladd.f64(double %57, double %66, double %68)
  store double %69, ptr %67, align 8, !tbaa !5
  %70 = add nuw i64 %.256, 1
  %exitcond.not = icmp eq i64 %70, %28
  br i1 %exitcond.not, label %._crit_edge59, label %scalar.ph, !llvm.loop !13

._crit_edge59:                                    ; preds = %scalar.ph, %middle.block, %._crit_edge55.thread
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; 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>) #6

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}


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