; LLVM IR from Razakhel/RaZ :: src/RaZ/Physics/PhysicsSystem.ll (ZN3Raz13PhysicsSystem16solveConstraintsEv)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Raz::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"class.Raz::Line" = type { %"class.Raz::Shape", %"class.Raz::Vector", %"class.Raz::Vector" }
%"class.Raz::Shape" = type { ptr }
%"class.Raz::Ray" = type { %"class.Raz::Vector", %"class.Raz::Vector", %"class.Raz::Vector" }
%"struct.Raz::RayHit" = type { %"class.Raz::Vector", %"class.Raz::Vector", float }
%"class.Raz::System" = type { ptr, %"class.std::vector", %"class.Raz::Bitset" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl" }
%"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::Bitset" = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.Raz::RigidBody" = type { %"class.Raz::Component", float, float, float, %"class.Raz::Vector", %"class.Raz::Vector", %"class.Raz::Vector" }
%"class.Raz::Component" = type { ptr }

@.str = external hidden unnamed_addr constant [109 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._ZN3Raz13PhysicsSystem16solveConstraintsEv = external hidden unnamed_addr constant [44 x i8], align 1

; 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9RigidBodyEEEbv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9RigidBodyEEERT_v(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz9RigidBody7getMassEv(ptr noundef nonnull align 8 dereferenceable(56)) #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) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody11getVelocityEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz13PhysicsSystem16solveConstraintsEv(ptr noundef nonnull align 8 dereferenceable(88) %0) #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.Raz::Vector", align 4
  %10 = alloca %"class.Raz::Vector", align 4
  %11 = alloca { <2 x float>, float }, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.Raz::Vector", align 4
  %18 = alloca %"class.Raz::Vector", align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.Raz::Line", align 8
  %22 = alloca %"class.Raz::Vector", align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.Raz::Ray", align 4
  %27 = alloca %"struct.Raz::RayHit", align 4
  %28 = alloca %"class.Raz::Vector", align 4
  %29 = alloca %"class.Raz::Vector", align 4
  %30 = alloca %"class.Raz::Vector", align 4
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca { <2 x float>, float }, align 8
  %34 = alloca %"class.Raz::Vector", align 4
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca %"class.Raz::Vector", align 4
  %37 = alloca { <2 x float>, float }, align 8
  %38 = alloca %"class.Raz::Vector", align 4
  %39 = alloca %"class.Raz::Vector", align 4
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %42 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %43 = getelementptr inbounds %"class.Raz::System", ptr %42, i32 0, i32 1
  store ptr %43, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  %46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  br label %50

50:                                               ; preds = %198, %1
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %51, label %53, label %52

52:                                               ; preds = %50
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %200

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  store ptr %55, ptr %7, align 8, !tbaa !5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80) %56) #8
  br i1 %57, label %58, label %61

58:                                               ; preds = %53
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9RigidBodyEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %59)
  br i1 %60, label %62, label %61

61:                                               ; preds = %58, %53
  store i32 3, ptr %6, align 4
  br label %195

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9RigidBodyEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %63)
  store ptr %64, ptr %8, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = call noundef float @_ZNK3Raz9RigidBody7getMassEv(ptr noundef nonnull align 8 dereferenceable(56) %65) #8
  %67 = fcmp ole float %66, 0.000000e+00
  br i1 %67, label %68, label %69

68:                                               ; preds = %62
  store i32 3, ptr %6, align 4
  br label %192

69:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #8
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody11getVelocityEv(ptr noundef nonnull align 8 dereferenceable(56) %70) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %71, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #8
  %72 = call noundef float @_ZNK3Raz6VectorIfLm3EE20computeSquaredLengthIfEET_v(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  %73 = fcmp une float %72, 0.000000e+00
  br i1 %73, label %74, label %78

74:                                               ; preds = %69
  %75 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  %76 = getelementptr inbounds %"class.Raz::Vector", ptr %10, i32 0, i32 0
  %77 = getelementptr inbounds %"struct.std::array", ptr %76, i32 0, i32 0
  store { <2 x float>, float } %75, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 8 %11, i64 12, i1 false)
  br label %79

78:                                               ; preds = %69
  call void @_ZN3Raz6VectorIfLm3EEC2Ef(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00) #8
  br label %79

79:                                               ; preds = %78, %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %80 = getelementptr inbounds %"class.Raz::System", ptr %42, i32 0, i32 1
  store ptr %80, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #8
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #8
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  br label %87

87:                                               ; preds = %188, %79
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %88, label %90, label %89

89:                                               ; preds = %87
  store i32 4, ptr %6, align 4
  br label %190

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  store ptr %92, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = icmp eq ptr %93, %94
  br i1 %95, label %102, label %96

96:                                               ; preds = %90
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = call noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80) %97) #8
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_8ColliderEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %100)
  br i1 %101, label %103, label %102

102:                                              ; preds = %99, %96, %90
  store i32 5, ptr %6, align 4
  br label %186

103:                                              ; preds = %99
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9TransformEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %104)
  br i1 %105, label %106, label %107

106:                                              ; preds = %103
  br label %109

107:                                              ; preds = %103
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 73, ptr noundef @__PRETTY_FUNCTION__._ZN3Raz13PhysicsSystem16solveConstraintsEv) #9
  unreachable

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz6Entity12getComponentINS_8ColliderEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %110)
  store ptr %111, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %112)
  %114 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56) %113)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %114, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.Raz::RigidBody", ptr %115, i32 0, i32 6
  %117 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %116, ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  %118 = getelementptr inbounds %"class.Raz::Vector", ptr %18, i32 0, i32 0
  %119 = getelementptr inbounds %"struct.std::array", ptr %118, i32 0, i32 0
  store { <2 x float>, float } %117, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %119, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %120)
  store ptr %121, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #8
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56) %122)
  %124 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %123, ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  %125 = getelementptr inbounds %"class.Raz::Vector", ptr %22, i32 0, i32 0
  %126 = getelementptr inbounds %"struct.std::array", ptr %125, i32 0, i32 0
  store { <2 x float>, float } %124, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %126, ptr align 8 %23, i64 12, i1 false)
  call void @_ZN3Raz4LineC2ERKNS_6VectorIfLm3EEES4_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #8
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = invoke noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(24) %127, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %129 unwind label %131

129:                                              ; preds = %109
  br i1 %128, label %135, label %130

130:                                              ; preds = %129
  store i32 5, ptr %6, align 4
  br label %184

131:                                              ; preds = %109
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %24, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %25, align 4
  br label %185

135:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 36, ptr %26) #8
  call void @_ZN3Raz3RayC2ERKNS_6VectorIfLm3EEES4_(ptr noundef nonnull align 4 dereferenceable(36) %26, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  call void @llvm.lifetime.start.p0(i64 28, ptr %27) #8
  call void @_ZN3Raz6RayHitC2Ev(ptr noundef nonnull align 4 dereferenceable(28) %27) #8
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = invoke noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_3RayEPNS_6RayHitE(ptr noundef nonnull align 8 dereferenceable(24) %136, ptr noundef nonnull align 4 dereferenceable(36) %26, ptr noundef %27)
          to label %138 unwind label %140

138:                                              ; preds = %135
  br i1 %137, label %144, label %139

139:                                              ; preds = %138
  store i32 5, ptr %6, align 4
  br label %182

140:                                              ; preds = %135
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %24, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %25, align 4
  br label %183

144:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  %145 = getelementptr inbounds %"struct.Raz::RayHit", ptr %27, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #8
  %146 = getelementptr inbounds %"struct.Raz::RayHit", ptr %27, i32 0, i32 1
  %147 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %146, float noundef 0x3F60624DE0000000) #8
  %148 = getelementptr inbounds %"class.Raz::Vector", ptr %30, i32 0, i32 0
  %149 = getelementptr inbounds %"struct.std::array", ptr %148, i32 0, i32 0
  store { <2 x float>, float } %147, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %149, ptr align 8 %31, i64 12, i1 false)
  %150 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %145, ptr noundef nonnull align 4 dereferenceable(12) %30) #8
  %151 = getelementptr inbounds %"class.Raz::Vector", ptr %29, i32 0, i32 0
  %152 = getelementptr inbounds %"struct.std::array", ptr %151, i32 0, i32 0
  store { <2 x float>, float } %150, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %152, ptr align 8 %32, i64 12, i1 false)
  %153 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  %154 = getelementptr inbounds %"class.Raz::Vector", ptr %28, i32 0, i32 0
  %155 = getelementptr inbounds %"struct.std::array", ptr %154, i32 0, i32 0
  store { <2 x float>, float } %153, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %155, ptr align 8 %33, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %"class.Raz::RigidBody", ptr %156, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %157, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !9
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZN3Raz9Transform11setPositionERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %158, ptr noundef nonnull align 4 dereferenceable(12) %28)
          to label %159 unwind label %178

159:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  %160 = getelementptr inbounds %"struct.Raz::RayHit", ptr %27, i32 0, i32 1
  %161 = getelementptr inbounds %"struct.Raz::RayHit", ptr %27, i32 0, i32 1
  %162 = call noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %161) #8
  %163 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %160, float noundef %162) #8
  %164 = getelementptr inbounds %"class.Raz::Vector", ptr %34, i32 0, i32 0
  %165 = getelementptr inbounds %"struct.std::array", ptr %164, i32 0, i32 0
  store { <2 x float>, float } %163, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %165, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  %166 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %34) #8
  %167 = getelementptr inbounds %"class.Raz::Vector", ptr %36, i32 0, i32 0
  %168 = getelementptr inbounds %"struct.std::array", ptr %167, i32 0, i32 0
  store { <2 x float>, float } %166, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %168, ptr align 8 %37, i64 12, i1 false)
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #8
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = call noundef float @_ZNK3Raz9RigidBody13getBouncinessEv(ptr noundef nonnull align 8 dereferenceable(56) %170) #8
  %172 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %34, float noundef %171) #8
  %173 = getelementptr inbounds %"class.Raz::Vector", ptr %39, i32 0, i32 0
  %174 = getelementptr inbounds %"struct.std::array", ptr %173, i32 0, i32 0
  store { <2 x float>, float } %172, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %174, ptr align 8 %40, i64 12, i1 false)
  %175 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %39) #8
  %176 = getelementptr inbounds %"class.Raz::Vector", ptr %38, i32 0, i32 0
  %177 = getelementptr inbounds %"struct.std::array", ptr %176, i32 0, i32 0
  store { <2 x float>, float } %175, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %177, ptr align 8 %41, i64 12, i1 false)
  call void @_ZN3Raz9RigidBody11setVelocityERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %169, ptr noundef nonnull align 4 dereferenceable(12) %38) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  store i32 4, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #8
  br label %182

178:                                              ; preds = %144
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %24, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #8
  br label %183

182:                                              ; preds = %159, %139
  call void @llvm.lifetime.end.p0(i64 28, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %26) #8
  br label %184

183:                                              ; preds = %178, %140
  call void @llvm.lifetime.end.p0(i64 28, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %26) #8
  br label %185

184:                                              ; preds = %182, %130
  call void @_ZN3Raz5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %186

185:                                              ; preds = %183, %131
  call void @_ZN3Raz5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %201

186:                                              ; preds = %184, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %187 = load i32, ptr %6, align 4
  switch i32 %187, label %190 [
    i32 5, label %188
  ]

188:                                              ; preds = %186
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %87

190:                                              ; preds = %186, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %191

191:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #8
  store i32 0, ptr %6, align 4
  br label %192

192:                                              ; preds = %191, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %193 = load i32, ptr %6, align 4
  switch i32 %193, label %195 [
    i32 0, label %194
  ]

194:                                              ; preds = %192
  store i32 0, ptr %6, align 4
  br label %195

195:                                              ; preds = %194, %192, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  %196 = load i32, ptr %6, align 4
  switch i32 %196, label %206 [
    i32 0, label %197
    i32 3, label %198
  ]

197:                                              ; preds = %195
  br label %198

198:                                              ; preds = %197, %195
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  br label %50

200:                                              ; preds = %52
  ret void

201:                                              ; preds = %185
  %202 = load ptr, ptr %24, align 8
  %203 = load i32, ptr %25, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205

206:                                              ; preds = %195
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6VectorIfLm3EE20computeSquaredLengthIfEET_v(ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_8ColliderEEEbv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9TransformEEEbv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz6Entity12getComponentINS_8ColliderEEERT_v(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

declare noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6RayHitC2Ev(ptr noundef nonnull align 4 dereferenceable(28)) unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_3RayEPNS_6RayHitE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(36), ptr noundef) #7

declare void @_ZN3Raz9Transform11setPositionERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(12)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{i64 0, i64 12, !10}
!10 = !{!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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Raz::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"class.Raz::Line" = type { %"class.Raz::Shape", %"class.Raz::Vector", %"class.Raz::Vector" }
%"class.Raz::Shape" = type { ptr }
%"class.Raz::Ray" = type { %"class.Raz::Vector", %"class.Raz::Vector", %"class.Raz::Vector" }
%"struct.Raz::RayHit" = type { %"class.Raz::Vector", %"class.Raz::Vector", float }

@.str = external hidden unnamed_addr constant [109 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._ZN3Raz13PhysicsSystem16solveConstraintsEv = external hidden unnamed_addr constant [44 x i8], align 1

; 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9RigidBodyEEEbv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9RigidBodyEEERT_v(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody11getVelocityEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz13PhysicsSystem16solveConstraintsEv(ptr noundef nonnull align 8 dereferenceable(88) %0) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.Raz::Vector", align 4
  %5 = alloca %"class.Raz::Vector", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.Raz::Vector", align 4
  %9 = alloca %"class.Raz::Vector", align 8
  %10 = alloca %"class.Raz::Line", align 8
  %11 = alloca %"class.Raz::Vector", align 8
  %12 = alloca %"class.Raz::Ray", align 4
  %13 = alloca %"struct.Raz::RayHit", align 4
  %14 = alloca %"class.Raz::Vector", align 8
  %15 = alloca %"class.Raz::Vector", align 8
  %16 = alloca %"class.Raz::Vector", align 8
  %17 = alloca %"class.Raz::Vector", align 8
  %18 = alloca %"class.Raz::Vector", align 8
  %19 = alloca %"class.Raz::Vector", align 8
  %20 = alloca %"class.Raz::Vector", align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %22 = tail call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  store ptr %22, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %23 = tail call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  store ptr %23, ptr %3, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  br i1 %24, label %.lr.ph87, label %._crit_edge

.lr.ph87:                                         ; preds = %1
  %.sroa.249.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %25 = getelementptr inbounds i8, ptr %13, i64 12
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  br label %26

._crit_edge:                                      ; preds = %93, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret void

26:                                               ; preds = %.lr.ph87, %93
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = call noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80) %28) #8
  br i1 %29, label %30, label %93

30:                                               ; preds = %26
  %31 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9RigidBodyEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %28)
  br i1 %31, label %32, label %93

32:                                               ; preds = %30
  %33 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9RigidBodyEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %28)
  %34 = call noundef float @_ZNK3Raz9RigidBody7getMassEv(ptr noundef nonnull align 8 dereferenceable(56) %33) #8
  %35 = fcmp ugt float %34, 0.000000e+00
  br i1 %35, label %36, label %93

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #8
  %37 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody11getVelocityEv(ptr noundef nonnull align 8 dereferenceable(56) %33) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %37, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #8
  %38 = call noundef float @_ZNK3Raz6VectorIfLm3EE20computeSquaredLengthIfEET_v(ptr noundef nonnull align 4 dereferenceable(12) %4) #8
  %39 = fcmp une float %38, 0.000000e+00
  br i1 %39, label %40, label %42

40:                                               ; preds = %36
  %41 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12) %4) #8
  %.fca.0.extract46 = extractvalue { <2 x float>, float } %41, 0
  %.fca.1.extract47 = extractvalue { <2 x float>, float } %41, 1
  store <2 x float> %.fca.0.extract46, ptr %5, align 8
  store float %.fca.1.extract47, ptr %.sroa.249.0..sroa_idx, align 8
  br label %43

42:                                               ; preds = %36
  call void @_ZN3Raz6VectorIfLm3EEC2Ef(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 0.000000e+00) #8
  br label %43

43:                                               ; preds = %42, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %44 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  store ptr %44, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %45 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  store ptr %45, ptr %7, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %46, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %43
  %47 = getelementptr inbounds i8, ptr %33, i64 44
  br label %48

48:                                               ; preds = %.lr.ph, %.thread
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = icmp eq ptr %50, %28
  br i1 %51, label %.thread, label %52

52:                                               ; preds = %48
  %53 = call noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80) %50) #8
  br i1 %53, label %54, label %.thread

54:                                               ; preds = %52
  %55 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_8ColliderEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %50)
  br i1 %55, label %56, label %.thread

56:                                               ; preds = %54
  %57 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9TransformEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %50)
  br i1 %57, label %59, label %58

58:                                               ; preds = %56
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 73, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3Raz13PhysicsSystem16solveConstraintsEv) #9
  unreachable

59:                                               ; preds = %56
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz6Entity12getComponentINS_8ColliderEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %50)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #8
  %61 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %50)
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56) %61)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %62, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %63 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  %.fca.0.extract32 = extractvalue { <2 x float>, float } %63, 0
  %.fca.1.extract33 = extractvalue { <2 x float>, float } %63, 1
  store <2 x float> %.fca.0.extract32, ptr %9, align 8
  store float %.fca.1.extract33, ptr %.sroa.235.0..sroa_idx, align 8
  %64 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %28)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56) %64)
  %66 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  %.fca.0.extract26 = extractvalue { <2 x float>, float } %66, 0
  %.fca.1.extract27 = extractvalue { <2 x float>, float } %66, 1
  store <2 x float> %.fca.0.extract26, ptr %11, align 8
  store float %.fca.1.extract27, ptr %.sroa.229.0..sroa_idx, align 8
  call void @_ZN3Raz4LineC2ERKNS_6VectorIfLm3EEES4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  %67 = invoke noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %68 unwind label %69

68:                                               ; preds = %59
  br i1 %67, label %71, label %.thread76

.thread76:                                        ; preds = %68
  call void @_ZN3Raz5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  br label %.thread

69:                                               ; preds = %59
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %83

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #8
  call void @_ZN3Raz3RayC2ERKNS_6VectorIfLm3EEES4_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %5) #8
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #8
  call void @_ZN3Raz6RayHitC2Ev(ptr noundef nonnull align 4 dereferenceable(28) %13) #8
  %72 = invoke noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_3RayEPNS_6RayHitE(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull %13)
          to label %73 unwind label %74

73:                                               ; preds = %71
  br i1 %72, label %76, label %.thread79

.thread79:                                        ; preds = %73
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #8
  call void @_ZN3Raz5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  br label %.thread

74:                                               ; preds = %71
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %82

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #8
  %77 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %25, float noundef 0x3F60624DE0000000) #8
  %.fca.0.extract22 = extractvalue { <2 x float>, float } %77, 0
  %.fca.1.extract23 = extractvalue { <2 x float>, float } %77, 1
  store <2 x float> %.fca.0.extract22, ptr %16, align 8
  store float %.fca.1.extract23, ptr %.sroa.225.0..sroa_idx, align 8
  %78 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %16) #8
  %.fca.0.extract18 = extractvalue { <2 x float>, float } %78, 0
  %.fca.1.extract19 = extractvalue { <2 x float>, float } %78, 1
  store <2 x float> %.fca.0.extract18, ptr %15, align 8
  store float %.fca.1.extract19, ptr %.sroa.221.0..sroa_idx, align 8
  %79 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  %.fca.0.extract14 = extractvalue { <2 x float>, float } %79, 0
  %.fca.1.extract15 = extractvalue { <2 x float>, float } %79, 1
  store <2 x float> %.fca.0.extract14, ptr %14, align 8
  store float %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 8 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !9
  invoke void @_ZN3Raz9Transform11setPositionERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %64, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %84 unwind label %80

80:                                               ; preds = %76
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  br label %82

82:                                               ; preds = %80, %74
  %.pn = phi { ptr, i32 } [ %81, %80 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #8
  br label %83

83:                                               ; preds = %82, %69
  %.pn.pn = phi { ptr, i32 } [ %.pn, %82 ], [ %70, %69 ]
  call void @_ZN3Raz5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn.pn

84:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #8
  %85 = call noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %25) #8
  %86 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %25, float noundef %85) #8
  %.fca.0.extract10 = extractvalue { <2 x float>, float } %86, 0
  %.fca.1.extract11 = extractvalue { <2 x float>, float } %86, 1
  store <2 x float> %.fca.0.extract10, ptr %17, align 8
  store float %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #8
  %87 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  %.fca.0.extract6 = extractvalue { <2 x float>, float } %87, 0
  %.fca.1.extract7 = extractvalue { <2 x float>, float } %87, 1
  store <2 x float> %.fca.0.extract6, ptr %18, align 8
  store float %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #8
  %88 = call noundef float @_ZNK3Raz9RigidBody13getBouncinessEv(ptr noundef nonnull align 8 dereferenceable(56) %33) #8
  %89 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %88) #8
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %89, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %89, 1
  store <2 x float> %.fca.0.extract2, ptr %20, align 8
  store float %.fca.1.extract3, ptr %.sroa.25.0..sroa_idx, align 8
  %90 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  %.fca.0.extract = extractvalue { <2 x float>, float } %90, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %90, 1
  store <2 x float> %.fca.0.extract, ptr %19, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN3Raz9RigidBody11setVelocityERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #8
  call void @_ZN3Raz5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  br label %.loopexit

.thread:                                          ; preds = %48, %52, %54, %.thread79, %.thread76
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %92, label %48, label %.loopexit

.loopexit:                                        ; preds = %.thread, %43, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  br label %93

93:                                               ; preds = %.loopexit, %32, %26, %30
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  br i1 %95, label %26, label %._crit_edge
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6VectorIfLm3EE20computeSquaredLengthIfEET_v(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_8ColliderEEEbv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9TransformEEEbv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz6Entity12getComponentINS_8ColliderEEERT_v(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmiERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

declare noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6RayHitC2Ev(ptr noundef nonnull align 4 dereferenceable(28)) unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZNK3Raz8Collider10intersectsERKNS_3RayEPNS_6RayHitE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(36), ptr noundef) local_unnamed_addr #7

declare void @_ZN3Raz9Transform11setPositionERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6VectorIfLm3EE3dotIfEET_RKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass