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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::DefaultBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::DefaultObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::IgnoreSingleBodyFilter" = type <{ %"class.JPH::BodyFilter", %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"struct.JPH::RRayCast" = type { %"struct.JPH::RayCastT" }
%"struct.JPH::RayCastT" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::RayCastSettings" = type { i8, i8, i8 }
%class.MyCollector = type { %"class.JPH::CollisionCollector", ptr, %"struct.JPH::RRayCast", %"class.JPH::Vec3", float, ptr, %"class.JPH::SubShapeID", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::VehicleCollisionTester" = type <{ ptr, %"class.JPH::RefTarget", [4 x i8], ptr, ptr, ptr, i16, [6 x i8] }>
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::WheelSettings" = type <{ %"class.JPH::SerializableObject", %"class.JPH::RefTarget.25", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::SpringSettings", float, float, i8, [15 x i8] }>
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.25" = type { %"struct.std::atomic" }
%"class.JPH::SpringSettings" = type { i8, %union.anon.26, float }
%union.anon.26 = type { float }
%"class.JPH::VehicleCollisionTesterRay" = type <{ %"class.JPH::VehicleCollisionTester.base", [6 x i8], %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::VehicleCollisionTester.base" = type <{ ptr, %"class.JPH::RefTarget", [4 x i8], ptr, ptr, ptr, i16 }>

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_Rf(ptr noundef nonnull align 16 dereferenceable(68) %0, ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3, double %4, double %5, double %6, double %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %15 = alloca i1, align 1
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca %"class.JPH::IgnoreSingleBodyFilter", align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca %"struct.JPH::RRayCast", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::RayCastSettings", align 1
  %44 = alloca %class.MyCollector, align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::ShapeFilter", align 8
  %47 = alloca i32, align 4
  %48 = alloca float, align 4
  %49 = alloca float, align 4
  %50 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  store double %4, ptr %50, align 16
  %51 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  store double %5, ptr %51, align 8
  %52 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  store double %6, ptr %52, align 16
  %53 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  store double %7, ptr %53, align 8
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store ptr %2, ptr %20, align 8, !tbaa !5
  store i32 %3, ptr %21, align 4, !tbaa !9
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  store ptr %13, ptr %27, align 8, !tbaa !5
  %54 = load ptr, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #10
  %55 = load ptr, ptr %19, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 6
  %57 = load i16, ptr %56, align 8, !tbaa !11
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %28, ptr noundef nonnull align 16 dereferenceable(1172) %55, i16 noundef zeroext %57)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %58 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 3
  %59 = load ptr, ptr %58, align 16, !tbaa !17
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %64

61:                                               ; preds = %14
  %62 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 3
  %63 = load ptr, ptr %62, align 16, !tbaa !17
  br label %65

64:                                               ; preds = %14
  br label %65

65:                                               ; preds = %64, %61
  %66 = phi ptr [ %63, %61 ], [ %28, %64 ]
  store ptr %66, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #10
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 6
  %69 = load i16, ptr %68, align 8, !tbaa !11
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %30, ptr noundef nonnull align 16 dereferenceable(1172) %67, i16 noundef zeroext %69)
          to label %70 unwind label %148

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  %71 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %77

74:                                               ; preds = %70
  %75 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  br label %78

77:                                               ; preds = %70
  br label %78

78:                                               ; preds = %77, %74
  %79 = phi ptr [ %76, %74 ], [ %30, %77 ]
  store ptr %79, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #10
  %80 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZN3JPH22IgnoreSingleBodyFilterC2ERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(4) %80)
          to label %81 unwind label %152

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  %82 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 5
  %83 = load ptr, ptr %82, align 16, !tbaa !19
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %88

85:                                               ; preds = %81
  %86 = getelementptr inbounds %"class.JPH::VehicleCollisionTester", ptr %54, i32 0, i32 5
  %87 = load ptr, ptr %86, align 16, !tbaa !19
  br label %89

88:                                               ; preds = %81
  br label %89

89:                                               ; preds = %88, %85
  %90 = phi ptr [ %87, %85 ], [ %34, %88 ]
  store ptr %90, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = load i32, ptr %21, align 4, !tbaa !9
  %93 = invoke noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408) %91, i32 noundef %92)
          to label %94 unwind label %156

94:                                               ; preds = %89
  %95 = invoke noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404) %93)
          to label %96 unwind label %156

96:                                               ; preds = %94
  store ptr %95, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  %97 = load ptr, ptr %36, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.JPH::WheelSettings", ptr %97, i32 0, i32 13
  %99 = load float, ptr %98, align 8, !tbaa !20
  store float %99, ptr %37, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  %100 = load ptr, ptr %36, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.JPH::WheelSettings", ptr %100, i32 0, i32 10
  %102 = load float, ptr %101, align 4, !tbaa !30
  %103 = load float, ptr %37, align 4, !tbaa !29
  %104 = fadd float %102, %103
  store float %104, ptr %38, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !31
  %105 = load float, ptr %38, align 4, !tbaa !29
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !31
  %106 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %107 = load double, ptr %106, align 16
  %108 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %109 = load double, ptr %108, align 8
  %110 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %105, double %107, double %109)
          to label %111 unwind label %160

111:                                              ; preds = %96
  %112 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %113 = getelementptr inbounds %union.anon, ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 0
  %115 = extractvalue { double, double } %110, 0
  store double %115, ptr %114, align 16
  %116 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 1
  %117 = extractvalue { double, double } %110, 1
  store double %117, ptr %116, align 8
  %118 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %119 = load double, ptr %118, align 16
  %120 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %121 = load double, ptr %120, align 8
  %122 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %123 = load double, ptr %122, align 16
  %124 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %125 = load double, ptr %124, align 8
  invoke void @_ZN3JPH8RRayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32) %39, double %119, double %121, double %123, double %125)
          to label %126 unwind label %160

126:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 3, ptr %43) #10
  call void @_ZN3JPH15RayCastSettingsC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %43) #10
  call void @llvm.lifetime.start.p0(i64 144, ptr %44) #10
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.JPH::VehicleCollisionTesterRay", ptr %54, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %128, i64 16, i1 false), !tbaa.struct !31
  %129 = getelementptr inbounds %"class.JPH::VehicleCollisionTesterRay", ptr %54, i32 0, i32 3
  %130 = load float, ptr %129, align 16, !tbaa !33
  %131 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %132 = load double, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %134 = load double, ptr %133, align 8
  invoke void @_ZZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_8RRayCastES6_f(ptr noundef nonnull align 16 dereferenceable(144) %44, ptr noundef nonnull align 16 dereferenceable(1172) %127, ptr noundef nonnull align 16 dereferenceable(32) %39, double %132, double %134, float noundef %130)
          to label %135 unwind label %164

135:                                              ; preds = %126
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem25GetNarrowPhaseQueryNoLockEv(ptr noundef nonnull align 16 dereferenceable(1172) %136)
          to label %138 unwind label %168

138:                                              ; preds = %135
  %139 = load ptr, ptr %29, align 8, !tbaa !5
  %140 = load ptr, ptr %33, align 8, !tbaa !5
  %141 = load ptr, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #10
  call void @llvm.memset.p0.i64(ptr align 8 %46, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %46)
          to label %142 unwind label %172

142:                                              ; preds = %138
  invoke void @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERKNS_15RayCastSettingsERNS_18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16) %137, ptr noundef nonnull align 16 dereferenceable(32) %39, ptr noundef nonnull align 1 dereferenceable(3) %43, ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull align 8 dereferenceable(12) %46)
          to label %143 unwind label %176

143:                                              ; preds = %142
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %46) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #10
  %144 = getelementptr inbounds %class.MyCollector, ptr %44, i32 0, i32 5
  %145 = load ptr, ptr %144, align 8, !tbaa !35
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %181

147:                                              ; preds = %143
  store i1 false, ptr %15, align 1
  store i32 1, ptr %47, align 4
  br label %205

148:                                              ; preds = %65
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %31, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %32, align 4
  br label %212

152:                                              ; preds = %78
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %31, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %32, align 4
  br label %211

156:                                              ; preds = %94, %89
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %31, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %32, align 4
  br label %210

160:                                              ; preds = %111, %96
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %31, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %32, align 4
  br label %209

164:                                              ; preds = %126
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %31, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %32, align 4
  br label %208

168:                                              ; preds = %135
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %31, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %32, align 4
  br label %207

172:                                              ; preds = %138
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %31, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %32, align 4
  br label %180

176:                                              ; preds = %142
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %31, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %32, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %46) #10
  br label %180

180:                                              ; preds = %176, %172
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #10
  br label %207

181:                                              ; preds = %143
  %182 = getelementptr inbounds %class.MyCollector, ptr %44, i32 0, i32 5
  %183 = load ptr, ptr %182, align 8, !tbaa !35
  %184 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %183, ptr %184, align 8, !tbaa !5
  %185 = getelementptr inbounds %class.MyCollector, ptr %44, i32 0, i32 6
  %186 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %186, ptr align 16 %185, i64 4, i1 false), !tbaa.struct !41
  %187 = getelementptr inbounds %class.MyCollector, ptr %44, i32 0, i32 7
  %188 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %188, ptr align 16 %187, i64 16, i1 false), !tbaa.struct !31
  %189 = getelementptr inbounds %class.MyCollector, ptr %44, i32 0, i32 8
  %190 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %190, ptr align 16 %189, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #10
  store float 0.000000e+00, ptr %48, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  %191 = load float, ptr %38, align 4, !tbaa !29
  %192 = invoke noundef float @_ZNK3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
          to label %193 unwind label %201

193:                                              ; preds = %181
  %194 = load float, ptr %37, align 4, !tbaa !29
  %195 = fneg float %194
  %196 = call float @llvm.fmuladd.f32(float %191, float %192, float %195)
  store float %196, ptr %49, align 4, !tbaa !29
  %197 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %49)
          to label %198 unwind label %201

198:                                              ; preds = %193
  %199 = load float, ptr %197, align 4, !tbaa !29
  %200 = load ptr, ptr %27, align 8, !tbaa !5
  store float %199, ptr %200, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  store i1 true, ptr %15, align 1
  store i32 1, ptr %47, align 4
  br label %205

201:                                              ; preds = %193, %181
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %31, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #10
  br label %207

205:                                              ; preds = %198, %147
  call void @_ZN3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEED2Ev(ptr noundef nonnull align 16 dereferenceable(144) %44) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 3, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %34) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %30) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  %206 = load i1, ptr %15, align 1
  ret i1 %206

207:                                              ; preds = %201, %180, %168
  call void @_ZN3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEED2Ev(ptr noundef nonnull align 16 dereferenceable(144) %44) #10
  br label %208

208:                                              ; preds = %207, %164
  call void @llvm.lifetime.end.p0(i64 144, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 3, ptr %43) #10
  br label %209

209:                                              ; preds = %208, %160
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %210

210:                                              ; preds = %209, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %34) #10
  br label %211

211:                                              ; preds = %210, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %30) #10
  br label %212

212:                                              ; preds = %211, %148
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %31, align 8
  %215 = load i32, ptr %32, align 4
  %216 = insertvalue { ptr, i32 } poison, ptr %214, 0
  %217 = insertvalue { ptr, i32 } %216, i32 %215, 1
  resume { ptr, i32 } %217
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22IgnoreSingleBodyFilterC2ERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408), i32 noundef) #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15RayCastSettingsC2Ev(ptr noundef nonnull align 1 dereferenceable(3)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_8RRayCastES6_f(ptr noundef nonnull align 16 dereferenceable(144), ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 16 dereferenceable(32), double, double, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem25GetNarrowPhaseQueryNoLockEv(ptr noundef nonnull align 16 dereferenceable(1172)) #2 align 2

declare void @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERKNS_15RayCastSettingsERNS_18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12)) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !16, i64 40}
!12 = !{!"_ZTSN3JPH22VehicleCollisionTesterE", !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !16, i64 40}
!13 = !{!"_ZTSN3JPH9RefTargetINS_22VehicleCollisionTesterEEE", !14, i64 0}
!14 = !{!"_ZTSSt6atomicIjE", !15, i64 0}
!15 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!12, !6, i64 16}
!18 = !{!12, !6, i64 24}
!19 = !{!12, !6, i64 32}
!20 = !{!21, !25, i64 136}
!21 = !{!"_ZTSN3JPH13WheelSettingsE", !22, i64 0, !23, i64 8, !24, i64 16, !24, i64 32, !24, i64 48, !24, i64 64, !24, i64 80, !24, i64 96, !25, i64 112, !25, i64 116, !25, i64 120, !26, i64 124, !25, i64 136, !25, i64 140, !28, i64 144}
!22 = !{!"_ZTSN3JPH18SerializableObjectE"}
!23 = !{!"_ZTSN3JPH9RefTargetINS_13WheelSettingsEEE", !14, i64 0}
!24 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTSN3JPH14SpringSettingsE", !27, i64 0, !7, i64 4, !25, i64 8}
!27 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!25, !25, i64 0}
!30 = !{!21, !25, i64 116}
!31 = !{i64 0, i64 16, !32}
!32 = !{!7, !7, i64 0}
!33 = !{!34, !25, i64 64}
!34 = !{!"_ZTSN3JPH25VehicleCollisionTesterRayE", !12, i64 0, !24, i64 48, !25, i64 64}
!35 = !{!36, !6, i64 88}
!36 = !{!"_ZTSZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfE11MyCollector", !37, i64 0, !6, i64 24, !38, i64 32, !24, i64 64, !25, i64 80, !6, i64 88, !40, i64 96, !24, i64 112, !24, i64 128}
!37 = !{!"_ZTSN3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEEE", !25, i64 8, !6, i64 16}
!38 = !{!"_ZTSN3JPH8RRayCastE", !39, i64 0}
!39 = !{!"_ZTSN3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_8RRayCastEEE", !24, i64 0, !24, i64 16}
!40 = !{!"_ZTSN3JPH10SubShapeIDE", !10, i64 0}
!41 = !{i64 0, i64 4, !9}


; 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::DefaultBroadPhaseLayerFilter" = type <{ %"class.JPH::BroadPhaseLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::DefaultObjectLayerFilter" = type <{ %"class.JPH::ObjectLayerFilter", ptr, i16, [6 x i8] }>
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::IgnoreSingleBodyFilter" = type <{ %"class.JPH::BodyFilter", %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"struct.JPH::RRayCast" = type { %"struct.JPH::RayCastT" }
%"struct.JPH::RayCastT" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::RayCastSettings" = type { i8, i8, i8 }
%class.MyCollector = type { %"class.JPH::CollisionCollector", ptr, %"struct.JPH::RRayCast", %"class.JPH::Vec3", float, ptr, %"class.JPH::SubShapeID", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_Rf(ptr nocapture noundef nonnull readonly align 16 dereferenceable(68) %0, ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3, double %4, double %5, double %6, double %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %9, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %10, ptr nocapture noundef nonnull writeonly align 16 dereferenceable(16) %11, ptr nocapture noundef nonnull writeonly align 16 dereferenceable(16) %12, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %13) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %15 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %16 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %17 = alloca %"class.JPH::IgnoreSingleBodyFilter", align 8
  %18 = alloca %"struct.JPH::RRayCast", align 16
  %19 = alloca %"class.JPH::RayCastSettings", align 1
  %20 = alloca %class.MyCollector, align 16
  %21 = alloca %"class.JPH::ShapeFilter", align 8
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #10
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  %25 = load i16, ptr %24, align 8, !tbaa !5
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %15, ptr noundef nonnull align 16 dereferenceable(1172) %1, i16 noundef zeroext %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load ptr, ptr %26, align 16, !tbaa !15
  %.not = icmp eq ptr %27, null
  %spec.select = select i1 %.not, ptr %15, ptr %27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #10
  %28 = load i16, ptr %24, align 8, !tbaa !5
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %16, ptr noundef nonnull align 16 dereferenceable(1172) %1, i16 noundef zeroext %28)
          to label %29 unwind label %58

29:                                               ; preds = %14
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %.not43 = icmp eq ptr %31, null
  %spec.select49 = select i1 %.not43, ptr %16, ptr %31
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @_ZN3JPH22IgnoreSingleBodyFilterC2ERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  %33 = load ptr, ptr %32, align 16, !tbaa !17
  %.not44 = icmp eq ptr %33, null
  %34 = select i1 %.not44, ptr %17, ptr %33
  %35 = invoke noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408) %2, i32 noundef %3)
          to label %36 unwind label %60

36:                                               ; preds = %29
  %37 = invoke noundef ptr @_ZNK3JPH5Wheel11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(404) %35)
          to label %38 unwind label %60

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %37, i64 136
  %40 = load float, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %37, i64 116
  %42 = load float, ptr %41, align 4, !tbaa !27
  %43 = fadd float %40, %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #10
  %44 = invoke { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %43, double %6, double %7)
          to label %45 unwind label %62

45:                                               ; preds = %38
  %46 = extractvalue { double, double } %44, 0
  %47 = extractvalue { double, double } %44, 1
  invoke void @_ZN3JPH8RRayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32) %18, double %4, double %5, double %46, double %47)
          to label %48 unwind label %62

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %19) #10
  call void @_ZN3JPH15RayCastSettingsC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %19) #10
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %20) #10
  %49 = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.0.0.copyload = load double, ptr %49, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 56
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !28
  %50 = getelementptr inbounds i8, ptr %0, i64 64
  %51 = load float, ptr %50, align 16, !tbaa !29
  call void @_ZZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_8RRayCastES6_f(ptr noundef nonnull align 16 dereferenceable(144) %20, ptr noundef nonnull align 16 dereferenceable(1172) %1, ptr noundef nonnull align 16 dereferenceable(32) %18, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, float noundef %51)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem25GetNarrowPhaseQueryNoLockEv(ptr noundef nonnull align 16 dereferenceable(1172) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21)
          to label %53 unwind label %64

53:                                               ; preds = %48
  invoke void @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERKNS_15RayCastSettingsERNS_18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 1 dereferenceable(3) %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(8) %spec.select, ptr noundef nonnull align 8 dereferenceable(8) %spec.select49, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(12) %21)
          to label %54 unwind label %66

54:                                               ; preds = %53
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  %55 = getelementptr inbounds i8, ptr %20, i64 88
  %56 = load ptr, ptr %55, align 8, !tbaa !31
  %57 = icmp ne ptr %56, null
  br i1 %57, label %69, label %79

58:                                               ; preds = %14
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %82

60:                                               ; preds = %36, %29
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %81

62:                                               ; preds = %45, %38
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %80

64:                                               ; preds = %48
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %53
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %21) #10
  br label %68

68:                                               ; preds = %66, %64
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  call void @_ZN3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEED2Ev(ptr noundef nonnull align 16 dereferenceable(144) %20) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %19) #10
  br label %80

69:                                               ; preds = %54
  store ptr %56, ptr %9, align 8, !tbaa !37
  %70 = getelementptr inbounds i8, ptr %20, i64 96
  %71 = load i32, ptr %70, align 16, !tbaa !38
  store i32 %71, ptr %10, align 4, !tbaa !38
  %72 = getelementptr inbounds i8, ptr %20, i64 112
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %72, i64 16, i1 false), !tbaa.struct !39
  %73 = getelementptr inbounds i8, ptr %20, i64 128
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(16) %73, i64 16, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #10
  store float 0.000000e+00, ptr %22, align 4, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #10
  %74 = call noundef float @_ZNK3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %75 = fneg float %40
  %76 = call float @llvm.fmuladd.f32(float %43, float %74, float %75)
  store float %76, ptr %23, align 4, !tbaa !40
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %78 = load float, ptr %77, align 4, !tbaa !40
  store float %78, ptr %13, align 4, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  br label %79

79:                                               ; preds = %54, %69
  call void @_ZN3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEED2Ev(ptr noundef nonnull align 16 dereferenceable(144) %20) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  ret i1 %57

80:                                               ; preds = %68, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %68 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #10
  br label %81

81:                                               ; preds = %80, %60
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %80 ], [ %61, %60 ]
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %16) #10
  br label %82

82:                                               ; preds = %81, %58
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %81 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind noalias writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8, ptr noundef nonnull align 16 dereferenceable(1172), i16 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH22IgnoreSingleBodyFilterC2ERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH17VehicleConstraint8GetWheelEj(ptr noundef nonnull align 16 dereferenceable(408), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15RayCastSettingsC2Ev(ptr noundef nonnull align 1 dereferenceable(3)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfEN11MyCollectorC2ES2_RKNS_8RRayCastES6_f(ptr noundef nonnull align 16 dereferenceable(144), ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 16 dereferenceable(32), double, double, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem25GetNarrowPhaseQueryNoLockEv(ptr noundef nonnull align 16 dereferenceable(1172)) local_unnamed_addr #2 align 2

declare void @_ZNK3JPH16NarrowPhaseQuery7CastRayERKNS_8RRayCastERKNS_15RayCastSettingsERNS_18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEEERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEE19GetEarlyOutFractionEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !14, i64 40}
!6 = !{!"_ZTSN3JPH22VehicleCollisionTesterE", !7, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !14, i64 40}
!7 = !{!"_ZTSN3JPH9RefTargetINS_22VehicleCollisionTesterEEE", !8, i64 0}
!8 = !{!"_ZTSSt6atomicIjE", !9, i64 0}
!9 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"short", !11, i64 0}
!15 = !{!6, !13, i64 16}
!16 = !{!6, !13, i64 24}
!17 = !{!6, !13, i64 32}
!18 = !{!19, !23, i64 136}
!19 = !{!"_ZTSN3JPH13WheelSettingsE", !20, i64 0, !21, i64 8, !22, i64 16, !22, i64 32, !22, i64 48, !22, i64 64, !22, i64 80, !22, i64 96, !23, i64 112, !23, i64 116, !23, i64 120, !24, i64 124, !23, i64 136, !23, i64 140, !26, i64 144}
!20 = !{!"_ZTSN3JPH18SerializableObjectE"}
!21 = !{!"_ZTSN3JPH9RefTargetINS_13WheelSettingsEEE", !8, i64 0}
!22 = !{!"_ZTSN3JPH4Vec3E", !11, i64 0}
!23 = !{!"float", !11, i64 0}
!24 = !{!"_ZTSN3JPH14SpringSettingsE", !25, i64 0, !11, i64 4, !23, i64 8}
!25 = !{!"_ZTSN3JPH11ESpringModeE", !11, i64 0}
!26 = !{!"bool", !11, i64 0}
!27 = !{!19, !23, i64 116}
!28 = !{!11, !11, i64 0}
!29 = !{!30, !23, i64 64}
!30 = !{!"_ZTSN3JPH25VehicleCollisionTesterRayE", !6, i64 0, !22, i64 48, !23, i64 64}
!31 = !{!32, !13, i64 88}
!32 = !{!"_ZTSZNK3JPH25VehicleCollisionTesterRay7CollideERNS_13PhysicsSystemERKNS_17VehicleConstraintEjNS_4Vec3ES6_RKNS_6BodyIDERPNS_4BodyERNS_10SubShapeIDERS6_SF_RfE11MyCollector", !33, i64 0, !13, i64 24, !34, i64 32, !22, i64 64, !23, i64 80, !13, i64 88, !36, i64 96, !22, i64 112, !22, i64 128}
!33 = !{!"_ZTSN3JPH18CollisionCollectorINS_13RayCastResultENS_31CollisionCollectorTraitsCastRayEEE", !23, i64 8, !13, i64 16}
!34 = !{!"_ZTSN3JPH8RRayCastE", !35, i64 0}
!35 = !{!"_ZTSN3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_8RRayCastEEE", !22, i64 0, !22, i64 16}
!36 = !{!"_ZTSN3JPH10SubShapeIDE", !10, i64 0}
!37 = !{!13, !13, i64 0}
!38 = !{!10, !10, i64 0}
!39 = !{i64 0, i64 16, !28}
!40 = !{!23, !23, i64 0}


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