; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qworld.ll (ZN6QWorld19GetBodiesHitByPointE7QVectoribi)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%struct.QVector = type { float, float }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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.__gnu_cxx::__normal_iterator.43" = type { ptr }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = 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 }
%class.QWorld = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.15", %"class.std::unordered_set", %"class.std::vector.25", ptr, i8, %struct.QVector, i8, i8, i32, float, float, float, i32, i32, %"class.std::vector.30" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = 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" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = 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.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.36", i8, [7 x i8], %"class.std::vector.38", 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.36" = type { %"class.std::_Function_base", ptr }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = 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 }
%struct.QMesh = type { %"class.std::vector.44", %struct.QVector, %struct.QVector, float, float, %"class.std::vector.0", %"class.std::vector.49", %"class.std::vector.44", %"class.std::vector.54", %"class.std::vector.59", float, ptr, i32, %"class.std::vector.64", i8, i8, %"class.std::vector.69", float, i8, i8, i8, i8 }
%"class.std::vector.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = type { %"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_Vector_impl" }
%"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QAngleConstraint *, std::allocator<QAngleConstraint *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.54" = type { %"struct.std::_Vector_base.55" }
%"struct.std::_Vector_base.55" = type { %"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<QParticle *>, std::allocator<std::vector<QParticle *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = 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::vector.64" = type { %"struct.std::_Vector_base.65" }
%"struct.std::_Vector_base.65" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.69" = type { %"struct.std::_Vector_base.70" }
%"struct.std::_Vector_base.70" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(293)) #0 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) #3

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

declare noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256)) #5

declare noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6QWorld19GetBodiesHitByPointE7QVectoribi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.30") align 8 %0, ptr noundef nonnull align 8 dereferenceable(272) %1, <2 x float> %2, i32 noundef %3, i1 noundef zeroext %4, i32 noundef %5) #7 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca %struct.QVector, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i1, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.QAABB, align 4
  %17 = alloca %struct.QVector, align 4
  %18 = alloca %struct.QVector, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %struct.QVector, align 4
  %23 = alloca %struct.QVector, align 4
  %24 = alloca %class.QAABB, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca %struct.QVector, align 4
  %32 = alloca %struct.QVector, align 4
  %33 = alloca %struct.QVector, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"class.std::vector.44", align 8
  store ptr %0, ptr %7, align 8
  store <2 x float> %2, ptr %8, align 4
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  %36 = zext i1 %4 to i8
  store i8 %36, ptr %11, align 1, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !9
  %37 = load ptr, ptr %9, align 8
  store i1 false, ptr %13, align 1
  call void @_ZNSt6vectorIP5QBodySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %39)
          to label %40 unwind label %51

40:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 28, ptr %16) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !13
  %41 = load <2 x float>, ptr %17, align 4
  %42 = load <2 x float>, ptr %18, align 4
  invoke void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28) %16, <2 x float> %41, <2 x float> %42)
          to label %43 unwind label %55

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %285, %43
  %45 = load i32, ptr %19, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds %class.QWorld, ptr %37, i32 0, i32 18
  %48 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #9
  %49 = icmp ult i64 %46, %48
  br i1 %49, label %59, label %50

50:                                               ; preds = %44
  store i32 2, ptr %20, align 4
  br label %289

51:                                               ; preds = %6
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %14, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %15, align 4
  br label %295

55:                                               ; preds = %40
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %14, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %15, align 4
  br label %292

59:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %60 = getelementptr inbounds %class.QWorld, ptr %37, i32 0, i32 18
  %61 = load i32, ptr %19, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #9
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  store ptr %64, ptr %21, align 8, !tbaa !5
  %65 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %66 = trunc i8 %65 to i1
  %67 = zext i1 %66 to i32
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %75

69:                                               ; preds = %59
  %70 = load ptr, ptr %21, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.QBody, ptr %70, i32 0, i32 45
  %72 = load i32, ptr %71, align 8, !tbaa !18
  %73 = icmp ne i32 %72, 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %69
  store i32 4, ptr %20, align 4
  br label %282

75:                                               ; preds = %69, %59
  %76 = getelementptr inbounds %class.QWorld, ptr %37, i32 0, i32 11
  %77 = load i8, ptr %76, align 1, !tbaa !32, !range !16, !noundef !17
  %78 = trunc i8 %77 to i1
  %79 = zext i1 %78 to i32
  %80 = icmp eq i32 %79, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  br i1 %80, label %81, label %99

81:                                               ; preds = %75
  %82 = load ptr, ptr %21, align 8, !tbaa !5
  %83 = invoke <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %82)
          to label %84 unwind label %102

84:                                               ; preds = %81
  store <2 x float> %83, ptr %22, align 4
  %85 = getelementptr inbounds %struct.QVector, ptr %22, i32 0, i32 0
  %86 = load float, ptr %85, align 4, !tbaa !67
  %87 = getelementptr inbounds %struct.QVector, ptr %8, i32 0, i32 0
  %88 = load float, ptr %87, align 4, !tbaa !67
  %89 = fcmp olt float %86, %88
  br i1 %89, label %90, label %99

90:                                               ; preds = %84
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  %92 = invoke <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %91)
          to label %93 unwind label %106

93:                                               ; preds = %90
  store <2 x float> %92, ptr %23, align 4
  %94 = getelementptr inbounds %struct.QVector, ptr %23, i32 0, i32 0
  %95 = load float, ptr %94, align 4, !tbaa !67
  %96 = getelementptr inbounds %struct.QVector, ptr %8, i32 0, i32 0
  %97 = load float, ptr %96, align 4, !tbaa !67
  %98 = fcmp ogt float %95, %97
  br label %99

99:                                               ; preds = %93, %84, %75
  %100 = phi i1 [ false, %84 ], [ false, %75 ], [ %98, %93 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br i1 %100, label %101, label %111

101:                                              ; preds = %99
  store i32 4, ptr %20, align 4
  br label %282

102:                                              ; preds = %81
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %14, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %15, align 4
  br label %110

106:                                              ; preds = %90
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %14, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %288

111:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 28, ptr %24) #9
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %24, ptr noundef nonnull align 8 dereferenceable(293) %112)
          to label %113 unwind label %119

113:                                              ; preds = %111
  %114 = invoke noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %24, ptr noundef nonnull align 4 dereferenceable(28) %16)
          to label %115 unwind label %119

115:                                              ; preds = %113
  %116 = zext i1 %114 to i32
  %117 = icmp eq i32 %116, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr %24) #9
  br i1 %117, label %118, label %123

118:                                              ; preds = %115
  store i32 4, ptr %20, align 4
  br label %282

119:                                              ; preds = %113, %111
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %24) #9
  br label %288

123:                                              ; preds = %115
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = icmp ne i32 %124, -1
  br i1 %125, label %126, label %139

126:                                              ; preds = %123
  %127 = load ptr, ptr %21, align 8, !tbaa !5
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = invoke noundef zeroext i1 @_ZN5QBody23GetOverlapWithLayersBitEi(ptr noundef nonnull align 8 dereferenceable(293) %127, i32 noundef %128)
          to label %130 unwind label %134

130:                                              ; preds = %126
  %131 = zext i1 %129 to i32
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %130
  store i32 4, ptr %20, align 4
  br label %282

134:                                              ; preds = %126
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %14, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %15, align 4
  br label %288

138:                                              ; preds = %130
  br label %139

139:                                              ; preds = %138, %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %140 = load ptr, ptr %21, align 8, !tbaa !5
  %141 = invoke noundef ptr @_ZN5QBody9GetMeshesEv(ptr noundef nonnull align 8 dereferenceable(293) %140)
          to label %142 unwind label %152

142:                                              ; preds = %139
  store ptr %141, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %143 = load ptr, ptr %25, align 8, !tbaa !5
  %144 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #9
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %26, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %146 = load ptr, ptr %25, align 8, !tbaa !5
  %147 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %146) #9
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %27, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  br label %149

149:                                              ; preds = %271, %142
  %150 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QMeshSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  br i1 %150, label %156, label %151

151:                                              ; preds = %149
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %275

152:                                              ; preds = %139
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %14, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %15, align 4
  br label %274

156:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  store ptr %158, ptr %28, align 8, !tbaa !5
  %159 = load ptr, ptr %28, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.QMesh, ptr %159, i32 0, i32 12
  %161 = load i32, ptr %160, align 8, !tbaa !68
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %168, label %163

163:                                              ; preds = %156
  %164 = load ptr, ptr %28, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.QMesh, ptr %164, i32 0, i32 12
  %166 = load i32, ptr %165, align 8, !tbaa !68
  %167 = icmp eq i32 %166, 2
  br i1 %167, label %168, label %219

168:                                              ; preds = %163, %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %212, %168
  %170 = load i32, ptr %29, align 4, !tbaa !9
  %171 = load ptr, ptr %28, align 8, !tbaa !5
  %172 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %171)
          to label %173 unwind label %176

173:                                              ; preds = %169
  %174 = icmp slt i32 %170, %172
  br i1 %174, label %180, label %175

175:                                              ; preds = %173
  store i32 7, ptr %20, align 4
  br label %216

176:                                              ; preds = %169
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %14, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %15, align 4
  br label %217

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %181 = load ptr, ptr %28, align 8, !tbaa !5
  %182 = load i32, ptr %29, align 4, !tbaa !9
  %183 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %181, i32 noundef %182)
          to label %184 unwind label %200

184:                                              ; preds = %180
  store ptr %183, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !13
  %185 = load ptr, ptr %30, align 8, !tbaa !5
  %186 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %185)
          to label %187 unwind label %204

187:                                              ; preds = %184
  store <2 x float> %186, ptr %33, align 4
  %188 = load <2 x float>, ptr %32, align 4
  %189 = load <2 x float>, ptr %33, align 4
  %190 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %188, <2 x float> %189)
          to label %191 unwind label %204

191:                                              ; preds = %187
  store <2 x float> %190, ptr %31, align 4
  %192 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %31)
          to label %193 unwind label %204

193:                                              ; preds = %191
  %194 = load ptr, ptr %30, align 8, !tbaa !5
  %195 = invoke noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %194)
          to label %196 unwind label %204

196:                                              ; preds = %193
  %197 = fcmp olt float %192, %195
  br i1 %197, label %198, label %208

198:                                              ; preds = %196
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %199 unwind label %204

199:                                              ; preds = %198
  store i32 7, ptr %20, align 4
  br label %209

200:                                              ; preds = %180
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %14, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %15, align 4
  br label %215

204:                                              ; preds = %198, %193, %191, %187, %184
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %14, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %215

208:                                              ; preds = %196
  store i32 0, ptr %20, align 4
  br label %209

209:                                              ; preds = %208, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  %210 = load i32, ptr %20, align 4
  switch i32 %210, label %216 [
    i32 0, label %211
  ]

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %29, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %29, align 4, !tbaa !9
  br label %169, !llvm.loop !95

215:                                              ; preds = %204, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %217

216:                                              ; preds = %209, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %218

217:                                              ; preds = %215, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %273

218:                                              ; preds = %216
  br label %219

219:                                              ; preds = %218, %163
  %220 = load ptr, ptr %28, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.QMesh, ptr %220, i32 0, i32 12
  %222 = load i32, ptr %221, align 8, !tbaa !68
  %223 = icmp eq i32 %222, 1
  br i1 %223, label %229, label %224

224:                                              ; preds = %219
  %225 = load ptr, ptr %28, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.QMesh, ptr %225, i32 0, i32 12
  %227 = load i32, ptr %226, align 8, !tbaa !68
  %228 = icmp eq i32 %227, 2
  br i1 %228, label %229, label %270

229:                                              ; preds = %224, %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %263, %229
  %231 = load i32, ptr %34, align 4, !tbaa !9
  %232 = load ptr, ptr %28, align 8, !tbaa !5
  %233 = invoke noundef i32 @_ZN5QMesh24GetSubConvexPolygonCountEv(ptr noundef nonnull align 8 dereferenceable(256) %232)
          to label %234 unwind label %237

234:                                              ; preds = %230
  %235 = icmp slt i32 %231, %233
  br i1 %235, label %241, label %236

236:                                              ; preds = %234
  store i32 10, ptr %20, align 4
  br label %267

237:                                              ; preds = %230
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %14, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %15, align 4
  br label %268

241:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #9
  %242 = load ptr, ptr %28, align 8, !tbaa !5
  %243 = load i32, ptr %34, align 4, !tbaa !9
  %244 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5QMesh21GetSubConvexPolygonAtEi(ptr noundef nonnull align 8 dereferenceable(256) %242, i32 noundef %243)
          to label %245 unwind label %251

245:                                              ; preds = %241
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %244)
          to label %246 unwind label %251

246:                                              ; preds = %245
  %247 = invoke noundef zeroext i1 @_ZN10QCollision14PointInPolygonER7QVectorRSt6vectorIP9QParticleSaIS4_EE(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %248 unwind label %255

248:                                              ; preds = %246
  br i1 %247, label %249, label %259

249:                                              ; preds = %248
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %250 unwind label %255

250:                                              ; preds = %249
  store i32 10, ptr %20, align 4
  br label %260

251:                                              ; preds = %245, %241
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %14, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %15, align 4
  br label %266

255:                                              ; preds = %249, %246
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %14, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %15, align 4
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  br label %266

259:                                              ; preds = %248
  store i32 0, ptr %20, align 4
  br label %260

260:                                              ; preds = %259, %250
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #9
  %261 = load i32, ptr %20, align 4
  switch i32 %261, label %267 [
    i32 0, label %262
  ]

262:                                              ; preds = %260
  br label %263

263:                                              ; preds = %262
  %264 = load i32, ptr %34, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %34, align 4, !tbaa !9
  br label %230, !llvm.loop !97

266:                                              ; preds = %255, %251
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #9
  br label %268

267:                                              ; preds = %260, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %269

268:                                              ; preds = %266, %237
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %273

269:                                              ; preds = %267
  br label %270

270:                                              ; preds = %269, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %271

271:                                              ; preds = %270
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #9
  br label %149

273:                                              ; preds = %268, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %274

274:                                              ; preds = %273, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %288

275:                                              ; preds = %151
  %276 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %277 = load i32, ptr %10, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = icmp eq i64 %276, %278
  br i1 %279, label %280, label %281

280:                                              ; preds = %275
  store i32 2, ptr %20, align 4
  br label %282

281:                                              ; preds = %275
  store i32 0, ptr %20, align 4
  br label %282

282:                                              ; preds = %281, %280, %133, %118, %101, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %283 = load i32, ptr %20, align 4
  switch i32 %283, label %289 [
    i32 0, label %284
    i32 4, label %285
  ]

284:                                              ; preds = %282
  br label %285

285:                                              ; preds = %284, %282
  %286 = load i32, ptr %19, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %19, align 4, !tbaa !9
  br label %44, !llvm.loop !98

288:                                              ; preds = %274, %134, %119, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %292

289:                                              ; preds = %282, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %290

290:                                              ; preds = %289
  store i1 true, ptr %13, align 1
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %16) #9
  %291 = load i1, ptr %13, align 1
  br i1 %291, label %294, label %293

292:                                              ; preds = %288, %55
  call void @llvm.lifetime.end.p0(i64 28, ptr %16) #9
  br label %295

293:                                              ; preds = %290
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %294

294:                                              ; preds = %293, %290
  ret void

295:                                              ; preds = %292, %51
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %296

296:                                              ; preds = %295
  %297 = load ptr, ptr %14, align 8
  %298 = load i32, ptr %15, align 4
  %299 = insertvalue { ptr, i32 } poison, ptr %297, 0
  %300 = insertvalue { ptr, i32 } %299, i32 %298, 1
  resume { ptr, i32 } %300
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP5QBodySaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 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 #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(28)) #0 align 2

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

declare noundef ptr @_ZN5QBody9GetMeshesEv(ptr noundef nonnull align 8 dereferenceable(293)) #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5QMesh21GetSubConvexPolygonAtEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #6 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

declare noundef zeroext i1 @_ZN10QCollision14PointInPolygonER7QVectorRSt6vectorIP9QParticleSaIS4_EE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !31, i64 288}
!19 = !{!"_ZTS5QBody", !15, i64 8, !15, i64 12, !6, i64 16, !20, i64 24, !20, i64 32, !15, i64 40, !15, i64 44, !21, i64 48, !22, i64 76, !12, i64 80, !12, i64 81, !12, i64 82, !15, i64 84, !23, i64 88, !12, i64 92, !15, i64 96, !12, i64 100, !12, i64 101, !20, i64 104, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !10, i64 132, !10, i64 136, !12, i64 140, !12, i64 141, !12, i64 142, !10, i64 144, !10, i64 148, !10, i64 152, !12, i64 156, !24, i64 160, !24, i64 192, !26, i64 224, !12, i64 256, !27, i64 264, !31, i64 288, !12, i64 292}
!20 = !{!"_ZTS7QVector", !15, i64 0, !15, i64 4}
!21 = !{!"_ZTS5QAABB", !20, i64 0, !20, i64 8, !20, i64 16, !15, i64 24}
!22 = !{!"_ZTSN5QBody5ModesE", !7, i64 0}
!23 = !{!"_ZTSN5QBody9BodyTypesE", !7, i64 0}
!24 = !{!"_ZTSSt8functionIFvP5QBodyEE", !25, i64 0, !6, i64 24}
!25 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!26 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !25, i64 0, !6, i64 24}
!27 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSN5QBody16SimulationModelsE", !7, i64 0}
!32 = !{!33, !12, i64 221}
!33 = !{!"_ZTS6QWorld", !34, i64 0, !38, i64 24, !42, i64 48, !46, i64 72, !50, i64 96, !54, i64 120, !59, i64 176, !6, i64 200, !12, i64 208, !20, i64 212, !12, i64 220, !12, i64 221, !10, i64 224, !15, i64 228, !15, i64 232, !15, i64 236, !10, i64 240, !10, i64 244, !63, i64 248}
!34 = !{!"_ZTSSt6vectorIP6QJointSaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIP6QJointSaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP6QJointSaIS1_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIP6QJointSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt6vectorIP7QSpringSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIP7QSpringSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSSt6vectorIP8QRaycastSaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIP8QRaycastSaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIP8QRaycastSaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIP8QRaycastSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt6vectorIP6QGizmoSaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIP6QGizmoSaIS1_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIP6QGizmoSaIS1_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIP6QGizmoSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!"_ZTSSt6vectorIS_IP5QBodySaIS1_EESaIS3_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseISt6vectorIP5QBodySaIS2_EESaIS4_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP5QBodySaIS2_EESaIS4_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP5QBodySaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{!"_ZTSSt13unordered_setISt4pairIP5QBodyS2_ENS1_12BodyPairHashENS1_13BodyPairEqualESaIS3_EE", !55, i64 0}
!55 = !{!"_ZTSSt10_HashtableISt4pairIP5QBodyS2_ES3_SaIS3_ENSt8__detail9_IdentityENS1_13BodyPairEqualENS1_12BodyPairHashENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !56, i64 8, !57, i64 16, !56, i64 24, !58, i64 32, !6, i64 48}
!56 = !{!"long", !7, i64 0}
!57 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!58 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !15, i64 0, !56, i64 8}
!59 = !{!"_ZTSSt6vectorI9QManifoldSaIS0_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseI9QManifoldSaIS0_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseI9QManifoldSaIS0_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseI9QManifoldSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!63 = !{!"_ZTSSt6vectorIP5QBodySaIS1_EE", !64, i64 0}
!64 = !{!"_ZTSSt12_Vector_baseIP5QBodySaIS1_EE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseIP5QBodySaIS1_EE12_Vector_implE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseIP5QBodySaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!67 = !{!20, !15, i64 0}
!68 = !{!69, !86, i64 184}
!69 = !{!"_ZTS5QMesh", !70, i64 0, !20, i64 24, !20, i64 32, !15, i64 40, !15, i64 44, !38, i64 48, !74, i64 72, !70, i64 96, !78, i64 120, !82, i64 144, !15, i64 168, !6, i64 176, !86, i64 184, !87, i64 192, !12, i64 216, !12, i64 217, !91, i64 224, !15, i64 248, !12, i64 252, !12, i64 253, !12, i64 254, !12, i64 255}
!70 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !71, i64 0}
!71 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!74 = !{!"_ZTSSt6vectorIP16QAngleConstraintSaIS1_EE", !75, i64 0}
!75 = !{!"_ZTSSt12_Vector_baseIP16QAngleConstraintSaIS1_EE", !76, i64 0}
!76 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE12_Vector_implE", !77, i64 0}
!77 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!78 = !{!"_ZTSSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE", !79, i64 0}
!79 = !{!"_ZTSSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE", !80, i64 0}
!80 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE12_Vector_implE", !81, i64 0}
!81 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!82 = !{!"_ZTSSt6vectorI7QVectorSaIS0_EE", !83, i64 0}
!83 = !{!"_ZTSSt12_Vector_baseI7QVectorSaIS0_EE", !84, i64 0}
!84 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE12_Vector_implE", !85, i64 0}
!85 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!86 = !{!"_ZTSN5QMesh18CollisionBehaviorsE", !7, i64 0}
!87 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !88, i64 0}
!88 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !89, i64 0}
!89 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !90, i64 0}
!90 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!91 = !{!"_ZTSSt6vectorIfSaIfEE", !92, i64 0}
!92 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !93, i64 0}
!93 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !94, i64 0}
!94 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!95 = distinct !{!95, !96}
!96 = !{!"llvm.loop.mustprogress"}
!97 = distinct !{!97, !96}
!98 = distinct !{!98, !96}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%struct.QVector = type { float, float }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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.__gnu_cxx::__normal_iterator.43" = type { ptr }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = 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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #0 align 2

; 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

declare noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #4

declare noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6QWorld19GetBodiesHitByPointE7QVectoribi(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.30") align 8 %0, ptr noundef nonnull align 8 dereferenceable(272) %1, <2 x float> %2, i32 noundef %3, i1 noundef zeroext %4, i32 noundef %5) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %struct.QVector, align 8
  %8 = alloca %class.QAABB, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %class.QAABB, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %13 = alloca %struct.QVector, align 8
  %14 = alloca %"class.std::vector.44", align 8
  store <2 x float> %2, ptr %7, align 8
  tail call void @_ZNSt6vectorIP5QBodySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %15 = sext i32 %3 to i64
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %15)
          to label %16 unwind label %20

16:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %8) #8
  invoke void @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28) %8, <2 x float> %2, <2 x float> %2)
          to label %.preheader78 unwind label %22

.preheader78:                                     ; preds = %16
  %17 = getelementptr inbounds i8, ptr %1, i64 248
  %18 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %.not82 = icmp eq i64 %18, 0
  br i1 %.not82, label %.loopexit79, label %.lr.ph81

.lr.ph81:                                         ; preds = %.preheader78
  %19 = getelementptr inbounds i8, ptr %1, i64 221
  %.not56 = icmp eq i32 %5, -1
  br label %24

20:                                               ; preds = %6
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %114

22:                                               ; preds = %16
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %113

24:                                               ; preds = %.lr.ph81, %110
  %indvars.iv = phi i64 [ 0, %.lr.ph81 ], [ %indvars.iv.next, %110 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %9, align 8, !tbaa !5
  br i1 %4, label %27, label %30

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %26, i64 288
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %.not = icmp eq i32 %29, 1
  br i1 %.not, label %30, label %110

30:                                               ; preds = %27, %24
  %31 = load i8, ptr %19, align 1, !tbaa !26, !range !61, !noundef !62
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %.critedge

33:                                               ; preds = %30
  %34 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %26)
  %.sroa.020.0.vec.extract = extractelement <2 x float> %34, i64 0
  %35 = load float, ptr %7, align 8, !tbaa !63
  %36 = fcmp olt float %.sroa.020.0.vec.extract, %35
  %.pre84 = load ptr, ptr %9, align 8, !tbaa !5
  br i1 %36, label %37, label %.critedge

37:                                               ; preds = %33
  %38 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %.pre84)
  %.sroa.019.0.vec.extract = extractelement <2 x float> %38, i64 0
  %39 = load float, ptr %7, align 8, !tbaa !63
  %40 = fcmp ogt float %.sroa.019.0.vec.extract, %39
  br i1 %40, label %110, label %..critedge_crit_edge

..critedge_crit_edge:                             ; preds = %37
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %..critedge_crit_edge, %33, %30
  %41 = phi ptr [ %.pre, %..critedge_crit_edge ], [ %.pre84, %33 ], [ %26, %30 ]
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %10) #8
  call void @_ZNK5QBody7GetAABBEv(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %10, ptr noundef nonnull align 8 dereferenceable(293) %41)
  %42 = call noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %10, ptr noundef nonnull align 4 dereferenceable(28) %8)
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #8
  br i1 %42, label %43, label %110

43:                                               ; preds = %.critedge
  br i1 %.not56, label %47, label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZN5QBody23GetOverlapWithLayersBitEi(ptr noundef nonnull align 8 dereferenceable(293) %45, i32 noundef %5)
  br i1 %46, label %47, label %110

47:                                               ; preds = %44, %43
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = invoke noundef ptr @_ZN5QBody9GetMeshesEv(ptr noundef nonnull align 8 dereferenceable(293) %48)
          to label %50 unwind label %56

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %51 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #8
  store ptr %51, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %52 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #8
  store ptr %52, ptr %12, align 8
  %53 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QMeshSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %53, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %54 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %55 = icmp eq i64 %54, %15
  br i1 %55, label %109, label %110

56:                                               ; preds = %47
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %108

.lr.ph:                                           ; preds = %50, %.loopexit
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 184
  %61 = load i32, ptr %60, align 8, !tbaa !64
  switch i32 %61, label %.loopexit72 [
    i32 0, label %.preheader85
    i32 2, label %.preheader85
  ]

.preheader85:                                     ; preds = %.lr.ph, %.lr.ph
  br label %62

62:                                               ; preds = %.preheader85, %83
  %.047 = phi i32 [ %84, %83 ], [ 0, %.preheader85 ]
  %63 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %59)
          to label %64 unwind label %66

64:                                               ; preds = %62
  %65 = icmp slt i32 %.047, %63
  br i1 %65, label %68, label %.loopexit72

66:                                               ; preds = %62
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %107

68:                                               ; preds = %64
  %69 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %59, i32 noundef %.047)
          to label %70 unwind label %79

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %.sroa.04.0.copyload = load <2 x float>, ptr %7, align 8
  %71 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %69)
  %72 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.04.0.copyload, <2 x float> %71)
          to label %73 unwind label %.loopexit73

73:                                               ; preds = %70
  store <2 x float> %72, ptr %13, align 8
  %74 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %75 unwind label %.loopexit73

75:                                               ; preds = %73
  %76 = call noundef float @_ZN9QParticle9GetRadiusEv(ptr noundef nonnull align 8 dereferenceable(290) %69)
  %77 = fcmp uge float %74, %76
  br i1 %77, label %83, label %78

78:                                               ; preds = %75
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %82 unwind label %.loopexit.split-lp74

79:                                               ; preds = %68
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %107

.loopexit73:                                      ; preds = %70, %73
  %lpad.loopexit75 = landingpad { ptr, i32 }
          cleanup
  br label %81

.loopexit.split-lp74:                             ; preds = %78
  %lpad.loopexit.split-lp76 = landingpad { ptr, i32 }
          cleanup
  br label %81

81:                                               ; preds = %.loopexit.split-lp74, %.loopexit73
  %lpad.phi77 = phi { ptr, i32 } [ %lpad.loopexit75, %.loopexit73 ], [ %lpad.loopexit.split-lp76, %.loopexit.split-lp74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %107

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %.loopexit72

83:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %84 = add nuw nsw i32 %.047, 1
  br label %62, !llvm.loop !91

.loopexit72:                                      ; preds = %64, %82, %.lr.ph
  %85 = load i32, ptr %60, align 8, !tbaa !64
  %.off = add i32 %85, -1
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.loopexit72, %102
  %.0 = phi i32 [ %103, %102 ], [ 0, %.loopexit72 ]
  %86 = invoke noundef i32 @_ZN5QMesh24GetSubConvexPolygonCountEv(ptr noundef nonnull align 8 dereferenceable(256) %59)
          to label %87 unwind label %89

87:                                               ; preds = %.preheader
  %88 = icmp slt i32 %.0, %86
  br i1 %88, label %91, label %.loopexit

89:                                               ; preds = %.preheader
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %107

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  %92 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5QMesh21GetSubConvexPolygonAtEi(ptr noundef nonnull align 8 dereferenceable(256) %59, i32 noundef %.0)
          to label %93 unwind label %98

93:                                               ; preds = %91
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %92)
          to label %94 unwind label %98

94:                                               ; preds = %93
  %95 = invoke noundef zeroext i1 @_ZN10QCollision14PointInPolygonER7QVectorRSt6vectorIP9QParticleSaIS4_EE(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %96 unwind label %.loopexit71

96:                                               ; preds = %94
  br i1 %95, label %97, label %102

97:                                               ; preds = %96
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %101 unwind label %.loopexit.split-lp

98:                                               ; preds = %93, %91
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %104

.loopexit71:                                      ; preds = %94
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %100

.loopexit.split-lp:                               ; preds = %97
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %100

100:                                              ; preds = %.loopexit.split-lp, %.loopexit71
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit71 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  br label %104

101:                                              ; preds = %97
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  br label %.loopexit

102:                                              ; preds = %96
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  %103 = add nuw nsw i32 %.0, 1
  br label %.preheader, !llvm.loop !93

104:                                              ; preds = %100, %98
  %.pn59 = phi { ptr, i32 } [ %lpad.phi, %100 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  br label %107

.loopexit:                                        ; preds = %87, %101, %.loopexit72
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %106 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QMeshSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %106, label %.lr.ph, label %._crit_edge

107:                                              ; preds = %89, %104, %66, %81, %79
  %.pn59.pn.pn = phi { ptr, i32 } [ %67, %66 ], [ %lpad.phi77, %81 ], [ %80, %79 ], [ %.pn59, %104 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %108

108:                                              ; preds = %107, %56
  %.pn59.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn, %107 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %113

109:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %.loopexit79

110:                                              ; preds = %27, %37, %.critedge, %44, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %111 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %112 = icmp ugt i64 %111, %indvars.iv.next
  br i1 %112, label %24, label %.loopexit79, !llvm.loop !94

.loopexit79:                                      ; preds = %110, %.preheader78, %109
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %8) #8
  ret void

113:                                              ; preds = %108, %22
  %.pn59.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn.pn, %108 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %8) #8
  br label %114

114:                                              ; preds = %113, %20
  %.pn59.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn.pn.pn, %113 ], [ %21, %20 ]
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  resume { ptr, i32 } %.pn59.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP5QBodySaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 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 #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(28)) local_unnamed_addr #0 align 2

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

declare noundef ptr @_ZN5QBody9GetMeshesEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5QMesh21GetSubConvexPolygonAtEi(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #5 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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="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 = { "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 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !25, i64 288}
!10 = !{!"_ZTS5QBody", !11, i64 8, !11, i64 12, !6, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44, !13, i64 48, !14, i64 76, !15, i64 80, !15, i64 81, !15, i64 82, !11, i64 84, !16, i64 88, !15, i64 92, !11, i64 96, !15, i64 100, !15, i64 101, !12, i64 104, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !17, i64 132, !17, i64 136, !15, i64 140, !15, i64 141, !15, i64 142, !17, i64 144, !17, i64 148, !17, i64 152, !15, i64 156, !18, i64 160, !18, i64 192, !20, i64 224, !15, i64 256, !21, i64 264, !25, i64 288, !15, i64 292}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTS7QVector", !11, i64 0, !11, i64 4}
!13 = !{!"_ZTS5QAABB", !12, i64 0, !12, i64 8, !12, i64 16, !11, i64 24}
!14 = !{!"_ZTSN5QBody5ModesE", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN5QBody9BodyTypesE", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt8functionIFvP5QBodyEE", !19, i64 0, !6, i64 24}
!19 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!20 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !19, i64 0, !6, i64 24}
!21 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN5QBody16SimulationModelsE", !7, i64 0}
!26 = !{!27, !15, i64 221}
!27 = !{!"_ZTS6QWorld", !28, i64 0, !32, i64 24, !36, i64 48, !40, i64 72, !44, i64 96, !48, i64 120, !53, i64 176, !6, i64 200, !15, i64 208, !12, i64 212, !15, i64 220, !15, i64 221, !17, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !17, i64 240, !17, i64 244, !57, i64 248}
!28 = !{!"_ZTSSt6vectorIP6QJointSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIP6QJointSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP6QJointSaIS1_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP6QJointSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIP7QSpringSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIP7QSpringSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP7QSpringSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorIP8QRaycastSaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIP8QRaycastSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIP8QRaycastSaIS1_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP8QRaycastSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSSt6vectorIP6QGizmoSaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIP6QGizmoSaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIP6QGizmoSaIS1_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIP6QGizmoSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSSt6vectorIS_IP5QBodySaIS1_EESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseISt6vectorIP5QBodySaIS2_EESaIS4_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP5QBodySaIS2_EESaIS4_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP5QBodySaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!"_ZTSSt13unordered_setISt4pairIP5QBodyS2_ENS1_12BodyPairHashENS1_13BodyPairEqualESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSSt10_HashtableISt4pairIP5QBodyS2_ES3_SaIS3_ENSt8__detail9_IdentityENS1_13BodyPairEqualENS1_12BodyPairHashENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !50, i64 8, !51, i64 16, !50, i64 24, !52, i64 32, !6, i64 48}
!50 = !{!"long", !7, i64 0}
!51 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!52 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !50, i64 8}
!53 = !{!"_ZTSSt6vectorI9QManifoldSaIS0_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseI9QManifoldSaIS0_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseI9QManifoldSaIS0_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseI9QManifoldSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!57 = !{!"_ZTSSt6vectorIP5QBodySaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSSt12_Vector_baseIP5QBodySaIS1_EE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIP5QBodySaIS1_EE12_Vector_implE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIP5QBodySaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!61 = !{i8 0, i8 2}
!62 = !{}
!63 = !{!12, !11, i64 0}
!64 = !{!65, !82, i64 184}
!65 = !{!"_ZTS5QMesh", !66, i64 0, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44, !32, i64 48, !70, i64 72, !66, i64 96, !74, i64 120, !78, i64 144, !11, i64 168, !6, i64 176, !82, i64 184, !83, i64 192, !15, i64 216, !15, i64 217, !87, i64 224, !11, i64 248, !15, i64 252, !15, i64 253, !15, i64 254, !15, i64 255}
!66 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !67, i64 0}
!67 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !69, i64 0}
!69 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!70 = !{!"_ZTSSt6vectorIP16QAngleConstraintSaIS1_EE", !71, i64 0}
!71 = !{!"_ZTSSt12_Vector_baseIP16QAngleConstraintSaIS1_EE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE12_Vector_implE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseIP16QAngleConstraintSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!74 = !{!"_ZTSSt6vectorIS_IP9QParticleSaIS1_EESaIS3_EE", !75, i64 0}
!75 = !{!"_ZTSSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE", !76, i64 0}
!76 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE12_Vector_implE", !77, i64 0}
!77 = !{!"_ZTSNSt12_Vector_baseISt6vectorIP9QParticleSaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!78 = !{!"_ZTSSt6vectorI7QVectorSaIS0_EE", !79, i64 0}
!79 = !{!"_ZTSSt12_Vector_baseI7QVectorSaIS0_EE", !80, i64 0}
!80 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE12_Vector_implE", !81, i64 0}
!81 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!82 = !{!"_ZTSN5QMesh18CollisionBehaviorsE", !7, i64 0}
!83 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !84, i64 0}
!84 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !85, i64 0}
!85 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !86, i64 0}
!86 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!87 = !{!"_ZTSSt6vectorIfSaIfEE", !88, i64 0}
!88 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !89, i64 0}
!89 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !90, i64 0}
!90 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!91 = distinct !{!91, !92}
!92 = !{!"llvm.loop.mustprogress"}
!93 = distinct !{!93, !92}
!94 = distinct !{!94, !92}


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