; LLVM IR from pmla/polyhedral-template-matching :: ptm_deformation_gradient.ll (ZN3ptm30calculate_deformation_gradientEiPA3_KdPaPA3_dS2_PdS6_)

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3ptm30calculate_deformation_gradientEiPA3_KdPaPA3_dS2_PdS6_(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  store i32 %0, ptr %8, align 4, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %79, %7
  %26 = load i32, ptr %15, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 3
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %82

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %75, %29
  %31 = load i32, ptr %17, align 4, !tbaa !5
  %32 = icmp slt i32 %31, 3
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %78

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %63, %34
  %36 = load i32, ptr %19, align 4, !tbaa !5
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %66

40:                                               ; preds = %35
  %41 = load ptr, ptr %12, align 8, !tbaa !9
  %42 = load i32, ptr %19, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [3 x double], ptr %41, i64 %43
  %45 = load i32, ptr %17, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [3 x double], ptr %44, i64 0, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = load ptr, ptr %11, align 8, !tbaa !9
  %50 = load ptr, ptr %10, align 8, !tbaa !9
  %51 = load i32, ptr %19, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i8, ptr %50, i64 %52
  %54 = load i8, ptr %53, align 1, !tbaa !13
  %55 = sext i8 %54 to i64
  %56 = getelementptr inbounds [3 x double], ptr %49, i64 %55
  %57 = load i32, ptr %15, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [3 x double], ptr %56, i64 0, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  %61 = load double, ptr %18, align 8, !tbaa !11
  %62 = call double @llvm.fmuladd.f64(double %48, double %60, double %61)
  store double %62, ptr %18, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %40
  %64 = load i32, ptr %19, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %19, align 4, !tbaa !5
  br label %35, !llvm.loop !14

66:                                               ; preds = %39
  %67 = load double, ptr %18, align 8, !tbaa !11
  %68 = load ptr, ptr %13, align 8, !tbaa !9
  %69 = load i32, ptr %15, align 4, !tbaa !5
  %70 = mul nsw i32 %69, 3
  %71 = load i32, ptr %17, align 4, !tbaa !5
  %72 = add nsw i32 %70, %71
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %68, i64 %73
  store double %67, ptr %74, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %75

75:                                               ; preds = %66
  %76 = load i32, ptr %17, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %17, align 4, !tbaa !5
  br label %30, !llvm.loop !16

78:                                               ; preds = %33
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %15, align 4, !tbaa !5
  br label %25, !llvm.loop !17

82:                                               ; preds = %28
  %83 = load ptr, ptr %14, align 8, !tbaa !9
  %84 = getelementptr inbounds double, ptr %83, i64 0
  store double 0.000000e+00, ptr %84, align 8, !tbaa !11
  %85 = load ptr, ptr %14, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %85, i64 1
  store double 0.000000e+00, ptr %86, align 8, !tbaa !11
  %87 = load ptr, ptr %14, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %87, i64 2
  store double 0.000000e+00, ptr %88, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %153, %82
  %90 = load i32, ptr %20, align 4, !tbaa !5
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

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

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

95:                                               ; preds = %149, %94
  %96 = load i32, ptr %21, align 4, !tbaa !5
  %97 = icmp slt i32 %96, 3
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %152

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %123, %99
  %101 = load i32, ptr %23, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 3
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %126

104:                                              ; preds = %100
  %105 = load ptr, ptr %13, align 8, !tbaa !9
  %106 = load i32, ptr %21, align 4, !tbaa !5
  %107 = mul nsw i32 %106, 3
  %108 = load i32, ptr %23, align 4, !tbaa !5
  %109 = add nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %105, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !11
  %113 = load ptr, ptr %9, align 8, !tbaa !9
  %114 = load i32, ptr %20, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [3 x double], ptr %113, i64 %115
  %117 = load i32, ptr %23, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [3 x double], ptr %116, i64 0, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !11
  %121 = load double, ptr %22, align 8, !tbaa !11
  %122 = call double @llvm.fmuladd.f64(double %112, double %120, double %121)
  store double %122, ptr %22, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %104
  %124 = load i32, ptr %23, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %23, align 4, !tbaa !5
  br label %100, !llvm.loop !18

126:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %127 = load double, ptr %22, align 8, !tbaa !11
  %128 = load ptr, ptr %11, align 8, !tbaa !9
  %129 = load ptr, ptr %10, align 8, !tbaa !9
  %130 = load i32, ptr %20, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  %133 = load i8, ptr %132, align 1, !tbaa !13
  %134 = sext i8 %133 to i64
  %135 = getelementptr inbounds [3 x double], ptr %128, i64 %134
  %136 = load i32, ptr %21, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [3 x double], ptr %135, i64 0, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = fsub double %127, %139
  store double %140, ptr %24, align 8, !tbaa !11
  %141 = load double, ptr %24, align 8, !tbaa !11
  %142 = load double, ptr %24, align 8, !tbaa !11
  %143 = load ptr, ptr %14, align 8, !tbaa !9
  %144 = load i32, ptr %21, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %143, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  %148 = call double @llvm.fmuladd.f64(double %141, double %142, double %147)
  store double %148, ptr %146, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  br label %149

149:                                              ; preds = %126
  %150 = load i32, ptr %21, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %21, align 4, !tbaa !5
  br label %95, !llvm.loop !19

152:                                              ; preds = %98
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %20, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %20, align 4, !tbaa !5
  br label %89, !llvm.loop !20

156:                                              ; preds = %93
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @_ZN3ptm30calculate_deformation_gradientEiPA3_KdPaPA3_dS2_PdS6_(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #1 {
  %8 = icmp sgt i32 %0, 0
  br i1 %8, label %.preheader53.us.preheader, label %.split60.us.thread

.split60.us.thread:                               ; preds = %7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %5, i8 0, i64 72, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, i8 0, i64 24, i1 false)
  br label %._crit_edge

.preheader53.us.preheader:                        ; preds = %7
  %wide.trip.count = zext nneg i32 %0 to i64
  %9 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 1
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %._crit_edge.us.us.unr-lcssa, label %.preheader53.us.preheader.new

.preheader53.us.preheader.new:                    ; preds = %.preheader53.us.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %11

11:                                               ; preds = %11, %.preheader53.us.preheader.new
  %indvars.iv = phi i64 [ 0, %.preheader53.us.preheader.new ], [ %indvars.iv.next.1132, %11 ]
  %.04954.us.us = phi double [ 0.000000e+00, %.preheader53.us.preheader.new ], [ %27, %11 ]
  %niter = phi i64 [ 0, %.preheader53.us.preheader.new ], [ %niter.next.1, %11 ]
  %12 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv, i64 0
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv
  %15 = load i8, ptr %14, align 1, !tbaa !9
  %16 = sext i8 %15 to i64
  %17 = getelementptr inbounds [3 x double], ptr %3, i64 %16, i64 0
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = tail call double @llvm.fmuladd.f64(double %13, double %18, double %.04954.us.us)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %20 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next, i64 0
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %24 = sext i8 %23 to i64
  %25 = getelementptr inbounds [3 x double], ptr %3, i64 %24, i64 0
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = tail call double @llvm.fmuladd.f64(double %21, double %26, double %19)
  %indvars.iv.next.1132 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.us.unr-lcssa, label %11, !llvm.loop !10

._crit_edge.us.us.unr-lcssa:                      ; preds = %11, %.preheader53.us.preheader
  %.lcssa128.ph = phi double [ poison, %.preheader53.us.preheader ], [ %27, %11 ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader53.us.preheader ], [ %indvars.iv.next.1132, %11 ]
  %.04954.us.us.unr = phi double [ 0.000000e+00, %.preheader53.us.preheader ], [ %27, %11 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.us.us, label %._crit_edge.us.us.epilog-lcssa

._crit_edge.us.us.epilog-lcssa:                   ; preds = %._crit_edge.us.us.unr-lcssa
  %28 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.unr, i64 0
  %29 = load double, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.unr
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = sext i8 %31 to i64
  %33 = getelementptr inbounds [3 x double], ptr %3, i64 %32, i64 0
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = tail call double @llvm.fmuladd.f64(double %29, double %34, double %.04954.us.us.unr)
  br label %._crit_edge.us.us

._crit_edge.us.us:                                ; preds = %._crit_edge.us.us.unr-lcssa, %._crit_edge.us.us.epilog-lcssa
  %.lcssa128 = phi double [ %.lcssa128.ph, %._crit_edge.us.us.unr-lcssa ], [ %35, %._crit_edge.us.us.epilog-lcssa ]
  store double %.lcssa128, ptr %5, align 8, !tbaa !5
  %xtraiter134 = and i64 %wide.trip.count, 1
  %36 = icmp eq i64 %9, 0
  br i1 %36, label %._crit_edge.us.us.1.unr-lcssa, label %._crit_edge.us.us.new

._crit_edge.us.us.new:                            ; preds = %._crit_edge.us.us
  %unroll_iter137 = and i64 %wide.trip.count, 2147483646
  br label %37

37:                                               ; preds = %37, %._crit_edge.us.us.new
  %indvars.iv.1 = phi i64 [ 0, %._crit_edge.us.us.new ], [ %indvars.iv.next.1.1141, %37 ]
  %.04954.us.us.1 = phi double [ 0.000000e+00, %._crit_edge.us.us.new ], [ %53, %37 ]
  %niter138 = phi i64 [ 0, %._crit_edge.us.us.new ], [ %niter138.next.1, %37 ]
  %38 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.1, i64 1
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.1
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = sext i8 %41 to i64
  %43 = getelementptr inbounds [3 x double], ptr %3, i64 %42, i64 0
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = tail call double @llvm.fmuladd.f64(double %39, double %44, double %.04954.us.us.1)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv.1, 1
  %46 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.1, i64 1
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.1
  %49 = load i8, ptr %48, align 1, !tbaa !9
  %50 = sext i8 %49 to i64
  %51 = getelementptr inbounds [3 x double], ptr %3, i64 %50, i64 0
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = tail call double @llvm.fmuladd.f64(double %47, double %52, double %45)
  %indvars.iv.next.1.1141 = add nuw nsw i64 %indvars.iv.1, 2
  %niter138.next.1 = add i64 %niter138, 2
  %niter138.ncmp.1 = icmp eq i64 %niter138.next.1, %unroll_iter137
  br i1 %niter138.ncmp.1, label %._crit_edge.us.us.1.unr-lcssa, label %37, !llvm.loop !10

._crit_edge.us.us.1.unr-lcssa:                    ; preds = %37, %._crit_edge.us.us
  %.lcssa127.ph = phi double [ poison, %._crit_edge.us.us ], [ %53, %37 ]
  %indvars.iv.1.unr = phi i64 [ 0, %._crit_edge.us.us ], [ %indvars.iv.next.1.1141, %37 ]
  %.04954.us.us.1.unr = phi double [ 0.000000e+00, %._crit_edge.us.us ], [ %53, %37 ]
  %lcmp.mod135.not = icmp eq i64 %xtraiter134, 0
  br i1 %lcmp.mod135.not, label %._crit_edge.us.us.1, label %._crit_edge.us.us.1.epilog-lcssa

._crit_edge.us.us.1.epilog-lcssa:                 ; preds = %._crit_edge.us.us.1.unr-lcssa
  %54 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.1.unr, i64 1
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.1.unr
  %57 = load i8, ptr %56, align 1, !tbaa !9
  %58 = sext i8 %57 to i64
  %59 = getelementptr inbounds [3 x double], ptr %3, i64 %58, i64 0
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = tail call double @llvm.fmuladd.f64(double %55, double %60, double %.04954.us.us.1.unr)
  br label %._crit_edge.us.us.1

._crit_edge.us.us.1:                              ; preds = %._crit_edge.us.us.1.unr-lcssa, %._crit_edge.us.us.1.epilog-lcssa
  %.lcssa127 = phi double [ %.lcssa127.ph, %._crit_edge.us.us.1.unr-lcssa ], [ %61, %._crit_edge.us.us.1.epilog-lcssa ]
  %62 = getelementptr inbounds i8, ptr %5, i64 8
  store double %.lcssa127, ptr %62, align 8, !tbaa !5
  %xtraiter143 = and i64 %wide.trip.count, 1
  %63 = icmp eq i64 %9, 0
  br i1 %63, label %._crit_edge.us.us.2.unr-lcssa, label %._crit_edge.us.us.1.new

._crit_edge.us.us.1.new:                          ; preds = %._crit_edge.us.us.1
  %unroll_iter146 = and i64 %wide.trip.count, 2147483646
  br label %64

64:                                               ; preds = %64, %._crit_edge.us.us.1.new
  %indvars.iv.2 = phi i64 [ 0, %._crit_edge.us.us.1.new ], [ %indvars.iv.next.2.1150, %64 ]
  %.04954.us.us.2 = phi double [ 0.000000e+00, %._crit_edge.us.us.1.new ], [ %80, %64 ]
  %niter147 = phi i64 [ 0, %._crit_edge.us.us.1.new ], [ %niter147.next.1, %64 ]
  %65 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.2, i64 2
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.2
  %68 = load i8, ptr %67, align 1, !tbaa !9
  %69 = sext i8 %68 to i64
  %70 = getelementptr inbounds [3 x double], ptr %3, i64 %69, i64 0
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = tail call double @llvm.fmuladd.f64(double %66, double %71, double %.04954.us.us.2)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv.2, 1
  %73 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.2, i64 2
  %74 = load double, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.2
  %76 = load i8, ptr %75, align 1, !tbaa !9
  %77 = sext i8 %76 to i64
  %78 = getelementptr inbounds [3 x double], ptr %3, i64 %77, i64 0
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = tail call double @llvm.fmuladd.f64(double %74, double %79, double %72)
  %indvars.iv.next.2.1150 = add nuw nsw i64 %indvars.iv.2, 2
  %niter147.next.1 = add i64 %niter147, 2
  %niter147.ncmp.1 = icmp eq i64 %niter147.next.1, %unroll_iter146
  br i1 %niter147.ncmp.1, label %._crit_edge.us.us.2.unr-lcssa, label %64, !llvm.loop !10

._crit_edge.us.us.2.unr-lcssa:                    ; preds = %64, %._crit_edge.us.us.1
  %.lcssa126.ph = phi double [ poison, %._crit_edge.us.us.1 ], [ %80, %64 ]
  %indvars.iv.2.unr = phi i64 [ 0, %._crit_edge.us.us.1 ], [ %indvars.iv.next.2.1150, %64 ]
  %.04954.us.us.2.unr = phi double [ 0.000000e+00, %._crit_edge.us.us.1 ], [ %80, %64 ]
  %lcmp.mod144.not = icmp eq i64 %xtraiter143, 0
  br i1 %lcmp.mod144.not, label %._crit_edge.us.us.2, label %._crit_edge.us.us.2.epilog-lcssa

._crit_edge.us.us.2.epilog-lcssa:                 ; preds = %._crit_edge.us.us.2.unr-lcssa
  %81 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.2.unr, i64 2
  %82 = load double, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.2.unr
  %84 = load i8, ptr %83, align 1, !tbaa !9
  %85 = sext i8 %84 to i64
  %86 = getelementptr inbounds [3 x double], ptr %3, i64 %85, i64 0
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = tail call double @llvm.fmuladd.f64(double %82, double %87, double %.04954.us.us.2.unr)
  br label %._crit_edge.us.us.2

._crit_edge.us.us.2:                              ; preds = %._crit_edge.us.us.2.unr-lcssa, %._crit_edge.us.us.2.epilog-lcssa
  %.lcssa126 = phi double [ %.lcssa126.ph, %._crit_edge.us.us.2.unr-lcssa ], [ %88, %._crit_edge.us.us.2.epilog-lcssa ]
  %89 = getelementptr inbounds i8, ptr %5, i64 16
  store double %.lcssa126, ptr %89, align 8, !tbaa !5
  %xtraiter152 = and i64 %wide.trip.count, 1
  %90 = icmp eq i64 %9, 0
  br i1 %90, label %._crit_edge.us.us.184.unr-lcssa, label %._crit_edge.us.us.2.new

._crit_edge.us.us.2.new:                          ; preds = %._crit_edge.us.us.2
  %unroll_iter155 = and i64 %wide.trip.count, 2147483646
  br label %91

91:                                               ; preds = %91, %._crit_edge.us.us.2.new
  %indvars.iv.179 = phi i64 [ 0, %._crit_edge.us.us.2.new ], [ %indvars.iv.next.181.1, %91 ]
  %.04954.us.us.180 = phi double [ 0.000000e+00, %._crit_edge.us.us.2.new ], [ %107, %91 ]
  %niter156 = phi i64 [ 0, %._crit_edge.us.us.2.new ], [ %niter156.next.1, %91 ]
  %92 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.179, i64 0
  %93 = load double, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.179
  %95 = load i8, ptr %94, align 1, !tbaa !9
  %96 = sext i8 %95 to i64
  %97 = getelementptr inbounds [3 x double], ptr %3, i64 %96, i64 1
  %98 = load double, ptr %97, align 8, !tbaa !5
  %99 = tail call double @llvm.fmuladd.f64(double %93, double %98, double %.04954.us.us.180)
  %indvars.iv.next.181 = or disjoint i64 %indvars.iv.179, 1
  %100 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.181, i64 0
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.181
  %103 = load i8, ptr %102, align 1, !tbaa !9
  %104 = sext i8 %103 to i64
  %105 = getelementptr inbounds [3 x double], ptr %3, i64 %104, i64 1
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = tail call double @llvm.fmuladd.f64(double %101, double %106, double %99)
  %indvars.iv.next.181.1 = add nuw nsw i64 %indvars.iv.179, 2
  %niter156.next.1 = add i64 %niter156, 2
  %niter156.ncmp.1 = icmp eq i64 %niter156.next.1, %unroll_iter155
  br i1 %niter156.ncmp.1, label %._crit_edge.us.us.184.unr-lcssa, label %91, !llvm.loop !10

._crit_edge.us.us.184.unr-lcssa:                  ; preds = %91, %._crit_edge.us.us.2
  %.lcssa125.ph = phi double [ poison, %._crit_edge.us.us.2 ], [ %107, %91 ]
  %indvars.iv.179.unr = phi i64 [ 0, %._crit_edge.us.us.2 ], [ %indvars.iv.next.181.1, %91 ]
  %.04954.us.us.180.unr = phi double [ 0.000000e+00, %._crit_edge.us.us.2 ], [ %107, %91 ]
  %lcmp.mod153.not = icmp eq i64 %xtraiter152, 0
  br i1 %lcmp.mod153.not, label %._crit_edge.us.us.184, label %._crit_edge.us.us.184.epilog-lcssa

._crit_edge.us.us.184.epilog-lcssa:               ; preds = %._crit_edge.us.us.184.unr-lcssa
  %108 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.179.unr, i64 0
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.179.unr
  %111 = load i8, ptr %110, align 1, !tbaa !9
  %112 = sext i8 %111 to i64
  %113 = getelementptr inbounds [3 x double], ptr %3, i64 %112, i64 1
  %114 = load double, ptr %113, align 8, !tbaa !5
  %115 = tail call double @llvm.fmuladd.f64(double %109, double %114, double %.04954.us.us.180.unr)
  br label %._crit_edge.us.us.184

._crit_edge.us.us.184:                            ; preds = %._crit_edge.us.us.184.unr-lcssa, %._crit_edge.us.us.184.epilog-lcssa
  %.lcssa125 = phi double [ %.lcssa125.ph, %._crit_edge.us.us.184.unr-lcssa ], [ %115, %._crit_edge.us.us.184.epilog-lcssa ]
  %116 = getelementptr inbounds i8, ptr %5, i64 24
  store double %.lcssa125, ptr %116, align 8, !tbaa !5
  %xtraiter158 = and i64 %wide.trip.count, 1
  %117 = icmp eq i64 %9, 0
  br i1 %117, label %._crit_edge.us.us.1.1.unr-lcssa, label %._crit_edge.us.us.184.new

._crit_edge.us.us.184.new:                        ; preds = %._crit_edge.us.us.184
  %unroll_iter161 = and i64 %wide.trip.count, 2147483646
  br label %118

118:                                              ; preds = %118, %._crit_edge.us.us.184.new
  %indvars.iv.1.1 = phi i64 [ 0, %._crit_edge.us.us.184.new ], [ %indvars.iv.next.1.1.1, %118 ]
  %.04954.us.us.1.1 = phi double [ 0.000000e+00, %._crit_edge.us.us.184.new ], [ %134, %118 ]
  %niter162 = phi i64 [ 0, %._crit_edge.us.us.184.new ], [ %niter162.next.1, %118 ]
  %119 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.1.1, i64 1
  %120 = load double, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.1.1
  %122 = load i8, ptr %121, align 1, !tbaa !9
  %123 = sext i8 %122 to i64
  %124 = getelementptr inbounds [3 x double], ptr %3, i64 %123, i64 1
  %125 = load double, ptr %124, align 8, !tbaa !5
  %126 = tail call double @llvm.fmuladd.f64(double %120, double %125, double %.04954.us.us.1.1)
  %indvars.iv.next.1.1 = or disjoint i64 %indvars.iv.1.1, 1
  %127 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.1.1, i64 1
  %128 = load double, ptr %127, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.1.1
  %130 = load i8, ptr %129, align 1, !tbaa !9
  %131 = sext i8 %130 to i64
  %132 = getelementptr inbounds [3 x double], ptr %3, i64 %131, i64 1
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = tail call double @llvm.fmuladd.f64(double %128, double %133, double %126)
  %indvars.iv.next.1.1.1 = add nuw nsw i64 %indvars.iv.1.1, 2
  %niter162.next.1 = add i64 %niter162, 2
  %niter162.ncmp.1 = icmp eq i64 %niter162.next.1, %unroll_iter161
  br i1 %niter162.ncmp.1, label %._crit_edge.us.us.1.1.unr-lcssa, label %118, !llvm.loop !10

._crit_edge.us.us.1.1.unr-lcssa:                  ; preds = %118, %._crit_edge.us.us.184
  %.lcssa124.ph = phi double [ poison, %._crit_edge.us.us.184 ], [ %134, %118 ]
  %indvars.iv.1.1.unr = phi i64 [ 0, %._crit_edge.us.us.184 ], [ %indvars.iv.next.1.1.1, %118 ]
  %.04954.us.us.1.1.unr = phi double [ 0.000000e+00, %._crit_edge.us.us.184 ], [ %134, %118 ]
  %lcmp.mod159.not = icmp eq i64 %xtraiter158, 0
  br i1 %lcmp.mod159.not, label %._crit_edge.us.us.1.1, label %._crit_edge.us.us.1.1.epilog-lcssa

._crit_edge.us.us.1.1.epilog-lcssa:               ; preds = %._crit_edge.us.us.1.1.unr-lcssa
  %135 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.1.1.unr, i64 1
  %136 = load double, ptr %135, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.1.1.unr
  %138 = load i8, ptr %137, align 1, !tbaa !9
  %139 = sext i8 %138 to i64
  %140 = getelementptr inbounds [3 x double], ptr %3, i64 %139, i64 1
  %141 = load double, ptr %140, align 8, !tbaa !5
  %142 = tail call double @llvm.fmuladd.f64(double %136, double %141, double %.04954.us.us.1.1.unr)
  br label %._crit_edge.us.us.1.1

._crit_edge.us.us.1.1:                            ; preds = %._crit_edge.us.us.1.1.unr-lcssa, %._crit_edge.us.us.1.1.epilog-lcssa
  %.lcssa124 = phi double [ %.lcssa124.ph, %._crit_edge.us.us.1.1.unr-lcssa ], [ %142, %._crit_edge.us.us.1.1.epilog-lcssa ]
  %143 = getelementptr inbounds i8, ptr %5, i64 32
  store double %.lcssa124, ptr %143, align 8, !tbaa !5
  %xtraiter164 = and i64 %wide.trip.count, 1
  %144 = icmp eq i64 %9, 0
  br i1 %144, label %._crit_edge.us.us.2.1.unr-lcssa, label %._crit_edge.us.us.1.1.new

._crit_edge.us.us.1.1.new:                        ; preds = %._crit_edge.us.us.1.1
  %unroll_iter167 = and i64 %wide.trip.count, 2147483646
  br label %145

145:                                              ; preds = %145, %._crit_edge.us.us.1.1.new
  %indvars.iv.2.1 = phi i64 [ 0, %._crit_edge.us.us.1.1.new ], [ %indvars.iv.next.2.1.1, %145 ]
  %.04954.us.us.2.1 = phi double [ 0.000000e+00, %._crit_edge.us.us.1.1.new ], [ %161, %145 ]
  %niter168 = phi i64 [ 0, %._crit_edge.us.us.1.1.new ], [ %niter168.next.1, %145 ]
  %146 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.2.1, i64 2
  %147 = load double, ptr %146, align 8, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.2.1
  %149 = load i8, ptr %148, align 1, !tbaa !9
  %150 = sext i8 %149 to i64
  %151 = getelementptr inbounds [3 x double], ptr %3, i64 %150, i64 1
  %152 = load double, ptr %151, align 8, !tbaa !5
  %153 = tail call double @llvm.fmuladd.f64(double %147, double %152, double %.04954.us.us.2.1)
  %indvars.iv.next.2.1 = or disjoint i64 %indvars.iv.2.1, 1
  %154 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.2.1, i64 2
  %155 = load double, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.2.1
  %157 = load i8, ptr %156, align 1, !tbaa !9
  %158 = sext i8 %157 to i64
  %159 = getelementptr inbounds [3 x double], ptr %3, i64 %158, i64 1
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = tail call double @llvm.fmuladd.f64(double %155, double %160, double %153)
  %indvars.iv.next.2.1.1 = add nuw nsw i64 %indvars.iv.2.1, 2
  %niter168.next.1 = add i64 %niter168, 2
  %niter168.ncmp.1 = icmp eq i64 %niter168.next.1, %unroll_iter167
  br i1 %niter168.ncmp.1, label %._crit_edge.us.us.2.1.unr-lcssa, label %145, !llvm.loop !10

._crit_edge.us.us.2.1.unr-lcssa:                  ; preds = %145, %._crit_edge.us.us.1.1
  %.lcssa123.ph = phi double [ poison, %._crit_edge.us.us.1.1 ], [ %161, %145 ]
  %indvars.iv.2.1.unr = phi i64 [ 0, %._crit_edge.us.us.1.1 ], [ %indvars.iv.next.2.1.1, %145 ]
  %.04954.us.us.2.1.unr = phi double [ 0.000000e+00, %._crit_edge.us.us.1.1 ], [ %161, %145 ]
  %lcmp.mod165.not = icmp eq i64 %xtraiter164, 0
  br i1 %lcmp.mod165.not, label %._crit_edge.us.us.2.1, label %._crit_edge.us.us.2.1.epilog-lcssa

._crit_edge.us.us.2.1.epilog-lcssa:               ; preds = %._crit_edge.us.us.2.1.unr-lcssa
  %162 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.2.1.unr, i64 2
  %163 = load double, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.2.1.unr
  %165 = load i8, ptr %164, align 1, !tbaa !9
  %166 = sext i8 %165 to i64
  %167 = getelementptr inbounds [3 x double], ptr %3, i64 %166, i64 1
  %168 = load double, ptr %167, align 8, !tbaa !5
  %169 = tail call double @llvm.fmuladd.f64(double %163, double %168, double %.04954.us.us.2.1.unr)
  br label %._crit_edge.us.us.2.1

._crit_edge.us.us.2.1:                            ; preds = %._crit_edge.us.us.2.1.unr-lcssa, %._crit_edge.us.us.2.1.epilog-lcssa
  %.lcssa123 = phi double [ %.lcssa123.ph, %._crit_edge.us.us.2.1.unr-lcssa ], [ %169, %._crit_edge.us.us.2.1.epilog-lcssa ]
  %170 = getelementptr inbounds i8, ptr %5, i64 40
  store double %.lcssa123, ptr %170, align 8, !tbaa !5
  %xtraiter170 = and i64 %wide.trip.count, 1
  %171 = icmp eq i64 %9, 0
  br i1 %171, label %._crit_edge.us.us.291.unr-lcssa, label %._crit_edge.us.us.2.1.new

._crit_edge.us.us.2.1.new:                        ; preds = %._crit_edge.us.us.2.1
  %unroll_iter173 = and i64 %wide.trip.count, 2147483646
  br label %172

172:                                              ; preds = %172, %._crit_edge.us.us.2.1.new
  %indvars.iv.286 = phi i64 [ 0, %._crit_edge.us.us.2.1.new ], [ %indvars.iv.next.288.1, %172 ]
  %.04954.us.us.287 = phi double [ 0.000000e+00, %._crit_edge.us.us.2.1.new ], [ %188, %172 ]
  %niter174 = phi i64 [ 0, %._crit_edge.us.us.2.1.new ], [ %niter174.next.1, %172 ]
  %173 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.286, i64 0
  %174 = load double, ptr %173, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.286
  %176 = load i8, ptr %175, align 1, !tbaa !9
  %177 = sext i8 %176 to i64
  %178 = getelementptr inbounds [3 x double], ptr %3, i64 %177, i64 2
  %179 = load double, ptr %178, align 8, !tbaa !5
  %180 = tail call double @llvm.fmuladd.f64(double %174, double %179, double %.04954.us.us.287)
  %indvars.iv.next.288 = or disjoint i64 %indvars.iv.286, 1
  %181 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.288, i64 0
  %182 = load double, ptr %181, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.288
  %184 = load i8, ptr %183, align 1, !tbaa !9
  %185 = sext i8 %184 to i64
  %186 = getelementptr inbounds [3 x double], ptr %3, i64 %185, i64 2
  %187 = load double, ptr %186, align 8, !tbaa !5
  %188 = tail call double @llvm.fmuladd.f64(double %182, double %187, double %180)
  %indvars.iv.next.288.1 = add nuw nsw i64 %indvars.iv.286, 2
  %niter174.next.1 = add i64 %niter174, 2
  %niter174.ncmp.1 = icmp eq i64 %niter174.next.1, %unroll_iter173
  br i1 %niter174.ncmp.1, label %._crit_edge.us.us.291.unr-lcssa, label %172, !llvm.loop !10

._crit_edge.us.us.291.unr-lcssa:                  ; preds = %172, %._crit_edge.us.us.2.1
  %.lcssa122.ph = phi double [ poison, %._crit_edge.us.us.2.1 ], [ %188, %172 ]
  %indvars.iv.286.unr = phi i64 [ 0, %._crit_edge.us.us.2.1 ], [ %indvars.iv.next.288.1, %172 ]
  %.04954.us.us.287.unr = phi double [ 0.000000e+00, %._crit_edge.us.us.2.1 ], [ %188, %172 ]
  %lcmp.mod171.not = icmp eq i64 %xtraiter170, 0
  br i1 %lcmp.mod171.not, label %._crit_edge.us.us.291, label %._crit_edge.us.us.291.epilog-lcssa

._crit_edge.us.us.291.epilog-lcssa:               ; preds = %._crit_edge.us.us.291.unr-lcssa
  %189 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.286.unr, i64 0
  %190 = load double, ptr %189, align 8, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.286.unr
  %192 = load i8, ptr %191, align 1, !tbaa !9
  %193 = sext i8 %192 to i64
  %194 = getelementptr inbounds [3 x double], ptr %3, i64 %193, i64 2
  %195 = load double, ptr %194, align 8, !tbaa !5
  %196 = tail call double @llvm.fmuladd.f64(double %190, double %195, double %.04954.us.us.287.unr)
  br label %._crit_edge.us.us.291

._crit_edge.us.us.291:                            ; preds = %._crit_edge.us.us.291.unr-lcssa, %._crit_edge.us.us.291.epilog-lcssa
  %.lcssa122 = phi double [ %.lcssa122.ph, %._crit_edge.us.us.291.unr-lcssa ], [ %196, %._crit_edge.us.us.291.epilog-lcssa ]
  %197 = getelementptr inbounds i8, ptr %5, i64 48
  store double %.lcssa122, ptr %197, align 8, !tbaa !5
  %xtraiter176 = and i64 %wide.trip.count, 1
  %198 = icmp eq i64 %9, 0
  br i1 %198, label %._crit_edge.us.us.1.2.unr-lcssa, label %._crit_edge.us.us.291.new

._crit_edge.us.us.291.new:                        ; preds = %._crit_edge.us.us.291
  %unroll_iter179 = and i64 %wide.trip.count, 2147483646
  br label %199

199:                                              ; preds = %199, %._crit_edge.us.us.291.new
  %indvars.iv.1.2 = phi i64 [ 0, %._crit_edge.us.us.291.new ], [ %indvars.iv.next.1.2.1, %199 ]
  %.04954.us.us.1.2 = phi double [ 0.000000e+00, %._crit_edge.us.us.291.new ], [ %215, %199 ]
  %niter180 = phi i64 [ 0, %._crit_edge.us.us.291.new ], [ %niter180.next.1, %199 ]
  %200 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.1.2, i64 1
  %201 = load double, ptr %200, align 8, !tbaa !5
  %202 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.1.2
  %203 = load i8, ptr %202, align 1, !tbaa !9
  %204 = sext i8 %203 to i64
  %205 = getelementptr inbounds [3 x double], ptr %3, i64 %204, i64 2
  %206 = load double, ptr %205, align 8, !tbaa !5
  %207 = tail call double @llvm.fmuladd.f64(double %201, double %206, double %.04954.us.us.1.2)
  %indvars.iv.next.1.2 = or disjoint i64 %indvars.iv.1.2, 1
  %208 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.1.2, i64 1
  %209 = load double, ptr %208, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.1.2
  %211 = load i8, ptr %210, align 1, !tbaa !9
  %212 = sext i8 %211 to i64
  %213 = getelementptr inbounds [3 x double], ptr %3, i64 %212, i64 2
  %214 = load double, ptr %213, align 8, !tbaa !5
  %215 = tail call double @llvm.fmuladd.f64(double %209, double %214, double %207)
  %indvars.iv.next.1.2.1 = add nuw nsw i64 %indvars.iv.1.2, 2
  %niter180.next.1 = add i64 %niter180, 2
  %niter180.ncmp.1 = icmp eq i64 %niter180.next.1, %unroll_iter179
  br i1 %niter180.ncmp.1, label %._crit_edge.us.us.1.2.unr-lcssa, label %199, !llvm.loop !10

._crit_edge.us.us.1.2.unr-lcssa:                  ; preds = %199, %._crit_edge.us.us.291
  %.lcssa121.ph = phi double [ poison, %._crit_edge.us.us.291 ], [ %215, %199 ]
  %indvars.iv.1.2.unr = phi i64 [ 0, %._crit_edge.us.us.291 ], [ %indvars.iv.next.1.2.1, %199 ]
  %.04954.us.us.1.2.unr = phi double [ 0.000000e+00, %._crit_edge.us.us.291 ], [ %215, %199 ]
  %lcmp.mod177.not = icmp eq i64 %xtraiter176, 0
  br i1 %lcmp.mod177.not, label %._crit_edge.us.us.1.2, label %._crit_edge.us.us.1.2.epilog-lcssa

._crit_edge.us.us.1.2.epilog-lcssa:               ; preds = %._crit_edge.us.us.1.2.unr-lcssa
  %216 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.1.2.unr, i64 1
  %217 = load double, ptr %216, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.1.2.unr
  %219 = load i8, ptr %218, align 1, !tbaa !9
  %220 = sext i8 %219 to i64
  %221 = getelementptr inbounds [3 x double], ptr %3, i64 %220, i64 2
  %222 = load double, ptr %221, align 8, !tbaa !5
  %223 = tail call double @llvm.fmuladd.f64(double %217, double %222, double %.04954.us.us.1.2.unr)
  br label %._crit_edge.us.us.1.2

._crit_edge.us.us.1.2:                            ; preds = %._crit_edge.us.us.1.2.unr-lcssa, %._crit_edge.us.us.1.2.epilog-lcssa
  %.lcssa121 = phi double [ %.lcssa121.ph, %._crit_edge.us.us.1.2.unr-lcssa ], [ %223, %._crit_edge.us.us.1.2.epilog-lcssa ]
  %224 = getelementptr inbounds i8, ptr %5, i64 56
  store double %.lcssa121, ptr %224, align 8, !tbaa !5
  %xtraiter182 = and i64 %wide.trip.count, 1
  %225 = icmp eq i64 %9, 0
  br i1 %225, label %.split60.us.unr-lcssa, label %._crit_edge.us.us.1.2.new

._crit_edge.us.us.1.2.new:                        ; preds = %._crit_edge.us.us.1.2
  %unroll_iter185 = and i64 %wide.trip.count, 2147483646
  br label %226

226:                                              ; preds = %226, %._crit_edge.us.us.1.2.new
  %indvars.iv.2.2 = phi i64 [ 0, %._crit_edge.us.us.1.2.new ], [ %indvars.iv.next.2.2.1, %226 ]
  %.04954.us.us.2.2 = phi double [ 0.000000e+00, %._crit_edge.us.us.1.2.new ], [ %242, %226 ]
  %niter186 = phi i64 [ 0, %._crit_edge.us.us.1.2.new ], [ %niter186.next.1, %226 ]
  %227 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.2.2, i64 2
  %228 = load double, ptr %227, align 8, !tbaa !5
  %229 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.2.2
  %230 = load i8, ptr %229, align 1, !tbaa !9
  %231 = sext i8 %230 to i64
  %232 = getelementptr inbounds [3 x double], ptr %3, i64 %231, i64 2
  %233 = load double, ptr %232, align 8, !tbaa !5
  %234 = tail call double @llvm.fmuladd.f64(double %228, double %233, double %.04954.us.us.2.2)
  %indvars.iv.next.2.2 = or disjoint i64 %indvars.iv.2.2, 1
  %235 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.next.2.2, i64 2
  %236 = load double, ptr %235, align 8, !tbaa !5
  %237 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.2.2
  %238 = load i8, ptr %237, align 1, !tbaa !9
  %239 = sext i8 %238 to i64
  %240 = getelementptr inbounds [3 x double], ptr %3, i64 %239, i64 2
  %241 = load double, ptr %240, align 8, !tbaa !5
  %242 = tail call double @llvm.fmuladd.f64(double %236, double %241, double %234)
  %indvars.iv.next.2.2.1 = add nuw nsw i64 %indvars.iv.2.2, 2
  %niter186.next.1 = add i64 %niter186, 2
  %niter186.ncmp.1 = icmp eq i64 %niter186.next.1, %unroll_iter185
  br i1 %niter186.ncmp.1, label %.split60.us.unr-lcssa, label %226, !llvm.loop !10

.split60.us.unr-lcssa:                            ; preds = %226, %._crit_edge.us.us.1.2
  %.lcssa.ph = phi double [ poison, %._crit_edge.us.us.1.2 ], [ %242, %226 ]
  %indvars.iv.2.2.unr = phi i64 [ 0, %._crit_edge.us.us.1.2 ], [ %indvars.iv.next.2.2.1, %226 ]
  %.04954.us.us.2.2.unr = phi double [ 0.000000e+00, %._crit_edge.us.us.1.2 ], [ %242, %226 ]
  %lcmp.mod183.not = icmp eq i64 %xtraiter182, 0
  br i1 %lcmp.mod183.not, label %.split60.us, label %.split60.us.epilog-lcssa

.split60.us.epilog-lcssa:                         ; preds = %.split60.us.unr-lcssa
  %243 = getelementptr inbounds [3 x double], ptr %4, i64 %indvars.iv.2.2.unr, i64 2
  %244 = load double, ptr %243, align 8, !tbaa !5
  %245 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.2.2.unr
  %246 = load i8, ptr %245, align 1, !tbaa !9
  %247 = sext i8 %246 to i64
  %248 = getelementptr inbounds [3 x double], ptr %3, i64 %247, i64 2
  %249 = load double, ptr %248, align 8, !tbaa !5
  %250 = tail call double @llvm.fmuladd.f64(double %244, double %249, double %.04954.us.us.2.2.unr)
  br label %.split60.us

.split60.us:                                      ; preds = %.split60.us.unr-lcssa, %.split60.us.epilog-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %.split60.us.unr-lcssa ], [ %250, %.split60.us.epilog-lcssa ]
  %251 = getelementptr inbounds i8, ptr %5, i64 64
  store double %.lcssa, ptr %251, align 8, !tbaa !5
  %252 = getelementptr inbounds i8, ptr %6, i64 8
  %253 = getelementptr inbounds i8, ptr %6, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, i8 0, i64 24, i1 false)
  br i1 %8, label %.preheader51.preheader, label %._crit_edge

.preheader51.preheader:                           ; preds = %.split60.us
  %254 = getelementptr inbounds i8, ptr %5, i64 48
  %wide.trip.count103 = zext nneg i32 %0 to i64
  %255 = getelementptr inbounds i8, ptr %5, i64 8
  %256 = getelementptr inbounds i8, ptr %5, i64 16
  %257 = getelementptr inbounds i8, ptr %5, i64 24
  %258 = getelementptr inbounds i8, ptr %5, i64 32
  %259 = getelementptr inbounds i8, ptr %5, i64 40
  %260 = getelementptr inbounds i8, ptr %5, i64 56
  %261 = getelementptr inbounds i8, ptr %5, i64 64
  br label %.preheader51

.preheader51:                                     ; preds = %.preheader51.preheader, %.preheader51
  %262 = phi double [ 0.000000e+00, %.preheader51.preheader ], [ %313, %.preheader51 ]
  %263 = phi double [ 0.000000e+00, %.preheader51.preheader ], [ %298, %.preheader51 ]
  %264 = phi double [ 0.000000e+00, %.preheader51.preheader ], [ %283, %.preheader51 ]
  %indvars.iv100 = phi i64 [ 0, %.preheader51.preheader ], [ %indvars.iv.next101, %.preheader51 ]
  %265 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv100
  %266 = load double, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv100, i64 0
  %268 = load double, ptr %267, align 8, !tbaa !5
  %269 = tail call double @llvm.fmuladd.f64(double %266, double %268, double 0.000000e+00)
  %270 = load double, ptr %255, align 8, !tbaa !5
  %271 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv100, i64 1
  %272 = load double, ptr %271, align 8, !tbaa !5
  %273 = tail call double @llvm.fmuladd.f64(double %270, double %272, double %269)
  %274 = load double, ptr %256, align 8, !tbaa !5
  %275 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv100, i64 2
  %276 = load double, ptr %275, align 8, !tbaa !5
  %277 = tail call double @llvm.fmuladd.f64(double %274, double %276, double %273)
  %278 = load i8, ptr %265, align 1, !tbaa !9
  %279 = sext i8 %278 to i64
  %280 = getelementptr inbounds [3 x double], ptr %3, i64 %279, i64 0
  %281 = load double, ptr %280, align 8, !tbaa !5
  %282 = fsub double %277, %281
  %283 = tail call double @llvm.fmuladd.f64(double %282, double %282, double %264)
  store double %283, ptr %6, align 8, !tbaa !5
  %284 = load double, ptr %257, align 8, !tbaa !5
  %285 = load double, ptr %267, align 8, !tbaa !5
  %286 = tail call double @llvm.fmuladd.f64(double %284, double %285, double 0.000000e+00)
  %287 = load double, ptr %258, align 8, !tbaa !5
  %288 = load double, ptr %271, align 8, !tbaa !5
  %289 = tail call double @llvm.fmuladd.f64(double %287, double %288, double %286)
  %290 = load double, ptr %259, align 8, !tbaa !5
  %291 = load double, ptr %275, align 8, !tbaa !5
  %292 = tail call double @llvm.fmuladd.f64(double %290, double %291, double %289)
  %293 = load i8, ptr %265, align 1, !tbaa !9
  %294 = sext i8 %293 to i64
  %295 = getelementptr inbounds [3 x double], ptr %3, i64 %294, i64 1
  %296 = load double, ptr %295, align 8, !tbaa !5
  %297 = fsub double %292, %296
  %298 = tail call double @llvm.fmuladd.f64(double %297, double %297, double %263)
  store double %298, ptr %252, align 8, !tbaa !5
  %299 = load double, ptr %254, align 8, !tbaa !5
  %300 = load double, ptr %267, align 8, !tbaa !5
  %301 = tail call double @llvm.fmuladd.f64(double %299, double %300, double 0.000000e+00)
  %302 = load double, ptr %260, align 8, !tbaa !5
  %303 = load double, ptr %271, align 8, !tbaa !5
  %304 = tail call double @llvm.fmuladd.f64(double %302, double %303, double %301)
  %305 = load double, ptr %261, align 8, !tbaa !5
  %306 = load double, ptr %275, align 8, !tbaa !5
  %307 = tail call double @llvm.fmuladd.f64(double %305, double %306, double %304)
  %308 = load i8, ptr %265, align 1, !tbaa !9
  %309 = sext i8 %308 to i64
  %310 = getelementptr inbounds [3 x double], ptr %3, i64 %309, i64 2
  %311 = load double, ptr %310, align 8, !tbaa !5
  %312 = fsub double %307, %311
  %313 = tail call double @llvm.fmuladd.f64(double %312, double %312, double %262)
  store double %313, ptr %253, align 8, !tbaa !5
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next101, %wide.trip.count103
  br i1 %exitcond104.not, label %._crit_edge, label %.preheader51, !llvm.loop !12

._crit_edge:                                      ; preds = %.preheader51, %.split60.us.thread, %.split60.us
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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