; LLVM IR from pmla/polyhedral-template-matching :: ptm_normalize_vertices.ll (ZN3ptm19subtract_barycentreEiPA3_dS1_)

; 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: mustprogress nounwind uwtable
define dso_local void @_ZN3ptm19subtract_barycentreEiPA3_dS1_(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [3 x double], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %43, %3
  %11 = load i32, ptr %8, align 4, !tbaa !5
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %46

15:                                               ; preds = %10
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  %17 = load i32, ptr %8, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [3 x double], ptr %16, i64 %18
  %20 = getelementptr inbounds [3 x double], ptr %19, i64 0, i64 0
  %21 = load double, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  %23 = load double, ptr %22, align 16, !tbaa !11
  %24 = fadd double %23, %21
  store double %24, ptr %22, align 16, !tbaa !11
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [3 x double], ptr %25, i64 %27
  %29 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 1
  %30 = load double, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
  %32 = load double, ptr %31, align 8, !tbaa !11
  %33 = fadd double %32, %30
  store double %33, ptr %31, align 8, !tbaa !11
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [3 x double], ptr %34, i64 %36
  %38 = getelementptr inbounds [3 x double], ptr %37, i64 0, i64 2
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
  %41 = load double, ptr %40, align 16, !tbaa !11
  %42 = fadd double %41, %39
  store double %42, ptr %40, align 16, !tbaa !11
  br label %43

43:                                               ; preds = %15
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %8, align 4, !tbaa !5
  br label %10, !llvm.loop !13

46:                                               ; preds = %14
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sitofp i32 %47 to double
  %49 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  %50 = load double, ptr %49, align 16, !tbaa !11
  %51 = fdiv double %50, %48
  store double %51, ptr %49, align 16, !tbaa !11
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = sitofp i32 %52 to double
  %54 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = fdiv double %55, %53
  store double %56, ptr %54, align 8, !tbaa !11
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sitofp i32 %57 to double
  %59 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
  %60 = load double, ptr %59, align 16, !tbaa !11
  %61 = fdiv double %60, %58
  store double %61, ptr %59, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %110, %46
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %113

67:                                               ; preds = %62
  %68 = load ptr, ptr %5, align 8, !tbaa !9
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [3 x double], ptr %68, i64 %70
  %72 = getelementptr inbounds [3 x double], ptr %71, i64 0, i64 0
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
  %75 = load double, ptr %74, align 16, !tbaa !11
  %76 = fsub double %73, %75
  %77 = load ptr, ptr %6, align 8, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [3 x double], ptr %77, i64 %79
  %81 = getelementptr inbounds [3 x double], ptr %80, i64 0, i64 0
  store double %76, ptr %81, align 8, !tbaa !11
  %82 = load ptr, ptr %5, align 8, !tbaa !9
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [3 x double], ptr %82, i64 %84
  %86 = getelementptr inbounds [3 x double], ptr %85, i64 0, i64 1
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = fsub double %87, %89
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [3 x double], ptr %91, i64 %93
  %95 = getelementptr inbounds [3 x double], ptr %94, i64 0, i64 1
  store double %90, ptr %95, align 8, !tbaa !11
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = load i32, ptr %9, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [3 x double], ptr %96, i64 %98
  %100 = getelementptr inbounds [3 x double], ptr %99, i64 0, i64 2
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
  %103 = load double, ptr %102, align 16, !tbaa !11
  %104 = fsub double %101, %103
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [3 x double], ptr %105, i64 %107
  %109 = getelementptr inbounds [3 x double], ptr %108, i64 0, i64 2
  store double %104, ptr %109, align 8, !tbaa !11
  br label %110

110:                                              ; preds = %67
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %9, align 4, !tbaa !5
  br label %62, !llvm.loop !15

113:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  ret void
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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 nounwind willreturn memory(argmem: write) }
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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @_ZN3ptm19subtract_barycentreEiPA3_dS1_(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = icmp sgt i32 %0, 0
  br i1 %4, label %.lr.ph.preheader, label %._crit_edge43

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %0 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %5 = icmp ult i32 %0, 4
  br i1 %5, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa65.ph = phi double [ poison, %.lr.ph.preheader ], [ %81, %.lr.ph ]
  %.lcssa.ph = phi <2 x double> [ poison, %.lr.ph.preheader ], [ %84, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.sroa.0.034.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %81, %.lr.ph ]
  %.unr = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %84, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.unr-lcssa ]
  %.sroa.0.034.epil = phi double [ %9, %.lr.ph.epil ], [ %.sroa.0.034.unr, %._crit_edge.unr-lcssa ]
  %6 = phi <2 x double> [ %12, %.lr.ph.epil ], [ %.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %7 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv.epil
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = fadd double %.sroa.0.034.epil, %8
  %10 = getelementptr inbounds i8, ptr %7, i64 8
  %11 = load <2 x double>, ptr %10, align 8, !tbaa !5
  %12 = fadd <2 x double> %6, %11
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %.lcssa65 = phi double [ %.lcssa65.ph, %._crit_edge.unr-lcssa ], [ %9, %.lr.ph.epil ]
  %.lcssa = phi <2 x double> [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %12, %.lr.ph.epil ]
  %13 = sitofp i32 %0 to double
  %14 = fdiv double %.lcssa65, %13
  %15 = extractelement <2 x double> %.lcssa, i64 0
  %16 = fdiv double %15, %13
  %17 = extractelement <2 x double> %.lcssa, i64 1
  %18 = fdiv double %17, %13
  br i1 %4, label %.lr.ph42.preheader, label %._crit_edge43

.lr.ph42.preheader:                               ; preds = %._crit_edge
  %wide.trip.count50 = zext nneg i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 10
  br i1 %min.iters.check, label %.lr.ph42.preheader64, label %vector.memcheck

.lr.ph42.preheader64:                             ; preds = %middle.block, %vector.memcheck, %.lr.ph42.preheader
  %indvars.iv47.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph42.preheader ], [ %n.vec, %middle.block ]
  %xtraiter68 = and i64 %wide.trip.count, 1
  %lcmp.mod69.not = icmp eq i64 %xtraiter68, 0
  br i1 %lcmp.mod69.not, label %.lr.ph42.prol.loopexit, label %.lr.ph42.prol

.lr.ph42.prol:                                    ; preds = %.lr.ph42.preheader64
  %19 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv47.ph
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fsub double %20, %14
  %22 = getelementptr inbounds [3 x double], ptr %2, i64 %indvars.iv47.ph
  store double %21, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %19, i64 8
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = fsub double %24, %16
  %26 = getelementptr inbounds i8, ptr %22, i64 8
  store double %25, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %19, i64 16
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = fsub double %28, %18
  %30 = getelementptr inbounds i8, ptr %22, i64 16
  store double %29, ptr %30, align 8, !tbaa !5
  %indvars.iv.next48.prol = or disjoint i64 %indvars.iv47.ph, 1
  br label %.lr.ph42.prol.loopexit

.lr.ph42.prol.loopexit:                           ; preds = %.lr.ph42.prol, %.lr.ph42.preheader64
  %indvars.iv47.unr = phi i64 [ %indvars.iv47.ph, %.lr.ph42.preheader64 ], [ %indvars.iv.next48.prol, %.lr.ph42.prol ]
  %31 = add nsw i64 %wide.trip.count, -1
  %32 = icmp eq i64 %indvars.iv47.ph, %31
  br i1 %32, label %._crit_edge43, label %.lr.ph42

vector.memcheck:                                  ; preds = %.lr.ph42.preheader
  %33 = mul nuw nsw i64 %wide.trip.count, 24
  %scevgep = getelementptr i8, ptr %2, i64 %33
  %scevgep59 = getelementptr i8, ptr %1, i64 %33
  %bound0 = icmp ugt ptr %scevgep59, %2
  %bound1 = icmp ugt ptr %scevgep, %1
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph42.preheader64, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  %broadcast.splatinsert = insertelement <2 x double> poison, double %14, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert60 = insertelement <2 x double> poison, double %16, i64 0
  %broadcast.splat61 = shufflevector <2 x double> %broadcast.splatinsert60, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert62 = insertelement <2 x double> poison, double %18, i64 0
  %broadcast.splat63 = shufflevector <2 x double> %broadcast.splatinsert62, <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 ]
  %34 = or disjoint i64 %index, 1
  %35 = getelementptr inbounds [3 x double], ptr %1, i64 %index
  %36 = getelementptr inbounds [3 x double], ptr %1, i64 %34
  %37 = load double, ptr %35, align 8, !tbaa !5, !alias.scope !11
  %38 = load double, ptr %36, align 8, !tbaa !5, !alias.scope !11
  %39 = insertelement <2 x double> poison, double %37, i64 0
  %40 = insertelement <2 x double> %39, double %38, i64 1
  %41 = fsub <2 x double> %40, %broadcast.splat
  %42 = getelementptr inbounds i8, ptr %35, i64 8
  %43 = getelementptr inbounds i8, ptr %36, i64 8
  %44 = load double, ptr %42, align 8, !tbaa !5, !alias.scope !11
  %45 = load double, ptr %43, align 8, !tbaa !5, !alias.scope !11
  %46 = insertelement <2 x double> poison, double %44, i64 0
  %47 = insertelement <2 x double> %46, double %45, i64 1
  %48 = fsub <2 x double> %47, %broadcast.splat61
  %49 = getelementptr inbounds i8, ptr %35, i64 16
  %50 = getelementptr inbounds i8, ptr %36, i64 16
  %51 = load double, ptr %49, align 8, !tbaa !5, !alias.scope !11
  %52 = load double, ptr %50, align 8, !tbaa !5, !alias.scope !11
  %53 = insertelement <2 x double> poison, double %51, i64 0
  %54 = insertelement <2 x double> %53, double %52, i64 1
  %55 = fsub <2 x double> %54, %broadcast.splat63
  %56 = getelementptr inbounds [3 x double], ptr %2, i64 %index
  %57 = shufflevector <2 x double> %41, <2 x double> %48, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %58 = shufflevector <2 x double> %55, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %interleaved.vec = shufflevector <4 x double> %57, <4 x double> %58, <6 x i32> <i32 0, i32 2, i32 4, i32 1, i32 3, i32 5>
  store <6 x double> %interleaved.vec, ptr %56, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 2
  %59 = icmp eq i64 %index.next, %n.vec
  br i1 %59, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge43, label %.lr.ph42.preheader64

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.sroa.0.034 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %81, %.lr.ph ]
  %60 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader.new ], [ %84, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %61 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = fadd double %.sroa.0.034, %62
  %64 = getelementptr inbounds i8, ptr %61, i64 8
  %65 = load <2 x double>, ptr %64, align 8, !tbaa !5
  %66 = fadd <2 x double> %60, %65
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %67 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv.next
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = fadd double %63, %68
  %70 = getelementptr inbounds i8, ptr %67, i64 8
  %71 = load <2 x double>, ptr %70, align 8, !tbaa !5
  %72 = fadd <2 x double> %66, %71
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %73 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv.next.1
  %74 = load double, ptr %73, align 8, !tbaa !5
  %75 = fadd double %69, %74
  %76 = getelementptr inbounds i8, ptr %73, i64 8
  %77 = load <2 x double>, ptr %76, align 8, !tbaa !5
  %78 = fadd <2 x double> %72, %77
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %79 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv.next.2
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = fadd double %75, %80
  %82 = getelementptr inbounds i8, ptr %79, i64 8
  %83 = load <2 x double>, ptr %82, align 8, !tbaa !5
  %84 = fadd <2 x double> %78, %83
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !18

._crit_edge43:                                    ; preds = %.lr.ph42.prol.loopexit, %.lr.ph42, %middle.block, %3, %._crit_edge
  ret void

.lr.ph42:                                         ; preds = %.lr.ph42.prol.loopexit, %.lr.ph42
  %indvars.iv47 = phi i64 [ %indvars.iv.next48.1, %.lr.ph42 ], [ %indvars.iv47.unr, %.lr.ph42.prol.loopexit ]
  %85 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv47
  %86 = load double, ptr %85, align 8, !tbaa !5
  %87 = fsub double %86, %14
  %88 = getelementptr inbounds [3 x double], ptr %2, i64 %indvars.iv47
  store double %87, ptr %88, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %85, i64 8
  %90 = load double, ptr %89, align 8, !tbaa !5
  %91 = fsub double %90, %16
  %92 = getelementptr inbounds i8, ptr %88, i64 8
  store double %91, ptr %92, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %85, i64 16
  %94 = load double, ptr %93, align 8, !tbaa !5
  %95 = fsub double %94, %18
  %96 = getelementptr inbounds i8, ptr %88, i64 16
  store double %95, ptr %96, align 8, !tbaa !5
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %97 = getelementptr inbounds [3 x double], ptr %1, i64 %indvars.iv.next48
  %98 = load double, ptr %97, align 8, !tbaa !5
  %99 = fsub double %98, %14
  %100 = getelementptr inbounds [3 x double], ptr %2, i64 %indvars.iv.next48
  store double %99, ptr %100, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %97, i64 8
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = fsub double %102, %16
  %104 = getelementptr inbounds i8, ptr %100, i64 8
  store double %103, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %97, i64 16
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = fsub double %106, %18
  %108 = getelementptr inbounds i8, ptr %100, i64 16
  store double %107, ptr %108, align 8, !tbaa !5
  %indvars.iv.next48.1 = add nuw nsw i64 %indvars.iv47, 2
  %exitcond51.not.1 = icmp eq i64 %indvars.iv.next48.1, %wide.trip.count50
  br i1 %exitcond51.not.1, label %._crit_edge43, label %.lr.ph42, !llvm.loop !19
}

attributes #0 = { 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" }

!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}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15, !16}


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