; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Character (CharacterSpaceShipTest)

; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"struct.JPH::CharacterVirtual::ExtendedUpdateSettings" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::Vec3" }
%"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::BodyFilter" = type { ptr }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }
%"class.Test::PreUpdateParams" = type { float, [12 x i8], %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%class.CharacterSpaceShipTest = type <{ %class.Test, %"class.JPH::CharacterContactListener", %"class.JPH::Ref", %"class.JPH::BodyID", [12 x i8], %"class.JPH::Mat44", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8], %"class.JPH::Vec3", i8, i8, [14 x i8] }>
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::CharacterContactListener" = type { ptr }
%"class.JPH::Ref" = type { ptr }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

declare void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22CharacterSpaceShipTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(274) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Mat44", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Mat44", align 16
  %8 = alloca %"class.JPH::Mat44", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Quat", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %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 %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %29 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.JPH::BodyFilter", align 8
  %33 = alloca %"class.JPH::ShapeFilter", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %35, i32 0, i32 0
  %37 = load float, ptr %36, align 16, !tbaa !9
  %38 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 8
  %39 = load float, ptr %38, align 16, !tbaa !14
  %40 = fadd float %39, %37
  store float %40, ptr %38, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #12
  %41 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 3
  %42 = load ptr, ptr %41, align 8, !tbaa !28
  %43 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 3
  call void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %5, ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %44 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %45 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #12
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #12
  %46 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 5
  call void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %8, ptr noundef nonnull align 16 dereferenceable(64) %46)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %7, ptr noundef nonnull align 16 dereferenceable(64) %5, ptr noundef nonnull align 16 dereferenceable(64) %8)
  %47 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %48 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  %49 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %48)
  %50 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %51 = getelementptr inbounds %union.anon.4, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %53 = extractvalue { double, double } %49, 0
  store double %53, ptr %52, align 16
  %54 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %55 = extractvalue { double, double } %49, 1
  store double %55, ptr %54, align 8
  %56 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %57 = load double, ptr %56, align 16
  %58 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %59 = load double, ptr %58, align 8
  %60 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %7, double %57, double %59)
  %61 = getelementptr inbounds %"class.JPH::Vec3", ptr %6, i32 0, i32 0
  %62 = getelementptr inbounds %union.anon.4, 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
  %67 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %68 = load double, ptr %67, align 16
  %69 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %70 = load double, ptr %69, align 8
  call void @_ZN3JPH16CharacterVirtual11SetPositionENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %45, double %68, double %70)
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #12
  %71 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %72 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %71)
  %73 = call { double, double } @_ZNK3JPH5Mat448GetAxisYEv(ptr noundef nonnull align 16 dereferenceable(64) %5)
  %74 = getelementptr inbounds %"class.JPH::Vec3", ptr %10, i32 0, i32 0
  %75 = getelementptr inbounds %union.anon.4, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %77 = extractvalue { double, double } %73, 0
  store double %77, ptr %76, align 16
  %78 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %79 = extractvalue { double, double } %73, 1
  store double %79, ptr %78, align 8
  %80 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %81 = load double, ptr %80, align 16
  %82 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %83 = load double, ptr %82, align 8
  call void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %72, double %81, double %83)
  %84 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %85 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %84)
  %86 = call { double, double } @_ZNK3JPH5Mat4413GetQuaternionEv(ptr noundef nonnull align 16 dereferenceable(64) %5)
  %87 = getelementptr inbounds %"class.JPH::Quat", ptr %11, i32 0, i32 0
  %88 = getelementptr inbounds %"class.JPH::Vec4", ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %union.anon, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 0
  %91 = extractvalue { double, double } %86, 0
  store double %91, ptr %90, align 16
  %92 = getelementptr inbounds { double, double }, ptr %89, i32 0, i32 1
  %93 = extractvalue { double, double } %86, 1
  store double %93, ptr %92, align 8
  %94 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %95 = load double, ptr %94, align 16
  %96 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %97 = load double, ptr %96, align 8
  call void @_ZN3JPH16CharacterVirtual11SetRotationENS_4QuatE(ptr noundef nonnull align 16 dereferenceable(372) %85, double %95, double %97)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #12
  %98 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %99 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %98)
  %100 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %99)
  %101 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %102 = getelementptr inbounds %union.anon.4, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 0
  %104 = extractvalue { double, double } %100, 0
  store double %104, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 1
  %106 = extractvalue { double, double } %100, 1
  store double %106, ptr %105, align 8
  %107 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 5
  %108 = call { double, double } @_ZNK3JPH5Mat448GetAxisYEv(ptr noundef nonnull align 16 dereferenceable(64) %107)
  %109 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %110 = getelementptr inbounds %union.anon.4, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 0
  %112 = extractvalue { double, double } %108, 0
  store double %112, ptr %111, align 16
  %113 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 1
  %114 = extractvalue { double, double } %108, 1
  store double %114, ptr %113, align 8
  %115 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %116 = load double, ptr %115, align 16
  %117 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %118 = load double, ptr %117, align 8
  %119 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %116, double %118)
  %120 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %121 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %120)
  %122 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %121)
  %123 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %124 = getelementptr inbounds %union.anon.4, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 0
  %126 = extractvalue { double, double } %122, 0
  store double %126, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 1
  %128 = extractvalue { double, double } %122, 1
  store double %128, ptr %127, align 8
  %129 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %130 = load double, ptr %129, align 16
  %131 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %132 = load double, ptr %131, align 8
  %133 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %119, double %130, double %132)
  %134 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %135 = getelementptr inbounds %union.anon.4, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 0
  %137 = extractvalue { double, double } %133, 0
  store double %137, ptr %136, align 16
  %138 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 1
  %139 = extractvalue { double, double } %133, 1
  store double %139, ptr %138, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #12
  %140 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %141 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %140)
  %142 = call { double, double } @_ZNK3JPH13CharacterBase17GetGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(144) %141)
  %143 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %144 = getelementptr inbounds %union.anon.4, ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 0
  %146 = extractvalue { double, double } %142, 0
  store double %146, ptr %145, align 16
  %147 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 1
  %148 = extractvalue { double, double } %142, 1
  store double %148, ptr %147, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #12
  %149 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %150 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %149)
  %151 = call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %150)
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %189

153:                                              ; preds = %2
  %154 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %12)
  %155 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %156 = fsub float %154, %155
  %157 = fcmp olt float %156, 0x3FB99999A0000000
  br i1 %157, label %158, label %189

158:                                              ; preds = %153
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !29
  %159 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 11
  %160 = load i8, ptr %159, align 16, !tbaa !31, !range !32, !noundef !33
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %188

162:                                              ; preds = %158
  %163 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %164 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %163)
  %165 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %164)
  %166 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %167 = getelementptr inbounds %union.anon.4, ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 0
  %169 = extractvalue { double, double } %165, 0
  store double %169, ptr %168, align 16
  %170 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 1
  %171 = extractvalue { double, double } %165, 1
  store double %171, ptr %170, align 8
  %172 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %173 = load double, ptr %172, align 16
  %174 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %175 = load double, ptr %174, align 8
  %176 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 4.000000e+00, double %173, double %175)
  %177 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %178 = getelementptr inbounds %union.anon.4, ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds { double, double }, ptr %178, i32 0, i32 0
  %180 = extractvalue { double, double } %176, 0
  store double %180, ptr %179, align 16
  %181 = getelementptr inbounds { double, double }, ptr %178, i32 0, i32 1
  %182 = extractvalue { double, double } %176, 1
  store double %182, ptr %181, align 8
  %183 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %184 = load double, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %184, double %186)
  br label %188

188:                                              ; preds = %162, %158
  br label %190

189:                                              ; preds = %153, %2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !29
  br label %190

190:                                              ; preds = %189, %188
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #12
  %191 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 2
  %192 = load ptr, ptr %191, align 16, !tbaa !34
  %193 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %192)
  %194 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %195 = getelementptr inbounds %union.anon.4, ptr %194, i32 0, i32 0
  %196 = getelementptr inbounds { double, double }, ptr %195, i32 0, i32 0
  %197 = extractvalue { double, double } %193, 0
  store double %197, ptr %196, align 16
  %198 = getelementptr inbounds { double, double }, ptr %195, i32 0, i32 1
  %199 = extractvalue { double, double } %193, 1
  store double %199, ptr %198, align 8
  %200 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %201 = load double, ptr %200, align 16
  %202 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %203 = load double, ptr %202, align 8
  %204 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %5, double %201, double %203)
  %205 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %206 = getelementptr inbounds %union.anon.4, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds { double, double }, ptr %206, i32 0, i32 0
  %208 = extractvalue { double, double } %204, 0
  store double %208, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %206, i32 0, i32 1
  %210 = extractvalue { double, double } %204, 1
  store double %210, ptr %209, align 8
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %211, i32 0, i32 0
  %213 = load float, ptr %212, align 16, !tbaa !9
  %214 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %20, float noundef %213)
  %215 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %216 = getelementptr inbounds %union.anon.4, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds { double, double }, ptr %216, i32 0, i32 0
  %218 = extractvalue { double, double } %214, 0
  store double %218, ptr %217, align 16
  %219 = getelementptr inbounds { double, double }, ptr %216, i32 0, i32 1
  %220 = extractvalue { double, double } %214, 1
  store double %220, ptr %219, align 8
  %221 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %222 = load double, ptr %221, align 16
  %223 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %224 = load double, ptr %223, align 8
  %225 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %222, double %224)
  %226 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %226, i64 16, i1 false), !tbaa.struct !29
  %227 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %228 = load double, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %5, double %228, double %230)
  %232 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %233 = getelementptr inbounds %union.anon.4, ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 0
  %235 = extractvalue { double, double } %231, 0
  store double %235, ptr %234, align 16
  %236 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 1
  %237 = extractvalue { double, double } %231, 1
  store double %237, ptr %236, align 8
  %238 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %239 = load double, ptr %238, align 16
  %240 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %241 = load double, ptr %240, align 8
  %242 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %239, double %241)
  %243 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %244 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %243)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !29
  %245 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %246 = load double, ptr %245, align 16
  %247 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %248 = load double, ptr %247, align 8
  call void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %244, double %246, double %248)
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #12
  call void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %26)
  %249 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 2
  %250 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %249)
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %251, i32 0, i32 0
  %253 = load float, ptr %252, align 16, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #12
  %254 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 2
  %255 = load ptr, ptr %254, align 16, !tbaa !34
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %28, ptr noundef nonnull align 16 dereferenceable(1172) %255, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #12
  %256 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 2
  %257 = load ptr, ptr %256, align 16, !tbaa !34
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %29, ptr noundef nonnull align 16 dereferenceable(1172) %257, i16 noundef zeroext 1)
          to label %258 unwind label %268

258:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #12
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 8, i1 false)
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #12
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %33)
          to label %259 unwind label %272

259:                                              ; preds = %258
  %260 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 5
  %261 = load ptr, ptr %260, align 8, !tbaa !35
  %262 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %263 = load double, ptr %262, align 16
  %264 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %265 = load double, ptr %264, align 8
  invoke void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %250, float noundef %253, double %263, double %265, ptr noundef nonnull align 16 dereferenceable(64) %26, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(12) %33, ptr noundef nonnull align 8 dereferenceable(8) %261)
          to label %266 unwind label %276

266:                                              ; preds = %259
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %33) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %29) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %28) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #12
  %267 = getelementptr inbounds %class.CharacterSpaceShipTest, ptr %34, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %267, ptr align 16 %5, i64 64, i1 false), !tbaa.struct !36
  call void @_ZN22CharacterSpaceShipTest18UpdateShipVelocityEv(ptr noundef nonnull align 16 dereferenceable(274) %34)
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #12
  ret void

268:                                              ; preds = %190
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %30, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %31, align 4
  br label %281

272:                                              ; preds = %258
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %30, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %31, align 4
  br label %280

276:                                              ; preds = %259
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %30, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %31, align 4
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %33) #12
  br label %280

280:                                              ; preds = %276, %272
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %29) #12
  br label %281

281:                                              ; preds = %280, %268
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %28) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #12
  br label %282

282:                                              ; preds = %281
  %283 = load ptr, ptr %30, align 8
  %284 = load i32, ptr %31, align 4
  %285 = insertvalue { ptr, i32 } poison, ptr %283, 0
  %286 = insertvalue { ptr, i32 } %285, i32 %284, 1
  resume { ptr, i32 } %286
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372)) #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144), double, double) #8 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372)) #8 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144)) #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH13CharacterBase17GetGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(144)) #8 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172)) #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372), double, double) #8 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #11 align 2

declare void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, ptr noundef nonnull align 16 dereferenceable(64), 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), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN22CharacterSpaceShipTest18UpdateShipVelocityEv(ptr noundef nonnull align 16 dereferenceable(274)) #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { 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 #12 = { 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, !11, i64 0}
!10 = !{!"_ZTSN4Test15PreUpdateParamsE", !11, i64 0, !12, i64 16}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTS11CameraState", !13, i64 0, !13, i64 16, !13, i64 32, !11, i64 48}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!15, !11, i64 240}
!15 = !{!"_ZTS22CharacterSpaceShipTest", !16, i64 0, !23, i64 112, !24, i64 120, !25, i64 128, !27, i64 144, !13, i64 208, !13, i64 224, !11, i64 240, !13, i64 256, !17, i64 272, !17, i64 273}
!16 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !18, i64 56}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !19, i64 0}
!19 = !{!"_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, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !20, i64 8}
!23 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!24 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !6, i64 0}
!25 = !{!"_ZTSN3JPH6BodyIDE", !26, i64 0}
!26 = !{!"int", !7, i64 0}
!27 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!28 = !{!16, !6, i64 24}
!29 = !{i64 0, i64 16, !30}
!30 = !{!7, !7, i64 0}
!31 = !{!15, !17, i64 272}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!16, !6, i64 16}
!35 = !{!16, !6, i64 40}
!36 = !{i64 0, i64 64, !30}


; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"struct.JPH::CharacterVirtual::ExtendedUpdateSettings" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, float, %"class.JPH::Vec3" }
%"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::BodyFilter" = type { ptr }
%"class.JPH::ShapeFilter" = type <{ ptr, %"class.JPH::BodyID", [4 x i8] }>
%"class.JPH::BodyID" = type { i32 }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

declare void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22CharacterSpaceShipTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 16 dereferenceable(274) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %1) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::Mat44", align 16
  %4 = alloca %"class.JPH::Mat44", align 16
  %5 = alloca %"class.JPH::Mat44", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"struct.JPH::CharacterVirtual::ExtendedUpdateSettings", align 16
  %12 = alloca %"class.JPH::DefaultBroadPhaseLayerFilter", align 8
  %13 = alloca %"class.JPH::DefaultObjectLayerFilter", align 8
  %14 = alloca %"class.JPH::BodyFilter", align 8
  %15 = alloca %"class.JPH::ShapeFilter", align 8
  %16 = load float, ptr %1, align 16, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 240
  %18 = load float, ptr %17, align 16, !tbaa !12
  %19 = fadd float %16, %18
  store float %19, ptr %17, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #12
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !27
  %22 = getelementptr inbounds i8, ptr %0, i64 128
  call void @_ZNK3JPH13BodyInterface24GetCenterOfMassTransformERKNS_6BodyIDE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %3, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 120
  %24 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #12
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #12
  %25 = getelementptr inbounds i8, ptr %0, i64 144
  call void @_ZNK3JPH5Mat448InversedEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %5, ptr noundef nonnull align 16 dereferenceable(64) %25)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %4, ptr noundef nonnull align 16 dereferenceable(64) %3, ptr noundef nonnull align 16 dereferenceable(64) %5)
  %26 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %27 = call { double, double } @_ZNK3JPH16CharacterVirtual11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(372) %26)
  %28 = extractvalue { double, double } %27, 0
  %29 = extractvalue { double, double } %27, 1
  %30 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %4, double %28, double %29)
  %31 = extractvalue { double, double } %30, 0
  %32 = extractvalue { double, double } %30, 1
  call void @_ZN3JPH16CharacterVirtual11SetPositionENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %24, double %31, double %32)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #12
  %33 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %34 = call { double, double } @_ZNK3JPH5Mat448GetAxisYEv(ptr noundef nonnull align 16 dereferenceable(64) %3)
  %35 = extractvalue { double, double } %34, 0
  %36 = extractvalue { double, double } %34, 1
  call void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144) %33, double %35, double %36)
  %37 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %38 = call { double, double } @_ZNK3JPH5Mat4413GetQuaternionEv(ptr noundef nonnull align 16 dereferenceable(64) %3)
  %39 = extractvalue { double, double } %38, 0
  %40 = extractvalue { double, double } %38, 1
  call void @_ZN3JPH16CharacterVirtual11SetRotationENS_4QuatE(ptr noundef nonnull align 16 dereferenceable(372) %37, double %39, double %40)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #12
  %41 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %42 = call { double, double } @_ZNK3JPH16CharacterVirtual17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(372) %41)
  %43 = extractvalue { double, double } %42, 0
  store double %43, ptr %7, align 16
  %44 = getelementptr inbounds i8, ptr %7, i64 8
  %45 = extractvalue { double, double } %42, 1
  store double %45, ptr %44, align 8
  %46 = call { double, double } @_ZNK3JPH5Mat448GetAxisYEv(ptr noundef nonnull align 16 dereferenceable(64) %25)
  %47 = extractvalue { double, double } %46, 0
  %48 = extractvalue { double, double } %46, 1
  %49 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %47, double %48)
  %50 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %51 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %50)
  %52 = extractvalue { double, double } %51, 0
  %53 = extractvalue { double, double } %51, 1
  %54 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %49, double %52, double %53)
  %55 = extractvalue { double, double } %54, 0
  store double %55, ptr %6, align 16
  %56 = getelementptr inbounds i8, ptr %6, i64 8
  %57 = extractvalue { double, double } %54, 1
  store double %57, ptr %56, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #12
  %58 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %59 = call { double, double } @_ZNK3JPH13CharacterBase17GetGroundVelocityEv(ptr noundef nonnull align 16 dereferenceable(144) %58)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %8, align 16
  %61 = getelementptr inbounds i8, ptr %8, i64 8
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %61, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #12
  %63 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %64 = call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %63)
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %84

66:                                               ; preds = %2
  %67 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %6)
  %68 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %69 = fsub float %67, %68
  %70 = fcmp olt float %69, 0x3FB99999A0000000
  br i1 %70, label %71, label %84

71:                                               ; preds = %66
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !28
  %72 = getelementptr inbounds i8, ptr %0, i64 272
  %73 = load i8, ptr %72, align 16, !tbaa !30, !range !31, !noundef !32
  %74 = trunc nuw i8 %73 to i1
  br i1 %74, label %75, label %85

75:                                               ; preds = %71
  %76 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %77 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %76)
  %78 = extractvalue { double, double } %77, 0
  %79 = extractvalue { double, double } %77, 1
  %80 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 4.000000e+00, double %78, double %79)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %81, double %82)
  br label %85

84:                                               ; preds = %66, %2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !28
  br label %85

85:                                               ; preds = %71, %75, %84
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #12
  %86 = getelementptr inbounds i8, ptr %0, i64 16
  %87 = load ptr, ptr %86, align 16, !tbaa !33
  %88 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %87)
  %89 = extractvalue { double, double } %88, 0
  %90 = extractvalue { double, double } %88, 1
  %91 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %3, double %89, double %90)
  %92 = extractvalue { double, double } %91, 0
  store double %92, ptr %10, align 16
  %93 = getelementptr inbounds i8, ptr %10, i64 8
  %94 = extractvalue { double, double } %91, 1
  store double %94, ptr %93, align 8
  %95 = load float, ptr %1, align 16, !tbaa !5
  %96 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef %95)
  %97 = extractvalue { double, double } %96, 0
  %98 = extractvalue { double, double } %96, 1
  %99 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %97, double %98)
  %100 = getelementptr inbounds i8, ptr %0, i64 256
  %.sroa.03.0.copyload = load double, ptr %100, align 16
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 264
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !29
  %101 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %3, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload)
  %102 = extractvalue { double, double } %101, 0
  %103 = extractvalue { double, double } %101, 1
  %104 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %102, double %103)
  %105 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %.sroa.01.0.copyload = load double, ptr %9, align 16
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !29
  call void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372) %105, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #12
  call void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %11)
  %106 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %107 = load float, ptr %1, align 16, !tbaa !5
  %.sroa.0.0.copyload = load double, ptr %10, align 16
  %.sroa.2.0.copyload = load double, ptr %93, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #12
  %108 = load ptr, ptr %86, align 16, !tbaa !33
  call void @_ZNK3JPH13PhysicsSystem31GetDefaultBroadPhaseLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultBroadPhaseLayerFilter") align 8 %12, ptr noundef nonnull align 16 dereferenceable(1172) %108, i16 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #12
  %109 = load ptr, ptr %86, align 16, !tbaa !33
  invoke void @_ZNK3JPH13PhysicsSystem21GetDefaultLayerFilterEt(ptr dead_on_unwind nonnull writable sret(%"class.JPH::DefaultObjectLayerFilter") align 8 %13, ptr noundef nonnull align 16 dereferenceable(1172) %109, i16 noundef zeroext 1)
          to label %110 unwind label %115

110:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #12
  store i64 0, ptr %14, align 8
  call void @_ZN3JPH10BodyFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  invoke void @_ZN3JPH11ShapeFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15)
          to label %111 unwind label %117

111:                                              ; preds = %110
  %112 = getelementptr inbounds i8, ptr %0, i64 40
  %113 = load ptr, ptr %112, align 8, !tbaa !34
  invoke void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372) %106, float noundef %107, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull align 16 dereferenceable(64) %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %114 unwind label %119

114:                                              ; preds = %111
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %13) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %12) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %25, ptr noundef nonnull align 16 dereferenceable(64) %3, i64 64, i1 false), !tbaa.struct !35
  call void @_ZN22CharacterSpaceShipTest18UpdateShipVelocityEv(ptr noundef nonnull align 16 dereferenceable(274) %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #12
  ret void

115:                                              ; preds = %85
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %122

117:                                              ; preds = %110
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

119:                                              ; preds = %111
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH11ShapeFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %15) #12
  br label %121

121:                                              ; preds = %119, %117
  %.pn = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #12
  call void @_ZN3JPH10BodyFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #12
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %13) #12
  br label %122

122:                                              ; preds = %121, %115
  %.pn.pn = phi { ptr, i32 } [ %.pn, %121 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #12
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(18) %12) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #12
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CharacterBase5SetUpENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(144), double, double) local_unnamed_addr #8 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual17SetLinearVelocityENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(372), double, double) local_unnamed_addr #8 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH16CharacterVirtual22ExtendedUpdateSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #11 align 2

declare void @_ZN3JPH16CharacterVirtual14ExtendedUpdateEfNS_4Vec3ERKNS0_22ExtendedUpdateSettingsERKNS_21BroadPhaseLayerFilterERKNS_17ObjectLayerFilterERKNS_10BodyFilterERKNS_11ShapeFilterERNS_13TempAllocatorE(ptr noundef nonnull align 16 dereferenceable(372), float noundef, double, double, ptr noundef nonnull align 16 dereferenceable(64), 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), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN22CharacterSpaceShipTest18UpdateShipVelocityEv(ptr noundef nonnull align 16 dereferenceable(274)) local_unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { 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 #12 = { 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 0}
!6 = !{!"_ZTSN4Test15PreUpdateParamsE", !7, i64 0, !10, i64 16}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS11CameraState", !11, i64 0, !11, i64 16, !11, i64 32, !7, i64 48}
!11 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!12 = !{!13, !7, i64 240}
!13 = !{!"_ZTS22CharacterSpaceShipTest", !14, i64 0, !22, i64 112, !23, i64 120, !24, i64 128, !26, i64 144, !11, i64 208, !11, i64 224, !7, i64 240, !11, i64 256, !16, i64 272, !16, i64 273}
!14 = !{!"_ZTS4Test", !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !16, i64 48, !17, i64 56}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !15, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !15, i64 48}
!19 = !{!"long", !8, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !7, i64 0, !19, i64 8}
!22 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!23 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !15, i64 0}
!24 = !{!"_ZTSN3JPH6BodyIDE", !25, i64 0}
!25 = !{!"int", !8, i64 0}
!26 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!27 = !{!14, !15, i64 24}
!28 = !{i64 0, i64 16, !29}
!29 = !{!8, !8, i64 0}
!30 = !{!13, !16, i64 272}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!14, !15, i64 16}
!34 = !{!14, !15, i64 40}
!35 = !{i64 0, i64 64, !29}


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