; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Body/MassProperties.ll (ZN3JPH14MassProperties5ScaleENS_4Vec3E)

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

%"class.JPH::Vec3" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH14MassProperties5ScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %0, double %1, double %2) #4 align 2 {
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca ptr, align 8
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 0
  store double %1, ptr %23, align 16
  %24 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 1
  store double %2, ptr %24, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  %26 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %27 = call { double, double } @_ZNK3JPH5Mat4412GetDiagonal3Ev(ptr noundef nonnull align 16 dereferenceable(64) %26)
  %28 = getelementptr inbounds %"class.JPH::Vec3", ptr %6, i32 0, i32 0
  %29 = getelementptr inbounds %union.anon.3, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %31 = extractvalue { double, double } %27, 0
  store double %31, ptr %30, align 16
  %32 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %33 = extractvalue { double, double } %27, 1
  store double %33, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %34 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 5.000000e-01)
  %35 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %36 = getelementptr inbounds %union.anon.3, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %38 = extractvalue { double, double } %34, 0
  store double %38, ptr %37, align 16
  %39 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %40 = extractvalue { double, double } %34, 1
  store double %40, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %41 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %42 = load double, ptr %41, align 16
  %43 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %44 = load double, ptr %43, align 8
  %45 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %42, double %44)
  %46 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %45)
  %47 = getelementptr inbounds %"class.JPH::Vec3", ptr %8, i32 0, i32 0
  %48 = getelementptr inbounds %union.anon.3, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %50 = extractvalue { double, double } %46, 0
  store double %50, ptr %49, align 16
  %51 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %52 = extractvalue { double, double } %46, 1
  store double %52, ptr %51, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 %6, i64 16, i1 false), !tbaa.struct !9
  %53 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %54 = load double, ptr %53, align 16
  %55 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %56 = load double, ptr %55, align 8
  %57 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %54, double %56)
  %58 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %59 = getelementptr inbounds %union.anon.3, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %61 = extractvalue { double, double } %57, 0
  store double %61, ptr %60, align 16
  %62 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %63 = extractvalue { double, double } %57, 1
  store double %63, ptr %62, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !9
  %64 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %65 = load double, ptr %64, align 16
  %66 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %67 = load double, ptr %66, align 8
  %68 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %65, double %67)
  %69 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %70 = getelementptr inbounds %union.anon.3, ptr %69, i32 0, i32 0
  %71 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %72 = extractvalue { double, double } %68, 0
  store double %72, ptr %71, align 16
  %73 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %74 = extractvalue { double, double } %68, 1
  store double %74, ptr %73, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !9
  %75 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %76 = load double, ptr %75, align 16
  %77 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %78 = load double, ptr %77, align 8
  %79 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %76, double %78)
  %80 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %81 = getelementptr inbounds %union.anon.3, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 0
  %83 = extractvalue { double, double } %79, 0
  store double %83, ptr %82, align 16
  %84 = getelementptr inbounds { double, double }, ptr %81, i32 0, i32 1
  %85 = extractvalue { double, double } %79, 1
  store double %85, ptr %84, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %86 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %87 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %88 = fadd float %86, %87
  store float %88, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %89 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %90 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %91 = fadd float %89, %90
  store float %91, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %92 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %93 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %94 = fadd float %92, %93
  store float %94, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %95 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %96 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %97 = fmul float %95, %96
  %98 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %98, i32 noundef 0, i32 noundef 1)
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = fmul float %97, %100
  store float %101, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %102 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %103 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %104 = fmul float %102, %103
  %105 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %105, i32 noundef 0, i32 noundef 2)
  %107 = load float, ptr %106, align 4, !tbaa !11
  %108 = fmul float %104, %107
  store float %108, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %109 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %110 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %111 = fmul float %109, %110
  %112 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %112, i32 noundef 1, i32 noundef 2)
  %114 = load float, ptr %113, align 4, !tbaa !11
  %115 = fmul float %111, %114
  store float %115, ptr %21, align 4, !tbaa !11
  %116 = load float, ptr %16, align 4, !tbaa !11
  %117 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %117, i32 noundef 0, i32 noundef 0)
  store float %116, ptr %118, align 4, !tbaa !11
  %119 = load float, ptr %19, align 4, !tbaa !11
  %120 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %120, i32 noundef 0, i32 noundef 1)
  store float %119, ptr %121, align 4, !tbaa !11
  %122 = load float, ptr %19, align 4, !tbaa !11
  %123 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %123, i32 noundef 1, i32 noundef 0)
  store float %122, ptr %124, align 4, !tbaa !11
  %125 = load float, ptr %17, align 4, !tbaa !11
  %126 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %126, i32 noundef 1, i32 noundef 1)
  store float %125, ptr %127, align 4, !tbaa !11
  %128 = load float, ptr %20, align 4, !tbaa !11
  %129 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %129, i32 noundef 0, i32 noundef 2)
  store float %128, ptr %130, align 4, !tbaa !11
  %131 = load float, ptr %20, align 4, !tbaa !11
  %132 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %132, i32 noundef 2, i32 noundef 0)
  store float %131, ptr %133, align 4, !tbaa !11
  %134 = load float, ptr %21, align 4, !tbaa !11
  %135 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %135, i32 noundef 1, i32 noundef 2)
  store float %134, ptr %136, align 4, !tbaa !11
  %137 = load float, ptr %21, align 4, !tbaa !11
  %138 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %138, i32 noundef 2, i32 noundef 1)
  store float %137, ptr %139, align 4, !tbaa !11
  %140 = load float, ptr %18, align 4, !tbaa !11
  %141 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %141, i32 noundef 2, i32 noundef 2)
  store float %140, ptr %142, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %143 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %144 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %145 = fmul float %143, %144
  %146 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %147 = fmul float %145, %146
  %148 = call noundef float @_ZSt3absf(float noundef %147)
  store float %148, ptr %22, align 4, !tbaa !11
  %149 = load float, ptr %22, align 4, !tbaa !11
  %150 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 0
  %151 = load float, ptr %150, align 16, !tbaa !13
  %152 = fmul float %151, %149
  store float %152, ptr %150, align 16, !tbaa !13
  %153 = load float, ptr %22, align 4, !tbaa !11
  %154 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %155 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44mLEf(ptr noundef nonnull align 16 dereferenceable(64) %154, float noundef %153)
  %156 = getelementptr inbounds %"class.JPH::MassProperties", ptr %25, i32 0, i32 1
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %156, i32 noundef 3, i32 noundef 3)
  store float 1.000000e+00, ptr %157, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4412GetDiagonal3Ev(ptr noundef nonnull align 16 dereferenceable(64)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44mLEf(ptr noundef nonnull align 16 dereferenceable(64), float noundef) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline 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 #6 = { inlinehint 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 #7 = { 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 = !{i64 0, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN3JPH14MassPropertiesE", !12, i64 0, !15, i64 16}
!15 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}


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

%"class.JPH::Vec3" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH14MassProperties5ScaleENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %0, double %1, double %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  store double %1, ptr %4, align 16
  %9 = getelementptr inbounds i8, ptr %4, i64 8
  store double %2, ptr %9, align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = tail call { double, double } @_ZNK3JPH5Mat4412GetDiagonal3Ev(ptr noundef nonnull align 16 dereferenceable(64) %10)
  %12 = extractvalue { double, double } %11, 0
  %13 = extractvalue { double, double } %11, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %14 = tail call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 5.000000e-01)
  %15 = extractvalue { double, double } %14, 0
  store double %15, ptr %6, align 16
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  %17 = extractvalue { double, double } %14, 1
  store double %17, ptr %16, align 8
  %18 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %12, double %13)
  %19 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %18)
  %20 = extractvalue { double, double } %19, 0
  store double %20, ptr %5, align 16
  %21 = getelementptr inbounds i8, ptr %5, i64 8
  %22 = extractvalue { double, double } %19, 1
  store double %22, ptr %21, align 8
  %23 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %12, double %13)
  %24 = extractvalue { double, double } %23, 0
  %25 = extractvalue { double, double } %23, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %26 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %1, double %2)
  %27 = extractvalue { double, double } %26, 0
  store double %27, ptr %8, align 16
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  %29 = extractvalue { double, double } %26, 1
  store double %29, ptr %28, align 8
  %30 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %24, double %25)
  %31 = extractvalue { double, double } %30, 0
  store double %31, ptr %7, align 16
  %32 = getelementptr inbounds i8, ptr %7, i64 8
  %33 = extractvalue { double, double } %30, 1
  store double %33, ptr %32, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  %34 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %35 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %36 = fadd float %34, %35
  %37 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %38 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %39 = fadd float %37, %38
  %40 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %41 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %7)
  %42 = fadd float %40, %41
  %43 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %44 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %45 = fmul float %43, %44
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 0, i32 noundef 1)
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = fmul float %45, %47
  %49 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %50 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %51 = fmul float %49, %50
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 0, i32 noundef 2)
  %53 = load float, ptr %52, align 4, !tbaa !5
  %54 = fmul float %51, %53
  %55 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %56 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %57 = fmul float %55, %56
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 1, i32 noundef 2)
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = fmul float %57, %59
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 0, i32 noundef 0)
  store float %36, ptr %61, align 4, !tbaa !5
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 0, i32 noundef 1)
  store float %48, ptr %62, align 4, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 1, i32 noundef 0)
  store float %48, ptr %63, align 4, !tbaa !5
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 1, i32 noundef 1)
  store float %39, ptr %64, align 4, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 0, i32 noundef 2)
  store float %54, ptr %65, align 4, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 2, i32 noundef 0)
  store float %54, ptr %66, align 4, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 1, i32 noundef 2)
  store float %60, ptr %67, align 4, !tbaa !5
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 2, i32 noundef 1)
  store float %60, ptr %68, align 4, !tbaa !5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 2, i32 noundef 2)
  store float %42, ptr %69, align 4, !tbaa !5
  %70 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %71 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %72 = fmul float %70, %71
  %73 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %74 = fmul float %72, %73
  %75 = call noundef float @_ZSt3absf(float noundef %74)
  %76 = load float, ptr %0, align 16, !tbaa !9
  %77 = fmul float %75, %76
  store float %77, ptr %0, align 16, !tbaa !9
  %78 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44mLEf(ptr noundef nonnull align 16 dereferenceable(64) %10, float noundef %75)
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64) %10, i32 noundef 3, i32 noundef 3)
  store float 1.000000e+00, ptr %79, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4412GetDiagonal3Ev(ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5Mat44clEjj(ptr noundef nonnull align 16 dereferenceable(64), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44mLEf(ptr noundef nonnull align 16 dereferenceable(64), float noundef) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 #4 = { alwaysinline 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 = { inlinehint 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 #6 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN3JPH14MassPropertiesE", !6, i64 0, !11, i64 16}
!11 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass