; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Vehicle (MotorcycleTest)

; 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.20 }
%union.anon.20 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.MotorcycleTest = type { %class.VehicleTest, ptr, %"class.JPH::Ref", %"class.JPH::Mat44", float, float, float, float }
%class.VehicleTest = type { %class.Test, %"class.JPH::Array" }
%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::Array" = type { i64, i64, ptr }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.Test::ProcessInputParams" = type { float, ptr, %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14MotorcycleTest12ProcessInputERKN4Test18ProcessInputParamsE(ptr noundef nonnull align 16 dereferenceable(240) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Quat", align 16
  %8 = alloca %"class.JPH::Quat", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %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::Quat", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Quat", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca float, align 4
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8
  %29 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  store float 0.000000e+00, ptr %29, align 16, !tbaa !9
  %30 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 7
  store float 0.000000e+00, ptr %30, align 4, !tbaa !23
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  %34 = load ptr, ptr %33, align 8, !tbaa !28
  %35 = getelementptr inbounds ptr, ptr %34, i64 5
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef zeroext i1 %36(ptr noundef nonnull align 8 dereferenceable(8) %33, i32 noundef 27)
  br i1 %37, label %38, label %40

38:                                               ; preds = %2
  %39 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 7
  store float 1.000000e+00, ptr %39, align 4, !tbaa !23
  br label %62

40:                                               ; preds = %2
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !24
  %44 = load ptr, ptr %43, align 8, !tbaa !28
  %45 = getelementptr inbounds ptr, ptr %44, i64 5
  %46 = load ptr, ptr %45, align 8
  %47 = call noundef zeroext i1 %46(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef 50)
  br i1 %47, label %48, label %50

48:                                               ; preds = %40
  %49 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  store float 1.000000e+00, ptr %49, align 16, !tbaa !9
  br label %61

50:                                               ; preds = %40
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !24
  %54 = load ptr, ptr %53, align 8, !tbaa !28
  %55 = getelementptr inbounds ptr, ptr %54, i64 5
  %56 = load ptr, ptr %55, align 8
  %57 = call noundef zeroext i1 %56(ptr noundef nonnull align 8 dereferenceable(8) %53, i32 noundef 51)
  br i1 %57, label %58, label %60

58:                                               ; preds = %50
  %59 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  store float -1.000000e+00, ptr %59, align 16, !tbaa !9
  br label %60

60:                                               ; preds = %58, %50
  br label %61

61:                                               ; preds = %60, %48
  br label %62

62:                                               ; preds = %61, %38
  %63 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 5
  %64 = load float, ptr %63, align 4, !tbaa !30
  %65 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  %66 = load float, ptr %65, align 16, !tbaa !9
  %67 = fmul float %64, %66
  %68 = fcmp olt float %67, 0.000000e+00
  br i1 %68, label %69, label %130

69:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #10
  %70 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !31
  %72 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %71)
  %73 = getelementptr inbounds %"class.JPH::Quat", ptr %8, i32 0, i32 0
  %74 = getelementptr inbounds %"class.JPH::Vec4", ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %union.anon, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 0
  %77 = extractvalue { double, double } %72, 0
  store double %77, ptr %76, align 16
  %78 = getelementptr inbounds { double, double }, ptr %75, i32 0, i32 1
  %79 = extractvalue { double, double } %72, 1
  store double %79, ptr %78, align 8
  %80 = call { double, double } @_ZNK3JPH4Quat10ConjugatedEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %81 = getelementptr inbounds %"class.JPH::Quat", ptr %7, i32 0, i32 0
  %82 = getelementptr inbounds %"class.JPH::Vec4", ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %union.anon, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 0
  %85 = extractvalue { double, double } %80, 0
  store double %85, ptr %84, align 16
  %86 = getelementptr inbounds { double, double }, ptr %83, i32 0, i32 1
  %87 = extractvalue { double, double } %80, 1
  store double %87, ptr %86, align 8
  %88 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !31
  %90 = call { double, double } @_ZNK3JPH4Body17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(122) %89)
  %91 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %92 = getelementptr inbounds %union.anon.20, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 0
  %94 = extractvalue { double, double } %90, 0
  store double %94, ptr %93, align 16
  %95 = getelementptr inbounds { double, double }, ptr %92, i32 0, i32 1
  %96 = extractvalue { double, double } %90, 1
  store double %96, ptr %95, align 8
  %97 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %98 = load double, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %100 = load double, ptr %99, align 8
  %101 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %7, double %98, double %100)
  %102 = getelementptr inbounds %"class.JPH::Vec3", ptr %6, i32 0, i32 0
  %103 = getelementptr inbounds %union.anon.20, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 0
  %105 = extractvalue { double, double } %101, 0
  store double %105, ptr %104, align 16
  %106 = getelementptr inbounds { double, double }, ptr %103, i32 0, i32 1
  %107 = extractvalue { double, double } %101, 1
  store double %107, ptr %106, align 8
  %108 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #10
  store float %108, ptr %5, align 4, !tbaa !32
  %109 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  %110 = load float, ptr %109, align 16, !tbaa !9
  %111 = fcmp ogt float %110, 0.000000e+00
  br i1 %111, label %112, label %115

112:                                              ; preds = %69
  %113 = load float, ptr %5, align 4, !tbaa !32
  %114 = fcmp olt float %113, 0xBFB99999A0000000
  br i1 %114, label %122, label %115

115:                                              ; preds = %112, %69
  %116 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  %117 = load float, ptr %116, align 16, !tbaa !9
  %118 = fcmp olt float %117, 0.000000e+00
  br i1 %118, label %119, label %125

119:                                              ; preds = %115
  %120 = load float, ptr %5, align 4, !tbaa !32
  %121 = fcmp ogt float %120, 0x3FB99999A0000000
  br i1 %121, label %122, label %125

122:                                              ; preds = %119, %112
  %123 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  store float 0.000000e+00, ptr %123, align 16, !tbaa !9
  %124 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 7
  store float 1.000000e+00, ptr %124, align 4, !tbaa !23
  br label %129

125:                                              ; preds = %119, %115
  %126 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 4
  %127 = load float, ptr %126, align 16, !tbaa !9
  %128 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 5
  store float %127, ptr %128, align 4, !tbaa !30
  br label %129

129:                                              ; preds = %125, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %130

130:                                              ; preds = %129, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  store float 0.000000e+00, ptr %10, align 4, !tbaa !32
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !24
  %134 = load ptr, ptr %133, align 8, !tbaa !28
  %135 = getelementptr inbounds ptr, ptr %134, i64 5
  %136 = load ptr, ptr %135, align 8
  %137 = call noundef zeroext i1 %136(ptr noundef nonnull align 8 dereferenceable(8) %133, i32 noundef 48)
  br i1 %137, label %138, label %139

138:                                              ; preds = %130
  store float -1.000000e+00, ptr %10, align 4, !tbaa !32
  br label %149

139:                                              ; preds = %130
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = load ptr, ptr %142, align 8, !tbaa !28
  %144 = getelementptr inbounds ptr, ptr %143, i64 5
  %145 = load ptr, ptr %144, align 8
  %146 = call noundef zeroext i1 %145(ptr noundef nonnull align 8 dereferenceable(8) %142, i32 noundef 49)
  br i1 %146, label %147, label %148

147:                                              ; preds = %139
  store float 1.000000e+00, ptr %10, align 4, !tbaa !32
  br label %148

148:                                              ; preds = %147, %139
  br label %149

149:                                              ; preds = %148, %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store float 4.000000e+00, ptr %11, align 4, !tbaa !32
  %150 = load float, ptr %10, align 4, !tbaa !32
  %151 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 6
  %152 = load float, ptr %151, align 8, !tbaa !33
  %153 = fcmp ogt float %150, %152
  br i1 %153, label %154, label %164

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  %155 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 6
  %156 = load float, ptr %155, align 8, !tbaa !33
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %157, i32 0, i32 0
  %159 = load float, ptr %158, align 16, !tbaa !34
  %160 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %159, float %156)
  store float %160, ptr %12, align 4, !tbaa !32
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %162 = load float, ptr %161, align 4, !tbaa !32
  %163 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 6
  store float %162, ptr %163, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %180

164:                                              ; preds = %149
  %165 = load float, ptr %10, align 4, !tbaa !32
  %166 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 6
  %167 = load float, ptr %166, align 8, !tbaa !33
  %168 = fcmp olt float %165, %167
  br i1 %168, label %169, label %179

169:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  %170 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 6
  %171 = load float, ptr %170, align 8, !tbaa !33
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %172, i32 0, i32 0
  %174 = load float, ptr %173, align 16, !tbaa !34
  %175 = call float @llvm.fmuladd.f32(float -4.000000e+00, float %174, float %171)
  store float %175, ptr %13, align 4, !tbaa !32
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %177 = load float, ptr %176, align 4, !tbaa !32
  %178 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 6
  store float %177, ptr %178, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %179

179:                                              ; preds = %169, %164
  br label %180

180:                                              ; preds = %179, %154
  %181 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 7
  %182 = load float, ptr %181, align 4, !tbaa !23
  %183 = fcmp ogt float %182, 0.000000e+00
  br i1 %183, label %184, label %292

184:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #10
  %185 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 2
  %186 = load ptr, ptr %185, align 16, !tbaa !35
  %187 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %186)
  %188 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %189 = getelementptr inbounds %union.anon.20, ptr %188, i32 0, i32 0
  %190 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 0
  %191 = extractvalue { double, double } %187, 0
  store double %191, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 1
  %193 = extractvalue { double, double } %187, 1
  store double %193, ptr %192, align 8
  %194 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
  %195 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %196 = getelementptr inbounds %union.anon.20, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds { double, double }, ptr %196, i32 0, i32 0
  %198 = extractvalue { double, double } %194, 0
  store double %198, ptr %197, align 16
  %199 = getelementptr inbounds { double, double }, ptr %196, i32 0, i32 1
  %200 = extractvalue { double, double } %194, 1
  store double %200, ptr %199, align 8
  %201 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %202 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %203 = getelementptr inbounds %union.anon.20, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds { double, double }, ptr %203, i32 0, i32 0
  %205 = extractvalue { double, double } %201, 0
  store double %205, ptr %204, align 16
  %206 = getelementptr inbounds { double, double }, ptr %203, i32 0, i32 1
  %207 = extractvalue { double, double } %201, 1
  store double %207, ptr %206, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #10
  %208 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 1
  %209 = load ptr, ptr %208, align 8, !tbaa !31
  %210 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %209)
  %211 = getelementptr inbounds %"class.JPH::Quat", ptr %18, i32 0, i32 0
  %212 = getelementptr inbounds %"class.JPH::Vec4", ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %union.anon, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 0
  %215 = extractvalue { double, double } %210, 0
  store double %215, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 1
  %217 = extractvalue { double, double } %210, 1
  store double %217, ptr %216, align 8
  %218 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 2
  %219 = call noundef ptr @_ZNK3JPH3RefINS_17VehicleConstraintEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %218)
  %220 = call { double, double } @_ZNK3JPH17VehicleConstraint10GetLocalUpEv(ptr noundef nonnull align 16 dereferenceable(408) %219)
  %221 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %222 = getelementptr inbounds %union.anon.20, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 0
  %224 = extractvalue { double, double } %220, 0
  store double %224, ptr %223, align 16
  %225 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 1
  %226 = extractvalue { double, double } %220, 1
  store double %226, ptr %225, align 8
  %227 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %228 = load double, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %18, double %228, double %230)
  %232 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %233 = getelementptr inbounds %union.anon.20, 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
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %238 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 1
  %239 = load ptr, ptr %238, align 8, !tbaa !31
  %240 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %239)
  %241 = getelementptr inbounds %"class.JPH::Quat", ptr %21, i32 0, i32 0
  %242 = getelementptr inbounds %"class.JPH::Vec4", ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %union.anon, ptr %242, i32 0, i32 0
  %244 = getelementptr inbounds { double, double }, ptr %243, i32 0, i32 0
  %245 = extractvalue { double, double } %240, 0
  store double %245, ptr %244, align 16
  %246 = getelementptr inbounds { double, double }, ptr %243, i32 0, i32 1
  %247 = extractvalue { double, double } %240, 1
  store double %247, ptr %246, align 8
  %248 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 2
  %249 = call noundef ptr @_ZNK3JPH3RefINS_17VehicleConstraintEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %248)
  %250 = call { double, double } @_ZNK3JPH17VehicleConstraint15GetLocalForwardEv(ptr noundef nonnull align 16 dereferenceable(408) %249)
  %251 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %252 = getelementptr inbounds %union.anon.20, ptr %251, i32 0, i32 0
  %253 = getelementptr inbounds { double, double }, ptr %252, i32 0, i32 0
  %254 = extractvalue { double, double } %250, 0
  store double %254, ptr %253, align 16
  %255 = getelementptr inbounds { double, double }, ptr %252, i32 0, i32 1
  %256 = extractvalue { double, double } %250, 1
  store double %256, ptr %255, align 8
  %257 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %258 = load double, ptr %257, align 16
  %259 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %260 = load double, ptr %259, align 8
  %261 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %21, double %258, double %260)
  %262 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %263 = getelementptr inbounds %union.anon.20, ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds { double, double }, ptr %263, i32 0, i32 0
  %265 = extractvalue { double, double } %261, 0
  store double %265, ptr %264, align 16
  %266 = getelementptr inbounds { double, double }, ptr %263, i32 0, i32 1
  %267 = extractvalue { double, double } %261, 1
  store double %267, ptr %266, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !36
  %268 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %269 = load double, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %271 = load double, ptr %270, align 8
  %272 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %269, double %271)
  %273 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %274 = getelementptr inbounds %union.anon.20, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 0
  %276 = extractvalue { double, double } %272, 0
  store double %276, ptr %275, align 16
  %277 = getelementptr inbounds { double, double }, ptr %274, i32 0, i32 1
  %278 = extractvalue { double, double } %272, 1
  store double %278, ptr %277, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %20, i64 16, i1 false), !tbaa.struct !36
  %279 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %280 = load double, ptr %279, align 16
  %281 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %282 = load double, ptr %281, align 8
  %283 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %280, double %282)
  %284 = call noundef float @_ZSt3absf(float noundef %283)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  store float %284, ptr %23, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %285 = load float, ptr %23, align 4, !tbaa !32
  %286 = fsub float 1.000000e+00, %285
  %287 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %286)
  store float %287, ptr %27, align 4, !tbaa !32
  %288 = load float, ptr %27, align 4, !tbaa !32
  %289 = getelementptr inbounds %class.MotorcycleTest, ptr %28, i32 0, i32 7
  %290 = load float, ptr %289, align 4, !tbaa !23
  %291 = fmul float %290, %288
  store float %291, ptr %289, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  br label %292

292:                                              ; preds = %184, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #4

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !19, i64 224}
!10 = !{!"_ZTS14MotorcycleTest", !11, i64 0, !6, i64 136, !21, i64 144, !22, i64 160, !19, i64 224, !19, i64 228, !19, i64 232, !19, i64 236}
!11 = !{!"_ZTS11VehicleTest", !12, i64 0, !20, i64 112}
!12 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !14, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !15, i64 0}
!15 = !{!"_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, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSN3JPH5ArrayIN11VehicleTest4LineENS_12STLAllocatorIS2_EEEE", !16, i64 0, !16, i64 8, !6, i64 16}
!21 = !{!"_ZTSN3JPH3RefINS_17VehicleConstraintEEE", !6, i64 0}
!22 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!23 = !{!10, !19, i64 236}
!24 = !{!25, !6, i64 8}
!25 = !{!"_ZTSN4Test18ProcessInputParamsE", !19, i64 0, !6, i64 8, !26, i64 16}
!26 = !{!"_ZTS11CameraState", !27, i64 0, !27, i64 16, !27, i64 32, !19, i64 48}
!27 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !8, i64 0}
!30 = !{!10, !19, i64 228}
!31 = !{!10, !6, i64 136}
!32 = !{!19, !19, i64 0}
!33 = !{!10, !19, i64 232}
!34 = !{!25, !19, i64 0}
!35 = !{!12, !6, i64 16}
!36 = !{i64 0, i64 16, !37}
!37 = !{!7, !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.20 }
%union.anon.20 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14MotorcycleTest12ProcessInputERKN4Test18ProcessInputParamsE(ptr noundef nonnull align 16 dereferenceable(240) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %1) unnamed_addr #4 align 2 {
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Quat", align 16
  %5 = alloca %"class.JPH::Quat", align 16
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %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::Quat", align 16
  %13 = alloca %"class.JPH::Quat", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = getelementptr inbounds i8, ptr %0, i64 224
  store float 0.000000e+00, ptr %15, align 16, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 236
  store float 0.000000e+00, ptr %16, align 4, !tbaa !22
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !23
  %19 = load ptr, ptr %18, align 8, !tbaa !27
  %20 = getelementptr inbounds i8, ptr %19, i64 40
  %21 = load ptr, ptr %20, align 8
  %22 = tail call noundef zeroext i1 %21(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 27)
  br i1 %22, label %23, label %24

23:                                               ; preds = %2
  store float 1.000000e+00, ptr %16, align 4, !tbaa !22
  br label %38

24:                                               ; preds = %2
  %25 = load ptr, ptr %17, align 8, !tbaa !23
  %26 = load ptr, ptr %25, align 8, !tbaa !27
  %27 = getelementptr inbounds i8, ptr %26, i64 40
  %28 = load ptr, ptr %27, align 8
  %29 = tail call noundef zeroext i1 %28(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 50)
  br i1 %29, label %30, label %31

30:                                               ; preds = %24
  store float 1.000000e+00, ptr %15, align 16, !tbaa !5
  br label %38

31:                                               ; preds = %24
  %32 = load ptr, ptr %17, align 8, !tbaa !23
  %33 = load ptr, ptr %32, align 8, !tbaa !27
  %34 = getelementptr inbounds i8, ptr %33, i64 40
  %35 = load ptr, ptr %34, align 8
  %36 = tail call noundef zeroext i1 %35(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef 51)
  br i1 %36, label %37, label %38

37:                                               ; preds = %31
  store float -1.000000e+00, ptr %15, align 16, !tbaa !5
  br label %38

38:                                               ; preds = %30, %37, %31, %23
  %39 = getelementptr inbounds i8, ptr %0, i64 228
  %40 = load float, ptr %39, align 4, !tbaa !29
  %41 = load float, ptr %15, align 16, !tbaa !5
  %42 = fmul float %40, %41
  %43 = fcmp olt float %42, 0.000000e+00
  br i1 %43, label %44, label %72

44:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %45 = getelementptr inbounds i8, ptr %0, i64 136
  %46 = load ptr, ptr %45, align 8, !tbaa !30
  %47 = tail call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %46)
  %48 = extractvalue { double, double } %47, 0
  store double %48, ptr %5, align 16
  %49 = getelementptr inbounds i8, ptr %5, i64 8
  %50 = extractvalue { double, double } %47, 1
  store double %50, ptr %49, align 8
  %51 = call { double, double } @_ZNK3JPH4Quat10ConjugatedEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %52 = extractvalue { double, double } %51, 0
  store double %52, ptr %4, align 16
  %53 = getelementptr inbounds i8, ptr %4, i64 8
  %54 = extractvalue { double, double } %51, 1
  store double %54, ptr %53, align 8
  %55 = load ptr, ptr %45, align 8, !tbaa !30
  %56 = call { double, double } @_ZNK3JPH4Body17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(122) %55)
  %57 = extractvalue { double, double } %56, 0
  %58 = extractvalue { double, double } %56, 1
  %59 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %4, double %57, double %58)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %3, align 16
  %61 = getelementptr inbounds i8, ptr %3, i64 8
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %61, align 8
  %63 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  %64 = load float, ptr %15, align 16, !tbaa !5
  %65 = fcmp ogt float %64, 0.000000e+00
  %66 = fcmp olt float %63, 0xBFB99999A0000000
  %or.cond = and i1 %66, %65
  br i1 %or.cond, label %70, label %67

67:                                               ; preds = %44
  %68 = fcmp olt float %64, 0.000000e+00
  %69 = fcmp ogt float %63, 0x3FB99999A0000000
  %or.cond3 = and i1 %69, %68
  br i1 %or.cond3, label %70, label %71

70:                                               ; preds = %67, %44
  store float 0.000000e+00, ptr %15, align 16, !tbaa !5
  store float 1.000000e+00, ptr %16, align 4, !tbaa !22
  br label %72

71:                                               ; preds = %67
  store float %64, ptr %39, align 4, !tbaa !29
  br label %72

72:                                               ; preds = %70, %71, %38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  store float 0.000000e+00, ptr %6, align 4, !tbaa !31
  %73 = load ptr, ptr %17, align 8, !tbaa !23
  %74 = load ptr, ptr %73, align 8, !tbaa !27
  %75 = getelementptr inbounds i8, ptr %74, i64 40
  %76 = load ptr, ptr %75, align 8
  %77 = call noundef zeroext i1 %76(ptr noundef nonnull align 8 dereferenceable(8) %73, i32 noundef 48)
  br i1 %77, label %78, label %79

78:                                               ; preds = %72
  store float -1.000000e+00, ptr %6, align 4, !tbaa !31
  br label %86

79:                                               ; preds = %72
  %80 = load ptr, ptr %17, align 8, !tbaa !23
  %81 = load ptr, ptr %80, align 8, !tbaa !27
  %82 = getelementptr inbounds i8, ptr %81, i64 40
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef zeroext i1 %83(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 noundef 49)
  br i1 %84, label %85, label %86

85:                                               ; preds = %79
  store float 1.000000e+00, ptr %6, align 4, !tbaa !31
  br label %86

86:                                               ; preds = %79, %85, %78
  %87 = phi float [ 0.000000e+00, %79 ], [ 1.000000e+00, %85 ], [ -1.000000e+00, %78 ]
  %88 = getelementptr inbounds i8, ptr %0, i64 232
  %89 = load float, ptr %88, align 8, !tbaa !32
  %90 = fcmp ogt float %87, %89
  br i1 %90, label %91, label %96

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  %92 = load float, ptr %1, align 16, !tbaa !33
  %93 = call float @llvm.fmuladd.f32(float %92, float 4.000000e+00, float %89)
  store float %93, ptr %7, align 4, !tbaa !31
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %95 = load float, ptr %94, align 4, !tbaa !31
  store float %95, ptr %88, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %103

96:                                               ; preds = %86
  %97 = fcmp olt float %87, %89
  br i1 %97, label %98, label %103

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  %99 = load float, ptr %1, align 16, !tbaa !33
  %100 = call float @llvm.fmuladd.f32(float %99, float -4.000000e+00, float %89)
  store float %100, ptr %8, align 4, !tbaa !31
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %102 = load float, ptr %101, align 4, !tbaa !31
  store float %102, ptr %88, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  br label %103

103:                                              ; preds = %96, %98, %91
  %104 = load float, ptr %16, align 4, !tbaa !22
  %105 = fcmp ogt float %104, 0.000000e+00
  br i1 %105, label %106, label %157

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %107 = getelementptr inbounds i8, ptr %0, i64 16
  %108 = load ptr, ptr %107, align 16, !tbaa !34
  %109 = call { double, double } @_ZNK3JPH13PhysicsSystem10GetGravityEv(ptr noundef nonnull align 16 dereferenceable(1172) %108)
  %110 = extractvalue { double, double } %109, 0
  store double %110, ptr %11, align 16
  %111 = getelementptr inbounds i8, ptr %11, i64 8
  %112 = extractvalue { double, double } %109, 1
  store double %112, ptr %111, align 8
  %113 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %114 = extractvalue { double, double } %113, 0
  store double %114, ptr %10, align 16
  %115 = getelementptr inbounds i8, ptr %10, i64 8
  %116 = extractvalue { double, double } %113, 1
  store double %116, ptr %115, align 8
  %117 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %118 = extractvalue { double, double } %117, 0
  store double %118, ptr %9, align 16
  %119 = getelementptr inbounds i8, ptr %9, i64 8
  %120 = extractvalue { double, double } %117, 1
  store double %120, ptr %119, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #9
  %121 = getelementptr inbounds i8, ptr %0, i64 136
  %122 = load ptr, ptr %121, align 8, !tbaa !30
  %123 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %122)
  %124 = extractvalue { double, double } %123, 0
  store double %124, ptr %12, align 16
  %125 = getelementptr inbounds i8, ptr %12, i64 8
  %126 = extractvalue { double, double } %123, 1
  store double %126, ptr %125, align 8
  %127 = getelementptr inbounds i8, ptr %0, i64 144
  %128 = call noundef ptr @_ZNK3JPH3RefINS_17VehicleConstraintEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %127)
  %129 = call { double, double } @_ZNK3JPH17VehicleConstraint10GetLocalUpEv(ptr noundef nonnull align 16 dereferenceable(408) %128)
  %130 = extractvalue { double, double } %129, 0
  %131 = extractvalue { double, double } %129, 1
  %132 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %12, double %130, double %131)
  %133 = extractvalue { double, double } %132, 0
  %134 = extractvalue { double, double } %132, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  %135 = load ptr, ptr %121, align 8, !tbaa !30
  %136 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %135)
  %137 = extractvalue { double, double } %136, 0
  store double %137, ptr %13, align 16
  %138 = getelementptr inbounds i8, ptr %13, i64 8
  %139 = extractvalue { double, double } %136, 1
  store double %139, ptr %138, align 8
  %140 = call noundef ptr @_ZNK3JPH3RefINS_17VehicleConstraintEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %127)
  %141 = call { double, double } @_ZNK3JPH17VehicleConstraint15GetLocalForwardEv(ptr noundef nonnull align 16 dereferenceable(408) %140)
  %142 = extractvalue { double, double } %141, 0
  %143 = extractvalue { double, double } %141, 1
  %144 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %13, double %142, double %143)
  %145 = extractvalue { double, double } %144, 0
  %146 = extractvalue { double, double } %144, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %147 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %133, double %134)
  %148 = extractvalue { double, double } %147, 0
  store double %148, ptr %14, align 16
  %149 = getelementptr inbounds i8, ptr %14, i64 8
  %150 = extractvalue { double, double } %147, 1
  store double %150, ptr %149, align 8
  %151 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %145, double %146)
  %152 = call noundef float @_ZSt3absf(float noundef %151)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  %153 = fsub float 1.000000e+00, %152
  %154 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %153)
  %155 = load float, ptr %16, align 4, !tbaa !22
  %156 = fmul float %154, %155
  store float %156, ptr %16, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  br label %157

157:                                              ; preds = %106, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  ret void
}

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

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

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

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

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

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

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

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

; 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 { double, double } @_ZNK3JPH17VehicleConstraint10GetLocalUpEv(ptr noundef nonnull align 16 dereferenceable(408)) local_unnamed_addr #8 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 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 #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !18, i64 224}
!6 = !{!"_ZTS14MotorcycleTest", !7, i64 0, !9, i64 136, !20, i64 144, !21, i64 160, !18, i64 224, !18, i64 228, !18, i64 232, !18, i64 236}
!7 = !{!"_ZTS11VehicleTest", !8, i64 0, !19, i64 112}
!8 = !{!"_ZTS4Test", !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !12, i64 48, !13, i64 56}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"bool", !10, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !9, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !9, i64 48}
!15 = !{!"long", !10, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !9, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !10, i64 0}
!19 = !{!"_ZTSN3JPH5ArrayIN11VehicleTest4LineENS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !9, i64 16}
!20 = !{!"_ZTSN3JPH3RefINS_17VehicleConstraintEEE", !9, i64 0}
!21 = !{!"_ZTSN3JPH5Mat44E", !10, i64 0}
!22 = !{!6, !18, i64 236}
!23 = !{!24, !9, i64 8}
!24 = !{!"_ZTSN4Test18ProcessInputParamsE", !18, i64 0, !9, i64 8, !25, i64 16}
!25 = !{!"_ZTS11CameraState", !26, i64 0, !26, i64 16, !26, i64 32, !18, i64 48}
!26 = !{!"_ZTSN3JPH4Vec3E", !10, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !11, i64 0}
!29 = !{!6, !18, i64 228}
!30 = !{!6, !9, i64 136}
!31 = !{!18, !18, i64 0}
!32 = !{!6, !18, i64 232}
!33 = !{!24, !18, i64 0}
!34 = !{!8, !9, i64 16}


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