; LLVM IR from cvxgrp/scs :: src/normalize.ll (scs_normalize_sol)

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

%struct.ScsScaling = type { ptr, ptr, i32, i32, double, double }
%struct.ScsSolution = type { ptr, ptr, ptr }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @_scs_normalize_sol(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.ScsScaling, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %10, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ScsScaling, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  store ptr %13, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %14

14:                                               ; preds = %38, %2
  %15 = load i32, ptr %5, align 4, !tbaa !14
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ScsScaling, ptr %16, i32 0, i32 3
  %18 = load i32, ptr %17, align 4, !tbaa !15
  %19 = icmp slt i32 %15, %18
  br i1 %19, label %20, label %41

20:                                               ; preds = %14
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !14
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds double, ptr %21, i64 %23
  %25 = load double, ptr %24, align 8, !tbaa !16
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ScsScaling, ptr %26, i32 0, i32 5
  %28 = load double, ptr %27, align 8, !tbaa !17
  %29 = fdiv double %25, %28
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ScsSolution, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = load i32, ptr %5, align 4, !tbaa !14
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds double, ptr %32, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !16
  %37 = fdiv double %36, %29
  store double %37, ptr %35, align 8, !tbaa !16
  br label %38

38:                                               ; preds = %20
  %39 = load i32, ptr %5, align 4, !tbaa !14
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %5, align 4, !tbaa !14
  br label %14, !llvm.loop !20

41:                                               ; preds = %14
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %42

42:                                               ; preds = %66, %41
  %43 = load i32, ptr %5, align 4, !tbaa !14
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ScsScaling, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !22
  %47 = icmp slt i32 %43, %46
  br i1 %47, label %48, label %69

48:                                               ; preds = %42
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load i32, ptr %5, align 4, !tbaa !14
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds double, ptr %49, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ScsScaling, ptr %54, i32 0, i32 4
  %56 = load double, ptr %55, align 8, !tbaa !23
  %57 = fdiv double %53, %56
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ScsSolution, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  %61 = load i32, ptr %5, align 4, !tbaa !14
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = fdiv double %64, %57
  store double %65, ptr %63, align 8, !tbaa !16
  br label %66

66:                                               ; preds = %48
  %67 = load i32, ptr %5, align 4, !tbaa !14
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %5, align 4, !tbaa !14
  br label %42, !llvm.loop !25

69:                                               ; preds = %42
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %70

70:                                               ; preds = %94, %69
  %71 = load i32, ptr %5, align 4, !tbaa !14
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ScsScaling, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 8, !tbaa !22
  %75 = icmp slt i32 %71, %74
  br i1 %75, label %76, label %97

76:                                               ; preds = %70
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i32, ptr %5, align 4, !tbaa !14
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !16
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ScsScaling, ptr %82, i32 0, i32 5
  %84 = load double, ptr %83, align 8, !tbaa !17
  %85 = fmul double %81, %84
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ScsSolution, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !26
  %89 = load i32, ptr %5, align 4, !tbaa !14
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %88, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !16
  %93 = fmul double %92, %85
  store double %93, ptr %91, align 8, !tbaa !16
  br label %94

94:                                               ; preds = %76
  %95 = load i32, ptr %5, align 4, !tbaa !14
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %5, align 4, !tbaa !14
  br label %70, !llvm.loop !27

97:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  ret void
}

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

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

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


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

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @_scs_normalize_sol(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %0, i64 20
  %7 = load i32, ptr %6, align 4, !tbaa !13
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %.preheader25

.lr.ph:                                           ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %1, align 8, !tbaa !14
  %wide.trip.count = zext nneg i32 %7 to i64
  %min.iters.check = icmp eq i32 %7, 1
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

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

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %11 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.ph
  %12 = load double, ptr %11, align 8, !tbaa !16
  %13 = load double, ptr %9, align 8, !tbaa !17
  %14 = fdiv double %12, %13
  %15 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.ph
  %16 = load double, ptr %15, align 8, !tbaa !16
  %17 = fdiv double %16, %14
  store double %17, ptr %15, align 8, !tbaa !16
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %18 = add nsw i64 %wide.trip.count, -1
  %19 = icmp eq i64 %indvars.iv.ph, %18
  br i1 %19, label %.preheader25, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %20 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %10, i64 %20
  %scevgep42 = getelementptr i8, ptr %5, i64 %20
  %scevgep43 = getelementptr i8, ptr %0, i64 40
  %bound0 = icmp ult ptr %10, %scevgep42
  %bound1 = icmp ult ptr %5, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound044 = icmp ult ptr %10, %scevgep43
  %bound145 = icmp ult ptr %9, %scevgep
  %found.conflict46 = and i1 %bound044, %bound145
  %conflict.rdx = or i1 %found.conflict, %found.conflict46
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  %21 = load double, ptr %9, align 8, !tbaa !17, !alias.scope !18
  %broadcast.splatinsert = insertelement <2 x double> poison, double %21, 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 ]
  %22 = getelementptr inbounds double, ptr %5, i64 %index
  %wide.load = load <2 x double>, ptr %22, align 8, !tbaa !16, !alias.scope !21
  %23 = fdiv <2 x double> %wide.load, %broadcast.splat
  %24 = getelementptr inbounds double, ptr %10, i64 %index
  %wide.load47 = load <2 x double>, ptr %24, align 8, !tbaa !16, !alias.scope !23, !noalias !25
  %25 = fdiv <2 x double> %wide.load47, %23
  store <2 x double> %25, ptr %24, align 8, !tbaa !16, !alias.scope !23, !noalias !25
  %index.next = add nuw i64 %index, 2
  %26 = icmp eq i64 %index.next, %n.vec
  br i1 %26, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader25, label %scalar.ph.preheader

.preheader25:                                     ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %2
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load i32, ptr %27, align 8, !tbaa !30
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph28, label %._crit_edge

.lr.ph28:                                         ; preds = %.preheader25
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !31
  %wide.trip.count35 = zext nneg i32 %28 to i64
  %min.iters.check61 = icmp eq i32 %28, 1
  br i1 %min.iters.check61, label %scalar.ph60.preheader, label %vector.memcheck48

scalar.ph60.preheader:                            ; preds = %middle.block59, %vector.memcheck48, %.lr.ph28
  %indvars.iv32.ph = phi i64 [ 0, %vector.memcheck48 ], [ 0, %.lr.ph28 ], [ %n.vec64, %middle.block59 ]
  %xtraiter104 = and i64 %wide.trip.count35, 1
  %lcmp.mod105.not = icmp eq i64 %xtraiter104, 0
  br i1 %lcmp.mod105.not, label %scalar.ph60.prol.loopexit, label %scalar.ph60.prol

scalar.ph60.prol:                                 ; preds = %scalar.ph60.preheader
  %33 = getelementptr inbounds double, ptr %3, i64 %indvars.iv32.ph
  %34 = load double, ptr %33, align 8, !tbaa !16
  %35 = load double, ptr %30, align 8, !tbaa !32
  %36 = fdiv double %34, %35
  %37 = getelementptr inbounds double, ptr %32, i64 %indvars.iv32.ph
  %38 = load double, ptr %37, align 8, !tbaa !16
  %39 = fdiv double %38, %36
  store double %39, ptr %37, align 8, !tbaa !16
  %indvars.iv.next33.prol = or disjoint i64 %indvars.iv32.ph, 1
  br label %scalar.ph60.prol.loopexit

scalar.ph60.prol.loopexit:                        ; preds = %scalar.ph60.prol, %scalar.ph60.preheader
  %indvars.iv32.unr = phi i64 [ %indvars.iv32.ph, %scalar.ph60.preheader ], [ %indvars.iv.next33.prol, %scalar.ph60.prol ]
  %40 = add nsw i64 %wide.trip.count35, -1
  %41 = icmp eq i64 %indvars.iv32.ph, %40
  br i1 %41, label %.preheader, label %scalar.ph60

vector.memcheck48:                                ; preds = %.lr.ph28
  %42 = shl nuw nsw i64 %wide.trip.count35, 3
  %scevgep49 = getelementptr i8, ptr %32, i64 %42
  %scevgep50 = getelementptr i8, ptr %3, i64 %42
  %scevgep51 = getelementptr i8, ptr %0, i64 32
  %bound052 = icmp ult ptr %32, %scevgep50
  %bound153 = icmp ult ptr %3, %scevgep49
  %found.conflict54 = and i1 %bound052, %bound153
  %bound055 = icmp ult ptr %32, %scevgep51
  %bound156 = icmp ult ptr %30, %scevgep49
  %found.conflict57 = and i1 %bound055, %bound156
  %conflict.rdx58 = or i1 %found.conflict54, %found.conflict57
  br i1 %conflict.rdx58, label %scalar.ph60.preheader, label %vector.ph62

vector.ph62:                                      ; preds = %vector.memcheck48
  %n.vec64 = and i64 %wide.trip.count35, 2147483646
  %43 = load double, ptr %30, align 8, !tbaa !32, !alias.scope !33
  %broadcast.splatinsert69 = insertelement <2 x double> poison, double %43, i64 0
  %broadcast.splat70 = shufflevector <2 x double> %broadcast.splatinsert69, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body66

vector.body66:                                    ; preds = %vector.body66, %vector.ph62
  %index67 = phi i64 [ 0, %vector.ph62 ], [ %index.next72, %vector.body66 ]
  %44 = getelementptr inbounds double, ptr %3, i64 %index67
  %wide.load68 = load <2 x double>, ptr %44, align 8, !tbaa !16, !alias.scope !36
  %45 = fdiv <2 x double> %wide.load68, %broadcast.splat70
  %46 = getelementptr inbounds double, ptr %32, i64 %index67
  %wide.load71 = load <2 x double>, ptr %46, align 8, !tbaa !16, !alias.scope !38, !noalias !40
  %47 = fdiv <2 x double> %wide.load71, %45
  store <2 x double> %47, ptr %46, align 8, !tbaa !16, !alias.scope !38, !noalias !40
  %index.next72 = add nuw i64 %index67, 2
  %48 = icmp eq i64 %index.next72, %n.vec64
  br i1 %48, label %middle.block59, label %vector.body66, !llvm.loop !41

middle.block59:                                   ; preds = %vector.body66
  %cmp.n73 = icmp eq i64 %n.vec64, %wide.trip.count35
  br i1 %cmp.n73, label %.preheader, label %scalar.ph60.preheader

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %49 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = load double, ptr %9, align 8, !tbaa !17
  %52 = fdiv double %50, %51
  %53 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  %54 = load double, ptr %53, align 8, !tbaa !16
  %55 = fdiv double %54, %52
  store double %55, ptr %53, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next
  %57 = load double, ptr %56, align 8, !tbaa !16
  %58 = load double, ptr %9, align 8, !tbaa !17
  %59 = fdiv double %57, %58
  %60 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next
  %61 = load double, ptr %60, align 8, !tbaa !16
  %62 = fdiv double %61, %59
  store double %62, ptr %60, align 8, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.preheader25, label %scalar.ph, !llvm.loop !42

.preheader:                                       ; preds = %scalar.ph60.prol.loopexit, %scalar.ph60, %middle.block59
  br i1 %29, label %.lr.ph30, label %._crit_edge

.lr.ph30:                                         ; preds = %.preheader
  %63 = getelementptr inbounds i8, ptr %0, i64 32
  %64 = getelementptr inbounds i8, ptr %1, i64 16
  %65 = load ptr, ptr %64, align 8, !tbaa !43
  %wide.trip.count40 = zext nneg i32 %28 to i64
  %min.iters.check87 = icmp ult i32 %28, 8
  br i1 %min.iters.check87, label %scalar.ph86.preheader, label %vector.memcheck74

scalar.ph86.preheader:                            ; preds = %middle.block85, %vector.memcheck74, %.lr.ph30
  %indvars.iv37.ph = phi i64 [ 0, %vector.memcheck74 ], [ 0, %.lr.ph30 ], [ %n.vec90, %middle.block85 ]
  %xtraiter106 = and i64 %wide.trip.count35, 1
  %lcmp.mod107.not = icmp eq i64 %xtraiter106, 0
  br i1 %lcmp.mod107.not, label %scalar.ph86.prol.loopexit, label %scalar.ph86.prol

scalar.ph86.prol:                                 ; preds = %scalar.ph86.preheader
  %66 = getelementptr inbounds double, ptr %3, i64 %indvars.iv37.ph
  %67 = load double, ptr %66, align 8, !tbaa !16
  %68 = load double, ptr %63, align 8, !tbaa !17
  %69 = fmul double %67, %68
  %70 = getelementptr inbounds double, ptr %65, i64 %indvars.iv37.ph
  %71 = load double, ptr %70, align 8, !tbaa !16
  %72 = fmul double %69, %71
  store double %72, ptr %70, align 8, !tbaa !16
  %indvars.iv.next38.prol = or disjoint i64 %indvars.iv37.ph, 1
  br label %scalar.ph86.prol.loopexit

scalar.ph86.prol.loopexit:                        ; preds = %scalar.ph86.prol, %scalar.ph86.preheader
  %indvars.iv37.unr = phi i64 [ %indvars.iv37.ph, %scalar.ph86.preheader ], [ %indvars.iv.next38.prol, %scalar.ph86.prol ]
  %73 = add nsw i64 %wide.trip.count35, -1
  %74 = icmp eq i64 %indvars.iv37.ph, %73
  br i1 %74, label %._crit_edge, label %scalar.ph86

vector.memcheck74:                                ; preds = %.lr.ph30
  %75 = shl nuw nsw i64 %wide.trip.count35, 3
  %scevgep75 = getelementptr i8, ptr %65, i64 %75
  %scevgep76 = getelementptr i8, ptr %3, i64 %75
  %scevgep77 = getelementptr i8, ptr %0, i64 40
  %bound078 = icmp ult ptr %65, %scevgep76
  %bound179 = icmp ult ptr %3, %scevgep75
  %found.conflict80 = and i1 %bound078, %bound179
  %bound081 = icmp ult ptr %65, %scevgep77
  %bound182 = icmp ult ptr %63, %scevgep75
  %found.conflict83 = and i1 %bound081, %bound182
  %conflict.rdx84 = or i1 %found.conflict80, %found.conflict83
  br i1 %conflict.rdx84, label %scalar.ph86.preheader, label %vector.ph88

vector.ph88:                                      ; preds = %vector.memcheck74
  %n.vec90 = and i64 %wide.trip.count35, 2147483644
  %76 = load double, ptr %63, align 8, !tbaa !17, !alias.scope !44
  %broadcast.splatinsert98 = insertelement <2 x double> poison, double %76, i64 0
  %broadcast.splat99 = shufflevector <2 x double> %broadcast.splatinsert98, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body92

vector.body92:                                    ; preds = %vector.body92, %vector.ph88
  %index93 = phi i64 [ 0, %vector.ph88 ], [ %index.next102, %vector.body92 ]
  %77 = getelementptr inbounds double, ptr %3, i64 %index93
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %wide.load94 = load <2 x double>, ptr %77, align 8, !tbaa !16, !alias.scope !47
  %wide.load95 = load <2 x double>, ptr %78, align 8, !tbaa !16, !alias.scope !47
  %79 = fmul <2 x double> %wide.load94, %broadcast.splat99
  %80 = fmul <2 x double> %wide.load95, %broadcast.splat99
  %81 = getelementptr inbounds double, ptr %65, i64 %index93
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  %wide.load100 = load <2 x double>, ptr %81, align 8, !tbaa !16, !alias.scope !49, !noalias !51
  %wide.load101 = load <2 x double>, ptr %82, align 8, !tbaa !16, !alias.scope !49, !noalias !51
  %83 = fmul <2 x double> %79, %wide.load100
  %84 = fmul <2 x double> %80, %wide.load101
  store <2 x double> %83, ptr %81, align 8, !tbaa !16, !alias.scope !49, !noalias !51
  store <2 x double> %84, ptr %82, align 8, !tbaa !16, !alias.scope !49, !noalias !51
  %index.next102 = add nuw i64 %index93, 4
  %85 = icmp eq i64 %index.next102, %n.vec90
  br i1 %85, label %middle.block85, label %vector.body92, !llvm.loop !52

middle.block85:                                   ; preds = %vector.body92
  %cmp.n103 = icmp eq i64 %n.vec90, %wide.trip.count35
  br i1 %cmp.n103, label %._crit_edge, label %scalar.ph86.preheader

scalar.ph60:                                      ; preds = %scalar.ph60.prol.loopexit, %scalar.ph60
  %indvars.iv32 = phi i64 [ %indvars.iv.next33.1, %scalar.ph60 ], [ %indvars.iv32.unr, %scalar.ph60.prol.loopexit ]
  %86 = getelementptr inbounds double, ptr %3, i64 %indvars.iv32
  %87 = load double, ptr %86, align 8, !tbaa !16
  %88 = load double, ptr %30, align 8, !tbaa !32
  %89 = fdiv double %87, %88
  %90 = getelementptr inbounds double, ptr %32, i64 %indvars.iv32
  %91 = load double, ptr %90, align 8, !tbaa !16
  %92 = fdiv double %91, %89
  store double %92, ptr %90, align 8, !tbaa !16
  %indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
  %93 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next33
  %94 = load double, ptr %93, align 8, !tbaa !16
  %95 = load double, ptr %30, align 8, !tbaa !32
  %96 = fdiv double %94, %95
  %97 = getelementptr inbounds double, ptr %32, i64 %indvars.iv.next33
  %98 = load double, ptr %97, align 8, !tbaa !16
  %99 = fdiv double %98, %96
  store double %99, ptr %97, align 8, !tbaa !16
  %indvars.iv.next33.1 = add nuw nsw i64 %indvars.iv32, 2
  %exitcond36.not.1 = icmp eq i64 %indvars.iv.next33.1, %wide.trip.count35
  br i1 %exitcond36.not.1, label %.preheader, label %scalar.ph60, !llvm.loop !53

scalar.ph86:                                      ; preds = %scalar.ph86.prol.loopexit, %scalar.ph86
  %indvars.iv37 = phi i64 [ %indvars.iv.next38.1, %scalar.ph86 ], [ %indvars.iv37.unr, %scalar.ph86.prol.loopexit ]
  %100 = getelementptr inbounds double, ptr %3, i64 %indvars.iv37
  %101 = load double, ptr %100, align 8, !tbaa !16
  %102 = load double, ptr %63, align 8, !tbaa !17
  %103 = fmul double %101, %102
  %104 = getelementptr inbounds double, ptr %65, i64 %indvars.iv37
  %105 = load double, ptr %104, align 8, !tbaa !16
  %106 = fmul double %103, %105
  store double %106, ptr %104, align 8, !tbaa !16
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %107 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next38
  %108 = load double, ptr %107, align 8, !tbaa !16
  %109 = load double, ptr %63, align 8, !tbaa !17
  %110 = fmul double %108, %109
  %111 = getelementptr inbounds double, ptr %65, i64 %indvars.iv.next38
  %112 = load double, ptr %111, align 8, !tbaa !16
  %113 = fmul double %110, %112
  store double %113, ptr %111, align 8, !tbaa !16
  %indvars.iv.next38.1 = add nuw nsw i64 %indvars.iv37, 2
  %exitcond41.not.1 = icmp eq i64 %indvars.iv.next38.1, %wide.trip.count40
  br i1 %exitcond41.not.1, label %._crit_edge, label %scalar.ph86, !llvm.loop !54

._crit_edge:                                      ; preds = %scalar.ph86.prol.loopexit, %scalar.ph86, %middle.block85, %.preheader25, %.preheader
  ret void
}

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !11, i64 24, !11, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !10, i64 20}
!14 = !{!15, !7, i64 0}
!15 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !11, i64 32}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = !{!24}
!24 = distinct !{!24, !20}
!25 = !{!22, !19}
!26 = distinct !{!26, !27, !28, !29}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.isvectorized", i32 1}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = !{!6, !10, i64 16}
!31 = !{!15, !7, i64 8}
!32 = !{!6, !11, i64 24}
!33 = !{!34}
!34 = distinct !{!34, !35}
!35 = distinct !{!35, !"LVerDomain"}
!36 = !{!37}
!37 = distinct !{!37, !35}
!38 = !{!39}
!39 = distinct !{!39, !35}
!40 = !{!37, !34}
!41 = distinct !{!41, !27, !28, !29}
!42 = distinct !{!42, !27, !28}
!43 = !{!15, !7, i64 16}
!44 = !{!45}
!45 = distinct !{!45, !46}
!46 = distinct !{!46, !"LVerDomain"}
!47 = !{!48}
!48 = distinct !{!48, !46}
!49 = !{!50}
!50 = distinct !{!50, !46}
!51 = !{!48, !45}
!52 = distinct !{!52, !27, !28, !29}
!53 = distinct !{!53, !27, !28}
!54 = distinct !{!54, !27, !28}


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