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

; 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.21 }
%union.anon.21 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%class.VehicleConstraintTest = type <{ %class.VehicleTest, ptr, %"class.JPH::Ref", [3 x %"class.JPH::Ref.4"], %"class.JPH::Mat44", float, float, float, float, float, [12 x i8] }>
%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::Ref.4" = 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: mustprogress uwtable
define dso_local void @_ZN21VehicleConstraintTest12ProcessInputERKN4Test18ProcessInputParamsE(ptr noundef nonnull align 16 dereferenceable(260) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #1 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
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  store float 0.000000e+00, ptr %11, align 16, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %12, i32 0, i32 1
  %14 = load ptr, ptr %13, align 8, !tbaa !23
  %15 = load ptr, ptr %14, align 8, !tbaa !27
  %16 = getelementptr inbounds ptr, ptr %15, i64 5
  %17 = load ptr, ptr %16, align 8
  %18 = call noundef zeroext i1 %17(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 50)
  br i1 %18, label %19, label %21

19:                                               ; preds = %2
  %20 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  store float 1.000000e+00, ptr %20, align 16, !tbaa !9
  br label %32

21:                                               ; preds = %2
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !23
  %25 = load ptr, ptr %24, align 8, !tbaa !27
  %26 = getelementptr inbounds ptr, ptr %25, i64 5
  %27 = load ptr, ptr %26, align 8
  %28 = call noundef zeroext i1 %27(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 51)
  br i1 %28, label %29, label %31

29:                                               ; preds = %21
  %30 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  store float -1.000000e+00, ptr %30, align 16, !tbaa !9
  br label %31

31:                                               ; preds = %29, %21
  br label %32

32:                                               ; preds = %31, %19
  %33 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 8
  store float 0.000000e+00, ptr %33, align 4, !tbaa !29
  %34 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 6
  %35 = load float, ptr %34, align 4, !tbaa !30
  %36 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  %37 = load float, ptr %36, align 16, !tbaa !9
  %38 = fmul float %35, %37
  %39 = fcmp olt float %38, 0.000000e+00
  br i1 %39, label %40, label %101

40:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %41 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !31
  %43 = call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %42)
  %44 = getelementptr inbounds %"class.JPH::Quat", ptr %8, i32 0, i32 0
  %45 = getelementptr inbounds %"class.JPH::Vec4", ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %union.anon, ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %48 = extractvalue { double, double } %43, 0
  store double %48, ptr %47, align 16
  %49 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %50 = extractvalue { double, double } %43, 1
  store double %50, ptr %49, align 8
  %51 = call { double, double } @_ZNK3JPH4Quat10ConjugatedEv(ptr noundef nonnull align 16 dereferenceable(16) %8)
  %52 = getelementptr inbounds %"class.JPH::Quat", ptr %7, i32 0, i32 0
  %53 = getelementptr inbounds %"class.JPH::Vec4", ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %union.anon, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %56 = extractvalue { double, double } %51, 0
  store double %56, ptr %55, align 16
  %57 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %58 = extractvalue { double, double } %51, 1
  store double %58, ptr %57, align 8
  %59 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !31
  %61 = call { double, double } @_ZNK3JPH4Body17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(122) %60)
  %62 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %63 = getelementptr inbounds %union.anon.21, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %65 = extractvalue { double, double } %61, 0
  store double %65, ptr %64, align 16
  %66 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %67 = extractvalue { double, double } %61, 1
  store double %67, ptr %66, align 8
  %68 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %69 = load double, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %71 = load double, ptr %70, align 8
  %72 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %7, double %69, double %71)
  %73 = getelementptr inbounds %"class.JPH::Vec3", ptr %6, i32 0, i32 0
  %74 = getelementptr inbounds %union.anon.21, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %76 = extractvalue { double, double } %72, 0
  store double %76, ptr %75, align 16
  %77 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %78 = extractvalue { double, double } %72, 1
  store double %78, ptr %77, align 8
  %79 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  store float %79, ptr %5, align 4, !tbaa !32
  %80 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  %81 = load float, ptr %80, align 16, !tbaa !9
  %82 = fcmp ogt float %81, 0.000000e+00
  br i1 %82, label %83, label %86

83:                                               ; preds = %40
  %84 = load float, ptr %5, align 4, !tbaa !32
  %85 = fcmp olt float %84, 0xBFB99999A0000000
  br i1 %85, label %93, label %86

86:                                               ; preds = %83, %40
  %87 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  %88 = load float, ptr %87, align 16, !tbaa !9
  %89 = fcmp olt float %88, 0.000000e+00
  br i1 %89, label %90, label %96

90:                                               ; preds = %86
  %91 = load float, ptr %5, align 4, !tbaa !32
  %92 = fcmp ogt float %91, 0x3FB99999A0000000
  br i1 %92, label %93, label %96

93:                                               ; preds = %90, %83
  %94 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  store float 0.000000e+00, ptr %94, align 16, !tbaa !9
  %95 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 8
  store float 1.000000e+00, ptr %95, align 4, !tbaa !29
  br label %100

96:                                               ; preds = %90, %86
  %97 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  %98 = load float, ptr %97, align 16, !tbaa !9
  %99 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 6
  store float %98, ptr %99, align 4, !tbaa !30
  br label %100

100:                                              ; preds = %96, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %101

101:                                              ; preds = %100, %32
  %102 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 9
  store float 0.000000e+00, ptr %102, align 16, !tbaa !33
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !23
  %106 = load ptr, ptr %105, align 8, !tbaa !27
  %107 = getelementptr inbounds ptr, ptr %106, i64 5
  %108 = load ptr, ptr %107, align 8
  %109 = call noundef zeroext i1 %108(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef 27)
  br i1 %109, label %110, label %113

110:                                              ; preds = %101
  %111 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 5
  store float 0.000000e+00, ptr %111, align 16, !tbaa !9
  %112 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 9
  store float 1.000000e+00, ptr %112, align 16, !tbaa !33
  br label %113

113:                                              ; preds = %110, %101
  %114 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 7
  store float 0.000000e+00, ptr %114, align 8, !tbaa !34
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !23
  %118 = load ptr, ptr %117, align 8, !tbaa !27
  %119 = getelementptr inbounds ptr, ptr %118, i64 5
  %120 = load ptr, ptr %119, align 8
  %121 = call noundef zeroext i1 %120(ptr noundef nonnull align 8 dereferenceable(8) %117, i32 noundef 48)
  br i1 %121, label %122, label %124

122:                                              ; preds = %113
  %123 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 7
  store float -1.000000e+00, ptr %123, align 8, !tbaa !34
  br label %135

124:                                              ; preds = %113
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !23
  %128 = load ptr, ptr %127, align 8, !tbaa !27
  %129 = getelementptr inbounds ptr, ptr %128, i64 5
  %130 = load ptr, ptr %129, align 8
  %131 = call noundef zeroext i1 %130(ptr noundef nonnull align 8 dereferenceable(8) %127, i32 noundef 49)
  br i1 %131, label %132, label %134

132:                                              ; preds = %124
  %133 = getelementptr inbounds %class.VehicleConstraintTest, ptr %10, i32 0, i32 7
  store float 1.000000e+00, ptr %133, align 8, !tbaa !34
  br label %134

134:                                              ; preds = %132, %124
  br label %135

135:                                              ; preds = %134, %122
  ret void
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 240}
!10 = !{!"_ZTS21VehicleConstraintTest", !11, i64 0, !6, i64 136, !21, i64 144, !7, i64 152, !22, i64 176, !19, i64 240, !19, i64 244, !19, i64 248, !19, i64 252, !19, i64 256}
!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 = !{!24, !6, i64 8}
!24 = !{!"_ZTSN4Test18ProcessInputParamsE", !19, i64 0, !6, i64 8, !25, i64 16}
!25 = !{!"_ZTS11CameraState", !26, i64 0, !26, i64 16, !26, i64 32, !19, i64 48}
!26 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}
!29 = !{!10, !19, i64 252}
!30 = !{!10, !19, i64 244}
!31 = !{!10, !6, i64 136}
!32 = !{!19, !19, i64 0}
!33 = !{!10, !19, i64 256}
!34 = !{!10, !19, i64 248}


; 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.21 }
%union.anon.21 = 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: mustprogress uwtable
define dso_local void @_ZN21VehicleConstraintTest12ProcessInputERKN4Test18ProcessInputParamsE(ptr nocapture noundef nonnull align 16 dereferenceable(260) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %1) unnamed_addr #1 align 2 {
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Quat", align 16
  %5 = alloca %"class.JPH::Quat", align 16
  %6 = getelementptr inbounds i8, ptr %0, i64 240
  store float 0.000000e+00, ptr %6, align 16, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !22
  %9 = load ptr, ptr %8, align 8, !tbaa !26
  %10 = getelementptr inbounds i8, ptr %9, i64 40
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef zeroext i1 %11(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 50)
  br i1 %12, label %13, label %14

13:                                               ; preds = %2
  store float 1.000000e+00, ptr %6, align 16, !tbaa !5
  br label %21

14:                                               ; preds = %2
  %15 = load ptr, ptr %7, align 8, !tbaa !22
  %16 = load ptr, ptr %15, align 8, !tbaa !26
  %17 = getelementptr inbounds i8, ptr %16, i64 40
  %18 = load ptr, ptr %17, align 8
  %19 = tail call noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 51)
  br i1 %19, label %20, label %._crit_edge

._crit_edge:                                      ; preds = %14
  %.pre = load float, ptr %6, align 16, !tbaa !5
  br label %21

20:                                               ; preds = %14
  store float -1.000000e+00, ptr %6, align 16, !tbaa !5
  br label %21

21:                                               ; preds = %._crit_edge, %20, %13
  %22 = phi float [ %.pre, %._crit_edge ], [ -1.000000e+00, %20 ], [ 1.000000e+00, %13 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 252
  store float 0.000000e+00, ptr %23, align 4, !tbaa !28
  %24 = getelementptr inbounds i8, ptr %0, i64 244
  %25 = load float, ptr %24, align 4, !tbaa !29
  %26 = fmul float %25, %22
  %27 = fcmp olt float %26, 0.000000e+00
  br i1 %27, label %28, label %56

28:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %29 = getelementptr inbounds i8, ptr %0, i64 136
  %30 = load ptr, ptr %29, align 8, !tbaa !30
  %31 = tail call { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %30)
  %32 = extractvalue { double, double } %31, 0
  store double %32, ptr %5, align 16
  %33 = getelementptr inbounds i8, ptr %5, i64 8
  %34 = extractvalue { double, double } %31, 1
  store double %34, ptr %33, align 8
  %35 = call { double, double } @_ZNK3JPH4Quat10ConjugatedEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %36 = extractvalue { double, double } %35, 0
  store double %36, ptr %4, align 16
  %37 = getelementptr inbounds i8, ptr %4, i64 8
  %38 = extractvalue { double, double } %35, 1
  store double %38, ptr %37, align 8
  %39 = load ptr, ptr %29, align 8, !tbaa !30
  %40 = call { double, double } @_ZNK3JPH4Body17GetLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(122) %39)
  %41 = extractvalue { double, double } %40, 0
  %42 = extractvalue { double, double } %40, 1
  %43 = call { double, double } @_ZNK3JPH4QuatmlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %4, double %41, double %42)
  %44 = extractvalue { double, double } %43, 0
  store double %44, ptr %3, align 16
  %45 = getelementptr inbounds i8, ptr %3, i64 8
  %46 = extractvalue { double, double } %43, 1
  store double %46, ptr %45, align 8
  %47 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %48 = load float, ptr %6, align 16, !tbaa !5
  %49 = fcmp ogt float %48, 0.000000e+00
  %50 = fcmp olt float %47, 0xBFB99999A0000000
  %or.cond = and i1 %50, %49
  br i1 %or.cond, label %54, label %51

51:                                               ; preds = %28
  %52 = fcmp olt float %48, 0.000000e+00
  %53 = fcmp ogt float %47, 0x3FB99999A0000000
  %or.cond3 = and i1 %53, %52
  br i1 %or.cond3, label %54, label %55

54:                                               ; preds = %51, %28
  store float 0.000000e+00, ptr %6, align 16, !tbaa !5
  store float 1.000000e+00, ptr %23, align 4, !tbaa !28
  br label %56

55:                                               ; preds = %51
  store float %48, ptr %24, align 4, !tbaa !29
  br label %56

56:                                               ; preds = %54, %55, %21
  %57 = getelementptr inbounds i8, ptr %0, i64 256
  store float 0.000000e+00, ptr %57, align 16, !tbaa !31
  %58 = load ptr, ptr %7, align 8, !tbaa !22
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = getelementptr inbounds i8, ptr %59, i64 40
  %61 = load ptr, ptr %60, align 8
  %62 = call noundef zeroext i1 %61(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef 27)
  br i1 %62, label %63, label %64

63:                                               ; preds = %56
  store float 0.000000e+00, ptr %6, align 16, !tbaa !5
  store float 1.000000e+00, ptr %57, align 16, !tbaa !31
  br label %64

64:                                               ; preds = %63, %56
  %65 = getelementptr inbounds i8, ptr %0, i64 248
  store float 0.000000e+00, ptr %65, align 8, !tbaa !32
  %66 = load ptr, ptr %7, align 8, !tbaa !22
  %67 = load ptr, ptr %66, align 8, !tbaa !26
  %68 = getelementptr inbounds i8, ptr %67, i64 40
  %69 = load ptr, ptr %68, align 8
  %70 = call noundef zeroext i1 %69(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 noundef 48)
  br i1 %70, label %.sink.split, label %71

71:                                               ; preds = %64
  %72 = load ptr, ptr %7, align 8, !tbaa !22
  %73 = load ptr, ptr %72, align 8, !tbaa !26
  %74 = getelementptr inbounds i8, ptr %73, i64 40
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef zeroext i1 %75(ptr noundef nonnull align 8 dereferenceable(8) %72, i32 noundef 49)
  br i1 %76, label %.sink.split, label %77

.sink.split:                                      ; preds = %71, %64
  %.sink = phi float [ -1.000000e+00, %64 ], [ 1.000000e+00, %71 ]
  store float %.sink, ptr %65, align 8, !tbaa !32
  br label %77

77:                                               ; preds = %.sink.split, %71
  ret void
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 240}
!6 = !{!"_ZTS21VehicleConstraintTest", !7, i64 0, !9, i64 136, !20, i64 144, !10, i64 152, !21, i64 176, !18, i64 240, !18, i64 244, !18, i64 248, !18, i64 252, !18, i64 256}
!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 = !{!23, !9, i64 8}
!23 = !{!"_ZTSN4Test18ProcessInputParamsE", !18, i64 0, !9, i64 8, !24, i64 16}
!24 = !{!"_ZTS11CameraState", !25, i64 0, !25, i64 16, !25, i64 32, !18, i64 48}
!25 = !{!"_ZTSN3JPH4Vec3E", !10, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !11, i64 0}
!28 = !{!6, !18, i64 252}
!29 = !{!6, !18, i64 244}
!30 = !{!6, !9, i64 136}
!31 = !{!6, !18, i64 256}
!32 = !{!6, !18, i64 248}


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