; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qmanifold.ll (ZN9QManifold5SolveEv)

; 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"

%struct.QVector = type { float, float }
%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.QBody::CollisionInfo" = type <{ %struct.QVector, ptr, %struct.QVector, float, [4 x i8] }>
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%class.QManifold = type { %struct.QVector, float, float, i8, ptr, ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.QCollision::Contact" = type <{ %struct.QVector, ptr, %struct.QVector, float, [4 x i8], %"class.std::vector.7", i8, [7 x i8] }>
%class.QWorld = type { %"class.std::vector.68", %"class.std::vector.43", %"class.std::vector.73", %"class.std::vector.78", %"class.std::vector.83", %"class.std::unordered_set.88", %"class.std::vector.104", ptr, i8, %struct.QVector, i8, i8, i32, float, float, float, i32, i32, %"class.std::vector.109" }
%"class.std::vector.68" = type { %"struct.std::_Vector_base.69" }
%"struct.std::_Vector_base.69" = type { %"struct.std::_Vector_base<QJoint *, std::allocator<QJoint *>>::_Vector_impl" }
%"struct.std::_Vector_base<QJoint *, std::allocator<QJoint *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QJoint *, std::allocator<QJoint *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QJoint *, std::allocator<QJoint *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl" }
%"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QSpring *, std::allocator<QSpring *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.73" = type { %"struct.std::_Vector_base.74" }
%"struct.std::_Vector_base.74" = type { %"struct.std::_Vector_base<QRaycast *, std::allocator<QRaycast *>>::_Vector_impl" }
%"struct.std::_Vector_base<QRaycast *, std::allocator<QRaycast *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QRaycast *, std::allocator<QRaycast *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QRaycast *, std::allocator<QRaycast *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.78" = type { %"struct.std::_Vector_base.79" }
%"struct.std::_Vector_base.79" = type { %"struct.std::_Vector_base<QGizmo *, std::allocator<QGizmo *>>::_Vector_impl" }
%"struct.std::_Vector_base<QGizmo *, std::allocator<QGizmo *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QGizmo *, std::allocator<QGizmo *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QGizmo *, std::allocator<QGizmo *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.83" = type { %"struct.std::_Vector_base.84" }
%"struct.std::_Vector_base.84" = type { %"struct.std::_Vector_base<std::vector<QBody *>, std::allocator<std::vector<QBody *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<QBody *>, std::allocator<std::vector<QBody *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<QBody *>, std::allocator<std::vector<QBody *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<QBody *>, std::allocator<std::vector<QBody *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set.88" = type { %"class.std::_Hashtable.89" }
%"class.std::_Hashtable.89" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.104" = type { %"struct.std::_Vector_base.105" }
%"struct.std::_Vector_base.105" = type { %"struct.std::_Vector_base<QManifold, std::allocator<QManifold>>::_Vector_impl" }
%"struct.std::_Vector_base<QManifold, std::allocator<QManifold>>::_Vector_impl" = type { %"struct.std::_Vector_base<QManifold, std::allocator<QManifold>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QManifold, std::allocator<QManifold>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.109" = type { %"struct.std::_Vector_base.110" }
%"struct.std::_Vector_base.110" = type { %"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl" }
%"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QBody *, std::allocator<QBody *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.QBody = type <{ ptr, float, float, ptr, %struct.QVector, %struct.QVector, float, float, %class.QAABB, i32, i8, i8, i8, i8, float, i32, i8, [3 x i8], float, i8, i8, [2 x i8], %struct.QVector, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i32, i32, i32, i8, [3 x i8], %"class.std::function", %"class.std::function", %"class.std::function.0", i8, [7 x i8], %"class.std::vector.2", i32, i8, [3 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.0" = type { %"class.std::_Function_base", ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.QParticle = type <{ float, %struct.QVector, %struct.QVector, %struct.QVector, float, ptr, i8, [3 x i8], %struct.QVector, [4 x i8], %"class.std::vector.12", i8, i8, [2 x i8], %class.QAABB, i8, [7 x i8], %"class.std::unordered_set", %"class.std::unordered_set.23", %"class.std::unordered_set.23", i8, i8, [6 x i8] }>
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl" }
%"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl" = type { %"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_set.23" = type { %"class.std::_Hashtable.24" }
%"class.std::_Hashtable.24" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN9QManifold19GetRelativeVelocityEP9QParticleSt6vectorIS1_SaIS1_EE7QVectorS5_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef, <2 x float>, <2 x float>) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293)) #3 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) #0

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9QManifold5SolveEv(ptr noundef nonnull align 8 dereferenceable(64) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca %struct.QVector, align 4
  %12 = alloca %struct.QVector, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %class.QAABB, align 8
  %17 = alloca %struct.QVector, align 4
  %18 = alloca %struct.QVector, align 4
  %19 = alloca %struct.QVector, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.QVector, align 4
  %23 = alloca %struct.QVector, align 4
  %24 = alloca %struct.QVector, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %struct.QVector, align 4
  %30 = alloca %struct.QVector, align 4
  %31 = alloca %struct.QVector, align 4
  %32 = alloca %struct.QVector, align 4
  %33 = alloca %struct.QVector, align 4
  %34 = alloca %struct.QVector, align 4
  %35 = alloca %struct.QVector, align 4
  %36 = alloca %"class.std::vector.7", align 8
  %37 = alloca %struct.QVector, align 4
  %38 = alloca %struct.QVector, align 4
  %39 = alloca i8, align 1
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca %"struct.QBody::CollisionInfo", align 8
  %43 = alloca %struct.QVector, align 4
  %44 = alloca %struct.QVector, align 4
  %45 = alloca i8, align 1
  %46 = alloca %"struct.QBody::CollisionInfo", align 8
  %47 = alloca i8, align 1
  %48 = alloca %"struct.QBody::CollisionInfo", align 8
  %49 = alloca %"struct.QBody::CollisionInfo", align 8
  %50 = alloca %struct.QVector, align 4
  %51 = alloca %struct.QVector, align 4
  %52 = alloca i8, align 1
  %53 = alloca %"struct.QBody::CollisionInfo", align 8
  %54 = alloca i8, align 1
  %55 = alloca %"struct.QBody::CollisionInfo", align 8
  %56 = alloca i64, align 8
  %57 = alloca i8, align 1
  %58 = alloca i8, align 1
  %59 = alloca %"struct.std::pair", align 8
  %60 = alloca i64, align 8
  %61 = alloca %"struct.std::pair", align 8
  %62 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %63 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %64 = alloca i64, align 8
  %65 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %66 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %67 = alloca %struct.QVector, align 4
  %68 = alloca %struct.QVector, align 4
  %69 = alloca %struct.QVector, align 4
  %70 = alloca float, align 4
  %71 = alloca float, align 4
  %72 = alloca %struct.QVector, align 4
  %73 = alloca %struct.QVector, align 4
  %74 = alloca %struct.QVector, align 4
  %75 = alloca %struct.QVector, align 4
  %76 = alloca %struct.QVector, align 4
  %77 = alloca %struct.QVector, align 4
  %78 = alloca %struct.QVector, align 4
  %79 = alloca %struct.QVector, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %80 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #10
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #10
  store i8 0, ptr %4, align 1, !tbaa !9
  %81 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %82)
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %91

85:                                               ; preds = %1
  %86 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 5
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %87)
  %89 = icmp eq i32 %88, 1
  br i1 %89, label %90, label %91

90:                                               ; preds = %85
  store i8 1, ptr %3, align 1, !tbaa !9
  br label %91

91:                                               ; preds = %90, %85, %1
  %92 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %93)
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %113

96:                                               ; preds = %91
  %97 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 5
  %98 = load ptr, ptr %97, align 8, !tbaa !19
  %99 = call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %98)
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %113

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  %102 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  store ptr %103, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %104 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !19
  store ptr %105, ptr %6, align 8, !tbaa !5
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = call noundef zeroext i1 @_ZN9QSoftBody24GetAreaPreservingEnabledEv(ptr noundef nonnull align 8 dereferenceable(360) %106)
  br i1 %107, label %108, label %112

108:                                              ; preds = %101
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = call noundef zeroext i1 @_ZN9QSoftBody24GetAreaPreservingEnabledEv(ptr noundef nonnull align 8 dereferenceable(360) %109)
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  store i8 1, ptr %4, align 1, !tbaa !9
  br label %112

112:                                              ; preds = %111, %108, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  br label %113

113:                                              ; preds = %112, %96, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  store i32 0, ptr %7, align 4, !tbaa !20
  br label %114

114:                                              ; preds = %638, %113
  %115 = load i32, ptr %7, align 4, !tbaa !20
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 6
  %118 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #10
  %119 = icmp ult i64 %116, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %114
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %642

121:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %122 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 6
  %123 = load i32, ptr %7, align 4, !tbaa !20
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #10
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  store ptr %126, ptr %9, align 8, !tbaa !5
  %127 = load i8, ptr %3, align 1, !tbaa !9, !range !22, !noundef !23
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %134

129:                                              ; preds = %121
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.QCollision::Contact", ptr %130, i32 0, i32 3
  %132 = load float, ptr %131, align 8, !tbaa !24
  %133 = fmul float %132, 0x3FECCCCCC0000000
  store float %133, ptr %131, align 8, !tbaa !24
  br label %143

134:                                              ; preds = %121
  %135 = load i8, ptr %4, align 1, !tbaa !9, !range !22, !noundef !23
  %136 = trunc i8 %135 to i1
  br i1 %136, label %137, label %142

137:                                              ; preds = %134
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.QCollision::Contact", ptr %138, i32 0, i32 3
  %140 = load float, ptr %139, align 8, !tbaa !24
  %141 = fmul float %140, 5.000000e-01
  store float %141, ptr %139, align 8, !tbaa !24
  br label %142

142:                                              ; preds = %137, %134
  br label %143

143:                                              ; preds = %142, %129
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.QCollision::Contact", ptr %144, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  store float 0.000000e+00, ptr %10, align 4, !tbaa !30
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %145, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %147 = load float, ptr %146, align 4, !tbaa !30
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.QCollision::Contact", ptr %148, i32 0, i32 3
  store float %147, ptr %149, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.QCollision::Contact", ptr %150, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %151, i64 8, i1 false), !tbaa.struct !31
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.QCollision::Contact", ptr %152, i32 0, i32 3
  %154 = load float, ptr %153, align 8, !tbaa !24
  %155 = load <2 x float>, ptr %12, align 4
  %156 = call <2 x float> @_Zml7QVectorf(<2 x float> %155, float noundef %154)
  store <2 x float> %156, ptr %11, align 4
  %157 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 1
  %158 = load float, ptr %157, align 8, !tbaa !32
  %159 = fcmp ogt float %158, 0.000000e+00
  br i1 %159, label %160, label %162

160:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store float 2.000000e+00, ptr %13, align 4, !tbaa !30
  %161 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectormLERKf(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %162

162:                                              ; preds = %160, %143
  %163 = load i8, ptr %3, align 1, !tbaa !9, !range !22, !noundef !23
  %164 = trunc i8 %163 to i1
  %165 = zext i1 %164 to i32
  %166 = icmp eq i32 %165, 1
  br i1 %166, label %167, label %172

167:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  %168 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 6
  %169 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #10
  %170 = uitofp i64 %169 to float
  store float %170, ptr %14, align 4, !tbaa !30
  %171 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectordVERKf(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %172

172:                                              ; preds = %167, %162
  %173 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !11
  %175 = call noundef ptr @_ZN5QBody8GetWorldEv(ptr noundef nonnull align 8 dereferenceable(293) %174)
  %176 = getelementptr inbounds %class.QWorld, ptr %175, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %177 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #11
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.QCollision::Contact", ptr %178, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %179, i64 8, i1 false), !tbaa.struct !31
  invoke void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef -5.000000e-01, float noundef -5.000000e-01)
          to label %180 unwind label %212

180:                                              ; preds = %172
  %181 = load <2 x float>, ptr %18, align 4
  %182 = load <2 x float>, ptr %19, align 4
  %183 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %181, <2 x float> %182)
          to label %184 unwind label %212

184:                                              ; preds = %180
  store <2 x float> %183, ptr %17, align 4
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.QCollision::Contact", ptr %185, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %186, i64 8, i1 false), !tbaa.struct !31
  invoke void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef 5.000000e-01, float noundef 5.000000e-01)
          to label %187 unwind label %212

187:                                              ; preds = %184
  %188 = load <2 x float>, ptr %23, align 4
  %189 = load <2 x float>, ptr %24, align 4
  %190 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %188, <2 x float> %189)
          to label %191 unwind label %212

191:                                              ; preds = %187
  store <2 x float> %190, ptr %22, align 4
  %192 = load <2 x float>, ptr %17, align 4
  %193 = load <2 x float>, ptr %22, align 4
  invoke void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28) %16, <2 x float> %192, <2 x float> %193)
          to label %194 unwind label %212

194:                                              ; preds = %191
  invoke void @_ZN10QGizmoRectC2E5QAABB(ptr noundef nonnull align 8 dereferenceable(40) %177, ptr noundef byval(%class.QAABB) align 8 %16)
          to label %195 unwind label %212

195:                                              ; preds = %194
  store ptr %177, ptr %15, align 8, !tbaa !5
  call void @_ZNSt6vectorIP6QGizmoSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %176, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.QCollision::Contact", ptr %196, i32 0, i32 5
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %197, i64 noundef 0) #10
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %199)
  %201 = call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %200)
  store ptr %201, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.QCollision::Contact", ptr %202, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !33
  %205 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %204)
  %206 = call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %205)
  store ptr %206, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  store ptr null, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  store ptr null, ptr %28, align 8, !tbaa !5
  %207 = load ptr, ptr %25, align 8, !tbaa !5
  %208 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %207)
  %209 = icmp eq i32 %208, 0
  br i1 %209, label %210, label %216

210:                                              ; preds = %195
  %211 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %211, ptr %27, align 8, !tbaa !5
  br label %216

212:                                              ; preds = %194, %191, %187, %184, %180, %172
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %20, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %21, align 4
  call void @_ZdlPvm(ptr noundef %177, i64 noundef 40) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %641

216:                                              ; preds = %210, %195
  %217 = load ptr, ptr %26, align 8, !tbaa !5
  %218 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %217)
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %222

220:                                              ; preds = %216
  %221 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %221, ptr %28, align 8, !tbaa !5
  br label %222

222:                                              ; preds = %220, %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.QCollision::Contact", ptr %223, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %224, i64 8, i1 false), !tbaa.struct !31
  %225 = load ptr, ptr %25, align 8, !tbaa !5
  %226 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %225)
  store <2 x float> %226, ptr %31, align 4
  %227 = load <2 x float>, ptr %30, align 4
  %228 = load <2 x float>, ptr %31, align 4
  %229 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %227, <2 x float> %228)
  store <2 x float> %229, ptr %29, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.QCollision::Contact", ptr %230, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %231, i64 8, i1 false), !tbaa.struct !31
  %232 = load ptr, ptr %26, align 8, !tbaa !5
  %233 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %232)
  store <2 x float> %233, ptr %34, align 4
  %234 = load <2 x float>, ptr %33, align 4
  %235 = load <2 x float>, ptr %34, align 4
  %236 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %234, <2 x float> %235)
  store <2 x float> %236, ptr %32, align 4
  %237 = load i32, ptr %7, align 4, !tbaa !20
  %238 = icmp eq i32 %237, 0
  br i1 %238, label %239, label %254

239:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.QCollision::Contact", ptr %240, i32 0, i32 1
  %242 = load ptr, ptr %241, align 8, !tbaa !33
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.QCollision::Contact", ptr %243, i32 0, i32 5
  call void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %244)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %29, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !31
  %245 = load <2 x float>, ptr %37, align 4
  %246 = load <2 x float>, ptr %38, align 4
  %247 = invoke <2 x float> @_ZN9QManifold19GetRelativeVelocityEP9QParticleSt6vectorIS1_SaIS1_EE7QVectorS5_(ptr noundef nonnull align 8 dereferenceable(64) %80, ptr noundef %242, ptr noundef %36, <2 x float> %245, <2 x float> %246)
          to label %248 unwind label %250

248:                                              ; preds = %239
  store <2 x float> %247, ptr %35, align 4
  %249 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %249, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !31
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  br label %254

250:                                              ; preds = %239
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %20, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %21, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %641

254:                                              ; preds = %248, %222
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #10
  store i8 0, ptr %39, align 1, !tbaa !9
  %255 = load ptr, ptr %25, align 8, !tbaa !5
  %256 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %255)
  %257 = icmp eq i32 %256, 1
  br i1 %257, label %258, label %262

258:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  %259 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %259, ptr %40, align 8, !tbaa !5
  %260 = load ptr, ptr %40, align 8, !tbaa !5
  %261 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN9QAreaBody15AddCollidedBodyEP5QBody(ptr noundef nonnull align 8 dereferenceable(432) %260, ptr noundef %261)
  store i8 1, ptr %39, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  br label %262

262:                                              ; preds = %258, %254
  %263 = load ptr, ptr %26, align 8, !tbaa !5
  %264 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %263)
  %265 = icmp eq i32 %264, 1
  br i1 %265, label %266, label %270

266:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  %267 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %267, ptr %41, align 8, !tbaa !5
  %268 = load ptr, ptr %41, align 8, !tbaa !5
  %269 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZN9QAreaBody15AddCollidedBodyEP5QBody(ptr noundef nonnull align 8 dereferenceable(432) %268, ptr noundef %269)
  store i8 1, ptr %39, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  br label %270

270:                                              ; preds = %266, %262
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #10
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.QCollision::Contact", ptr %271, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 8 %272, i64 8, i1 false), !tbaa.struct !31
  %273 = load ptr, ptr %26, align 8, !tbaa !5
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %"struct.QCollision::Contact", ptr %274, i32 0, i32 2
  %276 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %275)
  store <2 x float> %276, ptr %44, align 4
  %277 = load ptr, ptr %9, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.QCollision::Contact", ptr %277, i32 0, i32 3
  %279 = load float, ptr %278, align 8, !tbaa !24
  %280 = load <2 x float>, ptr %43, align 4
  %281 = load <2 x float>, ptr %44, align 4
  call void @_ZN5QBody13CollisionInfoC2E7QVectorPS_S1_f(ptr noundef nonnull align 8 dereferenceable(28) %42, <2 x float> %280, ptr noundef %273, <2 x float> %281, float noundef %279)
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #10
  %282 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %42, i64 32, i1 false), !tbaa.struct !34
  %283 = load ptr, ptr %282, align 8, !tbaa !35
  %284 = getelementptr inbounds ptr, ptr %283, i64 7
  %285 = load ptr, ptr %284, align 8
  %286 = call noundef zeroext i1 %285(ptr noundef nonnull align 8 dereferenceable(293) %282, ptr noundef byval(%"struct.QBody::CollisionInfo") align 8 %46)
  %287 = zext i1 %286 to i8
  store i8 %287, ptr %45, align 1, !tbaa !9
  %288 = load ptr, ptr %25, align 8, !tbaa !5
  %289 = getelementptr inbounds %class.QBody, ptr %288, i32 0, i32 41
  %290 = call noundef zeroext i1 @_ZStneIbJP5QBodyNS0_13CollisionInfoEEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %289, ptr null) #10
  br i1 %290, label %291, label %306

291:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #10
  %292 = load ptr, ptr %25, align 8, !tbaa !5
  %293 = getelementptr inbounds %class.QBody, ptr %292, i32 0, i32 41
  %294 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %42, i64 32, i1 false), !tbaa.struct !34
  %295 = call noundef zeroext i1 @_ZNKSt8functionIFbP5QBodyNS0_13CollisionInfoEEEclES1_S2_(ptr noundef nonnull align 8 dereferenceable(32) %293, ptr noundef %294, ptr noundef byval(%"struct.QBody::CollisionInfo") align 8 %48)
  %296 = zext i1 %295 to i8
  store i8 %296, ptr %47, align 1, !tbaa !9
  %297 = load i8, ptr %45, align 1, !tbaa !9, !range !22, !noundef !23
  %298 = trunc i8 %297 to i1
  %299 = zext i1 %298 to i32
  %300 = icmp eq i32 %299, 1
  br i1 %300, label %301, label %305

301:                                              ; preds = %291
  %302 = load i8, ptr %47, align 1, !tbaa !9, !range !22, !noundef !23
  %303 = trunc i8 %302 to i1
  %304 = zext i1 %303 to i8
  store i8 %304, ptr %45, align 1, !tbaa !9
  br label %305

305:                                              ; preds = %301, %291
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #10
  br label %306

306:                                              ; preds = %305, %270
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #10
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = getelementptr inbounds %"struct.QCollision::Contact", ptr %307, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 8 %308, i64 8, i1 false), !tbaa.struct !31
  %309 = load ptr, ptr %25, align 8, !tbaa !5
  %310 = load ptr, ptr %9, align 8, !tbaa !5
  %311 = getelementptr inbounds %"struct.QCollision::Contact", ptr %310, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 8 %311, i64 8, i1 false), !tbaa.struct !31
  %312 = load ptr, ptr %9, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.QCollision::Contact", ptr %312, i32 0, i32 3
  %314 = load float, ptr %313, align 8, !tbaa !24
  %315 = load <2 x float>, ptr %50, align 4
  %316 = load <2 x float>, ptr %51, align 4
  call void @_ZN5QBody13CollisionInfoC2E7QVectorPS_S1_f(ptr noundef nonnull align 8 dereferenceable(28) %49, <2 x float> %315, ptr noundef %309, <2 x float> %316, float noundef %314)
  call void @llvm.lifetime.start.p0(i64 1, ptr %52) #10
  %317 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %49, i64 32, i1 false), !tbaa.struct !34
  %318 = load ptr, ptr %317, align 8, !tbaa !35
  %319 = getelementptr inbounds ptr, ptr %318, i64 7
  %320 = load ptr, ptr %319, align 8
  %321 = call noundef zeroext i1 %320(ptr noundef nonnull align 8 dereferenceable(293) %317, ptr noundef byval(%"struct.QBody::CollisionInfo") align 8 %53)
  %322 = zext i1 %321 to i8
  store i8 %322, ptr %52, align 1, !tbaa !9
  %323 = load ptr, ptr %26, align 8, !tbaa !5
  %324 = getelementptr inbounds %class.QBody, ptr %323, i32 0, i32 41
  %325 = call noundef zeroext i1 @_ZStneIbJP5QBodyNS0_13CollisionInfoEEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %324, ptr null) #10
  br i1 %325, label %326, label %341

326:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 1, ptr %54) #10
  %327 = load ptr, ptr %26, align 8, !tbaa !5
  %328 = getelementptr inbounds %class.QBody, ptr %327, i32 0, i32 41
  %329 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %49, i64 32, i1 false), !tbaa.struct !34
  %330 = call noundef zeroext i1 @_ZNKSt8functionIFbP5QBodyNS0_13CollisionInfoEEEclES1_S2_(ptr noundef nonnull align 8 dereferenceable(32) %328, ptr noundef %329, ptr noundef byval(%"struct.QBody::CollisionInfo") align 8 %55)
  %331 = zext i1 %330 to i8
  store i8 %331, ptr %54, align 1, !tbaa !9
  %332 = load i8, ptr %52, align 1, !tbaa !9, !range !22, !noundef !23
  %333 = trunc i8 %332 to i1
  %334 = zext i1 %333 to i32
  %335 = icmp eq i32 %334, 1
  br i1 %335, label %336, label %340

336:                                              ; preds = %326
  %337 = load i8, ptr %54, align 1, !tbaa !9, !range !22, !noundef !23
  %338 = trunc i8 %337 to i1
  %339 = zext i1 %338 to i8
  store i8 %339, ptr %52, align 1, !tbaa !9
  br label %340

340:                                              ; preds = %336, %326
  call void @llvm.lifetime.end.p0(i64 1, ptr %54) #10
  br label %341

341:                                              ; preds = %340, %306
  %342 = load i8, ptr %45, align 1, !tbaa !9, !range !22, !noundef !23
  %343 = trunc i8 %342 to i1
  %344 = zext i1 %343 to i32
  %345 = icmp eq i32 %344, 0
  br i1 %345, label %351, label %346

346:                                              ; preds = %341
  %347 = load i8, ptr %52, align 1, !tbaa !9, !range !22, !noundef !23
  %348 = trunc i8 %347 to i1
  %349 = zext i1 %348 to i32
  %350 = icmp eq i32 %349, 0
  br i1 %350, label %351, label %352

351:                                              ; preds = %346, %341
  store i8 1, ptr %39, align 1, !tbaa !9
  br label %352

352:                                              ; preds = %351, %346
  %353 = load i8, ptr %39, align 1, !tbaa !9, !range !22, !noundef !23
  %354 = trunc i8 %353 to i1
  %355 = zext i1 %354 to i32
  %356 = icmp eq i32 %355, 1
  br i1 %356, label %357, label %358

357:                                              ; preds = %352
  store i32 4, ptr %8, align 4
  br label %635

358:                                              ; preds = %352
  %359 = load ptr, ptr %9, align 8, !tbaa !5
  %360 = getelementptr inbounds %"struct.QCollision::Contact", ptr %359, i32 0, i32 1
  %361 = load ptr, ptr %360, align 8, !tbaa !33
  %362 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %361)
  %363 = zext i1 %362 to i32
  %364 = icmp eq i32 %363, 0
  br i1 %364, label %365, label %366

365:                                              ; preds = %358
  store i32 4, ptr %8, align 4
  br label %635

366:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  store i64 0, ptr %56, align 8, !tbaa !37
  br label %367

367:                                              ; preds = %385, %366
  %368 = load i64, ptr %56, align 8, !tbaa !37
  %369 = load ptr, ptr %9, align 8, !tbaa !5
  %370 = getelementptr inbounds %"struct.QCollision::Contact", ptr %369, i32 0, i32 5
  %371 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %370) #10
  %372 = icmp ult i64 %368, %371
  br i1 %372, label %374, label %373

373:                                              ; preds = %367
  store i32 5, ptr %8, align 4
  br label %388

374:                                              ; preds = %367
  %375 = load ptr, ptr %9, align 8, !tbaa !5
  %376 = getelementptr inbounds %"struct.QCollision::Contact", ptr %375, i32 0, i32 5
  %377 = load i64, ptr %56, align 8, !tbaa !37
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %376, i64 noundef %377) #10
  %379 = load ptr, ptr %378, align 8, !tbaa !5
  %380 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %379)
  %381 = zext i1 %380 to i32
  %382 = icmp eq i32 %381, 0
  br i1 %382, label %383, label %384

383:                                              ; preds = %374
  store i8 1, ptr %39, align 1, !tbaa !9
  store i32 5, ptr %8, align 4
  br label %388

384:                                              ; preds = %374
  br label %385

385:                                              ; preds = %384
  %386 = load i64, ptr %56, align 8, !tbaa !37
  %387 = add i64 %386, 1
  store i64 %387, ptr %56, align 8, !tbaa !37
  br label %367, !llvm.loop !39

388:                                              ; preds = %383, %373
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  br label %389

389:                                              ; preds = %388
  %390 = load i8, ptr %39, align 1, !tbaa !9, !range !22, !noundef !23
  %391 = trunc i8 %390 to i1
  %392 = zext i1 %391 to i32
  %393 = icmp eq i32 %392, 1
  br i1 %393, label %394, label %395

394:                                              ; preds = %389
  store i32 4, ptr %8, align 4
  br label %635

395:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #10
  store i8 0, ptr %57, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #10
  store i8 0, ptr %58, align 1, !tbaa !9
  %396 = load ptr, ptr %9, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.QCollision::Contact", ptr %396, i32 0, i32 1
  %398 = load ptr, ptr %397, align 8, !tbaa !33
  %399 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %398)
  br i1 %399, label %400, label %411

400:                                              ; preds = %395
  %401 = load ptr, ptr %9, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.QCollision::Contact", ptr %401, i32 0, i32 1
  %403 = load ptr, ptr %402, align 8, !tbaa !33
  %404 = getelementptr inbounds %class.QParticle, ptr %403, i32 0, i32 19
  %405 = call { ptr, i8 } @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %404, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %406 = getelementptr inbounds { ptr, i8 }, ptr %59, i32 0, i32 0
  %407 = extractvalue { ptr, i8 } %405, 0
  store ptr %407, ptr %406, align 8
  %408 = getelementptr inbounds { ptr, i8 }, ptr %59, i32 0, i32 1
  %409 = extractvalue { ptr, i8 } %405, 1
  store i8 %409, ptr %408, align 8
  store i8 1, ptr %57, align 1, !tbaa !9
  %410 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 3
  store i8 1, ptr %410, align 8, !tbaa !41
  br label %411

411:                                              ; preds = %400, %395
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #10
  store i64 0, ptr %60, align 8, !tbaa !37
  br label %412

412:                                              ; preds = %440, %411
  %413 = load i64, ptr %60, align 8, !tbaa !37
  %414 = load ptr, ptr %9, align 8, !tbaa !5
  %415 = getelementptr inbounds %"struct.QCollision::Contact", ptr %414, i32 0, i32 5
  %416 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %415) #10
  %417 = icmp ult i64 %413, %416
  br i1 %417, label %419, label %418

418:                                              ; preds = %412
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  br label %443

419:                                              ; preds = %412
  %420 = load ptr, ptr %9, align 8, !tbaa !5
  %421 = getelementptr inbounds %"struct.QCollision::Contact", ptr %420, i32 0, i32 5
  %422 = load i64, ptr %60, align 8, !tbaa !37
  %423 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %421, i64 noundef %422) #10
  %424 = load ptr, ptr %423, align 8, !tbaa !5
  %425 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %424)
  br i1 %425, label %426, label %439

426:                                              ; preds = %419
  %427 = load ptr, ptr %9, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.QCollision::Contact", ptr %427, i32 0, i32 5
  %429 = load i64, ptr %60, align 8, !tbaa !37
  %430 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %428, i64 noundef %429) #10
  %431 = load ptr, ptr %430, align 8, !tbaa !5
  %432 = getelementptr inbounds %class.QParticle, ptr %431, i32 0, i32 19
  %433 = call { ptr, i8 } @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %432, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %434 = getelementptr inbounds { ptr, i8 }, ptr %61, i32 0, i32 0
  %435 = extractvalue { ptr, i8 } %433, 0
  store ptr %435, ptr %434, align 8
  %436 = getelementptr inbounds { ptr, i8 }, ptr %61, i32 0, i32 1
  %437 = extractvalue { ptr, i8 } %433, 1
  store i8 %437, ptr %436, align 8
  %438 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 3
  store i8 1, ptr %438, align 8, !tbaa !41
  store i8 1, ptr %58, align 1, !tbaa !9
  br label %439

439:                                              ; preds = %426, %419
  br label %440

440:                                              ; preds = %439
  %441 = load i64, ptr %60, align 8, !tbaa !37
  %442 = add i64 %441, 1
  store i64 %442, ptr %60, align 8, !tbaa !37
  br label %412, !llvm.loop !42

443:                                              ; preds = %418
  %444 = load ptr, ptr %9, align 8, !tbaa !5
  %445 = getelementptr inbounds %"struct.QCollision::Contact", ptr %444, i32 0, i32 1
  %446 = load ptr, ptr %445, align 8, !tbaa !33
  %447 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %446)
  br i1 %447, label %448, label %466

448:                                              ; preds = %443
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #10
  %449 = load ptr, ptr %9, align 8, !tbaa !5
  %450 = getelementptr inbounds %"struct.QCollision::Contact", ptr %449, i32 0, i32 1
  %451 = load ptr, ptr %450, align 8, !tbaa !33
  %452 = getelementptr inbounds %class.QParticle, ptr %451, i32 0, i32 18
  %453 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %452, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %454 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %62, i32 0, i32 0
  %455 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %454, i32 0, i32 0
  store ptr %453, ptr %455, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #10
  %456 = load ptr, ptr %9, align 8, !tbaa !5
  %457 = getelementptr inbounds %"struct.QCollision::Contact", ptr %456, i32 0, i32 1
  %458 = load ptr, ptr %457, align 8, !tbaa !33
  %459 = getelementptr inbounds %class.QParticle, ptr %458, i32 0, i32 18
  %460 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %459) #10
  %461 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %63, i32 0, i32 0
  %462 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %461, i32 0, i32 0
  store ptr %460, ptr %462, align 8
  %463 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP5QBodyLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %63) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #10
  br i1 %463, label %464, label %465

464:                                              ; preds = %448
  store i32 4, ptr %8, align 4
  br label %634

465:                                              ; preds = %448
  br label %466

466:                                              ; preds = %465, %443
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #10
  store i64 0, ptr %64, align 8, !tbaa !37
  br label %467

467:                                              ; preds = %504, %466
  %468 = load i64, ptr %64, align 8, !tbaa !37
  %469 = load ptr, ptr %9, align 8, !tbaa !5
  %470 = getelementptr inbounds %"struct.QCollision::Contact", ptr %469, i32 0, i32 5
  %471 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %470) #10
  %472 = icmp ult i64 %468, %471
  br i1 %472, label %474, label %473

473:                                              ; preds = %467
  store i32 11, ptr %8, align 4
  br label %507

474:                                              ; preds = %467
  %475 = load ptr, ptr %9, align 8, !tbaa !5
  %476 = getelementptr inbounds %"struct.QCollision::Contact", ptr %475, i32 0, i32 5
  %477 = load i64, ptr %64, align 8, !tbaa !37
  %478 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %476, i64 noundef %477) #10
  %479 = load ptr, ptr %478, align 8, !tbaa !5
  %480 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %479)
  br i1 %480, label %481, label %503

481:                                              ; preds = %474
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #10
  %482 = load ptr, ptr %9, align 8, !tbaa !5
  %483 = getelementptr inbounds %"struct.QCollision::Contact", ptr %482, i32 0, i32 5
  %484 = load i64, ptr %64, align 8, !tbaa !37
  %485 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %483, i64 noundef %484) #10
  %486 = load ptr, ptr %485, align 8, !tbaa !5
  %487 = getelementptr inbounds %class.QParticle, ptr %486, i32 0, i32 18
  %488 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %487, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %489 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %65, i32 0, i32 0
  %490 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %489, i32 0, i32 0
  store ptr %488, ptr %490, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #10
  %491 = load ptr, ptr %9, align 8, !tbaa !5
  %492 = getelementptr inbounds %"struct.QCollision::Contact", ptr %491, i32 0, i32 5
  %493 = load i64, ptr %64, align 8, !tbaa !37
  %494 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %492, i64 noundef %493) #10
  %495 = load ptr, ptr %494, align 8, !tbaa !5
  %496 = getelementptr inbounds %class.QParticle, ptr %495, i32 0, i32 18
  %497 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %496) #10
  %498 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %66, i32 0, i32 0
  %499 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %498, i32 0, i32 0
  store ptr %497, ptr %499, align 8
  %500 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP5QBodyLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %66) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #10
  br i1 %500, label %501, label %502

501:                                              ; preds = %481
  store i8 1, ptr %39, align 1, !tbaa !9
  br label %502

502:                                              ; preds = %501, %481
  store i32 11, ptr %8, align 4
  br label %507

503:                                              ; preds = %474
  br label %504

504:                                              ; preds = %503
  %505 = load i64, ptr %64, align 8, !tbaa !37
  %506 = add i64 %505, 1
  store i64 %506, ptr %64, align 8, !tbaa !37
  br label %467, !llvm.loop !43

507:                                              ; preds = %502, %473
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #10
  br label %508

508:                                              ; preds = %507
  %509 = load i8, ptr %39, align 1, !tbaa !9, !range !22, !noundef !23
  %510 = trunc i8 %509 to i1
  %511 = zext i1 %510 to i32
  %512 = icmp eq i32 %511, 1
  br i1 %512, label %513, label %514

513:                                              ; preds = %508
  store i32 4, ptr %8, align 4
  br label %634

514:                                              ; preds = %508
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #10
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %67)
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #10
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %68)
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #10
  %515 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %515, ptr %69, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %69, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !31
  %516 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 3
  %517 = load i8, ptr %516, align 8, !tbaa !41, !range !22, !noundef !23
  %518 = trunc i8 %517 to i1
  %519 = zext i1 %518 to i32
  %520 = icmp eq i32 %519, 0
  br i1 %520, label %521, label %540

521:                                              ; preds = %514
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #10
  %522 = load ptr, ptr %26, align 8, !tbaa !5
  %523 = load ptr, ptr %522, align 8, !tbaa !35
  %524 = getelementptr inbounds ptr, ptr %523, i64 8
  %525 = load ptr, ptr %524, align 8
  %526 = call noundef float %525(ptr noundef nonnull align 8 dereferenceable(293) %522)
  %527 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 2
  %528 = load float, ptr %527, align 4, !tbaa !44
  %529 = fmul float %526, %528
  store float %529, ptr %70, align 4, !tbaa !30
  %530 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectormLERKf(ptr noundef nonnull align 4 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(4) %70)
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #10
  %531 = load ptr, ptr %25, align 8, !tbaa !5
  %532 = load ptr, ptr %531, align 8, !tbaa !35
  %533 = getelementptr inbounds ptr, ptr %532, i64 8
  %534 = load ptr, ptr %533, align 8
  %535 = call noundef float %534(ptr noundef nonnull align 8 dereferenceable(293) %531)
  %536 = getelementptr inbounds %class.QManifold, ptr %80, i32 0, i32 2
  %537 = load float, ptr %536, align 4, !tbaa !44
  %538 = fmul float %535, %537
  store float %538, ptr %71, align 4, !tbaa !30
  %539 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectormLERKf(ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(4) %71)
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #10
  br label %540

540:                                              ; preds = %521, %514
  %541 = load ptr, ptr %26, align 8, !tbaa !5
  %542 = load ptr, ptr %25, align 8, !tbaa !5
  %543 = load ptr, ptr %541, align 8, !tbaa !35
  %544 = getelementptr inbounds ptr, ptr %543, i64 2
  %545 = load ptr, ptr %544, align 8
  %546 = call noundef zeroext i1 %545(ptr noundef nonnull align 8 dereferenceable(293) %541, ptr noundef %542)
  br i1 %546, label %547, label %592

547:                                              ; preds = %540
  %548 = load i8, ptr %57, align 1, !tbaa !9, !range !22, !noundef !23
  %549 = trunc i8 %548 to i1
  %550 = zext i1 %549 to i32
  %551 = icmp eq i32 %550, 0
  br i1 %551, label %552, label %592

552:                                              ; preds = %547
  %553 = load ptr, ptr %9, align 8, !tbaa !5
  %554 = getelementptr inbounds %"struct.QCollision::Contact", ptr %553, i32 0, i32 6
  store i8 1, ptr %554, align 8, !tbaa !45
  %555 = load ptr, ptr %27, align 8, !tbaa !5
  %556 = icmp ne ptr %555, null
  br i1 %556, label %557, label %565

557:                                              ; preds = %552
  %558 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %67, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %29, i64 8, i1 false), !tbaa.struct !31
  %559 = load <2 x float>, ptr %72, align 4
  %560 = load <2 x float>, ptr %73, align 4
  %561 = load ptr, ptr %558, align 8, !tbaa !35
  %562 = getelementptr inbounds ptr, ptr %561, i64 10
  %563 = load ptr, ptr %562, align 8
  %564 = call noundef ptr %563(ptr noundef nonnull align 8 dereferenceable(308) %558, <2 x float> %559, <2 x float> %560, i1 noundef zeroext true)
  br label %591

565:                                              ; preds = %552
  %566 = load ptr, ptr %9, align 8, !tbaa !5
  %567 = getelementptr inbounds %"struct.QCollision::Contact", ptr %566, i32 0, i32 5
  %568 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %567) #10
  %569 = icmp eq i64 %568, 2
  br i1 %569, label %570, label %583

570:                                              ; preds = %565
  %571 = load ptr, ptr %9, align 8, !tbaa !5
  %572 = getelementptr inbounds %"struct.QCollision::Contact", ptr %571, i32 0, i32 5
  %573 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %572, i64 noundef 0) #10
  %574 = load ptr, ptr %573, align 8, !tbaa !5
  %575 = load ptr, ptr %9, align 8, !tbaa !5
  %576 = getelementptr inbounds %"struct.QCollision::Contact", ptr %575, i32 0, i32 5
  %577 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %576, i64 noundef 1) #10
  %578 = load ptr, ptr %577, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %67, i64 8, i1 false), !tbaa.struct !31
  %579 = load ptr, ptr %9, align 8, !tbaa !5
  %580 = getelementptr inbounds %"struct.QCollision::Contact", ptr %579, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 8 %580, i64 8, i1 false), !tbaa.struct !31
  %581 = load <2 x float>, ptr %74, align 4
  %582 = load <2 x float>, ptr %75, align 4
  call void @_ZN9QParticle27ApplyForceToParticleSegmentEPS_S0_7QVectorS1_(ptr noundef %574, ptr noundef %578, <2 x float> %581, <2 x float> %582)
  br label %590

583:                                              ; preds = %565
  %584 = load ptr, ptr %9, align 8, !tbaa !5
  %585 = getelementptr inbounds %"struct.QCollision::Contact", ptr %584, i32 0, i32 5
  %586 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %585, i64 noundef 0) #10
  %587 = load ptr, ptr %586, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %67, i64 8, i1 false), !tbaa.struct !31
  %588 = load <2 x float>, ptr %76, align 4
  %589 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %587, <2 x float> %588)
  br label %590

590:                                              ; preds = %583, %570
  br label %591

591:                                              ; preds = %590, %557
  br label %592

592:                                              ; preds = %591, %547, %540
  %593 = load ptr, ptr %25, align 8, !tbaa !5
  %594 = load ptr, ptr %26, align 8, !tbaa !5
  %595 = load ptr, ptr %593, align 8, !tbaa !35
  %596 = getelementptr inbounds ptr, ptr %595, i64 2
  %597 = load ptr, ptr %596, align 8
  %598 = call noundef zeroext i1 %597(ptr noundef nonnull align 8 dereferenceable(293) %593, ptr noundef %594)
  br i1 %598, label %599, label %624

599:                                              ; preds = %592
  %600 = load i8, ptr %58, align 1, !tbaa !9, !range !22, !noundef !23
  %601 = trunc i8 %600 to i1
  %602 = zext i1 %601 to i32
  %603 = icmp eq i32 %602, 0
  br i1 %603, label %604, label %624

604:                                              ; preds = %599
  %605 = load ptr, ptr %9, align 8, !tbaa !5
  %606 = getelementptr inbounds %"struct.QCollision::Contact", ptr %605, i32 0, i32 6
  store i8 1, ptr %606, align 8, !tbaa !45
  %607 = load ptr, ptr %28, align 8, !tbaa !5
  %608 = icmp ne ptr %607, null
  br i1 %608, label %609, label %617

609:                                              ; preds = %604
  %610 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !31
  %611 = load <2 x float>, ptr %77, align 4
  %612 = load <2 x float>, ptr %78, align 4
  %613 = load ptr, ptr %610, align 8, !tbaa !35
  %614 = getelementptr inbounds ptr, ptr %613, i64 10
  %615 = load ptr, ptr %614, align 8
  %616 = call noundef ptr %615(ptr noundef nonnull align 8 dereferenceable(308) %610, <2 x float> %611, <2 x float> %612, i1 noundef zeroext true)
  br label %623

617:                                              ; preds = %604
  %618 = load ptr, ptr %9, align 8, !tbaa !5
  %619 = getelementptr inbounds %"struct.QCollision::Contact", ptr %618, i32 0, i32 1
  %620 = load ptr, ptr %619, align 8, !tbaa !33
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !31
  %621 = load <2 x float>, ptr %79, align 4
  %622 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %620, <2 x float> %621)
  br label %623

623:                                              ; preds = %617, %609
  br label %624

624:                                              ; preds = %623, %599, %592
  %625 = load i8, ptr %57, align 1, !tbaa !9, !range !22, !noundef !23
  %626 = trunc i8 %625 to i1
  br i1 %626, label %630, label %627

627:                                              ; preds = %624
  %628 = load i8, ptr %58, align 1, !tbaa !9, !range !22, !noundef !23
  %629 = trunc i8 %628 to i1
  br i1 %629, label %630, label %633

630:                                              ; preds = %627, %624
  %631 = load ptr, ptr %9, align 8, !tbaa !5
  %632 = getelementptr inbounds %"struct.QCollision::Contact", ptr %631, i32 0, i32 6
  store i8 0, ptr %632, align 8, !tbaa !45
  br label %633

633:                                              ; preds = %630, %627
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #10
  store i32 0, ptr %8, align 4
  br label %634

634:                                              ; preds = %633, %513, %464
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #10
  br label %635

635:                                              ; preds = %634, %394, %365, %357
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  %636 = load i32, ptr %8, align 4
  switch i32 %636, label %648 [
    i32 0, label %637
    i32 4, label %638
  ]

637:                                              ; preds = %635
  br label %638

638:                                              ; preds = %637, %635
  %639 = load i32, ptr %7, align 4, !tbaa !20
  %640 = add nsw i32 %639, 1
  store i32 %640, ptr %7, align 4, !tbaa !20
  br label %114, !llvm.loop !46

641:                                              ; preds = %250, %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #10
  br label %643

642:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #10
  ret void

643:                                              ; preds = %641
  %644 = load ptr, ptr %20, align 8
  %645 = load i32, ptr %21, align 4
  %646 = insertvalue { ptr, i32 } poison, ptr %644, 0
  %647 = insertvalue { ptr, i32 } %646, i32 %645, 1
  resume { ptr, i32 } %647

648:                                              ; preds = %635
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zml7QVectorf(<2 x float>, float noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP6QGizmoSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28), <2 x float>, <2 x float>) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10QGizmoRectC2E5QAABB(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.QAABB) align 8) unnamed_addr #6 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

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

declare void @_ZN9QAreaBody15AddCollidedBodyEP5QBody(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef) #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5QBody13CollisionInfoC2E7QVectorPS_S1_f(ptr noundef nonnull align 8 dereferenceable(28), <2 x float>, ptr noundef, <2 x float>, float noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbP5QBodyNS0_13CollisionInfoEEEclES1_S2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef byval(%"struct.QBody::CollisionInfo") align 8) #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #6 align 2

declare void @_ZN9QParticle27ApplyForceToParticleSegmentEPS_S0_7QVectorS1_(ptr noundef, ptr noundef, <2 x float>, <2 x float>) #9

declare noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290), <2 x float>) #9

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTS9QManifold", !13, i64 0, !14, i64 8, !14, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !15, i64 40}
!13 = !{!"_ZTS7QVector", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIPN10QCollision7ContactESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN10QCollision7ContactESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN10QCollision7ContactESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN10QCollision7ContactESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!12, !6, i64 32}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !14, i64 24}
!25 = !{!"_ZTSN10QCollision7ContactE", !13, i64 0, !6, i64 8, !13, i64 16, !14, i64 24, !26, i64 32, !10, i64 56}
!26 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!14, !14, i64 0}
!31 = !{i64 0, i64 4, !30, i64 4, i64 4, !30}
!32 = !{!12, !14, i64 8}
!33 = !{!25, !6, i64 8}
!34 = !{i64 0, i64 4, !30, i64 4, i64 4, !30, i64 8, i64 8, !5, i64 16, i64 4, !30, i64 20, i64 4, !30, i64 24, i64 4, !30}
!35 = !{!36, !36, i64 0}
!36 = !{!"vtable pointer", !8, i64 0}
!37 = !{!38, !38, i64 0}
!38 = !{!"long", !7, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !10, i64 16}
!42 = distinct !{!42, !40}
!43 = distinct !{!43, !40}
!44 = !{!12, !14, i64 12}
!45 = !{!25, !10, i64 56}
!46 = distinct !{!46, !40}


; 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"

%struct.QVector = type { float, float }
%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QParticle *, std::allocator<QParticle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.QBody::CollisionInfo" = type <{ %struct.QVector, ptr, %struct.QVector, float, [4 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN9QManifold19GetRelativeVelocityEP9QParticleSt6vectorIS1_SaIS1_EE7QVectorS5_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef, <2 x float>, <2 x float>) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9QManifold5SolveEv(ptr noundef nonnull align 8 dereferenceable(64) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca float, align 4
  %3 = alloca %struct.QVector, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %class.QAABB, align 8
  %8 = alloca %struct.QVector, align 8
  %9 = alloca %struct.QVector, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector.7", align 8
  %13 = alloca %"struct.QBody::CollisionInfo", align 8
  %14 = alloca %"struct.QBody::CollisionInfo", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %19 = alloca %struct.QVector, align 8
  %20 = alloca %struct.QVector, align 8
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = tail call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %24)
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %32

27:                                               ; preds = %1
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = tail call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %29)
  %31 = icmp eq i32 %30, 1
  br label %32

32:                                               ; preds = %27, %1
  %.0 = phi i1 [ false, %1 ], [ %31, %27 ]
  %33 = load ptr, ptr %23, align 8, !tbaa !5
  %34 = tail call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %33)
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %47

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %0, i64 32
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = tail call noundef i32 @_ZN5QBody18GetSimulationModelEv(ptr noundef nonnull align 8 dereferenceable(293) %38)
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %47

41:                                               ; preds = %36
  %42 = load ptr, ptr %23, align 8, !tbaa !5
  %43 = load ptr, ptr %37, align 8, !tbaa !17
  %44 = tail call noundef zeroext i1 @_ZN9QSoftBody24GetAreaPreservingEnabledEv(ptr noundef nonnull align 8 dereferenceable(360) %42)
  br i1 %44, label %45, label %47

45:                                               ; preds = %41
  %46 = tail call noundef zeroext i1 @_ZN9QSoftBody24GetAreaPreservingEnabledEv(ptr noundef nonnull align 8 dereferenceable(360) %43)
  br label %47

47:                                               ; preds = %45, %41, %36, %32
  %.1 = phi i1 [ false, %36 ], [ false, %32 ], [ false, %41 ], [ %46, %45 ]
  %48 = getelementptr inbounds i8, ptr %0, i64 40
  %49 = tail call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  %.not162 = icmp eq i64 %49, 0
  br i1 %.not162, label %._crit_edge161, label %.lr.ph160

.lr.ph160:                                        ; preds = %47
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  %51 = getelementptr inbounds i8, ptr %0, i64 16
  %52 = getelementptr inbounds i8, ptr %0, i64 12
  %brmerge = or i1 %.0, %.1
  %.mux = select i1 %.0, float 0x3FECCCCCC0000000, float 5.000000e-01
  br label %53

._crit_edge161:                                   ; preds = %.thread, %47
  ret void

53:                                               ; preds = %.lr.ph160, %.thread
  %indvars.iv = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next, %.thread ]
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %indvars.iv) #9
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  br i1 %brmerge, label %.sink.split, label %59

.sink.split:                                      ; preds = %53
  %56 = getelementptr inbounds i8, ptr %55, i64 24
  %57 = load float, ptr %56, align 8, !tbaa !19
  %58 = fmul float %57, %.mux
  store float %58, ptr %56, align 8, !tbaa !19
  br label %59

59:                                               ; preds = %53, %.sink.split
  %60 = getelementptr inbounds i8, ptr %55, i64 24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  store float 0.000000e+00, ptr %2, align 4, !tbaa !25
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %62 = load float, ptr %61, align 4, !tbaa !25
  store float %62, ptr %60, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %63 = getelementptr inbounds i8, ptr %55, i64 16
  %.sroa.062.0.copyload = load <2 x float>, ptr %63, align 8
  %64 = call <2 x float> @_Zml7QVectorf(<2 x float> %.sroa.062.0.copyload, float noundef %62)
  store <2 x float> %64, ptr %3, align 8
  %65 = load float, ptr %50, align 8, !tbaa !26
  %66 = fcmp ogt float %65, 0.000000e+00
  br i1 %66, label %67, label %69

67:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store float 2.000000e+00, ptr %4, align 4, !tbaa !25
  %68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectormLERKf(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  br label %69

69:                                               ; preds = %67, %59
  br i1 %.0, label %70, label %74

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %71 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  %72 = uitofp i64 %71 to float
  store float %72, ptr %5, align 4, !tbaa !25
  %73 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectordVERKf(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %74

74:                                               ; preds = %70, %69
  %75 = load ptr, ptr %23, align 8, !tbaa !5
  %76 = call noundef ptr @_ZN5QBody8GetWorldEv(ptr noundef nonnull align 8 dereferenceable(293) %75)
  %77 = getelementptr inbounds i8, ptr %76, i64 72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %78 = call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #10
  %.sroa.060.0.copyload = load <2 x float>, ptr %55, align 8
  call void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef -5.000000e-01, float noundef -5.000000e-01)
  %79 = load <2 x float>, ptr %8, align 8
  %80 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %.sroa.060.0.copyload, <2 x float> %79)
          to label %81 unwind label %111

81:                                               ; preds = %74
  %.sroa.056.0.copyload = load <2 x float>, ptr %55, align 8
  call void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 5.000000e-01, float noundef 5.000000e-01)
  %82 = load <2 x float>, ptr %9, align 8
  %83 = invoke <2 x float> @_Zpl7QVectorS_(<2 x float> %.sroa.056.0.copyload, <2 x float> %82)
          to label %84 unwind label %111

84:                                               ; preds = %81
  invoke void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28) %7, <2 x float> %80, <2 x float> %83)
          to label %85 unwind label %111

85:                                               ; preds = %84
  invoke void @_ZN10QGizmoRectC2E5QAABB(ptr noundef nonnull align 8 dereferenceable(40) %78, ptr noundef nonnull byval(%class.QAABB) align 8 %7)
          to label %86 unwind label %111

86:                                               ; preds = %85
  store ptr %78, ptr %6, align 8, !tbaa !18
  call void @_ZNSt6vectorIP6QGizmoSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %87 = getelementptr inbounds i8, ptr %55, i64 32
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 0) #9
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %89)
  %91 = call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %90)
  store ptr %91, ptr %10, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %92 = getelementptr inbounds i8, ptr %55, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !27
  %94 = call noundef ptr @_ZN9QParticle12GetOwnerMeshEv(ptr noundef nonnull align 8 dereferenceable(290) %93)
  %95 = call noundef ptr @_ZN5QMesh12GetOwnerBodyEv(ptr noundef nonnull align 8 dereferenceable(256) %94)
  store ptr %95, ptr %11, align 8, !tbaa !18
  %96 = load ptr, ptr %10, align 8, !tbaa !18
  %97 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %96)
  %98 = icmp eq i32 %97, 0
  %99 = load ptr, ptr %10, align 8
  %spec.select139 = select i1 %98, ptr %99, ptr null
  %100 = load ptr, ptr %11, align 8, !tbaa !18
  %101 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %100)
  %102 = icmp eq i32 %101, 0
  %103 = load ptr, ptr %11, align 8
  %.0122 = select i1 %102, ptr %103, ptr null
  %.sroa.049.0.copyload = load <2 x float>, ptr %55, align 8
  %104 = load ptr, ptr %10, align 8, !tbaa !18
  %105 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %104)
  %106 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.049.0.copyload, <2 x float> %105)
  %.sroa.045.0.copyload = load <2 x float>, ptr %55, align 8
  %107 = load ptr, ptr %11, align 8, !tbaa !18
  %108 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %107)
  %109 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.045.0.copyload, <2 x float> %108)
  %110 = icmp eq i64 %indvars.iv, 0
  br i1 %110, label %113, label %119

111:                                              ; preds = %85, %84, %81, %74
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %78, i64 noundef 40) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %300

113:                                              ; preds = %86
  %114 = load ptr, ptr %92, align 8, !tbaa !27
  call void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %87)
  %115 = invoke <2 x float> @_ZN9QManifold19GetRelativeVelocityEP9QParticleSt6vectorIS1_SaIS1_EE7QVectorS5_(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %114, ptr noundef nonnull %12, <2 x float> %106, <2 x float> %109)
          to label %116 unwind label %117

116:                                              ; preds = %113
  store <2 x float> %115, ptr %0, align 8
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  br label %119

117:                                              ; preds = %113
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %300

119:                                              ; preds = %116, %86
  %120 = load ptr, ptr %10, align 8, !tbaa !18
  %121 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %120)
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %126

123:                                              ; preds = %119
  %124 = load ptr, ptr %10, align 8, !tbaa !18
  %125 = load ptr, ptr %11, align 8, !tbaa !18
  call void @_ZN9QAreaBody15AddCollidedBodyEP5QBody(ptr noundef nonnull align 8 dereferenceable(432) %124, ptr noundef %125)
  br label %126

126:                                              ; preds = %123, %119
  %.0123 = phi i8 [ 1, %123 ], [ 0, %119 ]
  %127 = load ptr, ptr %11, align 8, !tbaa !18
  %128 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %127)
  %129 = icmp eq i32 %128, 1
  br i1 %129, label %130, label %133

130:                                              ; preds = %126
  %131 = load ptr, ptr %11, align 8, !tbaa !18
  %132 = load ptr, ptr %10, align 8, !tbaa !18
  call void @_ZN9QAreaBody15AddCollidedBodyEP5QBody(ptr noundef nonnull align 8 dereferenceable(432) %131, ptr noundef %132)
  br label %133

133:                                              ; preds = %130, %126
  %.1124 = phi i8 [ 1, %130 ], [ %.0123, %126 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #9
  %.sroa.036.0.copyload = load <2 x float>, ptr %55, align 8
  %134 = load ptr, ptr %11, align 8, !tbaa !18
  %135 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %63)
  %136 = load float, ptr %60, align 8, !tbaa !19
  call void @_ZN5QBody13CollisionInfoC2E7QVectorPS_S1_f(ptr noundef nonnull align 8 dereferenceable(28) %13, <2 x float> %.sroa.036.0.copyload, ptr noundef %134, <2 x float> %135, float noundef %136)
  %137 = load ptr, ptr %10, align 8, !tbaa !18
  %138 = load ptr, ptr %137, align 8, !tbaa !28
  %139 = getelementptr inbounds i8, ptr %138, i64 56
  %140 = load ptr, ptr %139, align 8
  %141 = call noundef zeroext i1 %140(ptr noundef nonnull align 8 dereferenceable(293) %137, ptr noundef nonnull byval(%"struct.QBody::CollisionInfo") align 8 %13)
  %142 = load ptr, ptr %10, align 8, !tbaa !18
  %143 = getelementptr inbounds i8, ptr %142, i64 224
  %144 = call noundef zeroext i1 @_ZStneIbJP5QBodyNS0_13CollisionInfoEEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %143, ptr null) #9
  br i1 %144, label %145, label %149

145:                                              ; preds = %133
  %146 = load ptr, ptr %10, align 8, !tbaa !18
  %147 = getelementptr inbounds i8, ptr %146, i64 224
  %148 = call noundef zeroext i1 @_ZNKSt8functionIFbP5QBodyNS0_13CollisionInfoEEEclES1_S2_(ptr noundef nonnull align 8 dereferenceable(32) %147, ptr noundef %146, ptr noundef nonnull byval(%"struct.QBody::CollisionInfo") align 8 %13)
  %spec.select140 = and i1 %141, %148
  br label %149

149:                                              ; preds = %145, %133
  %.1127 = phi i1 [ %spec.select140, %145 ], [ %141, %133 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  %.sroa.031.0.copyload = load <2 x float>, ptr %55, align 8
  %150 = load ptr, ptr %10, align 8, !tbaa !18
  %.sroa.030.0.copyload = load <2 x float>, ptr %63, align 8
  %151 = load float, ptr %60, align 8, !tbaa !19
  call void @_ZN5QBody13CollisionInfoC2E7QVectorPS_S1_f(ptr noundef nonnull align 8 dereferenceable(28) %14, <2 x float> %.sroa.031.0.copyload, ptr noundef %150, <2 x float> %.sroa.030.0.copyload, float noundef %151)
  %152 = load ptr, ptr %11, align 8, !tbaa !18
  %153 = load ptr, ptr %152, align 8, !tbaa !28
  %154 = getelementptr inbounds i8, ptr %153, i64 56
  %155 = load ptr, ptr %154, align 8
  %156 = call noundef zeroext i1 %155(ptr noundef nonnull align 8 dereferenceable(293) %152, ptr noundef nonnull byval(%"struct.QBody::CollisionInfo") align 8 %14)
  %157 = load ptr, ptr %11, align 8, !tbaa !18
  %158 = getelementptr inbounds i8, ptr %157, i64 224
  %159 = call noundef zeroext i1 @_ZStneIbJP5QBodyNS0_13CollisionInfoEEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %158, ptr null) #9
  br i1 %159, label %160, label %164

160:                                              ; preds = %149
  %161 = load ptr, ptr %11, align 8, !tbaa !18
  %162 = getelementptr inbounds i8, ptr %161, i64 224
  %163 = call noundef zeroext i1 @_ZNKSt8functionIFbP5QBodyNS0_13CollisionInfoEEEclES1_S2_(ptr noundef nonnull align 8 dereferenceable(32) %162, ptr noundef %161, ptr noundef nonnull byval(%"struct.QBody::CollisionInfo") align 8 %14)
  %spec.select141 = and i1 %156, %163
  br label %164

164:                                              ; preds = %160, %149
  %.1129 = phi i1 [ %spec.select141, %160 ], [ %156, %149 ]
  %brmerge.demorgan = and i1 %.1127, %.1129
  %.2 = select i1 %brmerge.demorgan, i8 %.1124, i8 1
  %165 = trunc nuw i8 %.2 to i1
  br i1 %165, label %.thread, label %166

166:                                              ; preds = %164
  %167 = load ptr, ptr %92, align 8, !tbaa !27
  %168 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %167)
  br i1 %168, label %.preheader, label %.thread

.preheader:                                       ; preds = %166
  %169 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %.not163 = icmp eq i64 %169, 0
  br i1 %.not163, label %._crit_edge, label %.lr.ph

170:                                              ; preds = %.lr.ph
  %171 = add nuw i64 %.0131149, 1
  %172 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %173 = icmp ult i64 %171, %172
  br i1 %173, label %.lr.ph, label %._crit_edge, !llvm.loop !30

.lr.ph:                                           ; preds = %.preheader, %170
  %.0131149 = phi i64 [ %171, %170 ], [ 0, %.preheader ]
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.0131149) #9
  %175 = load ptr, ptr %174, align 8, !tbaa !18
  %176 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %175)
  br i1 %176, label %170, label %.thread

._crit_edge:                                      ; preds = %170, %.preheader
  %177 = load ptr, ptr %92, align 8, !tbaa !27
  %178 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %177)
  br i1 %178, label %179, label %183

179:                                              ; preds = %._crit_edge
  %180 = load ptr, ptr %92, align 8, !tbaa !27
  %181 = getelementptr inbounds i8, ptr %180, i64 232
  %182 = call { ptr, i8 } @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %181, ptr noundef nonnull align 8 dereferenceable(8) %10)
  store i8 1, ptr %51, align 8, !tbaa !32
  br label %183

183:                                              ; preds = %179, %._crit_edge
  %184 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %.not164 = icmp eq i64 %184, 0
  br i1 %.not164, label %._crit_edge154, label %.lr.ph153

._crit_edge154:                                   ; preds = %195, %183
  %.0133.lcssa = phi i8 [ 0, %183 ], [ %.1134, %195 ]
  %185 = load ptr, ptr %92, align 8, !tbaa !27
  %186 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %185)
  br i1 %186, label %199, label %207

.lr.ph153:                                        ; preds = %183, %195
  %.0130151 = phi i64 [ %196, %195 ], [ 0, %183 ]
  %.0133150 = phi i8 [ %.1134, %195 ], [ 0, %183 ]
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.0130151) #9
  %188 = load ptr, ptr %187, align 8, !tbaa !18
  %189 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %188)
  br i1 %189, label %190, label %195

190:                                              ; preds = %.lr.ph153
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.0130151) #9
  %192 = load ptr, ptr %191, align 8, !tbaa !18
  %193 = getelementptr inbounds i8, ptr %192, i64 232
  %194 = call { ptr, i8 } @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %193, ptr noundef nonnull align 8 dereferenceable(8) %11)
  store i8 1, ptr %51, align 8, !tbaa !32
  br label %195

195:                                              ; preds = %.lr.ph153, %190
  %.1134 = phi i8 [ 1, %190 ], [ %.0133150, %.lr.ph153 ]
  %196 = add nuw i64 %.0130151, 1
  %197 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %198 = icmp ult i64 %196, %197
  br i1 %198, label %.lr.ph153, label %._crit_edge154, !llvm.loop !33

199:                                              ; preds = %._crit_edge154
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %200 = load ptr, ptr %92, align 8, !tbaa !27
  %201 = getelementptr inbounds i8, ptr %200, i64 176
  %202 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %201, ptr noundef nonnull align 8 dereferenceable(8) %10)
  store ptr %202, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %203 = load ptr, ptr %92, align 8, !tbaa !27
  %204 = getelementptr inbounds i8, ptr %203, i64 176
  %205 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %204) #9
  store ptr %205, ptr %16, align 8
  %206 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP5QBodyLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  br i1 %206, label %.thread, label %207

207:                                              ; preds = %199, %._crit_edge154
  %208 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %.not165 = icmp eq i64 %208, 0
  br i1 %.not165, label %.loopexit, label %.lr.ph157

.lr.ph157:                                        ; preds = %207, %222
  %.0125155 = phi i64 [ %223, %222 ], [ 0, %207 ]
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.0125155) #9
  %210 = load ptr, ptr %209, align 8, !tbaa !18
  %211 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %210)
  br i1 %211, label %212, label %222

212:                                              ; preds = %.lr.ph157
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.0125155) #9
  %214 = load ptr, ptr %213, align 8, !tbaa !18
  %215 = getelementptr inbounds i8, ptr %214, i64 176
  %216 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %215, ptr noundef nonnull align 8 dereferenceable(8) %11)
  store ptr %216, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %.0125155) #9
  %218 = load ptr, ptr %217, align 8, !tbaa !18
  %219 = getelementptr inbounds i8, ptr %218, i64 176
  %220 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %219) #9
  store ptr %220, ptr %18, align 8
  %221 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP5QBodyLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  %spec.select142 = select i1 %221, i8 1, i8 %.2
  br label %.loopexit

222:                                              ; preds = %.lr.ph157
  %223 = add nuw i64 %.0125155, 1
  %224 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %225 = icmp ult i64 %223, %224
  br i1 %225, label %.lr.ph157, label %.loopexit, !llvm.loop !34

.loopexit:                                        ; preds = %222, %207, %212
  %.5 = phi i8 [ %spec.select142, %212 ], [ %.2, %207 ], [ %.2, %222 ]
  %226 = trunc nuw i8 %.5 to i1
  br i1 %226, label %.thread, label %227

227:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  call void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %20)
  %228 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %228, ptr %19, align 8
  %229 = load i64, ptr %3, align 8
  store i64 %229, ptr %20, align 8
  %230 = load i8, ptr %51, align 8, !tbaa !32, !range !35, !noundef !36
  %231 = icmp eq i8 %230, 0
  br i1 %231, label %232, label %249

232:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  %233 = load ptr, ptr %11, align 8, !tbaa !18
  %234 = load ptr, ptr %233, align 8, !tbaa !28
  %235 = getelementptr inbounds i8, ptr %234, i64 64
  %236 = load ptr, ptr %235, align 8
  %237 = call noundef float %236(ptr noundef nonnull align 8 dereferenceable(293) %233)
  %238 = load float, ptr %52, align 4, !tbaa !37
  %239 = fmul float %237, %238
  store float %239, ptr %21, align 4, !tbaa !25
  %240 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectormLERKf(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  %241 = load ptr, ptr %10, align 8, !tbaa !18
  %242 = load ptr, ptr %241, align 8, !tbaa !28
  %243 = getelementptr inbounds i8, ptr %242, i64 64
  %244 = load ptr, ptr %243, align 8
  %245 = call noundef float %244(ptr noundef nonnull align 8 dereferenceable(293) %241)
  %246 = load float, ptr %52, align 4, !tbaa !37
  %247 = fmul float %245, %246
  store float %247, ptr %22, align 4, !tbaa !25
  %248 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7QVectormLERKf(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  br label %249

249:                                              ; preds = %232, %227
  %250 = load ptr, ptr %11, align 8, !tbaa !18
  %251 = load ptr, ptr %10, align 8, !tbaa !18
  %252 = load ptr, ptr %250, align 8, !tbaa !28
  %253 = getelementptr inbounds i8, ptr %252, i64 16
  %254 = load ptr, ptr %253, align 8
  %255 = call noundef zeroext i1 %254(ptr noundef nonnull align 8 dereferenceable(293) %250, ptr noundef %251)
  %.not143 = xor i1 %255, true
  %brmerge144 = or i1 %178, %.not143
  br i1 %brmerge144, label %273, label %256

256:                                              ; preds = %249
  %257 = getelementptr inbounds i8, ptr %55, i64 56
  store i8 1, ptr %257, align 8, !tbaa !38
  %.not = icmp eq ptr %spec.select139, null
  br i1 %.not, label %263, label %258

258:                                              ; preds = %256
  %.sroa.07.0.copyload = load <2 x float>, ptr %19, align 8
  %259 = load ptr, ptr %spec.select139, align 8, !tbaa !28
  %260 = getelementptr inbounds i8, ptr %259, i64 80
  %261 = load ptr, ptr %260, align 8
  %262 = call noundef ptr %261(ptr noundef nonnull align 8 dereferenceable(308) %spec.select139, <2 x float> %.sroa.07.0.copyload, <2 x float> %106, i1 noundef zeroext true)
  br label %273

263:                                              ; preds = %256
  %264 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %265 = icmp eq i64 %264, 2
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 0) #9
  %267 = load ptr, ptr %266, align 8, !tbaa !18
  br i1 %265, label %268, label %271

268:                                              ; preds = %263
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 1) #9
  %270 = load ptr, ptr %269, align 8, !tbaa !18
  %.sroa.05.0.copyload = load <2 x float>, ptr %19, align 8
  %.sroa.04.0.copyload = load <2 x float>, ptr %55, align 8
  call void @_ZN9QParticle27ApplyForceToParticleSegmentEPS_S0_7QVectorS1_(ptr noundef %267, ptr noundef %270, <2 x float> %.sroa.05.0.copyload, <2 x float> %.sroa.04.0.copyload)
  br label %273

271:                                              ; preds = %263
  %.sroa.03.0.copyload = load <2 x float>, ptr %19, align 8
  %272 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %267, <2 x float> %.sroa.03.0.copyload)
  br label %273

273:                                              ; preds = %249, %258, %271, %268
  %274 = load ptr, ptr %10, align 8, !tbaa !18
  %275 = load ptr, ptr %11, align 8, !tbaa !18
  %276 = load ptr, ptr %274, align 8, !tbaa !28
  %277 = getelementptr inbounds i8, ptr %276, i64 16
  %278 = load ptr, ptr %277, align 8
  %279 = call noundef zeroext i1 %278(ptr noundef nonnull align 8 dereferenceable(293) %274, ptr noundef %275)
  %280 = and i8 %.0133.lcssa, 1
  %281 = icmp eq i8 %280, 0
  %or.cond = select i1 %279, i1 %281, i1 false
  br i1 %or.cond, label %282, label %292

282:                                              ; preds = %273
  %283 = getelementptr inbounds i8, ptr %55, i64 56
  store i8 1, ptr %283, align 8, !tbaa !38
  %.not137 = icmp eq ptr %.0122, null
  br i1 %.not137, label %289, label %284

284:                                              ; preds = %282
  %.sroa.02.0.copyload = load <2 x float>, ptr %20, align 8
  %285 = load ptr, ptr %.0122, align 8, !tbaa !28
  %286 = getelementptr inbounds i8, ptr %285, i64 80
  %287 = load ptr, ptr %286, align 8
  %288 = call noundef ptr %287(ptr noundef nonnull align 8 dereferenceable(308) %.0122, <2 x float> %.sroa.02.0.copyload, <2 x float> %109, i1 noundef zeroext true)
  br label %292

289:                                              ; preds = %282
  %290 = load ptr, ptr %92, align 8, !tbaa !27
  %.sroa.0.0.copyload = load <2 x float>, ptr %20, align 8
  %291 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %290, <2 x float> %.sroa.0.0.copyload)
  br label %292

292:                                              ; preds = %284, %289, %273
  br i1 %178, label %295, label %293

293:                                              ; preds = %292
  %294 = trunc nuw i8 %.0133.lcssa to i1
  br i1 %294, label %295, label %297

295:                                              ; preds = %293, %292
  %296 = getelementptr inbounds i8, ptr %55, i64 56
  store i8 0, ptr %296, align 8, !tbaa !38
  br label %297

297:                                              ; preds = %295, %293
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %.thread

.thread:                                          ; preds = %.lr.ph, %297, %199, %.loopexit, %166, %164
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %298 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  %299 = icmp ugt i64 %298, %indvars.iv.next
  br i1 %299, label %53, label %._crit_edge161, !llvm.loop !39

300:                                              ; preds = %117, %111
  %.pn = phi { ptr, i32 } [ %118, %117 ], [ %112, %111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zml7QVectorf(<2 x float>, float noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP6QGizmoSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28), <2 x float>, <2 x float>) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10QGizmoRectC2E5QAABB(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef byval(%class.QAABB) align 8) unnamed_addr #5 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

declare void @_ZN9QAreaBody15AddCollidedBodyEP5QBody(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5QBody13CollisionInfoC2E7QVectorPS_S1_f(ptr noundef nonnull align 8 dereferenceable(28), <2 x float>, ptr noundef, <2 x float>, float noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbP5QBodyNS0_13CollisionInfoEEEclES1_S2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef byval(%"struct.QBody::CollisionInfo") align 8) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7QVectorC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #5 align 2

declare void @_ZN9QParticle27ApplyForceToParticleSegmentEPS_S0_7QVectorS1_(ptr noundef, ptr noundef, <2 x float>, <2 x float>) local_unnamed_addr #8

declare noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290), <2 x float>) local_unnamed_addr #8

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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"="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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin 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 #8 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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, !12, i64 24}
!6 = !{!"_ZTS9QManifold", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24, !12, i64 32, !13, i64 40}
!7 = !{!"_ZTS7QVector", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTSSt6vectorIPN10QCollision7ContactESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN10QCollision7ContactESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN10QCollision7ContactESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN10QCollision7ContactESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!17 = !{!6, !12, i64 32}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !8, i64 24}
!20 = !{!"_ZTSN10QCollision7ContactE", !7, i64 0, !12, i64 8, !7, i64 16, !8, i64 24, !21, i64 32, !11, i64 56}
!21 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!25 = !{!8, !8, i64 0}
!26 = !{!6, !8, i64 8}
!27 = !{!20, !12, i64 8}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !10, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !11, i64 16}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!6, !8, i64 12}
!38 = !{!20, !11, i64 56}
!39 = distinct !{!39, !31}


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