; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/ConvexCollision (InteractivePairsTest)

; 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::Color" = type { %union.anon.5 }
%union.anon.5 = type { i32 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Sphere" = type { %"class.JPH::Float3", float }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"struct.JPH::TransformedConvexObject" = type <{ %"class.JPH::Mat44", ptr, [8 x i8] }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::EPAPenetrationDepth" = type { %"class.JPH::GJKClosestPoint", float, [12 x i8] }
%"class.JPH::GJKClosestPoint" = type <{ [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], i32, [12 x i8] }>
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@_ZN3JPH5Color6sWhiteE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color4sRedE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sYellowE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color5sCyanE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color6sGreenE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sOrangeE = external global %"class.JPH::Color", align 4

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20InteractivePairsTest15TestSphereVsBoxEN3JPH4Vec3EfS1_S1_fRKNS0_5AABoxE(ptr noundef nonnull align 8 dereferenceable(120) %0, double %1, double %2, float noundef %3, double %4, double %5, double %6, double %7, float noundef %8, ptr noundef nonnull align 16 dereferenceable(32) %9) #2 align 2 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.JPH::Sphere", align 4
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca %"class.JPH::Mat44", align 16
  %22 = alloca %"class.JPH::Mat44", align 16
  %23 = alloca %"class.JPH::Mat44", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Mat44", align 16
  %26 = alloca %"class.JPH::Mat44", align 16
  %27 = alloca %"class.JPH::Mat44", align 16
  %28 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %29 = alloca %"class.JPH::AABox", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::EPAPenetrationDepth", 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::Color", align 4
  %37 = alloca %"struct.JPH::AddConvexRadius", align 8
  %38 = alloca %"class.JPH::Color", align 4
  %39 = alloca %"class.JPH::Color", align 4
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Color", align 4
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Color", align 4
  %44 = alloca %"class.JPH::Color", align 4
  %45 = alloca %"class.JPH::Color", align 4
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::Color", align 4
  %53 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %1, ptr %53, align 16
  %54 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %2, ptr %54, align 8
  %55 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %4, ptr %55, align 16
  %56 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %5, ptr %56, align 8
  %57 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %6, ptr %57, align 16
  %58 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %7, ptr %58, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store float %3, ptr %15, align 4, !tbaa !9
  store float %8, ptr %16, align 4, !tbaa !9
  store ptr %9, ptr %17, align 8, !tbaa !5
  %59 = load ptr, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !11
  %60 = load float, ptr %15, align 4, !tbaa !9
  %61 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %62 = load double, ptr %61, align 16
  %63 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %64 = load double, ptr %63, align 8
  call void @_ZN3JPH6SphereC2ENS_4Vec3Ef(ptr noundef nonnull align 4 dereferenceable(16) %18, double %62, double %64, float noundef %60)
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !11
  %65 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %66 = load double, ptr %65, align 16
  %67 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %68 = load double, ptr %67, align 8
  call void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %23, double %66, double %68)
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #10
  %69 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  call void @_ZN3JPH5Mat4410sRotationXEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %25, float noundef %69)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %22, ptr noundef nonnull align 16 dereferenceable(64) %23, ptr noundef nonnull align 16 dereferenceable(64) %25)
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #10
  %70 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  call void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %26, float noundef %70)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %21, ptr noundef nonnull align 16 dereferenceable(64) %22, ptr noundef nonnull align 16 dereferenceable(64) %26)
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #10
  %71 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  call void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %27, float noundef %71)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %20, ptr noundef nonnull align 16 dereferenceable(64) %21, ptr noundef nonnull align 16 dereferenceable(64) %27)
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 80, ptr %28) #10
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN3JPH23TransformedConvexObjectINS_5AABoxEEC2ERKNS_5Mat44ERKS1_(ptr noundef nonnull align 16 dereferenceable(72) %28, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(32) %72)
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #10
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %73, i64 32, i1 false), !tbaa.struct !13
  %74 = load float, ptr %16, align 4, !tbaa !9
  %75 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %74)
  %76 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %77 = getelementptr inbounds %union.anon, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = extractvalue { double, double } %75, 0
  store double %79, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = extractvalue { double, double } %75, 1
  store double %81, ptr %80, align 8
  %82 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %83 = load double, ptr %82, align 16
  %84 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %85 = load double, ptr %84, align 8
  call void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %29, double %83, double %85)
  call void @llvm.lifetime.start.p0(i64 224, ptr %31) #10
  call void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212) %31) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #10
  %86 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %87 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %88 = getelementptr inbounds %union.anon, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 0
  %90 = extractvalue { double, double } %86, 0
  store double %90, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %88, i32 0, i32 1
  %92 = extractvalue { double, double } %86, 1
  store double %92, ptr %91, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #10
  %93 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !11
  %95 = load float, ptr %15, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !22
  %96 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %97 = load double, ptr %96, align 16
  %98 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %99 = load double, ptr %98, align 8
  %100 = getelementptr inbounds %"class.JPH::Color", ptr %36, i32 0, i32 0
  %101 = getelementptr inbounds %union.anon.5, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 4
  call void @_Z12DrawSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef %94, double %97, double %99, float noundef %95, i32 %102, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #10
  %103 = load float, ptr %16, align 4, !tbaa !9
  call void @_ZN3JPH15AddConvexRadiusINS_23TransformedConvexObjectINS_5AABoxEEEEC2ERKS3_f(ptr noundef nonnull align 8 dereferenceable(12) %37, ptr noundef nonnull align 16 dereferenceable(72) %28, float noundef %103)
  %104 = load float, ptr %16, align 4, !tbaa !9
  %105 = call noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth19GetPenetrationDepthINS_6SphereES2_NS_23TransformedConvexObjectINS_5AABoxEEENS_15AddConvexRadiusIS5_EEEEbRKT_RKT0_fRKT1_RKT2_fffRNS_4Vec3ESL_SL_(ptr noundef nonnull align 16 dereferenceable(212) %31, ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(16) %18, float noundef 0.000000e+00, ptr noundef nonnull align 16 dereferenceable(72) %28, ptr noundef nonnull align 8 dereferenceable(12) %37, float noundef %104, float noundef 0x3F1A36E2E0000000, float noundef 0x3E80000000000000, ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 16 dereferenceable(16) %34)
  br i1 %105, label %106, label %140

106:                                              ; preds = %10
  %107 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 @_ZN3JPH5Color4sRedE, i64 4, i1 false), !tbaa.struct !22
  %110 = getelementptr inbounds %"class.JPH::Color", ptr %38, i32 0, i32 0
  %111 = getelementptr inbounds %union.anon.5, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 4
  call void @_Z9DrawBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef %108, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(32) %109, i32 %112, i32 noundef 0, i32 noundef 0)
  %113 = load float, ptr %16, align 4, !tbaa !9
  %114 = fcmp ogt float %113, 0.000000e+00
  br i1 %114, label %115, label %121

115:                                              ; preds = %106
  %116 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 @_ZN3JPH5Color4sRedE, i64 4, i1 false), !tbaa.struct !22
  %118 = getelementptr inbounds %"class.JPH::Color", ptr %39, i32 0, i32 0
  %119 = getelementptr inbounds %union.anon.5, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 4
  call void @_Z13DrawWireBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorE(ptr noundef %117, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(32) %29, i32 %120)
  br label %121

121:                                              ; preds = %115, %106
  %122 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !22
  %124 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %125 = load double, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %127 = load double, ptr %126, align 8
  %128 = getelementptr inbounds %"class.JPH::Color", ptr %41, i32 0, i32 0
  %129 = getelementptr inbounds %union.anon.5, ptr %128, i32 0, i32 0
  %130 = load i32, ptr %129, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %123, double %125, double %127, i32 %130, float noundef 2.000000e+00)
  %131 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 @_ZN3JPH5Color5sCyanE, i64 4, i1 false), !tbaa.struct !22
  %133 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = getelementptr inbounds %"class.JPH::Color", ptr %43, i32 0, i32 0
  %138 = getelementptr inbounds %union.anon.5, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 4
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %132, double %134, double %136, i32 %139, float noundef 2.000000e+00)
  br label %156

140:                                              ; preds = %10
  %141 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !14
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 @_ZN3JPH5Color6sGreenE, i64 4, i1 false), !tbaa.struct !22
  %144 = getelementptr inbounds %"class.JPH::Color", ptr %44, i32 0, i32 0
  %145 = getelementptr inbounds %union.anon.5, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  call void @_Z9DrawBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef %142, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(32) %143, i32 %146, i32 noundef 0, i32 noundef 0)
  %147 = load float, ptr %16, align 4, !tbaa !9
  %148 = fcmp ogt float %147, 0.000000e+00
  br i1 %148, label %149, label %155

149:                                              ; preds = %140
  %150 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 @_ZN3JPH5Color6sGreenE, i64 4, i1 false), !tbaa.struct !22
  %152 = getelementptr inbounds %"class.JPH::Color", ptr %45, i32 0, i32 0
  %153 = getelementptr inbounds %union.anon.5, ptr %152, i32 0, i32 0
  %154 = load i32, ptr %153, align 4
  call void @_Z13DrawWireBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorE(ptr noundef %151, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(32) %29, i32 %154)
  br label %155

155:                                              ; preds = %149, %140
  br label %156

156:                                              ; preds = %155, %121
  %157 = getelementptr inbounds %class.Test, ptr %59, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !14
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %47, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00)
  %159 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %160 = load double, ptr %159, align 16
  %161 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %162 = load double, ptr %161, align 8
  %163 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %160, double %162)
  %164 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %165 = getelementptr inbounds %union.anon, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds { double, double }, ptr %165, i32 0, i32 0
  %167 = extractvalue { double, double } %163, 0
  store double %167, ptr %166, align 16
  %168 = getelementptr inbounds { double, double }, ptr %165, i32 0, i32 1
  %169 = extractvalue { double, double } %163, 1
  store double %169, ptr %168, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %32, i64 16, i1 false), !tbaa.struct !11
  %170 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %171 = load double, ptr %170, align 16
  %172 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %173 = load double, ptr %172, align 8
  %174 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %171, double %173)
  %175 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %176 = getelementptr inbounds %union.anon, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 0
  %178 = extractvalue { double, double } %174, 0
  store double %178, ptr %177, align 16
  %179 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 1
  %180 = extractvalue { double, double } %174, 1
  store double %180, ptr %179, align 8
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %51, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00)
  %181 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %182 = load double, ptr %181, align 16
  %183 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %184 = load double, ptr %183, align 8
  %185 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %49, double %182, double %184)
  %186 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %187 = getelementptr inbounds %union.anon, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 0
  %189 = extractvalue { double, double } %185, 0
  store double %189, ptr %188, align 16
  %190 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 1
  %191 = extractvalue { double, double } %185, 1
  store double %191, ptr %190, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 @_ZN3JPH5Color7sOrangeE, i64 4, i1 false), !tbaa.struct !22
  %192 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %193 = load double, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %195 = load double, ptr %194, align 8
  %196 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %197 = load double, ptr %196, align 16
  %198 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %199 = load double, ptr %198, align 8
  %200 = getelementptr inbounds %"class.JPH::Color", ptr %52, i32 0, i32 0
  %201 = getelementptr inbounds %union.anon.5, ptr %200, i32 0, i32 0
  %202 = load i32, ptr %201, align 4
  call void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef %158, double %193, double %195, double %197, double %199, i32 %202, float noundef 0x3FA99999A0000000)
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #3 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) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationXEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH23TransformedConvexObjectINS_5AABoxEEC2ERKNS_5Mat44ERKS1_(ptr noundef nonnull align 16 dereferenceable(72), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212)) unnamed_addr #8 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9DrawBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32), i32, i32 noundef, i32 noundef) #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z13DrawWireBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorE(ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32), i32) #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15AddConvexRadiusINS_23TransformedConvexObjectINS_5AABoxEEEEC2ERKS3_f(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 16 dereferenceable(72), float noundef) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef, double, double, i32, float noundef) #9

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef, double, double, double, double, i32, float noundef) #9

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH6SphereC2ENS_4Vec3Ef(ptr noundef nonnull align 4 dereferenceable(16), double, double, float noundef) unnamed_addr #9 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef, double, double, float noundef, i32, i32 noundef, i32 noundef) #9

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth19GetPenetrationDepthINS_6SphereES2_NS_23TransformedConvexObjectINS_5AABoxEEENS_15AddConvexRadiusIS5_EEEEbRKT_RKT0_fRKT1_RKT2_fffRNS_4Vec3ESL_SL_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), float noundef, ptr noundef nonnull align 16 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(12), float noundef, float noundef, float noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { alwaysinline mustprogress nounwind 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { inlinehint 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 #10 = { 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 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!14 = !{!15, !6, i64 32}
!15 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !16, i64 48, !17, i64 56}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !6, i64 48}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !19, i64 8}
!22 = !{i64 0, i64 4, !12}


; 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::Color" = type { %union.anon.5 }
%union.anon.5 = type { i32 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Sphere" = type { %"class.JPH::Float3", float }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"struct.JPH::TransformedConvexObject" = type <{ %"class.JPH::Mat44", ptr, [8 x i8] }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::EPAPenetrationDepth" = type { %"class.JPH::GJKClosestPoint", float, [12 x i8] }
%"class.JPH::GJKClosestPoint" = type <{ [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], [4 x %"class.JPH::Vec3"], i32, [12 x i8] }>
%"struct.JPH::AddConvexRadius" = type <{ ptr, float, [4 x i8] }>

@_ZN3JPH5Color6sWhiteE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color4sRedE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sYellowE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color5sCyanE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color6sGreenE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sOrangeE = external local_unnamed_addr global %"class.JPH::Color", align 4

; 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 uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20InteractivePairsTest15TestSphereVsBoxEN3JPH4Vec3EfS1_S1_fRKNS0_5AABoxE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(120) %0, double %1, double %2, float noundef %3, double %4, double %5, double %6, double %7, float noundef %8, ptr noundef nonnull align 16 dereferenceable(32) %9) local_unnamed_addr #2 align 2 {
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Sphere", align 4
  %14 = alloca %"class.JPH::Mat44", align 16
  %15 = alloca %"class.JPH::Mat44", align 16
  %16 = alloca %"class.JPH::Mat44", align 16
  %17 = alloca %"class.JPH::Mat44", align 16
  %18 = alloca %"class.JPH::Mat44", align 16
  %19 = alloca %"class.JPH::Mat44", align 16
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca %"struct.JPH::TransformedConvexObject", align 16
  %22 = alloca %"class.JPH::AABox", align 16
  %23 = alloca %"class.JPH::EPAPenetrationDepth", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"struct.JPH::AddConvexRadius", align 8
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  store double %4, ptr %11, align 16
  %31 = getelementptr inbounds i8, ptr %11, i64 8
  store double %5, ptr %31, align 8
  store double %6, ptr %12, align 16
  %32 = getelementptr inbounds i8, ptr %12, i64 8
  store double %7, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  call void @_ZN3JPH6SphereC2ENS_4Vec3Ef(ptr noundef nonnull align 4 dereferenceable(16) %13, double %1, double %2, float noundef %3)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #10
  call void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %17, double %4, double %5)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #10
  %33 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @_ZN3JPH5Mat4410sRotationXEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %18, float noundef %33)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %16, ptr noundef nonnull align 16 dereferenceable(64) %17, ptr noundef nonnull align 16 dereferenceable(64) %18)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #10
  %34 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %19, float noundef %34)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %15, ptr noundef nonnull align 16 dereferenceable(64) %16, ptr noundef nonnull align 16 dereferenceable(64) %19)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #10
  %35 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %20, float noundef %35)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %14, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 16 dereferenceable(64) %20)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %21) #10
  call void @_ZN3JPH23TransformedConvexObjectINS_5AABoxEEC2ERKNS_5Mat44ERKS1_(ptr noundef nonnull align 16 dereferenceable(72) %21, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(32) %9)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %22, ptr noundef nonnull align 16 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !5
  %36 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %8)
  %37 = extractvalue { double, double } %36, 0
  %38 = extractvalue { double, double } %36, 1
  call void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %22, double %37, double %38)
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %23) #10
  call void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212) %23) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #10
  %39 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %40 = extractvalue { double, double } %39, 0
  store double %40, ptr %24, align 16
  %41 = getelementptr inbounds i8, ptr %24, i64 8
  %42 = extractvalue { double, double } %39, 1
  store double %42, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #10
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %.sroa.016.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !6
  call void @_Z12DrawSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef %44, double %1, double %2, float noundef %3, i32 %.sroa.016.0.copyload, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #10
  call void @_ZN3JPH15AddConvexRadiusINS_23TransformedConvexObjectINS_5AABoxEEEEC2ERKS3_f(ptr noundef nonnull align 8 dereferenceable(12) %27, ptr noundef nonnull align 16 dereferenceable(72) %21, float noundef %8)
  %45 = call noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth19GetPenetrationDepthINS_6SphereES2_NS_23TransformedConvexObjectINS_5AABoxEEENS_15AddConvexRadiusIS5_EEEEbRKT_RKT0_fRKT1_RKT2_fffRNS_4Vec3ESL_SL_(ptr noundef nonnull align 16 dereferenceable(212) %23, ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %13, float noundef 0.000000e+00, ptr noundef nonnull align 16 dereferenceable(72) %21, ptr noundef nonnull align 8 dereferenceable(12) %27, float noundef %8, float noundef 0x3F1A36E2E0000000, float noundef 0x3E80000000000000, ptr noundef nonnull align 16 dereferenceable(16) %24, ptr noundef nonnull align 16 dereferenceable(16) %25, ptr noundef nonnull align 16 dereferenceable(16) %26)
  %46 = load ptr, ptr %43, align 8, !tbaa !9
  %47 = fcmp ogt float %8, 0.000000e+00
  br i1 %45, label %48, label %54

48:                                               ; preds = %10
  %.sroa.015.0.copyload = load i32, ptr @_ZN3JPH5Color4sRedE, align 4, !tbaa !6
  call void @_Z9DrawBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef %46, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(32) %9, i32 %.sroa.015.0.copyload, i32 noundef 0, i32 noundef 0)
  br i1 %47, label %49, label %51

49:                                               ; preds = %48
  %50 = load ptr, ptr %43, align 8, !tbaa !9
  %.sroa.014.0.copyload = load i32, ptr @_ZN3JPH5Color4sRedE, align 4, !tbaa !6
  call void @_Z13DrawWireBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorE(ptr noundef %50, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(32) %22, i32 %.sroa.014.0.copyload)
  br label %51

51:                                               ; preds = %49, %48
  %52 = load ptr, ptr %43, align 8, !tbaa !9
  %.sroa.012.0.copyload = load double, ptr %25, align 16
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 8
  %.sroa.213.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8, !tbaa !6
  %.sroa.011.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !6
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %52, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload, i32 %.sroa.011.0.copyload, float noundef 2.000000e+00)
  %53 = load ptr, ptr %43, align 8, !tbaa !9
  %.sroa.09.0.copyload = load double, ptr %26, align 16
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 8
  %.sroa.210.0.copyload = load double, ptr %.sroa.210.0..sroa_idx, align 8, !tbaa !6
  %.sroa.08.0.copyload = load i32, ptr @_ZN3JPH5Color5sCyanE, align 4, !tbaa !6
  call void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %53, double %.sroa.09.0.copyload, double %.sroa.210.0.copyload, i32 %.sroa.08.0.copyload, float noundef 2.000000e+00)
  br label %57

54:                                               ; preds = %10
  %.sroa.07.0.copyload = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !6
  call void @_Z9DrawBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef %46, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(32) %9, i32 %.sroa.07.0.copyload, i32 noundef 0, i32 noundef 0)
  br i1 %47, label %55, label %57

55:                                               ; preds = %54
  %56 = load ptr, ptr %43, align 8, !tbaa !9
  %.sroa.06.0.copyload = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !6
  call void @_Z13DrawWireBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorE(ptr noundef %56, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(32) %22, i32 %.sroa.06.0.copyload)
  br label %57

57:                                               ; preds = %54, %55, %51
  %58 = load ptr, ptr %43, align 8, !tbaa !9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00)
  %59 = load double, ptr %28, align 16
  %60 = getelementptr inbounds i8, ptr %28, i64 8
  %61 = load double, ptr %60, align 8
  %62 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %59, double %61)
  %63 = extractvalue { double, double } %62, 0
  %64 = extractvalue { double, double } %62, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #10
  %.sroa.01.0.copyload = load double, ptr %24, align 16
  %.sroa.2.0.copyload = load double, ptr %41, align 8, !tbaa !6
  %65 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload)
  %66 = extractvalue { double, double } %65, 0
  store double %66, ptr %29, align 16
  %67 = getelementptr inbounds i8, ptr %29, i64 8
  %68 = extractvalue { double, double } %65, 1
  store double %68, ptr %67, align 8
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00)
  %69 = load double, ptr %30, align 16
  %70 = getelementptr inbounds i8, ptr %30, i64 8
  %71 = load double, ptr %70, align 8
  %72 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %29, double %69, double %71)
  %73 = extractvalue { double, double } %72, 0
  %74 = extractvalue { double, double } %72, 1
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color7sOrangeE, align 4, !tbaa !6
  call void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef %58, double %63, double %64, double %73, double %74, i32 %.sroa.0.0.copyload, float noundef 0x3FA99999A0000000)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress 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) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationXEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationYEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410sRotationZEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH23TransformedConvexObjectINS_5AABoxEEC2ERKNS_5Mat44ERKS1_(ptr noundef nonnull align 16 dereferenceable(72), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH19EPAPenetrationDepthC2Ev(ptr noundef nonnull align 16 dereferenceable(212)) unnamed_addr #8 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9DrawBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32), i32, i32 noundef, i32 noundef) local_unnamed_addr #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z13DrawWireBoxSPPN3JPH13DebugRendererERKNS_5Mat44ERKNS_5AABoxENS_5ColorE(ptr noundef, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32), i32) local_unnamed_addr #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15AddConvexRadiusINS_23TransformedConvexObjectINS_5AABoxEEEEC2ERKS3_f(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 16 dereferenceable(72), float noundef) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef, double, double, i32, float noundef) local_unnamed_addr #9

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11DrawArrowSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorEf(ptr noundef, double, double, double, double, i32, float noundef) local_unnamed_addr #9

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH6SphereC2ENS_4Vec3Ef(ptr noundef nonnull align 4 dereferenceable(16), double, double, float noundef) unnamed_addr #9 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawSphereSPPN3JPH13DebugRendererENS_4Vec3EfNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef, double, double, float noundef, i32, i32 noundef, i32 noundef) local_unnamed_addr #9

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH19EPAPenetrationDepth19GetPenetrationDepthINS_6SphereES2_NS_23TransformedConvexObjectINS_5AABoxEEENS_15AddConvexRadiusIS5_EEEEbRKT_RKT0_fRKT1_RKT2_fffRNS_4Vec3ESL_SL_(ptr noundef nonnull align 16 dereferenceable(212), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), float noundef, ptr noundef nonnull align 16 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(12), float noundef, float noundef, float noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { alwaysinline mustprogress nounwind 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { inlinehint 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 #10 = { 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 = !{i64 0, i64 16, !6, i64 16, i64 16, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 32}
!10 = !{!"_ZTS4Test", !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !13, i64 56}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !11, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !11, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}


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