; LLVM IR from Derek-TH-Wang/quadruped_ctrl :: src/osqp/src (auxil)

; 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.OSQPWorkspace = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64 }
%struct.OSQPData = type { i64, i64, ptr, ptr, ptr, ptr, ptr }
%struct.OSQPSettings = type { double, double, i64, i64, i64, double, double, i64, double, double, double, double, double, i32, double, i64, i64, i64, i64, i64, i64, double }

; 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 @update_x(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %4

4:                                                ; preds = %43, %1
  %5 = load i64, ptr %3, align 8, !tbaa !9
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct.OSQPWorkspace, ptr %6, i32 0, i32 0
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = getelementptr inbounds %struct.OSQPData, ptr %8, i32 0, i32 0
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = icmp slt i64 %5, %10
  br i1 %11, label %12, label %46

12:                                               ; preds = %4
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.OSQPWorkspace, ptr %13, i32 0, i32 23
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds %struct.OSQPSettings, ptr %15, i32 0, i32 12
  %17 = load double, ptr %16, align 8, !tbaa !16
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.OSQPWorkspace, ptr %18, i32 0, i32 9
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = load i64, ptr %3, align 8, !tbaa !9
  %22 = getelementptr inbounds double, ptr %20, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !21
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.OSQPWorkspace, ptr %24, i32 0, i32 23
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds %struct.OSQPSettings, ptr %26, i32 0, i32 12
  %28 = load double, ptr %27, align 8, !tbaa !16
  %29 = fsub double 1.000000e+00, %28
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.OSQPWorkspace, ptr %30, i32 0, i32 10
  %32 = load ptr, ptr %31, align 8, !tbaa !22
  %33 = load i64, ptr %3, align 8, !tbaa !9
  %34 = getelementptr inbounds double, ptr %32, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !21
  %36 = fmul double %29, %35
  %37 = call double @llvm.fmuladd.f64(double %17, double %23, double %36)
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.OSQPWorkspace, ptr %38, i32 0, i32 6
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %41 = load i64, ptr %3, align 8, !tbaa !9
  %42 = getelementptr inbounds double, ptr %40, i64 %41
  store double %37, ptr %42, align 8, !tbaa !21
  br label %43

43:                                               ; preds = %12
  %44 = load i64, ptr %3, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %3, align 8, !tbaa !9
  br label %4, !llvm.loop !24

46:                                               ; preds = %4
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %74, %46
  %48 = load i64, ptr %3, align 8, !tbaa !9
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.OSQPWorkspace, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.OSQPData, ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !13
  %54 = icmp slt i64 %48, %53
  br i1 %54, label %55, label %77

55:                                               ; preds = %47
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.OSQPWorkspace, ptr %56, i32 0, i32 6
  %58 = load ptr, ptr %57, align 8, !tbaa !23
  %59 = load i64, ptr %3, align 8, !tbaa !9
  %60 = getelementptr inbounds double, ptr %58, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !21
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.OSQPWorkspace, ptr %62, i32 0, i32 10
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = load i64, ptr %3, align 8, !tbaa !9
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !21
  %68 = fsub double %61, %67
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.OSQPWorkspace, ptr %69, i32 0, i32 17
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  %72 = load i64, ptr %3, align 8, !tbaa !9
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  store double %68, ptr %73, align 8, !tbaa !21
  br label %74

74:                                               ; preds = %55
  %75 = load i64, ptr %3, align 8, !tbaa !9
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %3, align 8, !tbaa !9
  br label %47, !llvm.loop !27

77:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !10, i64 232}
!13 = !{!14, !10, i64 0}
!14 = !{!"", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!12, !6, i64 184}
!16 = !{!17, !18, i64 96}
!17 = !{!"", !18, i64 0, !18, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !18, i64 40, !18, i64 48, !10, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !19, i64 104, !18, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !18, i64 168}
!18 = !{!"double", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!12, !6, i64 72}
!21 = !{!18, !18, i64 0}
!22 = !{!12, !6, i64 80}
!23 = !{!12, !6, i64 48}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!12, !6, i64 136}
!27 = distinct !{!27, !25}


; 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 @update_x(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = load i64, ptr %2, align 8, !tbaa !11
  %4 = icmp sgt i64 %3, 0
  br i1 %4, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 184
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %6, i64 96
  %8 = getelementptr inbounds i8, ptr %0, i64 72
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %min.iters.check = icmp ult i64 %3, 10
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %.019.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %.neg = or disjoint i64 %.019.ph, 1
  %xtraiter = and i64 %3, 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
  %14 = load double, ptr %7, align 8, !tbaa !17
  %15 = getelementptr inbounds double, ptr %9, i64 %.019.ph
  %16 = load double, ptr %15, align 8, !tbaa !21
  %17 = fsub double 1.000000e+00, %14
  %18 = getelementptr inbounds double, ptr %11, i64 %.019.ph
  %19 = load double, ptr %18, align 8, !tbaa !21
  %20 = fmul double %17, %19
  %21 = tail call double @llvm.fmuladd.f64(double %14, double %16, double %20)
  %22 = getelementptr inbounds double, ptr %13, i64 %.019.ph
  store double %21, ptr %22, align 8, !tbaa !21
  %23 = or disjoint i64 %.019.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.019.unr = phi i64 [ %.019.ph, %scalar.ph.preheader ], [ %23, %scalar.ph.prol ]
  %24 = icmp eq i64 %3, %.neg
  br i1 %24, label %.preheader, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %25 = shl i64 %3, 3
  %scevgep = getelementptr i8, ptr %13, i64 %25
  %scevgep23 = getelementptr i8, ptr %6, i64 104
  %scevgep24 = getelementptr i8, ptr %9, i64 %25
  %scevgep25 = getelementptr i8, ptr %11, i64 %25
  %bound0 = icmp ult ptr %13, %scevgep23
  %bound1 = icmp ult ptr %7, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound026 = icmp ult ptr %13, %scevgep24
  %bound127 = icmp ult ptr %9, %scevgep
  %found.conflict28 = and i1 %bound026, %bound127
  %conflict.rdx = or i1 %found.conflict, %found.conflict28
  %bound029 = icmp ult ptr %13, %scevgep25
  %bound130 = icmp ult ptr %11, %scevgep
  %found.conflict31 = and i1 %bound029, %bound130
  %conflict.rdx32 = or i1 %conflict.rdx, %found.conflict31
  br i1 %conflict.rdx32, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %3, 9223372036854775804
  %26 = load double, ptr %7, align 8, !tbaa !17, !alias.scope !22
  %broadcast.splatinsert34 = insertelement <2 x double> poison, double %26, i64 0
  %broadcast.splat35 = shufflevector <2 x double> %broadcast.splatinsert34, <2 x double> poison, <2 x i32> zeroinitializer
  %27 = fsub <2 x double> <double 1.000000e+00, double 1.000000e+00>, %broadcast.splat35
  %28 = fsub <2 x double> <double 1.000000e+00, double 1.000000e+00>, %broadcast.splat35
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %29 = getelementptr inbounds double, ptr %9, i64 %index
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %wide.load = load <2 x double>, ptr %29, align 8, !tbaa !21, !alias.scope !25
  %wide.load33 = load <2 x double>, ptr %30, align 8, !tbaa !21, !alias.scope !25
  %31 = getelementptr inbounds double, ptr %11, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load36 = load <2 x double>, ptr %31, align 8, !tbaa !21, !alias.scope !27
  %wide.load37 = load <2 x double>, ptr %32, align 8, !tbaa !21, !alias.scope !27
  %33 = fmul <2 x double> %27, %wide.load36
  %34 = fmul <2 x double> %28, %wide.load37
  %35 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat35, <2 x double> %wide.load, <2 x double> %33)
  %36 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat35, <2 x double> %wide.load33, <2 x double> %34)
  %37 = getelementptr inbounds double, ptr %13, i64 %index
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store <2 x double> %35, ptr %37, align 8, !tbaa !21, !alias.scope !29, !noalias !31
  store <2 x double> %36, ptr %38, align 8, !tbaa !21, !alias.scope !29, !noalias !31
  %index.next = add nuw i64 %index, 4
  %39 = icmp eq i64 %index.next, %n.vec
  br i1 %39, label %middle.block, label %vector.body, !llvm.loop !32

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

.preheader:                                       ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  br i1 %4, label %.lr.ph21, label %._crit_edge

.lr.ph21:                                         ; preds = %.preheader
  %40 = getelementptr inbounds i8, ptr %0, i64 48
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  %42 = getelementptr inbounds i8, ptr %0, i64 80
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %0, i64 136
  %45 = load ptr, ptr %44, align 8, !tbaa !36
  %min.iters.check43 = icmp ult i64 %3, 8
  br i1 %min.iters.check43, label %scalar.ph42.preheader, label %vector.memcheck38

scalar.ph42.preheader:                            ; preds = %middle.block41, %vector.memcheck38, %.lr.ph21
  %.120.ph = phi i64 [ 0, %vector.memcheck38 ], [ 0, %.lr.ph21 ], [ %n.vec46, %middle.block41 ]
  %xtraiter56 = and i64 %3, 3
  %lcmp.mod57.not = icmp eq i64 %xtraiter56, 0
  br i1 %lcmp.mod57.not, label %scalar.ph42.prol.loopexit, label %scalar.ph42.prol

scalar.ph42.prol:                                 ; preds = %scalar.ph42.preheader, %scalar.ph42.prol
  %.120.prol = phi i64 [ %52, %scalar.ph42.prol ], [ %.120.ph, %scalar.ph42.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph42.prol ], [ 0, %scalar.ph42.preheader ]
  %46 = getelementptr inbounds double, ptr %41, i64 %.120.prol
  %47 = load double, ptr %46, align 8, !tbaa !21
  %48 = getelementptr inbounds double, ptr %43, i64 %.120.prol
  %49 = load double, ptr %48, align 8, !tbaa !21
  %50 = fsub double %47, %49
  %51 = getelementptr inbounds double, ptr %45, i64 %.120.prol
  store double %50, ptr %51, align 8, !tbaa !21
  %52 = add nuw nsw i64 %.120.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter56
  br i1 %prol.iter.cmp.not, label %scalar.ph42.prol.loopexit, label %scalar.ph42.prol, !llvm.loop !37

scalar.ph42.prol.loopexit:                        ; preds = %scalar.ph42.prol, %scalar.ph42.preheader
  %.120.unr = phi i64 [ %.120.ph, %scalar.ph42.preheader ], [ %52, %scalar.ph42.prol ]
  %53 = sub nsw i64 %.120.ph, %3
  %54 = icmp ugt i64 %53, -4
  br i1 %54, label %._crit_edge, label %scalar.ph42

vector.memcheck38:                                ; preds = %.lr.ph21
  %55 = ptrtoint ptr %45 to i64
  %56 = ptrtoint ptr %43 to i64
  %57 = ptrtoint ptr %41 to i64
  %58 = sub i64 %55, %57
  %diff.check = icmp ult i64 %58, 32
  %59 = sub i64 %55, %56
  %diff.check39 = icmp ult i64 %59, 32
  %conflict.rdx40 = or i1 %diff.check, %diff.check39
  br i1 %conflict.rdx40, label %scalar.ph42.preheader, label %vector.ph44

vector.ph44:                                      ; preds = %vector.memcheck38
  %n.vec46 = and i64 %3, 9223372036854775804
  br label %vector.body48

vector.body48:                                    ; preds = %vector.body48, %vector.ph44
  %index49 = phi i64 [ 0, %vector.ph44 ], [ %index.next54, %vector.body48 ]
  %60 = getelementptr inbounds double, ptr %41, i64 %index49
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  %wide.load50 = load <2 x double>, ptr %60, align 8, !tbaa !21
  %wide.load51 = load <2 x double>, ptr %61, align 8, !tbaa !21
  %62 = getelementptr inbounds double, ptr %43, i64 %index49
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %wide.load52 = load <2 x double>, ptr %62, align 8, !tbaa !21
  %wide.load53 = load <2 x double>, ptr %63, align 8, !tbaa !21
  %64 = fsub <2 x double> %wide.load50, %wide.load52
  %65 = fsub <2 x double> %wide.load51, %wide.load53
  %66 = getelementptr inbounds double, ptr %45, i64 %index49
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  store <2 x double> %64, ptr %66, align 8, !tbaa !21
  store <2 x double> %65, ptr %67, align 8, !tbaa !21
  %index.next54 = add nuw i64 %index49, 4
  %68 = icmp eq i64 %index.next54, %n.vec46
  br i1 %68, label %middle.block41, label %vector.body48, !llvm.loop !39

middle.block41:                                   ; preds = %vector.body48
  %cmp.n55 = icmp eq i64 %3, %n.vec46
  br i1 %cmp.n55, label %._crit_edge, label %scalar.ph42.preheader

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.019 = phi i64 [ %88, %scalar.ph ], [ %.019.unr, %scalar.ph.prol.loopexit ]
  %69 = load double, ptr %7, align 8, !tbaa !17
  %70 = getelementptr inbounds double, ptr %9, i64 %.019
  %71 = load double, ptr %70, align 8, !tbaa !21
  %72 = fsub double 1.000000e+00, %69
  %73 = getelementptr inbounds double, ptr %11, i64 %.019
  %74 = load double, ptr %73, align 8, !tbaa !21
  %75 = fmul double %72, %74
  %76 = tail call double @llvm.fmuladd.f64(double %69, double %71, double %75)
  %77 = getelementptr inbounds double, ptr %13, i64 %.019
  store double %76, ptr %77, align 8, !tbaa !21
  %78 = add nuw nsw i64 %.019, 1
  %79 = load double, ptr %7, align 8, !tbaa !17
  %80 = getelementptr inbounds double, ptr %9, i64 %78
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = fsub double 1.000000e+00, %79
  %83 = getelementptr inbounds double, ptr %11, i64 %78
  %84 = load double, ptr %83, align 8, !tbaa !21
  %85 = fmul double %82, %84
  %86 = tail call double @llvm.fmuladd.f64(double %79, double %81, double %85)
  %87 = getelementptr inbounds double, ptr %13, i64 %78
  store double %86, ptr %87, align 8, !tbaa !21
  %88 = add nuw nsw i64 %.019, 2
  %exitcond.not.1 = icmp eq i64 %88, %3
  br i1 %exitcond.not.1, label %.preheader, label %scalar.ph, !llvm.loop !40

scalar.ph42:                                      ; preds = %scalar.ph42.prol.loopexit, %scalar.ph42
  %.120 = phi i64 [ %116, %scalar.ph42 ], [ %.120.unr, %scalar.ph42.prol.loopexit ]
  %89 = getelementptr inbounds double, ptr %41, i64 %.120
  %90 = load double, ptr %89, align 8, !tbaa !21
  %91 = getelementptr inbounds double, ptr %43, i64 %.120
  %92 = load double, ptr %91, align 8, !tbaa !21
  %93 = fsub double %90, %92
  %94 = getelementptr inbounds double, ptr %45, i64 %.120
  store double %93, ptr %94, align 8, !tbaa !21
  %95 = add nuw nsw i64 %.120, 1
  %96 = getelementptr inbounds double, ptr %41, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !21
  %98 = getelementptr inbounds double, ptr %43, i64 %95
  %99 = load double, ptr %98, align 8, !tbaa !21
  %100 = fsub double %97, %99
  %101 = getelementptr inbounds double, ptr %45, i64 %95
  store double %100, ptr %101, align 8, !tbaa !21
  %102 = add nuw nsw i64 %.120, 2
  %103 = getelementptr inbounds double, ptr %41, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !21
  %105 = getelementptr inbounds double, ptr %43, i64 %102
  %106 = load double, ptr %105, align 8, !tbaa !21
  %107 = fsub double %104, %106
  %108 = getelementptr inbounds double, ptr %45, i64 %102
  store double %107, ptr %108, align 8, !tbaa !21
  %109 = add nuw nsw i64 %.120, 3
  %110 = getelementptr inbounds double, ptr %41, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !21
  %112 = getelementptr inbounds double, ptr %43, i64 %109
  %113 = load double, ptr %112, align 8, !tbaa !21
  %114 = fsub double %111, %113
  %115 = getelementptr inbounds double, ptr %45, i64 %109
  store double %114, ptr %115, align 8, !tbaa !21
  %116 = add nuw nsw i64 %.120, 4
  %exitcond22.not.3 = icmp eq i64 %116, %3
  br i1 %exitcond22.not.3, label %._crit_edge, label %scalar.ph42, !llvm.loop !41

._crit_edge:                                      ; preds = %scalar.ph42.prol.loopexit, %scalar.ph42, %middle.block41, %1, %.preheader
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !10, i64 224, !10, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!13 = !{!6, !7, i64 184}
!14 = !{!6, !7, i64 72}
!15 = !{!6, !7, i64 80}
!16 = !{!6, !7, i64 48}
!17 = !{!18, !19, i64 96}
!18 = !{!"", !19, i64 0, !19, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !19, i64 40, !19, i64 48, !10, i64 56, !19, i64 64, !19, i64 72, !19, i64 80, !19, i64 88, !19, i64 96, !20, i64 104, !19, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !19, i64 168}
!19 = !{!"double", !8, i64 0}
!20 = !{!"int", !8, i64 0}
!21 = !{!19, !19, i64 0}
!22 = !{!23}
!23 = distinct !{!23, !24}
!24 = distinct !{!24, !"LVerDomain"}
!25 = !{!26}
!26 = distinct !{!26, !24}
!27 = !{!28}
!28 = distinct !{!28, !24}
!29 = !{!30}
!30 = distinct !{!30, !24}
!31 = !{!23, !26, !28}
!32 = distinct !{!32, !33, !34, !35}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = !{!6, !7, i64 136}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.unroll.disable"}
!39 = distinct !{!39, !33, !34, !35}
!40 = distinct !{!40, !33, !34}
!41 = distinct !{!41, !33, !34}


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