; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Character/CharacterTest.ll (ZN13CharacterTest11HandleInputEN3JPH4Vec3Ebbf)

; 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.CharacterTest = type { %class.CharacterBaseTest.base, %"class.JPH::ContactListener", %"class.JPH::Ref", [8 x i8] }
%class.CharacterBaseTest.base = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, 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::RefConst" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::CharacterVsCharacterCollisionSimple" = type { %"class.JPH::CharacterVsCharacterCollision", %"class.JPH::Array.4" }
%"class.JPH::CharacterVsCharacterCollision" = type { ptr }
%"class.JPH::Array.4" = type { i64, i64, ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Ref.7" = type { ptr }
%"class.JPH::ContactListener" = type { ptr }
%"class.JPH::Ref" = type { ptr }
%class.CharacterBaseTest = type <{ %class.Test, %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::RefConst", %"class.JPH::Array", float, %"class.JPH::BodyID", %"class.JPH::BodyID", [4 x i8], %"class.JPH::CharacterVsCharacterCollisionSimple", float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", %"class.JPH::BodyID", float, %"class.JPH::BodyID", [4 x i8], %"class.JPH::Ref", %"class.JPH::Ref.7", %"class.JPH::Ref.7", [8 x i8], %"class.JPH::Vec3", i8, i8, i8, i8, [12 x i8] }>
%"struct.JPH::PhysicsSettings" = type <{ i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, float, float, i8, i8, i8, i8, i8, i8, i8, i8 }>

@_ZN17CharacterBaseTest26sControlMovementDuringJumpE = external dso_local global i8, align 1
@_ZN17CharacterBaseTest15sCharacterSpeedE = external dso_local global float, align 4
@_ZN17CharacterBaseTest10sJumpSpeedE = external dso_local global float, align 4

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

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

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

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

declare { double, double } @_ZNK3JPH9Character17GetLinearVelocityEb(ptr noundef nonnull align 16 dereferenceable(150), i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144)) #4 align 2

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

declare noundef zeroext i1 @_ZN3JPH9Character8SetShapeEPKNS_5ShapeEfb(ptr noundef nonnull align 16 dereferenceable(150), ptr noundef, float noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13CharacterTest11HandleInputEN3JPH4Vec3Ebbf(ptr noundef nonnull align 16 dereferenceable(344) %0, double %1, double %2, i1 noundef zeroext %3, i1 noundef zeroext %4, float noundef %5) unnamed_addr #4 align 2 {
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca float, align 4
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca i32, align 4
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca float, align 4
  %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 %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  store double %1, ptr %30, align 16
  %31 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  store double %2, ptr %31, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  %32 = zext i1 %3 to i8
  store i8 %32, ptr %9, align 1, !tbaa !9
  %33 = zext i1 %4 to i8
  store i8 %33, ptr %10, align 1, !tbaa !9
  store float %5, ptr %11, align 4, !tbaa !11
  %34 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %35 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %36 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
  %37 = call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %36)
  store i32 %37, ptr %13, align 4, !tbaa !15
  %38 = load i32, ptr %13, align 4, !tbaa !15
  %39 = icmp eq i32 %38, 1
  br i1 %39, label %43, label %40

40:                                               ; preds = %6
  %41 = load i32, ptr %13, align 4, !tbaa !15
  %42 = icmp eq i32 %41, 2
  br i1 %42, label %43, label %87

43:                                               ; preds = %40, %6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %44 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %45 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44)
  %46 = call { double, double } @_ZNK3JPH13CharacterBase15GetGroundNormalEv(ptr noundef nonnull align 16 dereferenceable(144) %45)
  %47 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %48 = getelementptr inbounds %union.anon, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %50 = extractvalue { double, double } %46, 0
  store double %50, ptr %49, align 16
  %51 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %52 = extractvalue { double, double } %46, 1
  store double %52, ptr %51, align 8
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !13
  %53 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %54 = load double, ptr %53, align 16
  %55 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %56 = load double, ptr %55, align 8
  %57 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %54, double %56)
  store float %57, ptr %15, align 4, !tbaa !11
  %58 = load float, ptr %15, align 4, !tbaa !11
  %59 = fcmp olt float %58, 0.000000e+00
  br i1 %59, label %60, label %86

60:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  %61 = load float, ptr %15, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !13
  %62 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %63 = load double, ptr %62, align 16
  %64 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %65 = load double, ptr %64, align 8
  %66 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %61, double %63, double %65)
  %67 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %68 = getelementptr inbounds %union.anon, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 0
  %70 = extractvalue { double, double } %66, 0
  store double %70, ptr %69, align 16
  %71 = getelementptr inbounds { double, double }, ptr %68, i32 0, i32 1
  %72 = extractvalue { double, double } %66, 1
  store double %72, ptr %71, align 8
  %73 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %74 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef %73)
  %75 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %76 = getelementptr inbounds %union.anon, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %78 = extractvalue { double, double } %74, 0
  store double %78, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %80 = extractvalue { double, double } %74, 1
  store double %80, ptr %79, align 8
  %81 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %82 = load double, ptr %81, align 16
  %83 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %84 = load double, ptr %83, align 8
  %85 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %82, double %84)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  br label %86

86:                                               ; preds = %60, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  br label %87

87:                                               ; preds = %86, %40
  %88 = load i8, ptr %10, align 1, !tbaa !9, !range !17, !noundef !18
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %113

90:                                               ; preds = %87
  %91 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %92 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %91)
  %93 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %94 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %93)
  %95 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %94)
  %96 = getelementptr inbounds %class.CharacterBaseTest, ptr %34, i32 0, i32 1
  %97 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %96)
  %98 = icmp eq ptr %95, %97
  br i1 %98, label %99, label %101

99:                                               ; preds = %90
  %100 = getelementptr inbounds %class.CharacterBaseTest, ptr %34, i32 0, i32 2
  br label %103

101:                                              ; preds = %90
  %102 = getelementptr inbounds %class.CharacterBaseTest, ptr %34, i32 0, i32 1
  br label %103

103:                                              ; preds = %101, %99
  %104 = phi ptr [ %100, %99 ], [ %102, %101 ]
  %105 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %104)
  %106 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 2
  %107 = load ptr, ptr %106, align 16, !tbaa !19
  %108 = call noundef nonnull align 4 dereferenceable(83) ptr @_ZNK3JPH13PhysicsSystem18GetPhysicsSettingsEv(ptr noundef nonnull align 16 dereferenceable(1172) %107)
  %109 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %108, i32 0, i32 5
  %110 = load float, ptr %109, align 4, !tbaa !26
  %111 = fmul float 1.500000e+00, %110
  %112 = call noundef zeroext i1 @_ZN3JPH9Character8SetShapeEPKNS_5ShapeEfb(ptr noundef nonnull align 16 dereferenceable(150) %92, ptr noundef %105, float noundef %111, i1 noundef zeroext true)
  br label %113

113:                                              ; preds = %103, %87
  %114 = load i8, ptr @_ZN17CharacterBaseTest26sControlMovementDuringJumpE, align 1, !tbaa !9, !range !17, !noundef !18
  %115 = trunc i8 %114 to i1
  br i1 %115, label %120, label %116

116:                                              ; preds = %113
  %117 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %118 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117)
  %119 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %118)
  br i1 %119, label %120, label %205

120:                                              ; preds = %116, %113
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  %121 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %122 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %121)
  %123 = call { double, double } @_ZNK3JPH9Character17GetLinearVelocityEb(ptr noundef nonnull align 16 dereferenceable(150) %122, i1 noundef zeroext true)
  %124 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %125 = getelementptr inbounds %union.anon, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 0
  %127 = extractvalue { double, double } %123, 0
  store double %127, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 1
  %129 = extractvalue { double, double } %123, 1
  store double %129, ptr %128, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %130 = load float, ptr @_ZN17CharacterBaseTest15sCharacterSpeedE, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !13
  %131 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %132 = load double, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %134 = load double, ptr %133, align 8
  %135 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %130, double %132, double %134)
  %136 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i32 0, i32 0
  %137 = getelementptr inbounds %union.anon, ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds { double, double }, ptr %137, i32 0, i32 0
  %139 = extractvalue { double, double } %135, 0
  store double %139, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %137, i32 0, i32 1
  %141 = extractvalue { double, double } %135, 1
  store double %141, ptr %140, align 8
  %142 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef 0x3D71979980000000)
  br i1 %142, label %143, label %150

143:                                              ; preds = %120
  %144 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  %145 = fcmp olt float %144, 0.000000e+00
  br i1 %145, label %150, label %146

146:                                              ; preds = %143
  %147 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %148 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %147)
  %149 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %148)
  br i1 %149, label %152, label %150

150:                                              ; preds = %146, %143, %120
  %151 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %20)
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef %151)
  br label %152

152:                                              ; preds = %150, %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !13
  %153 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %154 = load double, ptr %153, align 16
  %155 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %156 = load double, ptr %155, align 8
  %157 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 7.500000e-01, double %154, double %156)
  %158 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %159 = getelementptr inbounds %union.anon, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 0
  %161 = extractvalue { double, double } %157, 0
  store double %161, ptr %160, align 16
  %162 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 1
  %163 = extractvalue { double, double } %157, 1
  store double %163, ptr %162, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %21, i64 16, i1 false), !tbaa.struct !13
  %164 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %165 = load double, ptr %164, align 16
  %166 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %167 = load double, ptr %166, align 8
  %168 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 2.500000e-01, double %165, double %167)
  %169 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %170 = getelementptr inbounds %union.anon, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 0
  %172 = extractvalue { double, double } %168, 0
  store double %172, ptr %171, align 16
  %173 = getelementptr inbounds { double, double }, ptr %170, i32 0, i32 1
  %174 = extractvalue { double, double } %168, 1
  store double %174, ptr %173, align 8
  %175 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %176 = load double, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %178 = load double, ptr %177, align 8
  %179 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %176, double %178)
  %180 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %181 = getelementptr inbounds %union.anon, ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 0
  %183 = extractvalue { double, double } %179, 0
  store double %183, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 1
  %185 = extractvalue { double, double } %179, 1
  store double %185, ptr %184, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  %186 = load i8, ptr %9, align 1, !tbaa !9, !range !17, !noundef !18
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %198

188:                                              ; preds = %152
  %189 = load i32, ptr %13, align 4, !tbaa !15
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %191, label %198

191:                                              ; preds = %188
  %192 = load float, ptr @_ZN17CharacterBaseTest10sJumpSpeedE, align 4, !tbaa !11
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef 0.000000e+00, float noundef %192, float noundef 0.000000e+00)
  %193 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %194 = load double, ptr %193, align 16
  %195 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %196 = load double, ptr %195, align 8
  %197 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %23, double %194, double %196)
  br label %198

198:                                              ; preds = %191, %188, %152
  %199 = getelementptr inbounds %class.CharacterTest, ptr %34, i32 0, i32 2
  %200 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %199)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !13
  %201 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %202 = load double, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %204 = load double, ptr %203, align 8
  call void @_ZN3JPH9Character17SetLinearVelocityENS_4Vec3Eb(ptr noundef nonnull align 16 dereferenceable(150) %200, double %202, double %204, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  br label %205

205:                                              ; preds = %198, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  ret void
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(83) ptr @_ZNK3JPH13PhysicsSystem18GetPhysicsSettingsEv(ptr noundef nonnull align 16 dereferenceable(1172)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144)) #5 align 2

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

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

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

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

declare void @_ZN3JPH9Character17SetLinearVelocityENS_4Vec3Eb(ptr noundef nonnull align 16 dereferenceable(150), double, double, i1 noundef zeroext) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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 #9 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 16, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !6, i64 16}
!20 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !21, i64 56}
!21 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !22, i64 0}
!22 = !{!"_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, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !23, i64 8}
!26 = !{!27, !12, i64 20}
!27 = !{!"_ZTSN3JPH15PhysicsSettingsE", !28, i64 0, !28, i64 4, !28, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !28, i64 56, !28, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !10, i64 76, !10, i64 77, !10, i64 78, !10, i64 79, !10, i64 80, !10, i64 81, !10, i64 82}
!28 = !{!"int", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

@_ZN17CharacterBaseTest26sControlMovementDuringJumpE = external dso_local local_unnamed_addr global i8, align 1
@_ZN17CharacterBaseTest15sCharacterSpeedE = external dso_local local_unnamed_addr global float, align 4
@_ZN17CharacterBaseTest10sJumpSpeedE = external dso_local local_unnamed_addr global float, align 4

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

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

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

declare { double, double } @_ZNK3JPH9Character17GetLinearVelocityEb(ptr noundef nonnull align 16 dereferenceable(150), i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144)) local_unnamed_addr #3 align 2

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

declare noundef zeroext i1 @_ZN3JPH9Character8SetShapeEPKNS_5ShapeEfb(ptr noundef nonnull align 16 dereferenceable(150), ptr noundef, float noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13CharacterTest11HandleInputEN3JPH4Vec3Ebbf(ptr noundef nonnull align 16 dereferenceable(344) %0, double %1, double %2, i1 noundef zeroext %3, i1 noundef zeroext %4, float noundef %5) unnamed_addr #3 align 2 {
  %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 %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  store double %1, ptr %7, align 16
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store double %2, ptr %.sroa.225.0..sroa_idx, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 336
  %16 = tail call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %17 = tail call noundef i32 @_ZNK3JPH13CharacterBase14GetGroundStateEv(ptr noundef nonnull align 16 dereferenceable(144) %16)
  %18 = add i32 %17, -1
  %or.cond = icmp ult i32 %18, 2
  br i1 %or.cond, label %19, label %38

19:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %20 = tail call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %21 = tail call { double, double } @_ZNK3JPH13CharacterBase15GetGroundNormalEv(ptr noundef nonnull align 16 dereferenceable(144) %20)
  %22 = extractvalue { double, double } %21, 0
  store double %22, ptr %8, align 16
  %23 = getelementptr inbounds i8, ptr %8, i64 8
  %24 = extractvalue { double, double } %21, 1
  store double %24, ptr %23, align 8
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 0.000000e+00)
  %25 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %1, double %2)
  %26 = fcmp olt float %25, 0.000000e+00
  br i1 %26, label %27, label %37

27:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %.sroa.012.0.copyload = load double, ptr %8, align 16
  %.sroa.213.0.copyload = load double, ptr %23, align 8, !tbaa !5
  %28 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %25, double %.sroa.012.0.copyload, double %.sroa.213.0.copyload)
  %29 = extractvalue { double, double } %28, 0
  store double %29, ptr %9, align 16
  %30 = getelementptr inbounds i8, ptr %9, i64 8
  %31 = extractvalue { double, double } %28, 1
  store double %31, ptr %30, align 8
  %32 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %33 = call { double, double } @_ZNK3JPH4Vec3dvEf(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef %32)
  %34 = extractvalue { double, double } %33, 0
  %35 = extractvalue { double, double } %33, 1
  %36 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %34, double %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %37

37:                                               ; preds = %27, %19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  br label %38

38:                                               ; preds = %6, %37
  br i1 %4, label %39, label %56

39:                                               ; preds = %38
  %40 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %41 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %42 = call noundef ptr @_ZNK3JPH13CharacterBase8GetShapeEv(ptr noundef nonnull align 16 dereferenceable(144) %41)
  %43 = getelementptr inbounds i8, ptr %0, i64 112
  %44 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %43)
  %45 = icmp eq ptr %42, %44
  %46 = getelementptr inbounds i8, ptr %0, i64 120
  %47 = select i1 %45, ptr %46, ptr %43
  %48 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47)
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = load ptr, ptr %49, align 16, !tbaa !8
  %51 = call noundef nonnull align 4 dereferenceable(83) ptr @_ZNK3JPH13PhysicsSystem18GetPhysicsSettingsEv(ptr noundef nonnull align 16 dereferenceable(1172) %50)
  %52 = getelementptr inbounds i8, ptr %51, i64 20
  %53 = load float, ptr %52, align 4, !tbaa !18
  %54 = fmul float %53, 1.500000e+00
  %55 = call noundef zeroext i1 @_ZN3JPH9Character8SetShapeEPKNS_5ShapeEfb(ptr noundef nonnull align 16 dereferenceable(150) %40, ptr noundef %48, float noundef %54, i1 noundef zeroext true)
  br label %56

56:                                               ; preds = %39, %38
  %57 = load i8, ptr @_ZN17CharacterBaseTest26sControlMovementDuringJumpE, align 1, !tbaa !21, !range !22, !noundef !23
  %58 = trunc nuw i8 %57 to i1
  br i1 %58, label %62, label %59

59:                                               ; preds = %56
  %60 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %61 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %60)
  br i1 %61, label %62, label %103

62:                                               ; preds = %59, %56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %63 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %64 = call { double, double } @_ZNK3JPH9Character17GetLinearVelocityEb(ptr noundef nonnull align 16 dereferenceable(150) %63, i1 noundef zeroext true)
  %65 = extractvalue { double, double } %64, 0
  store double %65, ptr %10, align 16
  %66 = getelementptr inbounds i8, ptr %10, i64 8
  %67 = extractvalue { double, double } %64, 1
  store double %67, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %68 = load float, ptr @_ZN17CharacterBaseTest15sCharacterSpeedE, align 4, !tbaa !24
  %.sroa.010.0.copyload = load double, ptr %7, align 16
  %.sroa.211.0.copyload = load double, ptr %.sroa.225.0..sroa_idx, align 8, !tbaa !5
  %69 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %68, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %70 = extractvalue { double, double } %69, 0
  store double %70, ptr %11, align 16
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  %72 = extractvalue { double, double } %69, 1
  store double %72, ptr %71, align 8
  %73 = call noundef zeroext i1 @_ZNK3JPH4Vec310IsNearZeroEf(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 0x3D71979980000000)
  br i1 %73, label %74, label %80

74:                                               ; preds = %62
  %75 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %76 = fcmp olt float %75, 0.000000e+00
  br i1 %76, label %80, label %77

77:                                               ; preds = %74
  %78 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %79 = call noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144) %78)
  br i1 %79, label %82, label %80

80:                                               ; preds = %77, %74, %62
  %81 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  call void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %81)
  br label %82

82:                                               ; preds = %80, %77
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %.sroa.08.0.copyload = load double, ptr %10, align 16
  %.sroa.29.0.copyload = load double, ptr %66, align 8, !tbaa !5
  %83 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 7.500000e-01, double %.sroa.08.0.copyload, double %.sroa.29.0.copyload)
  %84 = extractvalue { double, double } %83, 0
  store double %84, ptr %13, align 16
  %85 = getelementptr inbounds i8, ptr %13, i64 8
  %86 = extractvalue { double, double } %83, 1
  store double %86, ptr %85, align 8
  %.sroa.04.0.copyload = load double, ptr %11, align 16
  %.sroa.25.0.copyload = load double, ptr %71, align 8, !tbaa !5
  %87 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 2.500000e-01, double %.sroa.04.0.copyload, double %.sroa.25.0.copyload)
  %88 = extractvalue { double, double } %87, 0
  %89 = extractvalue { double, double } %87, 1
  %90 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %88, double %89)
  %91 = extractvalue { double, double } %90, 0
  store double %91, ptr %12, align 16
  %92 = getelementptr inbounds i8, ptr %12, i64 8
  %93 = extractvalue { double, double } %90, 1
  store double %93, ptr %92, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  %94 = icmp eq i32 %17, 0
  %or.cond3 = and i1 %94, %3
  br i1 %or.cond3, label %95, label %101

95:                                               ; preds = %82
  %96 = load float, ptr @_ZN17CharacterBaseTest10sJumpSpeedE, align 4, !tbaa !24
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00, float noundef %96, float noundef 0.000000e+00)
  %97 = load double, ptr %14, align 16
  %98 = getelementptr inbounds i8, ptr %14, i64 8
  %99 = load double, ptr %98, align 8
  %100 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %97, double %99)
  br label %101

101:                                              ; preds = %95, %82
  %102 = call noundef ptr @_ZNK3JPH3RefINS_9CharacterEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %.sroa.0.0.copyload = load double, ptr %12, align 16
  %.sroa.2.0.copyload = load double, ptr %92, align 8, !tbaa !5
  call void @_ZN3JPH9Character17SetLinearVelocityENS_4Vec3Eb(ptr noundef nonnull align 16 dereferenceable(150) %102, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %103

103:                                              ; preds = %101, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  ret void
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec34SetYEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #5 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 #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13CharacterBase11IsSupportedEv(ptr noundef nonnull align 16 dereferenceable(144)) local_unnamed_addr #4 align 2

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

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

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

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

declare void @_ZN3JPH9Character17SetLinearVelocityENS_4Vec3Eb(ptr noundef nonnull align 16 dereferenceable(150), double, double, i1 noundef zeroext) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 16}
!9 = !{!"_ZTS4Test", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !12, i64 56}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"bool", !6, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !10, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !10, i64 48}
!14 = !{!"long", !6, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !6, i64 0}
!18 = !{!19, !17, i64 20}
!19 = !{!"_ZTSN3JPH15PhysicsSettingsE", !20, i64 0, !20, i64 4, !20, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !20, i64 56, !20, i64 60, !17, i64 64, !17, i64 68, !17, i64 72, !11, i64 76, !11, i64 77, !11, i64 78, !11, i64 79, !11, i64 80, !11, i64 81, !11, i64 82}
!20 = !{!"int", !6, i64 0}
!21 = !{!11, !11, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!17, !17, i64 0}


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