; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/General (SimCollideBodyVsBodyTest)

; 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.52 }
%union.anon.52 = type { i32 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.21 }
%union.anon.21 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.20 }
%union.anon.20 = type { <4 x float> }
%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 }
%"class.JPH::ContactManifold" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SubShapeID", %"class.JPH::SubShapeID", [4 x i8], %"class.JPH::StaticArray.55", %"class.JPH::StaticArray.55" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::StaticArray.55" = type { i32, [12 x i8], [64 x %"struct.JPH::StaticArray<JPH::Vec3, 64>::Storage"] }
%"struct.JPH::StaticArray<JPH::Vec3, 64>::Storage" = type { [16 x i8] }

@_ZN3JPH5Color6sGreenE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sYellowE = 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: 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 uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24SimCollideBodyVsBodyTest14OnContactAddedERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr noundef nonnull align 16 dereferenceable(2128) %3, ptr noundef nonnull align 16 dereferenceable(64) %4) unnamed_addr #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.JPH::Mat44", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Color", align 4
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Color", align 4
  %27 = alloca %"class.JPH::Mat44", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Color", align 4
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %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 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Color", align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122) %44)
  br i1 %45, label %147, label %46

46:                                               ; preds = %5
  %47 = getelementptr inbounds %class.Test, ptr %43, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #8
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %49, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %50, i64 16, i1 false), !tbaa.struct !18
  %51 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %52 = load double, ptr %51, align 16
  %53 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %54 = load double, ptr %53, align 8
  call void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %11, double %52, double %54)
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %55, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 @_ZN3JPH5Color6sGreenE, i64 4, i1 false), !tbaa.struct !20
  %57 = getelementptr inbounds %"class.JPH::Color", ptr %13, i32 0, i32 0
  %58 = getelementptr inbounds %union.anon.52, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 4
  call void @_ZN3JPH13DebugRenderer15DrawWirePolygonINS_11StaticArrayINS_4Vec3ELj64EEEEEvRKNS_5Mat44ERKT_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %48, ptr noundef nonnull align 16 dereferenceable(64) %11, ptr noundef nonnull align 16 dereferenceable(1040) %56, i32 %59, float noundef 0x3F847AE140000000)
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %60 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %61 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %62 = getelementptr inbounds %union.anon.20, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %64 = extractvalue { double, double } %60, 0
  store double %64, ptr %63, align 16
  %65 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %66 = extractvalue { double, double } %60, 1
  store double %66, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %67, i32 0, i32 6
  store ptr %68, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE5beginEv(ptr noundef nonnull align 16 dereferenceable(1040) %69)
  store ptr %70, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE3endEv(ptr noundef nonnull align 16 dereferenceable(1040) %71)
  store ptr %72, ptr %17, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %86, %46
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = icmp ne ptr %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %89

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %79, ptr %18, align 8, !tbaa !5
  %80 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %80, i64 16, i1 false), !tbaa.struct !18
  %81 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %82 = load double, ptr %81, align 16
  %83 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %84 = load double, ptr %83, align 8
  %85 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %82, double %84)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %86

86:                                               ; preds = %78
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.JPH::Vec3", ptr %87, i32 1
  store ptr %88, ptr %16, align 8, !tbaa !5
  br label %73

89:                                               ; preds = %77
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %90, i32 0, i32 6
  %92 = call noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(1040) %91)
  %93 = uitofp i32 %92 to float
  %94 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef %93)
  %95 = getelementptr inbounds %class.Test, ptr %43, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %97, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !18
  %99 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %100 = load double, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %102 = load double, ptr %101, align 8
  %103 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %98, double %100, double %102)
  %104 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %105 = getelementptr inbounds %union.anon.20, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 0
  %107 = extractvalue { double, double } %103, 0
  store double %107, ptr %106, align 16
  %108 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 1
  %109 = extractvalue { double, double } %103, 1
  store double %109, ptr %108, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %110, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !18
  %112 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  %116 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %111, double %113, double %115)
  %117 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %118 = getelementptr inbounds %union.anon.20, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 0
  %120 = extractvalue { double, double } %116, 0
  store double %120, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %118, i32 0, i32 1
  %122 = extractvalue { double, double } %116, 1
  store double %122, ptr %121, align 8
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %123, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %124, i64 16, i1 false), !tbaa.struct !18
  %125 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %126 = load double, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %128 = load double, ptr %127, align 8
  %129 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %126, double %128)
  %130 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %131 = getelementptr inbounds %union.anon.20, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds { double, double }, ptr %131, i32 0, i32 0
  %133 = extractvalue { double, double } %129, 0
  store double %133, ptr %132, align 16
  %134 = getelementptr inbounds { double, double }, ptr %131, i32 0, i32 1
  %135 = extractvalue { double, double } %129, 1
  store double %135, ptr %134, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %136 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %137 = load double, ptr %136, align 16
  %138 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %139 = load double, ptr %138, align 8
  %140 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %141 = load double, ptr %140, align 16
  %142 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %143 = load double, ptr %142, align 8
  %144 = getelementptr inbounds %"class.JPH::Color", ptr %26, i32 0, i32 0
  %145 = getelementptr inbounds %union.anon.52, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  call void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %96, double %137, double %139, double %141, double %143, i32 %146, float noundef 0x3FB99999A0000000)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %147

147:                                              ; preds = %89, %5
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = call noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122) %148)
  br i1 %149, label %251, label %150

150:                                              ; preds = %147
  %151 = getelementptr inbounds %class.Test, ptr %43, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #8
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %153, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %154, i64 16, i1 false), !tbaa.struct !18
  %155 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %156 = load double, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %158 = load double, ptr %157, align 8
  call void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %27, double %156, double %158)
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %159, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 @_ZN3JPH5Color6sGreenE, i64 4, i1 false), !tbaa.struct !20
  %161 = getelementptr inbounds %"class.JPH::Color", ptr %29, i32 0, i32 0
  %162 = getelementptr inbounds %union.anon.52, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 4
  call void @_ZN3JPH13DebugRenderer15DrawWirePolygonINS_11StaticArrayINS_4Vec3ELj64EEEEEvRKNS_5Mat44ERKT_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %152, ptr noundef nonnull align 16 dereferenceable(64) %27, ptr noundef nonnull align 16 dereferenceable(1040) %160, i32 %163, float noundef 0x3F847AE140000000)
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %164 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %165 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %166 = getelementptr inbounds %union.anon.20, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 0
  %168 = extractvalue { double, double } %164, 0
  store double %168, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %166, i32 0, i32 1
  %170 = extractvalue { double, double } %164, 1
  store double %170, ptr %169, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %171, i32 0, i32 7
  store ptr %172, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %173 = load ptr, ptr %31, align 8, !tbaa !5
  %174 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE5beginEv(ptr noundef nonnull align 16 dereferenceable(1040) %173)
  store ptr %174, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %175 = load ptr, ptr %31, align 8, !tbaa !5
  %176 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE3endEv(ptr noundef nonnull align 16 dereferenceable(1040) %175)
  store ptr %176, ptr %33, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %190, %150
  %178 = load ptr, ptr %32, align 8, !tbaa !5
  %179 = load ptr, ptr %33, align 8, !tbaa !5
  %180 = icmp ne ptr %178, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %193

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %183 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %183, ptr %34, align 8, !tbaa !5
  %184 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %184, i64 16, i1 false), !tbaa.struct !18
  %185 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %186 = load double, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %188 = load double, ptr %187, align 8
  %189 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %30, double %186, double %188)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %190

190:                                              ; preds = %182
  %191 = load ptr, ptr %32, align 8, !tbaa !5
  %192 = getelementptr inbounds %"class.JPH::Vec3", ptr %191, i32 1
  store ptr %192, ptr %32, align 8, !tbaa !5
  br label %177

193:                                              ; preds = %181
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %194, i32 0, i32 7
  %196 = call noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(1040) %195)
  %197 = uitofp i32 %196 to float
  %198 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef %197)
  %199 = getelementptr inbounds %class.Test, ptr %43, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !9
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %201, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !18
  %203 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %204 = load double, ptr %203, align 16
  %205 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %206 = load double, ptr %205, align 8
  %207 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %202, double %204, double %206)
  %208 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %209 = getelementptr inbounds %union.anon.20, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 0
  %211 = extractvalue { double, double } %207, 0
  store double %211, ptr %210, align 16
  %212 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 1
  %213 = extractvalue { double, double } %207, 1
  store double %213, ptr %212, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %214, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %30, i64 16, i1 false), !tbaa.struct !18
  %216 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %217 = load double, ptr %216, align 16
  %218 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %219 = load double, ptr %218, align 8
  %220 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %215, double %217, double %219)
  %221 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %222 = getelementptr inbounds %union.anon.20, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 0
  %224 = extractvalue { double, double } %220, 0
  store double %224, ptr %223, align 16
  %225 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 1
  %226 = extractvalue { double, double } %220, 1
  store double %226, ptr %225, align 8
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = getelementptr inbounds %"class.JPH::ContactManifold", ptr %227, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %228, i64 16, i1 false), !tbaa.struct !18
  %229 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %230 = load double, ptr %229, align 16
  %231 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %232 = load double, ptr %231, align 8
  %233 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %39, double %230, double %232)
  %234 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %235 = getelementptr inbounds %union.anon.20, ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 0
  %237 = extractvalue { double, double } %233, 0
  store double %237, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 1
  %239 = extractvalue { double, double } %233, 1
  store double %239, ptr %238, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 @_ZN3JPH5Color7sYellowE, i64 4, i1 false), !tbaa.struct !20
  %240 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %241 = load double, ptr %240, align 16
  %242 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %243 = load double, ptr %242, align 8
  %244 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %245 = load double, ptr %244, align 16
  %246 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %247 = load double, ptr %246, align 8
  %248 = getelementptr inbounds %"class.JPH::Color", ptr %42, i32 0, i32 0
  %249 = getelementptr inbounds %union.anon.52, ptr %248, i32 0, i32 0
  %250 = load i32, ptr %249, align 4
  call void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %200, double %241, double %243, double %245, double %247, i32 %250, float noundef 0x3FB99999A0000000)
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %251

251:                                              ; preds = %193, %147
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer15DrawWirePolygonINS_11StaticArrayINS_4Vec3ELj64EEEEEvRKNS_5Mat44ERKT_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(1040), i32, float noundef) #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(1040)) #6 align 2

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

declare void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320), double, double, double, double, i32, float noundef) #7

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 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 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 = { 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 #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 = { 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 = { "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 = { 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, !6, i64 32}
!10 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_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, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{i64 0, i64 16, !19}
!19 = !{!7, !7, i64 0}
!20 = !{i64 0, i64 4, !19}


; 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.52 }
%union.anon.52 = type { i32 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.21 }
%union.anon.21 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.20 }
%union.anon.20 = type { <4 x float> }

@_ZN3JPH5Color6sGreenE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color7sYellowE = 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 { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24SimCollideBodyVsBodyTest14OnContactAddedERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(160) %0, ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr noundef nonnull align 16 dereferenceable(2128) %3, ptr nocapture noundef nonnull readnone align 16 dereferenceable(64) %4) unnamed_addr #2 align 2 {
  %6 = alloca %"class.JPH::Mat44", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Mat44", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = tail call noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  br i1 %12, label %40, label %13

13:                                               ; preds = %5
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  %.sroa.042.0.copyload = load double, ptr %3, align 16
  %.sroa.243.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.243.0.copyload = load double, ptr %.sroa.243.0..sroa_idx, align 8, !tbaa !17
  call void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %6, double %.sroa.042.0.copyload, double %.sroa.243.0.copyload)
  %16 = getelementptr inbounds i8, ptr %3, i64 48
  %.sroa.041.0.copyload = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !17
  call void @_ZN3JPH13DebugRenderer15DrawWirePolygonINS_11StaticArrayINS_4Vec3ELj64EEEEEvRKNS_5Mat44ERKT_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %15, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(1040) %16, i32 %.sroa.041.0.copyload, float noundef 0x3F847AE140000000)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %17 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %18 = extractvalue { double, double } %17, 0
  store double %18, ptr %7, align 16
  %19 = getelementptr inbounds i8, ptr %7, i64 8
  %20 = extractvalue { double, double } %17, 1
  store double %20, ptr %19, align 8
  %21 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE5beginEv(ptr noundef nonnull align 16 dereferenceable(1040) %16)
  %22 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE3endEv(ptr noundef nonnull align 16 dereferenceable(1040) %16)
  %.not63 = icmp eq ptr %21, %22
  br i1 %.not63, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %13
  %23 = call noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(1040) %16)
  %24 = uitofp i32 %23 to float
  %25 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef %24)
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  %.sroa.028.0.copyload = load double, ptr %7, align 16
  %.sroa.229.0.copyload = load double, ptr %19, align 8, !tbaa !17
  %27 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %.sroa.028.0.copyload, double %.sroa.229.0.copyload)
  %28 = extractvalue { double, double } %27, 0
  %29 = extractvalue { double, double } %27, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %.sroa.024.0.copyload = load double, ptr %7, align 16
  %.sroa.225.0.copyload = load double, ptr %19, align 8, !tbaa !17
  %30 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %.sroa.024.0.copyload, double %.sroa.225.0.copyload)
  %31 = extractvalue { double, double } %30, 0
  store double %31, ptr %8, align 16
  %32 = getelementptr inbounds i8, ptr %8, i64 8
  %33 = extractvalue { double, double } %30, 1
  store double %33, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr %3, i64 16
  %.sroa.022.0.copyload = load double, ptr %34, align 16
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 24
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !17
  %35 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %.sroa.022.0.copyload, double %.sroa.223.0.copyload)
  %36 = extractvalue { double, double } %35, 0
  %37 = extractvalue { double, double } %35, 1
  %.sroa.021.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %26, double %28, double %29, double %36, double %37, i32 %.sroa.021.0.copyload, float noundef 0x3FB99999A0000000)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %40

.lr.ph:                                           ; preds = %13, %.lr.ph
  %.064 = phi ptr [ %39, %.lr.ph ], [ %21, %13 ]
  %.sroa.032.0.copyload = load double, ptr %.064, align 16
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %.064, i64 8
  %.sroa.233.0.copyload = load double, ptr %.sroa.233.0..sroa_idx, align 8, !tbaa !17
  %38 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %.sroa.032.0.copyload, double %.sroa.233.0.copyload)
  %39 = getelementptr inbounds i8, ptr %.064, i64 16
  %.not = icmp eq ptr %39, %22
  br i1 %.not, label %._crit_edge, label %.lr.ph

40:                                               ; preds = %._crit_edge, %5
  %41 = call noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  br i1 %41, label %69, label %42

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  %.sroa.019.0.copyload = load double, ptr %3, align 16
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.220.0.copyload = load double, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !17
  call void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %9, double %.sroa.019.0.copyload, double %.sroa.220.0.copyload)
  %45 = getelementptr inbounds i8, ptr %3, i64 1088
  %.sroa.018.0.copyload = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !17
  call void @_ZN3JPH13DebugRenderer15DrawWirePolygonINS_11StaticArrayINS_4Vec3ELj64EEEEEvRKNS_5Mat44ERKT_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %44, ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef nonnull align 16 dereferenceable(1040) %45, i32 %.sroa.018.0.copyload, float noundef 0x3F847AE140000000)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %46 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %47 = extractvalue { double, double } %46, 0
  store double %47, ptr %10, align 16
  %48 = getelementptr inbounds i8, ptr %10, i64 8
  %49 = extractvalue { double, double } %46, 1
  store double %49, ptr %48, align 8
  %50 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE5beginEv(ptr noundef nonnull align 16 dereferenceable(1040) %45)
  %51 = call noundef ptr @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE3endEv(ptr noundef nonnull align 16 dereferenceable(1040) %45)
  %.not6265 = icmp eq ptr %50, %51
  br i1 %.not6265, label %._crit_edge69, label %.lr.ph68

._crit_edge69:                                    ; preds = %.lr.ph68, %42
  %52 = call noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(1040) %45)
  %53 = uitofp i32 %52 to float
  %54 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef %53)
  %55 = load ptr, ptr %43, align 8, !tbaa !5
  %.sroa.06.0.copyload = load double, ptr %10, align 16
  %.sroa.27.0.copyload = load double, ptr %48, align 8, !tbaa !17
  %56 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload)
  %57 = extractvalue { double, double } %56, 0
  %58 = extractvalue { double, double } %56, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %.sroa.02.0.copyload = load double, ptr %10, align 16
  %.sroa.23.0.copyload = load double, ptr %48, align 8, !tbaa !17
  %59 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %.sroa.02.0.copyload, double %.sroa.23.0.copyload)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %11, align 16
  %61 = getelementptr inbounds i8, ptr %11, i64 8
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %61, align 8
  %63 = getelementptr inbounds i8, ptr %3, i64 16
  %.sroa.01.0.copyload = load double, ptr %63, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 24
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !17
  %64 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload)
  %65 = extractvalue { double, double } %64, 0
  %66 = extractvalue { double, double } %64, 1
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color7sYellowE, align 4, !tbaa !17
  call void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320) %55, double %57, double %58, double %65, double %66, i32 %.sroa.0.0.copyload, float noundef 0x3FB99999A0000000)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %69

.lr.ph68:                                         ; preds = %42, %.lr.ph68
  %.06166 = phi ptr [ %68, %.lr.ph68 ], [ %50, %42 ]
  %.sroa.010.0.copyload = load double, ptr %.06166, align 16
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %.06166, i64 8
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !17
  %67 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %68 = getelementptr inbounds i8, ptr %.06166, i64 16
  %.not62 = icmp eq ptr %68, %51
  br i1 %.not62, label %._crit_edge69, label %.lr.ph68

69:                                               ; preds = %._crit_edge69, %40
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body8IsSensorEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13DebugRenderer15DrawWirePolygonINS_11StaticArrayINS_4Vec3ELj64EEEEEvRKNS_5Mat44ERKT_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(1040), i32, float noundef) local_unnamed_addr #2 align 2

; 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 #4 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH11StaticArrayINS_4Vec3ELj64EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(1040)) local_unnamed_addr #5 align 2

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

declare void @_ZN3JPH13DebugRenderer9DrawArrowENS_4Vec3ES1_NS_5ColorEf(ptr noundef nonnull align 8 dereferenceable(320), double, double, double, double, i32, float noundef) local_unnamed_addr #6

; 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 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 = { 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 #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 = { 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 = { "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, !7, i64 32}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_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", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass