; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Vehicle (VehicleCollisionTester)

; 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 }
%union.anon = type { <4 x float> }
%"class.JPH::WheelSettings" = type <{ %"class.JPH::SerializableObject", %"class.JPH::RefTarget.25", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::SpringSettings", float, float, i8, [15 x i8] }>
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.25" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::SpringSettings" = type { i8, %union.anon.26, float }
%union.anon.26 = type { 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: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH25VehicleCollisionTesterRay24PredictContactPropertiesERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_Rf(ptr noundef nonnull align 16 dereferenceable(68) %0, ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3, double %4, double %5, double %6, double %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) unnamed_addr #1 align 2 {
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca float, align 4
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  store double %4, ptr %39, align 16
  %40 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  store double %5, ptr %40, align 8
  %41 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  store double %6, ptr %41, align 16
  %42 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  store double %7, ptr %42, align 8
  store ptr %0, ptr %17, align 8, !tbaa !5
  store ptr %1, ptr %18, align 8, !tbaa !5
  store ptr %2, ptr %19, align 8, !tbaa !5
  store i32 %3, ptr %20, align 4, !tbaa !9
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  store ptr %12, ptr %25, align 8, !tbaa !5
  store ptr %13, ptr %26, align 8, !tbaa !5
  %43 = load ptr, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %44 = load ptr, ptr %19, align 8, !tbaa !5
  %45 = load i32, ptr %20, align 4, !tbaa !9
  %46 = call noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408) %44, i32 noundef %45)
  %47 = call noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404) %46)
  store ptr %47, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %48 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %48, i64 16, i1 false), !tbaa.struct !11
  %49 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %50 = load double, ptr %49, align 16
  %51 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %52 = load double, ptr %51, align 8
  %53 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %50, double %52)
  store float %53, ptr %28, align 4, !tbaa !13
  %54 = load float, ptr %28, align 4, !tbaa !13
  %55 = fcmp olt float %54, 0xBEB0C6F7A0000000
  br i1 %55, label %56, label %126

56:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %57 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !11
  %58 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %59 = load double, ptr %58, align 16
  %60 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %61 = load double, ptr %60, align 8
  %62 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %57, double %59, double %61)
  %63 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %64 = getelementptr inbounds %union.anon, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %66 = extractvalue { double, double } %62, 0
  store double %66, ptr %65, align 16
  %67 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %68 = extractvalue { double, double } %62, 1
  store double %68, ptr %67, align 8
  %69 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %69, i64 16, i1 false), !tbaa.struct !11
  %70 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %71 = load double, ptr %70, align 16
  %72 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %73 = load double, ptr %72, align 8
  %74 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %32, double %71, double %73)
  %75 = load float, ptr %28, align 4, !tbaa !13
  %76 = fdiv float %74, %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %77 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %78 = load double, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %80 = load double, ptr %79, align 8
  %81 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %76, double %78, double %80)
  %82 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %83 = getelementptr inbounds %union.anon, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %85 = extractvalue { double, double } %81, 0
  store double %85, ptr %84, align 16
  %86 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %87 = extractvalue { double, double } %81, 1
  store double %87, ptr %86, align 8
  %88 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %89 = load double, ptr %88, align 16
  %90 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %91 = load double, ptr %90, align 8
  %92 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %89, double %91)
  %93 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %94 = getelementptr inbounds %union.anon, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %96 = extractvalue { double, double } %92, 0
  store double %96, ptr %95, align 16
  %97 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %98 = extractvalue { double, double } %92, 1
  store double %98, ptr %97, align 8
  %99 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %99, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !11
  %101 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %102 = load double, ptr %101, align 16
  %103 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %104 = load double, ptr %103, align 8
  %105 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %100, double %102, double %104)
  %106 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %107 = getelementptr inbounds %union.anon, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 0
  %109 = extractvalue { double, double } %105, 0
  store double %109, ptr %108, align 16
  %110 = getelementptr inbounds { double, double }, ptr %107, i32 0, i32 1
  %111 = extractvalue { double, double } %105, 1
  store double %111, ptr %110, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %112 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  %116 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %113, double %115)
  %117 = load ptr, ptr %27, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.JPH::WheelSettings", ptr %117, i32 0, i32 13
  %119 = load float, ptr %118, align 8, !tbaa !15
  %120 = fsub float %116, %119
  %121 = load ptr, ptr %27, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.JPH::WheelSettings", ptr %121, i32 0, i32 10
  %123 = load float, ptr %122, align 4, !tbaa !25
  %124 = call noundef float @_ZN3JPH5ClampIfEET_S1_S1_S1_(float noundef %120, float noundef 0.000000e+00, float noundef %123)
  %125 = load ptr, ptr %26, align 8, !tbaa !5
  store float %124, ptr %125, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  br label %131

126:                                              ; preds = %14
  %127 = load ptr, ptr %27, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.JPH::WheelSettings", ptr %127, i32 0, i32 10
  %129 = load float, ptr %128, align 4, !tbaa !25
  %130 = load ptr, ptr %26, align 8, !tbaa !5
  store float %129, ptr %130, align 4, !tbaa !13
  br label %131

131:                                              ; preds = %126, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  ret void
}

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #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 float @_ZN3JPH5ClampIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 136}
!16 = !{!"_ZTSN3JPH13WheelSettingsE", !17, i64 0, !18, i64 8, !21, i64 16, !21, i64 32, !21, i64 48, !21, i64 64, !21, i64 80, !21, i64 96, !14, i64 112, !14, i64 116, !14, i64 120, !22, i64 124, !14, i64 136, !14, i64 140, !24, i64 144}
!17 = !{!"_ZTSN3JPH18SerializableObjectE"}
!18 = !{!"_ZTSN3JPH9RefTargetINS_13WheelSettingsEEE", !19, i64 0}
!19 = !{!"_ZTSSt6atomicIjE", !20, i64 0}
!20 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!21 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!22 = !{!"_ZTSN3JPH14SpringSettingsE", !23, i64 0, !7, i64 4, !14, i64 8}
!23 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!16, !14, i64 116}


; 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 }
%union.anon = 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: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH25VehicleCollisionTesterRay24PredictContactPropertiesERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_Rf(ptr nocapture noundef nonnull readnone align 16 dereferenceable(68) %0, ptr nocapture noundef nonnull readnone align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3, double %4, double %5, double %6, double %7, ptr nocapture noundef nonnull readnone align 4 dereferenceable(4) %8, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %9, ptr nocapture noundef nonnull readnone align 4 dereferenceable(4) %10, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr nocapture noundef nonnull readonly align 16 dereferenceable(16) %12, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %13) unnamed_addr #1 align 2 {
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  store double %4, ptr %15, align 16
  %19 = getelementptr inbounds i8, ptr %15, i64 8
  store double %5, ptr %19, align 8
  store double %6, ptr %16, align 16
  %20 = getelementptr inbounds i8, ptr %16, i64 8
  store double %7, ptr %20, align 8
  %21 = tail call noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3)
  %22 = tail call noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404) %21)
  %.sroa.012.0.copyload = load double, ptr %12, align 16
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.213.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8, !tbaa !5
  %23 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload)
  %24 = fcmp olt float %23, 0xBEB0C6F7A0000000
  br i1 %24, label %25, label %49

25:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  %26 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %4, double %5)
  %27 = extractvalue { double, double } %26, 0
  store double %27, ptr %17, align 16
  %28 = getelementptr inbounds i8, ptr %17, i64 8
  %29 = extractvalue { double, double } %26, 1
  store double %29, ptr %28, align 8
  %.sroa.05.0.copyload = load double, ptr %12, align 16
  %.sroa.26.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8, !tbaa !5
  %30 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %31 = fdiv float %30, %23
  %.sroa.03.0.copyload = load double, ptr %16, align 16
  %.sroa.24.0.copyload = load double, ptr %20, align 8, !tbaa !5
  %32 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %31, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload)
  %33 = extractvalue { double, double } %32, 0
  %34 = extractvalue { double, double } %32, 1
  %35 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %33, double %34)
  %36 = extractvalue { double, double } %35, 0
  %37 = extractvalue { double, double } %35, 1
  store double %36, ptr %11, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store double %37, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  %.sroa.01.0.copyload = load double, ptr %15, align 16
  %.sroa.22.0.copyload = load double, ptr %19, align 8, !tbaa !5
  %38 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload)
  %39 = extractvalue { double, double } %38, 0
  store double %39, ptr %18, align 16
  %40 = getelementptr inbounds i8, ptr %18, i64 8
  %41 = extractvalue { double, double } %38, 1
  store double %41, ptr %40, align 8
  %.sroa.0.0.copyload = load double, ptr %16, align 16
  %.sroa.2.0.copyload = load double, ptr %20, align 8, !tbaa !5
  %42 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %43 = getelementptr inbounds i8, ptr %22, i64 136
  %44 = load float, ptr %43, align 8, !tbaa !8
  %45 = fsub float %42, %44
  %46 = getelementptr inbounds i8, ptr %22, i64 116
  %47 = load float, ptr %46, align 4, !tbaa !20
  %48 = call noundef float @_ZN3JPH5ClampIfEET_S1_S1_S1_(float noundef %45, float noundef 0.000000e+00, float noundef %47)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  br label %52

49:                                               ; preds = %14
  %50 = getelementptr inbounds i8, ptr %22, i64 116
  %51 = load float, ptr %50, align 4, !tbaa !20
  br label %52

52:                                               ; preds = %49, %25
  %.sink = phi float [ %48, %25 ], [ %51, %49 ]
  store float %.sink, ptr %13, align 4
  ret void
}

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) 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 float @_ZN3JPH5ClampIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !16, i64 136}
!9 = !{!"_ZTSN3JPH13WheelSettingsE", !10, i64 0, !11, i64 8, !15, i64 16, !15, i64 32, !15, i64 48, !15, i64 64, !15, i64 80, !15, i64 96, !16, i64 112, !16, i64 116, !16, i64 120, !17, i64 124, !16, i64 136, !16, i64 140, !19, i64 144}
!10 = !{!"_ZTSN3JPH18SerializableObjectE"}
!11 = !{!"_ZTSN3JPH9RefTargetINS_13WheelSettingsEEE", !12, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!14 = !{!"int", !6, i64 0}
!15 = !{!"_ZTSN3JPH4Vec3E", !6, i64 0}
!16 = !{!"float", !6, i64 0}
!17 = !{!"_ZTSN3JPH14SpringSettingsE", !18, i64 0, !6, i64 4, !16, i64 8}
!18 = !{!"_ZTSN3JPH11ESpringModeE", !6, i64 0}
!19 = !{!"bool", !6, i64 0}
!20 = !{!9, !16, i64 116}


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