; LLVM IR from QUILL-PIC/Quill :: src/pusher.ll (Z8push_vayR8particleR8vector3dS2_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: mustprogress uwtable
define dso_local void @_Z8push_vayR8particleR8vector3dS2_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) #0 {
  %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 ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = 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
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.particle, ptr %21, i32 0, i32 8
  store ptr %22, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.particle, ptr %23, i32 0, i32 3
  store ptr %24, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.particle, ptr %25, i32 0, i32 4
  store ptr %26, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.particle, ptr %27, i32 0, i32 5
  store ptr %28, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.particle, ptr %29, i32 0, i32 6
  store ptr %30, ptr %20, align 8, !tbaa !5
  %31 = load double, ptr %8, align 8, !tbaa !9
  %32 = load ptr, ptr %16, align 8, !tbaa !5
  %33 = load double, ptr %32, align 8, !tbaa !9
  %34 = fmul double %31, %33
  store double %34, ptr %11, align 8, !tbaa !9
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.vector3d, ptr %35, i32 0, i32 0
  %37 = load double, ptr %36, align 8, !tbaa !11
  %38 = load double, ptr %11, align 8, !tbaa !9
  %39 = fmul double %37, %38
  %40 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 0
  store double %39, ptr %40, align 8, !tbaa !11
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.vector3d, ptr %41, i32 0, i32 1
  %43 = load double, ptr %42, align 8, !tbaa !13
  %44 = load double, ptr %11, align 8, !tbaa !9
  %45 = fmul double %43, %44
  %46 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 1
  store double %45, ptr %46, align 8, !tbaa !13
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.vector3d, ptr %47, i32 0, i32 2
  %49 = load double, ptr %48, align 8, !tbaa !14
  %50 = load double, ptr %11, align 8, !tbaa !9
  %51 = fmul double %49, %50
  %52 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 2
  store double %51, ptr %52, align 8, !tbaa !14
  %53 = load double, ptr %11, align 8, !tbaa !9
  %54 = fmul double 5.000000e-01, %53
  store double %54, ptr %11, align 8, !tbaa !9
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.vector3d, ptr %55, i32 0, i32 0
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = load double, ptr %11, align 8, !tbaa !9
  %59 = fmul double %57, %58
  %60 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  store double %59, ptr %60, align 8, !tbaa !11
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.vector3d, ptr %61, i32 0, i32 1
  %63 = load double, ptr %62, align 8, !tbaa !13
  %64 = load double, ptr %11, align 8, !tbaa !9
  %65 = fmul double %63, %64
  %66 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  store double %65, ptr %66, align 8, !tbaa !13
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.vector3d, ptr %67, i32 0, i32 2
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = load double, ptr %11, align 8, !tbaa !9
  %71 = fmul double %69, %70
  %72 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  store double %71, ptr %72, align 8, !tbaa !14
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 0
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = fadd double %74, %76
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %81 = load double, ptr %80, align 8, !tbaa !14
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %85 = load double, ptr %84, align 8, !tbaa !13
  %86 = fmul double %83, %85
  %87 = fneg double %86
  %88 = call double @llvm.fmuladd.f64(double %79, double %81, double %87)
  %89 = load ptr, ptr %20, align 8, !tbaa !5
  %90 = load double, ptr %89, align 8, !tbaa !9
  %91 = fdiv double %88, %90
  %92 = fadd double %77, %91
  store double %92, ptr %12, align 8, !tbaa !9
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 1
  %96 = load double, ptr %95, align 8, !tbaa !13
  %97 = fadd double %94, %96
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %101 = load double, ptr %100, align 8, !tbaa !11
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %105 = load double, ptr %104, align 8, !tbaa !14
  %106 = fmul double %103, %105
  %107 = fneg double %106
  %108 = call double @llvm.fmuladd.f64(double %99, double %101, double %107)
  %109 = load ptr, ptr %20, align 8, !tbaa !5
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = fdiv double %108, %110
  %112 = fadd double %97, %111
  store double %112, ptr %13, align 8, !tbaa !9
  %113 = load ptr, ptr %19, align 8, !tbaa !5
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.vector3d, ptr %9, i32 0, i32 2
  %116 = load double, ptr %115, align 8, !tbaa !14
  %117 = fadd double %114, %116
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %121 = load double, ptr %120, align 8, !tbaa !13
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = load double, ptr %122, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = fmul double %123, %125
  %127 = fneg double %126
  %128 = call double @llvm.fmuladd.f64(double %119, double %121, double %127)
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = fdiv double %128, %130
  %132 = fadd double %117, %131
  store double %132, ptr %14, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %134 = load double, ptr %133, align 8, !tbaa !11
  %135 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %138 = load double, ptr %137, align 8, !tbaa !13
  %139 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %140 = load double, ptr %139, align 8, !tbaa !13
  %141 = fmul double %138, %140
  %142 = call double @llvm.fmuladd.f64(double %134, double %136, double %141)
  %143 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %144 = load double, ptr %143, align 8, !tbaa !14
  %145 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %146 = load double, ptr %145, align 8, !tbaa !14
  %147 = call double @llvm.fmuladd.f64(double %144, double %146, double %142)
  store double %147, ptr %11, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = load double, ptr %12, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %152 = load double, ptr %151, align 8, !tbaa !13
  %153 = load double, ptr %13, align 8, !tbaa !9
  %154 = fmul double %152, %153
  %155 = call double @llvm.fmuladd.f64(double %149, double %150, double %154)
  %156 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %157 = load double, ptr %156, align 8, !tbaa !14
  %158 = load double, ptr %14, align 8, !tbaa !9
  %159 = call double @llvm.fmuladd.f64(double %157, double %158, double %155)
  store double %159, ptr %15, align 8, !tbaa !9
  %160 = load double, ptr %12, align 8, !tbaa !9
  %161 = load double, ptr %12, align 8, !tbaa !9
  %162 = call double @llvm.fmuladd.f64(double %160, double %161, double 1.000000e+00)
  %163 = load double, ptr %13, align 8, !tbaa !9
  %164 = load double, ptr %13, align 8, !tbaa !9
  %165 = call double @llvm.fmuladd.f64(double %163, double %164, double %162)
  %166 = load double, ptr %14, align 8, !tbaa !9
  %167 = load double, ptr %14, align 8, !tbaa !9
  %168 = call double @llvm.fmuladd.f64(double %166, double %167, double %165)
  %169 = load double, ptr %11, align 8, !tbaa !9
  %170 = fsub double %168, %169
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  store double %170, ptr %171, align 8, !tbaa !9
  %172 = load ptr, ptr %20, align 8, !tbaa !5
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = load ptr, ptr %20, align 8, !tbaa !5
  %175 = load double, ptr %174, align 8, !tbaa !9
  %176 = load ptr, ptr %20, align 8, !tbaa !5
  %177 = load double, ptr %176, align 8, !tbaa !9
  %178 = load double, ptr %11, align 8, !tbaa !9
  %179 = load double, ptr %15, align 8, !tbaa !9
  %180 = load double, ptr %15, align 8, !tbaa !9
  %181 = call double @llvm.fmuladd.f64(double %179, double %180, double %178)
  %182 = fmul double 4.000000e+00, %181
  %183 = call double @llvm.fmuladd.f64(double %175, double %177, double %182)
  %184 = call double @sqrt(double noundef %183) #5
  %185 = fadd double %173, %184
  %186 = fmul double 5.000000e-01, %185
  %187 = call double @sqrt(double noundef %186) #5
  %188 = load ptr, ptr %20, align 8, !tbaa !5
  store double %187, ptr %188, align 8, !tbaa !9
  %189 = load double, ptr %11, align 8, !tbaa !9
  %190 = load ptr, ptr %20, align 8, !tbaa !5
  %191 = load double, ptr %190, align 8, !tbaa !9
  %192 = load ptr, ptr %20, align 8, !tbaa !5
  %193 = load double, ptr %192, align 8, !tbaa !9
  %194 = fmul double %191, %193
  %195 = fdiv double %189, %194
  %196 = fadd double 1.000000e+00, %195
  %197 = fdiv double 1.000000e+00, %196
  store double %197, ptr %11, align 8, !tbaa !9
  %198 = load double, ptr %15, align 8, !tbaa !9
  %199 = load ptr, ptr %20, align 8, !tbaa !5
  %200 = load double, ptr %199, align 8, !tbaa !9
  %201 = load ptr, ptr %20, align 8, !tbaa !5
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = fmul double %200, %202
  %204 = fdiv double %198, %203
  store double %204, ptr %15, align 8, !tbaa !9
  %205 = load double, ptr %12, align 8, !tbaa !9
  %206 = load double, ptr %13, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %208 = load double, ptr %207, align 8, !tbaa !14
  %209 = load double, ptr %14, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %211 = load double, ptr %210, align 8, !tbaa !13
  %212 = fmul double %209, %211
  %213 = fneg double %212
  %214 = call double @llvm.fmuladd.f64(double %206, double %208, double %213)
  %215 = load ptr, ptr %20, align 8, !tbaa !5
  %216 = load double, ptr %215, align 8, !tbaa !9
  %217 = fdiv double %214, %216
  %218 = fadd double %205, %217
  %219 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %220 = load double, ptr %219, align 8, !tbaa !11
  %221 = load double, ptr %15, align 8, !tbaa !9
  %222 = call double @llvm.fmuladd.f64(double %220, double %221, double %218)
  %223 = load double, ptr %11, align 8, !tbaa !9
  %224 = fmul double %222, %223
  %225 = load ptr, ptr %17, align 8, !tbaa !5
  store double %224, ptr %225, align 8, !tbaa !9
  %226 = load double, ptr %13, align 8, !tbaa !9
  %227 = load double, ptr %14, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = load double, ptr %12, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %232 = load double, ptr %231, align 8, !tbaa !14
  %233 = fmul double %230, %232
  %234 = fneg double %233
  %235 = call double @llvm.fmuladd.f64(double %227, double %229, double %234)
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = load double, ptr %236, align 8, !tbaa !9
  %238 = fdiv double %235, %237
  %239 = fadd double %226, %238
  %240 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %241 = load double, ptr %240, align 8, !tbaa !13
  %242 = load double, ptr %15, align 8, !tbaa !9
  %243 = call double @llvm.fmuladd.f64(double %241, double %242, double %239)
  %244 = load double, ptr %11, align 8, !tbaa !9
  %245 = fmul double %243, %244
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  store double %245, ptr %246, align 8, !tbaa !9
  %247 = load double, ptr %14, align 8, !tbaa !9
  %248 = load double, ptr %12, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 1
  %250 = load double, ptr %249, align 8, !tbaa !13
  %251 = load double, ptr %13, align 8, !tbaa !9
  %252 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 0
  %253 = load double, ptr %252, align 8, !tbaa !11
  %254 = fmul double %251, %253
  %255 = fneg double %254
  %256 = call double @llvm.fmuladd.f64(double %248, double %250, double %255)
  %257 = load ptr, ptr %20, align 8, !tbaa !5
  %258 = load double, ptr %257, align 8, !tbaa !9
  %259 = fdiv double %256, %258
  %260 = fadd double %247, %259
  %261 = getelementptr inbounds %struct.vector3d, ptr %10, i32 0, i32 2
  %262 = load double, ptr %261, align 8, !tbaa !14
  %263 = load double, ptr %15, align 8, !tbaa !9
  %264 = call double @llvm.fmuladd.f64(double %262, double %263, double %260)
  %265 = load double, ptr %11, align 8, !tbaa !9
  %266 = fmul double %264, %265
  %267 = load ptr, ptr %19, align 8, !tbaa !5
  store double %266, ptr %267, align 8, !tbaa !9
  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
}

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 nounwind uwtable
define dso_local void @_Z8push_vayR8particleR8vector3dS2_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 #0 {
  %5 = alloca %struct.vector3d, align 8
  %6 = alloca %struct.vector3d, align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  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 40
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = load double, ptr %7, align 8, !tbaa !5
  %12 = fmul double %11, %3
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load double, ptr %13, align 8, !tbaa !9
  %15 = fmul double %12, %14
  %16 = fmul double %12, 5.000000e-01
  %17 = load <2 x double>, ptr %2, align 8, !tbaa !5
  %18 = insertelement <2 x double> poison, double %16, i64 0
  %19 = shufflevector <2 x double> %18, <2 x double> poison, <2 x i32> zeroinitializer
  %20 = fmul <2 x double> %19, %17
  store <2 x double> %20, ptr %6, align 16, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %2, i64 16
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = fmul double %16, %22
  %24 = getelementptr inbounds i8, ptr %6, i64 16
  store double %23, ptr %24, align 16, !tbaa !9
  %25 = load double, ptr %9, align 8, !tbaa !5
  %26 = extractelement <2 x double> %20, i64 1
  %27 = load double, ptr %10, align 8, !tbaa !5
  %28 = extractelement <2 x double> %20, i64 0
  %29 = fadd double %15, %25
  %30 = fmul double %26, %26
  %31 = load <2 x double>, ptr %1, align 8, !tbaa !5
  %32 = insertelement <2 x double> poison, double %12, i64 0
  %33 = shufflevector <2 x double> %32, <2 x double> poison, <2 x i32> zeroinitializer
  %34 = fmul <2 x double> %31, %33
  %35 = load <2 x double>, ptr %8, align 8, !tbaa !5
  %36 = fadd <2 x double> %34, %35
  %37 = insertelement <2 x double> poison, double %25, i64 0
  %38 = shufflevector <2 x double> %37, <2 x double> %35, <2 x i32> <i32 0, i32 2>
  %39 = fneg <2 x double> %38
  %40 = shufflevector <2 x double> %20, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %41 = insertelement <2 x double> %40, double %23, i64 1
  %42 = fmul <2 x double> %41, %39
  %43 = shufflevector <2 x double> %35, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %44 = insertelement <2 x double> %43, double %25, i64 1
  %45 = insertelement <2 x double> %40, double %23, i64 0
  %46 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %44, <2 x double> %45, <2 x double> %42)
  %47 = insertelement <2 x double> poison, double %27, i64 0
  %48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
  %49 = fdiv <2 x double> %46, %48
  %50 = fadd <2 x double> %36, %49
  %51 = extractelement <2 x double> %35, i64 1
  %52 = fneg double %51
  %53 = fmul double %28, %52
  %54 = extractelement <2 x double> %35, i64 0
  %55 = call double @llvm.fmuladd.f64(double %54, double %26, double %53)
  %56 = fdiv double %55, %27
  %57 = fadd double %29, %56
  %58 = extractelement <2 x double> %50, i64 1
  %59 = fmul double %26, %58
  %60 = extractelement <2 x double> %50, i64 0
  %61 = call double @llvm.fmuladd.f64(double %28, double %60, double %59)
  %62 = call double @llvm.fmuladd.f64(double %23, double %57, double %61)
  %63 = call double @llvm.fmuladd.f64(double %60, double %60, double 1.000000e+00)
  %64 = shufflevector <2 x double> %50, <2 x double> %20, <2 x i32> <i32 1, i32 2>
  %65 = insertelement <2 x double> poison, double %63, i64 0
  %66 = insertelement <2 x double> %65, double %30, i64 1
  %67 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %64, <2 x double> %64, <2 x double> %66)
  %68 = insertelement <2 x double> poison, double %57, i64 0
  %69 = insertelement <2 x double> %68, double %23, i64 1
  %70 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %69, <2 x double> %69, <2 x double> %67)
  %71 = extractelement <2 x double> %70, i64 0
  %72 = extractelement <2 x double> %70, i64 1
  %73 = fsub double %71, %72
  %74 = call double @llvm.fmuladd.f64(double %62, double %62, double %72)
  %75 = fmul double %74, 4.000000e+00
  %76 = call double @llvm.fmuladd.f64(double %73, double %73, double %75)
  %77 = call double @sqrt(double noundef %76) #5
  %78 = fadd double %77, %73
  %79 = fmul double %78, 5.000000e-01
  %80 = call double @sqrt(double noundef %79) #5
  store double %80, ptr %10, align 8, !tbaa !5
  %81 = fmul double %80, %80
  %82 = fdiv double %72, %81
  %83 = fadd double %82, 1.000000e+00
  %84 = fdiv double 1.000000e+00, %83
  %85 = fdiv double %62, %81
  %86 = load double, ptr %24, align 16, !tbaa !9
  %87 = load <2 x double>, ptr %6, align 16, !tbaa !5
  %88 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> <i32 poison, i32 0>
  %89 = insertelement <2 x double> %88, double %57, i64 0
  %90 = fneg <2 x double> %89
  %91 = shufflevector <2 x double> %87, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %92 = insertelement <2 x double> %91, double %86, i64 1
  %93 = fmul <2 x double> %92, %90
  %94 = shufflevector <2 x double> %50, <2 x double> %89, <2 x i32> <i32 1, i32 2>
  %95 = insertelement <2 x double> poison, double %86, i64 0
  %96 = shufflevector <2 x double> %95, <2 x double> %87, <2 x i32> <i32 0, i32 2>
  %97 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %94, <2 x double> %96, <2 x double> %93)
  %98 = insertelement <2 x double> poison, double %80, i64 0
  %99 = shufflevector <2 x double> %98, <2 x double> poison, <2 x i32> zeroinitializer
  %100 = fdiv <2 x double> %97, %99
  %101 = fadd <2 x double> %50, %100
  %102 = insertelement <2 x double> poison, double %85, i64 0
  %103 = shufflevector <2 x double> %102, <2 x double> poison, <2 x i32> zeroinitializer
  %104 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %87, <2 x double> %103, <2 x double> %101)
  %105 = insertelement <2 x double> poison, double %84, i64 0
  %106 = shufflevector <2 x double> %105, <2 x double> poison, <2 x i32> zeroinitializer
  %107 = fmul <2 x double> %106, %104
  store <2 x double> %107, ptr %8, align 8, !tbaa !5
  %108 = fneg double %58
  %109 = extractelement <2 x double> %87, i64 0
  %110 = fmul double %109, %108
  %111 = extractelement <2 x double> %87, i64 1
  %112 = call double @llvm.fmuladd.f64(double %60, double %111, double %110)
  %113 = fdiv double %112, %80
  %114 = fadd double %57, %113
  %115 = call double @llvm.fmuladd.f64(double %86, double %85, double %114)
  %116 = fmul double %84, %115
  store double %116, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8vector3dC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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>) #4

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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: DSEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass