; LLVM IR from QUILL-PIC/Quill :: src/pusher.ll (Z10push_borisR8particleR8vector3dS2_d)

; 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.vector3d = type { double, double, double }
%struct.particle = type { double, double, double, double, double, double, double, double, double, double, i32, 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: mustprogress nounwind uwtable
declare dso_local void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10push_borisR8particleR8vector3dS2_d(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca %struct.vector3d, align 8
  %10 = alloca %struct.vector3d, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  call void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.particle, ptr %23, i32 0, i32 8
  store ptr %24, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.particle, ptr %25, i32 0, i32 3
  store ptr %26, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.particle, ptr %27, i32 0, i32 4
  store ptr %28, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.particle, ptr %29, i32 0, i32 5
  store ptr %30, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.particle, ptr %31, i32 0, i32 6
  store ptr %32, ptr %22, align 8, !tbaa !5
  %33 = load double, ptr %8, align 8, !tbaa !9
  %34 = fmul double 5.000000e-01, %33
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  %36 = load double, ptr %35, align 8, !tbaa !9
  %37 = fmul double %34, %36
  store double %37, ptr %11, align 8, !tbaa !9
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.vector3d, ptr %38, i32 0, i32 0
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = load double, ptr %11, align 8, !tbaa !9
  %42 = fmul double %40, %41
  %43 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 0
  store double %42, ptr %43, align 8, !tbaa !11
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.vector3d, ptr %44, i32 0, i32 1
  %46 = load double, ptr %45, align 8, !tbaa !13
  %47 = load double, ptr %11, align 8, !tbaa !9
  %48 = fmul double %46, %47
  %49 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 1
  store double %48, ptr %49, align 8, !tbaa !13
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.vector3d, ptr %50, i32 0, i32 2
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = load double, ptr %11, align 8, !tbaa !9
  %54 = fmul double %52, %53
  %55 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 2
  store double %54, ptr %55, align 8, !tbaa !14
  %56 = load ptr, ptr %19, align 8, !tbaa !5
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 0
  %59 = load double, ptr %58, align 8, !tbaa !11
  %60 = fadd double %57, %59
  store double %60, ptr %12, align 8, !tbaa !9
  %61 = load ptr, ptr %20, align 8, !tbaa !5
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !13
  %65 = fadd double %62, %64
  store double %65, ptr %13, align 8, !tbaa !9
  %66 = load ptr, ptr %21, align 8, !tbaa !5
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 2
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = fadd double %67, %69
  store double %70, ptr %14, align 8, !tbaa !9
  %71 = load double, ptr %12, align 8, !tbaa !9
  %72 = load double, ptr %12, align 8, !tbaa !9
  %73 = call double @llvm.fmuladd.f64(double %71, double %72, double 1.000000e+00)
  %74 = load double, ptr %13, align 8, !tbaa !9
  %75 = load double, ptr %13, align 8, !tbaa !9
  %76 = call double @llvm.fmuladd.f64(double %74, double %75, double %73)
  %77 = load double, ptr %14, align 8, !tbaa !9
  %78 = load double, ptr %14, align 8, !tbaa !9
  %79 = call double @llvm.fmuladd.f64(double %77, double %78, double %76)
  %80 = call double @sqrt(double noundef %79) #5
  %81 = load ptr, ptr %22, align 8, !tbaa !5
  store double %80, ptr %81, align 8, !tbaa !9
  %82 = load ptr, ptr %22, align 8, !tbaa !5
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = load double, ptr %11, align 8, !tbaa !9
  %85 = fdiv double %84, %83
  store double %85, ptr %11, align 8, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.vector3d, ptr %86, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = load double, ptr %11, align 8, !tbaa !9
  %90 = fmul double %88, %89
  %91 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  store double %90, ptr %91, align 8, !tbaa !11
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.vector3d, ptr %92, i32 0, i32 1
  %94 = load double, ptr %93, align 8, !tbaa !13
  %95 = load double, ptr %11, align 8, !tbaa !9
  %96 = fmul double %94, %95
  %97 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  store double %96, ptr %97, align 8, !tbaa !13
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.vector3d, ptr %98, i32 0, i32 2
  %100 = load double, ptr %99, align 8, !tbaa !14
  %101 = load double, ptr %11, align 8, !tbaa !9
  %102 = fmul double %100, %101
  %103 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  store double %102, ptr %103, align 8, !tbaa !14
  %104 = load double, ptr %12, align 8, !tbaa !9
  %105 = load double, ptr %13, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %107 = load double, ptr %106, align 8, !tbaa !14
  %108 = load double, ptr %14, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %110 = load double, ptr %109, align 8, !tbaa !13
  %111 = fmul double %108, %110
  %112 = fneg double %111
  %113 = call double @llvm.fmuladd.f64(double %105, double %107, double %112)
  %114 = fadd double %104, %113
  store double %114, ptr %15, align 8, !tbaa !9
  %115 = load double, ptr %13, align 8, !tbaa !9
  %116 = load double, ptr %14, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %118 = load double, ptr %117, align 8, !tbaa !11
  %119 = load double, ptr %12, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %121 = load double, ptr %120, align 8, !tbaa !14
  %122 = fmul double %119, %121
  %123 = fneg double %122
  %124 = call double @llvm.fmuladd.f64(double %116, double %118, double %123)
  %125 = fadd double %115, %124
  store double %125, ptr %16, align 8, !tbaa !9
  %126 = load double, ptr %14, align 8, !tbaa !9
  %127 = load double, ptr %12, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %129 = load double, ptr %128, align 8, !tbaa !13
  %130 = load double, ptr %13, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = fmul double %130, %132
  %134 = fneg double %133
  %135 = call double @llvm.fmuladd.f64(double %127, double %129, double %134)
  %136 = fadd double %126, %135
  store double %136, ptr %17, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %140 = load double, ptr %139, align 8, !tbaa !11
  %141 = call double @llvm.fmuladd.f64(double %138, double %140, double 1.000000e+00)
  %142 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %143 = load double, ptr %142, align 8, !tbaa !13
  %144 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %145 = load double, ptr %144, align 8, !tbaa !13
  %146 = call double @llvm.fmuladd.f64(double %143, double %145, double %141)
  %147 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %148 = load double, ptr %147, align 8, !tbaa !14
  %149 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %150 = load double, ptr %149, align 8, !tbaa !14
  %151 = call double @llvm.fmuladd.f64(double %148, double %150, double %146)
  %152 = fdiv double 2.000000e+00, %151
  store double %152, ptr %11, align 8, !tbaa !9
  %153 = load double, ptr %16, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %155 = load double, ptr %154, align 8, !tbaa !14
  %156 = load double, ptr %17, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %158 = load double, ptr %157, align 8, !tbaa !13
  %159 = fmul double %156, %158
  %160 = fneg double %159
  %161 = call double @llvm.fmuladd.f64(double %153, double %155, double %160)
  %162 = load double, ptr %11, align 8, !tbaa !9
  %163 = load double, ptr %12, align 8, !tbaa !9
  %164 = call double @llvm.fmuladd.f64(double %161, double %162, double %163)
  store double %164, ptr %12, align 8, !tbaa !9
  %165 = load double, ptr %17, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = load double, ptr %15, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %170 = load double, ptr %169, align 8, !tbaa !14
  %171 = fmul double %168, %170
  %172 = fneg double %171
  %173 = call double @llvm.fmuladd.f64(double %165, double %167, double %172)
  %174 = load double, ptr %11, align 8, !tbaa !9
  %175 = load double, ptr %13, align 8, !tbaa !9
  %176 = call double @llvm.fmuladd.f64(double %173, double %174, double %175)
  store double %176, ptr %13, align 8, !tbaa !9
  %177 = load double, ptr %15, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %179 = load double, ptr %178, align 8, !tbaa !13
  %180 = load double, ptr %16, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %182 = load double, ptr %181, align 8, !tbaa !11
  %183 = fmul double %180, %182
  %184 = fneg double %183
  %185 = call double @llvm.fmuladd.f64(double %177, double %179, double %184)
  %186 = load double, ptr %11, align 8, !tbaa !9
  %187 = load double, ptr %14, align 8, !tbaa !9
  %188 = call double @llvm.fmuladd.f64(double %185, double %186, double %187)
  store double %188, ptr %14, align 8, !tbaa !9
  %189 = load double, ptr %12, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 0
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = fadd double %189, %191
  %193 = load ptr, ptr %19, align 8, !tbaa !5
  store double %192, ptr %193, align 8, !tbaa !9
  %194 = load double, ptr %13, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 1
  %196 = load double, ptr %195, align 8, !tbaa !13
  %197 = fadd double %194, %196
  %198 = load ptr, ptr %20, align 8, !tbaa !5
  store double %197, ptr %198, align 8, !tbaa !9
  %199 = load double, ptr %14, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 2
  %201 = load double, ptr %200, align 8, !tbaa !14
  %202 = fadd double %199, %201
  %203 = load ptr, ptr %21, align 8, !tbaa !5
  store double %202, ptr %203, align 8, !tbaa !9
  %204 = load ptr, ptr %19, align 8, !tbaa !5
  %205 = load double, ptr %204, align 8, !tbaa !9
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = load double, ptr %206, align 8, !tbaa !9
  %208 = call double @llvm.fmuladd.f64(double %205, double %207, double 1.000000e+00)
  %209 = load ptr, ptr %20, align 8, !tbaa !5
  %210 = load double, ptr %209, align 8, !tbaa !9
  %211 = load ptr, ptr %20, align 8, !tbaa !5
  %212 = load double, ptr %211, align 8, !tbaa !9
  %213 = call double @llvm.fmuladd.f64(double %210, double %212, double %208)
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = load double, ptr %214, align 8, !tbaa !9
  %216 = load ptr, ptr %21, align 8, !tbaa !5
  %217 = load double, ptr %216, align 8, !tbaa !9
  %218 = call double @llvm.fmuladd.f64(double %215, double %217, double %213)
  %219 = call double @sqrt(double noundef %218) #5
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  store double %219, ptr %220, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 speculatable willreturn memory(none) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


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

%struct.vector3d = type { double, double, double }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z10push_borisR8particleR8vector3dS2_d(ptr nocapture noundef nonnull align 8 dereferenceable(104) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %2, double noundef %3) local_unnamed_addr #1 {
  %5 = alloca %struct.vector3d, align 8
  %6 = alloca %struct.vector3d, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 64
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = fmul double %3, 5.000000e-01
  %13 = load double, ptr %7, align 8, !tbaa !5
  %14 = fmul double %12, %13
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load double, ptr %15, align 8, !tbaa !9
  %17 = fmul double %14, %16
  %18 = load double, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %2, i64 16
  %20 = load <2 x double>, ptr %1, align 8, !tbaa !5
  %21 = insertelement <2 x double> poison, double %14, i64 0
  %22 = shufflevector <2 x double> %21, <2 x double> poison, <2 x i32> zeroinitializer
  %23 = fmul <2 x double> %20, %22
  %24 = extractelement <2 x double> %23, i64 0
  %25 = fadd double %24, %18
  %26 = load <2 x double>, ptr %9, align 8, !tbaa !5
  %27 = shufflevector <2 x double> %23, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %28 = insertelement <2 x double> %27, double %17, i64 1
  %29 = fadd <2 x double> %28, %26
  %30 = call double @llvm.fmuladd.f64(double %25, double %25, double 1.000000e+00)
  %31 = extractelement <2 x double> %29, i64 0
  %32 = call double @llvm.fmuladd.f64(double %31, double %31, double %30)
  %33 = extractelement <2 x double> %29, i64 1
  %34 = call double @llvm.fmuladd.f64(double %33, double %33, double %32)
  %sqrt65 = call double @llvm.sqrt.f64(double %34)
  store double %sqrt65, ptr %11, align 8, !tbaa !5
  %35 = fdiv double %14, %sqrt65
  %36 = load <2 x double>, ptr %2, align 8, !tbaa !5
  %37 = insertelement <2 x double> poison, double %35, i64 0
  %38 = shufflevector <2 x double> %37, <2 x double> poison, <2 x i32> zeroinitializer
  %39 = fmul <2 x double> %36, %38
  %40 = load double, ptr %19, align 8, !tbaa !9
  %41 = fmul double %35, %40
  %42 = fneg double %33
  %43 = extractelement <2 x double> %39, i64 1
  %44 = fmul double %43, %42
  %45 = call double @llvm.fmuladd.f64(double %31, double %41, double %44)
  %46 = fadd double %25, %45
  %47 = shufflevector <2 x double> %29, <2 x double> poison, <2 x i32> <i32 poison, i32 0>
  %48 = insertelement <2 x double> %47, double %25, i64 0
  %49 = fneg <2 x double> %48
  %50 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> <i32 poison, i32 0>
  %51 = insertelement <2 x double> %50, double %41, i64 0
  %52 = fmul <2 x double> %51, %49
  %53 = shufflevector <2 x double> %29, <2 x double> %48, <2 x i32> <i32 1, i32 2>
  %54 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %39, <2 x double> %52)
  %55 = fadd <2 x double> %29, %54
  %56 = extractelement <2 x double> %39, i64 0
  %57 = call double @llvm.fmuladd.f64(double %56, double %56, double 1.000000e+00)
  %58 = call double @llvm.fmuladd.f64(double %43, double %43, double %57)
  %59 = call double @llvm.fmuladd.f64(double %41, double %41, double %58)
  %60 = fdiv double 2.000000e+00, %59
  %61 = shufflevector <2 x double> %55, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %62 = insertelement <2 x double> %61, double %46, i64 1
  %63 = fneg <2 x double> %62
  %64 = shufflevector <2 x double> %39, <2 x double> %51, <2 x i32> <i32 1, i32 2>
  %65 = fmul <2 x double> %64, %63
  %66 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %55, <2 x double> %51, <2 x double> %65)
  %67 = insertelement <2 x double> poison, double %60, i64 0
  %68 = shufflevector <2 x double> %67, <2 x double> poison, <2 x i32> zeroinitializer
  %69 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %66, <2 x double> %68, <2 x double> %48)
  %70 = extractelement <2 x double> %55, i64 0
  %71 = fneg double %70
  %72 = fmul double %56, %71
  %73 = call double @llvm.fmuladd.f64(double %46, double %43, double %72)
  %74 = call double @llvm.fmuladd.f64(double %73, double %60, double %33)
  %75 = fadd <2 x double> %23, %69
  store <2 x double> %75, ptr %8, align 8, !tbaa !5
  %76 = fadd double %17, %74
  store double %76, ptr %10, align 8, !tbaa !5
  %77 = extractelement <2 x double> %75, i64 0
  %78 = call double @llvm.fmuladd.f64(double %77, double %77, double 1.000000e+00)
  %79 = extractelement <2 x double> %75, i64 1
  %80 = call double @llvm.fmuladd.f64(double %79, double %79, double %78)
  %81 = call double @llvm.fmuladd.f64(double %76, double %76, double %80)
  %sqrt = call double @llvm.sqrt.f64(double %81)
  store double %sqrt, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  ret void
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS8vector3d", !6, i64 0, !6, i64 8, !6, i64 16}


; Effective O3 passes: AggressiveInstCombinePass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass