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

; 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::PhysicsSystem" = type { %"class.Raz::System", %"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 }>
%"struct.Raz::FrameTimeInfo" = type { float, float, i32, float }
%"class.Raz::RigidBody" = type { %"class.Raz::Component", float, float, float, %"class.Raz::Vector", %"class.Raz::Vector", %"class.Raz::Vector" }
%"class.Raz::Component" = type { ptr }

; 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 noundef zeroext i1 @_ZN3Raz13PhysicsSystem6updateERKNS_13FrameTimeInfoE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(16) %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.Raz::Vector", align 4
  %14 = alloca %"class.Raz::Vector", align 4
  %15 = alloca %"class.Raz::Vector", align 4
  %16 = alloca { <2 x float>, float }, align 8
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca %"class.Raz::Vector", align 4
  %20 = alloca %"class.Raz::Vector", align 4
  %21 = alloca %"class.Raz::Vector", align 4
  %22 = alloca { <2 x float>, float }, align 8
  %23 = alloca %"class.Raz::Vector", align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca { <2 x float>, float }, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.Raz::Vector", align 4
  %28 = alloca %"class.Raz::Vector", align 4
  %29 = alloca %"class.Raz::Vector", align 4
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %34 = getelementptr inbounds %"class.Raz::PhysicsSystem", ptr %33, i32 0, i32 2
  %35 = load float, ptr %34, align 4, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %36, i32 0, i32 3
  %38 = load float, ptr %37, align 4, !tbaa !27
  %39 = call noundef float @_ZSt3powff(float noundef %35, float noundef %38)
  store float %39, ptr %5, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !30
  br label %40

40:                                               ; preds = %135, %2
  %41 = load i32, ptr %6, align 4, !tbaa !30
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !31
  %45 = icmp slt i32 %41, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %40
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %138

47:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %48 = getelementptr inbounds %"class.Raz::System", ptr %33, i32 0, i32 1
  store ptr %48, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  br label %55

55:                                               ; preds = %132, %47
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %56, label %58, label %57

57:                                               ; preds = %55
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %134

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %60, ptr %11, align 8, !tbaa !5
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = call noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80) %61) #7
  br i1 %62, label %63, label %66

63:                                               ; preds = %58
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9RigidBodyEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %64)
  br i1 %65, label %67, label %66

66:                                               ; preds = %63, %58
  store i32 6, ptr %7, align 4
  br label %129

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

73:                                               ; preds = %67
  store i32 6, ptr %7, align 4
  br label %126

74:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = call noundef float @_ZNK3Raz9RigidBody7getMassEv(ptr noundef nonnull align 8 dereferenceable(56) %75) #7
  %77 = getelementptr inbounds %"class.Raz::PhysicsSystem", ptr %33, i32 0, i32 1
  %78 = call { <2 x float>, float } @_ZN3RazmlIfLm3EEENS_6VectorIT_XT0_EEES2_RKS3_(float noundef %76, ptr noundef nonnull align 4 dereferenceable(12) %77) #7
  %79 = getelementptr inbounds %"class.Raz::Vector", ptr %15, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::array", ptr %79, i32 0, i32 0
  store { <2 x float>, float } %78, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 8 %16, i64 12, i1 false)
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody9getForcesEv(ptr noundef nonnull align 8 dereferenceable(56) %81) #7
  %83 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %82) #7
  %84 = getelementptr inbounds %"class.Raz::Vector", ptr %14, i32 0, i32 0
  %85 = getelementptr inbounds %"struct.std::array", ptr %84, i32 0, i32 0
  store { <2 x float>, float } %83, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 8 %17, i64 12, i1 false)
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = call noundef float @_ZNK3Raz9RigidBody10getInvMassEv(ptr noundef nonnull align 8 dereferenceable(56) %86) #7
  %88 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef %87) #7
  %89 = getelementptr inbounds %"class.Raz::Vector", ptr %13, i32 0, i32 0
  %90 = getelementptr inbounds %"struct.std::array", ptr %89, i32 0, i32 0
  store { <2 x float>, float } %88, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 8 %18, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody11getVelocityEv(ptr noundef nonnull align 8 dereferenceable(56) %91) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %92, i64 12, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #7
  %93 = load float, ptr %5, align 4, !tbaa !29
  %94 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %19, float noundef %93) #7
  %95 = getelementptr inbounds %"class.Raz::Vector", ptr %21, i32 0, i32 0
  %96 = getelementptr inbounds %"struct.std::array", ptr %95, i32 0, i32 0
  store { <2 x float>, float } %94, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %96, ptr align 8 %22, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %97, i32 0, i32 3
  %99 = load float, ptr %98, align 4, !tbaa !27
  %100 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %99) #7
  %101 = getelementptr inbounds %"class.Raz::Vector", ptr %23, i32 0, i32 0
  %102 = getelementptr inbounds %"struct.std::array", ptr %101, i32 0, i32 0
  store { <2 x float>, float } %100, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %102, ptr align 8 %24, i64 12, i1 false)
  %103 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %23) #7
  %104 = getelementptr inbounds %"class.Raz::Vector", ptr %20, i32 0, i32 0
  %105 = getelementptr inbounds %"struct.std::array", ptr %104, i32 0, i32 0
  store { <2 x float>, float } %103, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 8 %25, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #7
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN3Raz9RigidBody11setVelocityERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %106, ptr noundef nonnull align 4 dereferenceable(12) %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %107)
  store ptr %108, ptr %26, align 8, !tbaa !5
  %109 = load ptr, ptr %26, align 8, !tbaa !5
  %110 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56) %109)
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.Raz::RigidBody", ptr %111, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %112, ptr align 4 %110, i64 12, i1 false), !tbaa.struct !32
  %113 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #7
  %114 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %20) #7
  %115 = getelementptr inbounds %"class.Raz::Vector", ptr %29, i32 0, i32 0
  %116 = getelementptr inbounds %"struct.std::array", ptr %115, i32 0, i32 0
  store { <2 x float>, float } %114, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %116, ptr align 8 %30, i64 12, i1 false)
  %117 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %29, float noundef 5.000000e-01) #7
  %118 = getelementptr inbounds %"class.Raz::Vector", ptr %28, i32 0, i32 0
  %119 = getelementptr inbounds %"struct.std::array", ptr %118, i32 0, i32 0
  store { <2 x float>, float } %117, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %119, ptr align 8 %31, i64 12, i1 false)
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.Raz::FrameTimeInfo", ptr %120, i32 0, i32 3
  %122 = load float, ptr %121, align 4, !tbaa !27
  %123 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %28, float noundef %122) #7
  %124 = getelementptr inbounds %"class.Raz::Vector", ptr %27, i32 0, i32 0
  %125 = getelementptr inbounds %"struct.std::array", ptr %124, i32 0, i32 0
  store { <2 x float>, float } %123, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %125, ptr align 8 %32, i64 12, i1 false)
  call void @_ZN3Raz9Transform9translateERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %113, ptr noundef nonnull align 4 dereferenceable(12) %27)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  store i32 0, ptr %7, align 4
  br label %126

126:                                              ; preds = %74, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %127 = load i32, ptr %7, align 4
  switch i32 %127, label %129 [
    i32 0, label %128
  ]

128:                                              ; preds = %126
  store i32 0, ptr %7, align 4
  br label %129

129:                                              ; preds = %128, %126, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %130 = load i32, ptr %7, align 4
  switch i32 %130, label %139 [
    i32 0, label %131
    i32 6, label %132
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131, %129
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %55

134:                                              ; preds = %57
  call void @_ZN3Raz13PhysicsSystem16solveConstraintsEv(ptr noundef nonnull align 8 dereferenceable(88) %33)
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %6, align 4, !tbaa !30
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %6, align 4, !tbaa !30
  br label %40, !llvm.loop !34

138:                                              ; preds = %46
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret i1 true

139:                                              ; preds = %129
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 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)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9RigidBodyEEEbv(ptr noundef nonnull align 8 dereferenceable(80)) #3 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)) #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz9Transform9translateERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(12)) #4 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)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !26, i64 84}
!10 = !{!"_ZTSN3Raz13PhysicsSystemE", !11, i64 0, !24, i64 72, !26, i64 84}
!11 = !{!"_ZTSN3Raz6SystemE", !12, i64 8, !16, i64 32}
!12 = !{!"_ZTSSt6vectorIPN3Raz6EntityESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN3Raz6EntityESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSN3Raz6BitsetE", !17, i64 0}
!17 = !{!"_ZTSSt6vectorIbSaIbEE", !18, i64 0}
!18 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !19, i64 0}
!19 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !21, i64 0, !21, i64 16, !6, i64 32}
!21 = !{!"_ZTSSt13_Bit_iterator", !22, i64 0}
!22 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !23, i64 8}
!23 = !{!"int", !7, i64 0}
!24 = !{!"_ZTSN3Raz6VectorIfLm3EEE", !25, i64 0}
!25 = !{!"_ZTSSt5arrayIfLm3EE", !7, i64 0}
!26 = !{!"float", !7, i64 0}
!27 = !{!28, !26, i64 12}
!28 = !{!"_ZTSN3Raz13FrameTimeInfoE", !26, i64 0, !26, i64 4, !23, i64 8, !26, i64 12}
!29 = !{!26, !26, i64 0}
!30 = !{!23, !23, i64 0}
!31 = !{!28, !23, i64 8}
!32 = !{i64 0, i64 12, !33}
!33 = !{!7, !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; 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] }

; 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 noundef zeroext i1 @_ZN3Raz13PhysicsSystem6updateERKNS_13FrameTimeInfoE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(16) %1) unnamed_addr #1 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.Raz::Vector", align 8
  %6 = alloca %"class.Raz::Vector", align 8
  %7 = alloca %"class.Raz::Vector", align 8
  %8 = alloca %"class.Raz::Vector", align 4
  %9 = alloca %"class.Raz::Vector", align 8
  %10 = alloca %"class.Raz::Vector", align 8
  %11 = alloca %"class.Raz::Vector", align 8
  %12 = alloca %"class.Raz::Vector", align 8
  %13 = alloca %"class.Raz::Vector", align 8
  %14 = alloca %"class.Raz::Vector", align 8
  %15 = getelementptr inbounds i8, ptr %0, i64 84
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %1, i64 12
  %18 = load float, ptr %17, align 4, !tbaa !26
  %19 = tail call noundef float @_ZSt3powff(float noundef %16, float noundef %18)
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i32, ptr %20, align 4, !tbaa !28
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph58, label %._crit_edge59

.lr.ph58:                                         ; preds = %2
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  br label %25

._crit_edge59:                                    ; preds = %._crit_edge, %2
  ret i1 true

25:                                               ; preds = %.lr.ph58, %._crit_edge
  %.056 = phi i32 [ 0, %.lr.ph58 ], [ %29, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %26 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %26, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %27 = call ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %27, ptr %4, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %28, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %60, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN3Raz13PhysicsSystem16solveConstraintsEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %29 = add nuw nsw i32 %.056, 1
  %30 = load i32, ptr %20, align 4, !tbaa !28
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %25, label %._crit_edge59, !llvm.loop !29

.lr.ph:                                           ; preds = %25, %60
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %33 = load ptr, ptr %32, align 8, !tbaa !31
  %34 = call noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80) %33) #7
  br i1 %34, label %35, label %60

35:                                               ; preds = %.lr.ph
  %36 = call noundef zeroext i1 @_ZNK3Raz6Entity12hasComponentINS_9RigidBodyEEEbv(ptr noundef nonnull align 8 dereferenceable(80) %33)
  br i1 %36, label %37, label %60

37:                                               ; preds = %35
  %38 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9RigidBodyEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %33)
  %39 = call noundef float @_ZNK3Raz9RigidBody7getMassEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #7
  %40 = fcmp ugt float %39, 0.000000e+00
  br i1 %40, label %41, label %60

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %42 = call noundef float @_ZNK3Raz9RigidBody7getMassEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #7
  %43 = call { <2 x float>, float } @_ZN3RazmlIfLm3EEENS_6VectorIT_XT0_EEES2_RKS3_(float noundef %42, ptr noundef nonnull align 4 dereferenceable(12) %24) #7
  %.fca.0.extract30 = extractvalue { <2 x float>, float } %43, 0
  %.fca.1.extract31 = extractvalue { <2 x float>, float } %43, 1
  store <2 x float> %.fca.0.extract30, ptr %7, align 8
  store float %.fca.1.extract31, ptr %.sroa.233.0..sroa_idx, align 8
  %44 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody9getForcesEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #7
  %45 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %44) #7
  %.fca.0.extract26 = extractvalue { <2 x float>, float } %45, 0
  %.fca.1.extract27 = extractvalue { <2 x float>, float } %45, 1
  store <2 x float> %.fca.0.extract26, ptr %6, align 8
  store float %.fca.1.extract27, ptr %.sroa.229.0..sroa_idx, align 8
  %46 = call noundef float @_ZNK3Raz9RigidBody10getInvMassEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #7
  %47 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %46) #7
  %.fca.0.extract22 = extractvalue { <2 x float>, float } %47, 0
  %.fca.1.extract23 = extractvalue { <2 x float>, float } %47, 1
  store <2 x float> %.fca.0.extract22, ptr %5, align 8
  store float %.fca.1.extract23, ptr %.sroa.225.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9RigidBody11getVelocityEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %48, i64 12, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  %49 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef %19) #7
  %.fca.0.extract18 = extractvalue { <2 x float>, float } %49, 0
  %.fca.1.extract19 = extractvalue { <2 x float>, float } %49, 1
  store <2 x float> %.fca.0.extract18, ptr %10, align 8
  store float %.fca.1.extract19, ptr %.sroa.221.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  %50 = load float, ptr %17, align 4, !tbaa !26
  %51 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %50) #7
  %.fca.0.extract14 = extractvalue { <2 x float>, float } %51, 0
  %.fca.1.extract15 = extractvalue { <2 x float>, float } %51, 1
  store <2 x float> %.fca.0.extract14, ptr %11, align 8
  store float %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  %52 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  %.fca.0.extract10 = extractvalue { <2 x float>, float } %52, 0
  %.fca.1.extract11 = extractvalue { <2 x float>, float } %52, 1
  store <2 x float> %.fca.0.extract10, ptr %9, align 8
  store float %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @_ZN3Raz9RigidBody11setVelocityERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  %53 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN3Raz6Entity12getComponentINS_9TransformEEERT_v(ptr noundef nonnull align 8 dereferenceable(80) %33)
  %54 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz9Transform11getPositionEv(ptr noundef nonnull align 8 dereferenceable(56) %53)
  %55 = getelementptr inbounds i8, ptr %38, i64 44
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %54, i64 12, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  %56 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEplERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %56, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %56, 1
  store <2 x float> %.fca.0.extract5, ptr %14, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %57 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef 5.000000e-01) #7
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %57, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %57, 1
  store <2 x float> %.fca.0.extract1, ptr %13, align 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %58 = load float, ptr %17, align 4, !tbaa !26
  %59 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EEmlEf(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %58) #7
  %.fca.0.extract = extractvalue { <2 x float>, float } %59, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %59, 1
  store <2 x float> %.fca.0.extract, ptr %12, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN3Raz9Transform9translateERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56) %53, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  br label %60

60:                                               ; preds = %41, %37, %.lr.ph, %35
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN3Raz6EntityESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %62, label %.lr.ph, label %._crit_edge
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN3Raz6EntityESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3Raz6Entity9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 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 #3 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 #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz9Transform9translateERKNS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 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 #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !25, i64 84}
!6 = !{!"_ZTSN3Raz13PhysicsSystemE", !7, i64 0, !23, i64 72, !25, i64 84}
!7 = !{!"_ZTSN3Raz6SystemE", !8, i64 8, !15, i64 32}
!8 = !{!"_ZTSSt6vectorIPN3Raz6EntityESaIS2_EE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseIPN3Raz6EntityESaIS2_EE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSN3Raz6BitsetE", !16, i64 0}
!16 = !{!"_ZTSSt6vectorIbSaIbEE", !17, i64 0}
!17 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !18, i64 0}
!18 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !20, i64 0, !20, i64 16, !12, i64 32}
!20 = !{!"_ZTSSt13_Bit_iterator", !21, i64 0}
!21 = !{!"_ZTSSt18_Bit_iterator_base", !12, i64 0, !22, i64 8}
!22 = !{!"int", !13, i64 0}
!23 = !{!"_ZTSN3Raz6VectorIfLm3EEE", !24, i64 0}
!24 = !{!"_ZTSSt5arrayIfLm3EE", !13, i64 0}
!25 = !{!"float", !13, i64 0}
!26 = !{!27, !25, i64 12}
!27 = !{!"_ZTSN3Raz13FrameTimeInfoE", !25, i64 0, !25, i64 4, !22, i64 8, !25, i64 12}
!28 = !{!27, !22, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!12, !12, i64 0}
!32 = !{i64 0, i64 12, !33}
!33 = !{!13, !13, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass