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

; 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.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.__gnu_cxx::__normal_iterator.43" = type { 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.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.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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_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)) #1 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)) #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 @_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)) #1 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>) #6

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

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

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

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

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

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

51:                                               ; preds = %45
  store i32 2, ptr %22, align 4
  br label %223

52:                                               ; preds = %7
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %16, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %17, align 4
  br label %229

56:                                               ; preds = %41
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %16, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %17, align 4
  br label %226

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

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

75:                                               ; preds = %70
  store i32 4, ptr %22, align 4
  br label %215

76:                                               ; preds = %70, %60
  %77 = getelementptr inbounds %class.QWorld, ptr %38, i32 0, i32 11
  %78 = load i8, ptr %77, align 1, !tbaa !32, !range !16, !noundef !17
  %79 = trunc i8 %78 to i1
  %80 = zext i1 %79 to i32
  %81 = icmp eq i32 %80, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  br i1 %81, label %82, label %100

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

85:                                               ; preds = %82
  store <2 x float> %84, ptr %24, align 4
  %86 = getelementptr inbounds %struct.QVector, ptr %24, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !67
  %88 = getelementptr inbounds %struct.QVector, ptr %9, i32 0, i32 0
  %89 = load float, ptr %88, align 4, !tbaa !67
  %90 = fcmp olt float %87, %89
  br i1 %90, label %91, label %100

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

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

100:                                              ; preds = %94, %85, %76
  %101 = phi i1 [ false, %85 ], [ false, %76 ], [ %99, %94 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br i1 %101, label %102, label %112

102:                                              ; preds = %100
  store i32 4, ptr %22, align 4
  br label %215

103:                                              ; preds = %82
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %16, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %17, align 4
  br label %111

107:                                              ; preds = %91
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %16, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %111

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %222

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

114:                                              ; preds = %112
  %115 = load float, ptr %11, align 4, !tbaa !9
  invoke void @_ZNK5QAABB8FattenedEf(ptr dead_on_unwind writable sret(%class.QAABB) align 4 %26, ptr noundef nonnull align 4 dereferenceable(28) %27, float noundef %115)
          to label %116 unwind label %122

116:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 28, ptr %27) #9
  %117 = invoke noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %26, ptr noundef nonnull align 4 dereferenceable(28) %18)
          to label %118 unwind label %126

118:                                              ; preds = %116
  %119 = zext i1 %117 to i32
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %130

121:                                              ; preds = %118
  store i32 4, ptr %22, align 4
  br label %214

122:                                              ; preds = %114, %112
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %16, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %27) #9
  br label %221

126:                                              ; preds = %116
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %16, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %17, align 4
  br label %221

130:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %131 = load ptr, ptr %23, align 8, !tbaa !5
  %132 = invoke noundef ptr @_ZN5QBody9GetMeshesEv(ptr noundef nonnull align 8 dereferenceable(293) %131)
          to label %133 unwind label %143

133:                                              ; preds = %130
  store ptr %132, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %134 = load ptr, ptr %28, align 8, !tbaa !5
  %135 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #9
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %29, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %137 = load ptr, ptr %28, align 8, !tbaa !5
  %138 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #9
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %30, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  br label %140

140:                                              ; preds = %204, %133
  %141 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP5QMeshSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  br i1 %141, label %147, label %142

142:                                              ; preds = %140
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %207

143:                                              ; preds = %130
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %16, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %17, align 4
  br label %206

147:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  store ptr %149, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 0, ptr %32, align 4, !tbaa !11
  br label %150

150:                                              ; preds = %197, %147
  %151 = load i32, ptr %32, align 4, !tbaa !11
  %152 = load ptr, ptr %31, align 8, !tbaa !5
  %153 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %152)
          to label %154 unwind label %157

154:                                              ; preds = %150
  %155 = icmp slt i32 %151, %153
  br i1 %155, label %161, label %156

156:                                              ; preds = %154
  store i32 7, ptr %22, align 4
  br label %201

157:                                              ; preds = %150
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %16, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %17, align 4
  br label %202

161:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %162 = load ptr, ptr %31, align 8, !tbaa !5
  %163 = load i32, ptr %32, align 4, !tbaa !11
  %164 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %162, i32 noundef %163)
          to label %165 unwind label %184

165:                                              ; preds = %161
  store ptr %164, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !15
  %166 = load ptr, ptr %33, align 8, !tbaa !5
  %167 = invoke <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %166)
          to label %168 unwind label %188

168:                                              ; preds = %165
  store <2 x float> %167, ptr %36, align 4
  %169 = load <2 x float>, ptr %35, align 4
  %170 = load <2 x float>, ptr %36, align 4
  %171 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %169, <2 x float> %170)
          to label %172 unwind label %188

172:                                              ; preds = %168
  store <2 x float> %171, ptr %34, align 4
  %173 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %34)
          to label %174 unwind label %188

174:                                              ; preds = %172
  %175 = load float, ptr %11, align 4, !tbaa !9
  %176 = fcmp olt float %173, %175
  br i1 %176, label %177, label %193

177:                                              ; preds = %174
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %178 unwind label %188

178:                                              ; preds = %177
  %179 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %180 = load i32, ptr %12, align 4, !tbaa !11
  %181 = sext i32 %180 to i64
  %182 = icmp eq i64 %179, %181
  br i1 %182, label %183, label %192

183:                                              ; preds = %178
  store i32 7, ptr %22, align 4
  br label %194

184:                                              ; preds = %161
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %16, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %17, align 4
  br label %200

188:                                              ; preds = %177, %172, %168, %165
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %16, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %200

192:                                              ; preds = %178
  br label %193

193:                                              ; preds = %192, %174
  store i32 0, ptr %22, align 4
  br label %194

194:                                              ; preds = %193, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  %195 = load i32, ptr %22, align 4
  switch i32 %195, label %201 [
    i32 0, label %196
  ]

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %32, align 4, !tbaa !11
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %32, align 4, !tbaa !11
  br label %150, !llvm.loop !68

200:                                              ; preds = %188, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %202

201:                                              ; preds = %194, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %203

202:                                              ; preds = %200, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %206

203:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %204

204:                                              ; preds = %203
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  br label %140

206:                                              ; preds = %202, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %221

207:                                              ; preds = %142
  %208 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %209 = load i32, ptr %12, align 4, !tbaa !11
  %210 = sext i32 %209 to i64
  %211 = icmp eq i64 %208, %210
  br i1 %211, label %212, label %213

212:                                              ; preds = %207
  store i32 2, ptr %22, align 4
  br label %214

213:                                              ; preds = %207
  store i32 0, ptr %22, align 4
  br label %214

214:                                              ; preds = %213, %212, %121
  call void @llvm.lifetime.end.p0(i64 28, ptr %26) #9
  br label %215

215:                                              ; preds = %214, %102, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  %216 = load i32, ptr %22, align 4
  switch i32 %216, label %223 [
    i32 0, label %217
    i32 4, label %218
  ]

217:                                              ; preds = %215
  br label %218

218:                                              ; preds = %217, %215
  %219 = load i32, ptr %21, align 4, !tbaa !11
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %21, align 4, !tbaa !11
  br label %45, !llvm.loop !70

221:                                              ; preds = %206, %126, %122
  call void @llvm.lifetime.end.p0(i64 28, ptr %26) #9
  br label %222

222:                                              ; preds = %221, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %226

223:                                              ; preds = %215, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %224

224:                                              ; preds = %223
  store i1 true, ptr %15, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 28, ptr %18) #9
  %225 = load i1, ptr %15, align 1
  br i1 %225, label %228, label %227

226:                                              ; preds = %222, %56
  call void @llvm.lifetime.end.p0(i64 28, ptr %18) #9
  br label %229

227:                                              ; preds = %224
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %228

228:                                              ; preds = %227, %224
  ret void

229:                                              ; preds = %226, %52
  call void @_ZNSt6vectorIP9QParticleSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %16, align 8
  %232 = load i32, ptr %17, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5QAABB8FattenedEf(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 4 dereferenceable(28), float noundef) #6 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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"="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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !31, i64 288}
!19 = !{!"_ZTS5QBody", !10, i64 8, !10, i64 12, !6, i64 16, !20, i64 24, !20, i64 32, !10, i64 40, !10, i64 44, !21, i64 48, !22, i64 76, !14, i64 80, !14, i64 81, !14, i64 82, !10, i64 84, !23, i64 88, !14, i64 92, !10, i64 96, !14, i64 100, !14, i64 101, !20, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !12, i64 132, !12, i64 136, !14, i64 140, !14, i64 141, !14, i64 142, !12, i64 144, !12, i64 148, !12, i64 152, !14, i64 156, !24, i64 160, !24, i64 192, !26, i64 224, !14, i64 256, !27, i64 264, !31, i64 288, !14, i64 292}
!20 = !{!"_ZTS7QVector", !10, i64 0, !10, i64 4}
!21 = !{!"_ZTS5QAABB", !20, i64 0, !20, i64 8, !20, i64 16, !10, 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, !14, 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, !14, i64 208, !20, i64 212, !14, i64 220, !14, i64 221, !12, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !12, i64 240, !12, 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", !10, 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, !10, i64 0}
!68 = distinct !{!68, !69}
!69 = !{!"llvm.loop.mustprogress"}
!70 = distinct !{!70, !69}


; 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.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.__gnu_cxx::__normal_iterator.43" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_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 #1 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 #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 #1 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 #1 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 @_ZN5QAABBC2E7QVectorS0_(ptr noundef nonnull align 4 dereferenceable(28), <2 x float>, <2 x float>) unnamed_addr #5 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 #1 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 #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8)) local_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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6QWorld24GetParticlesCloseToPointE7QVectorfibi(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.44") align 8 %0, ptr noundef nonnull align 8 dereferenceable(272) %1, <2 x float> %2, float noundef %3, i32 noundef %4, i1 noundef zeroext %5, i32 noundef %6) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.QAABB, align 4
  %9 = alloca %class.QAABB, align 4
  %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 ptr, align 8
  %14 = alloca %struct.QVector, align 8
  tail call void @_ZNSt6vectorIP9QParticleSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %15 = sext i32 %4 to i64
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %15)
          to label %16 unwind label %20

16:                                               ; preds = %7
  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 %.preheader unwind label %22

.preheader:                                       ; 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
  %.not = icmp eq i64 %18, 0
  br i1 %.not, label %.loopexit61, label %.lr.ph63

.lr.ph63:                                         ; preds = %.preheader
  %19 = getelementptr inbounds i8, ptr %1, i64 221
  %.sroa.031.0.vec.extract = extractelement <2 x float> %2, i64 0
  br label %24

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

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

24:                                               ; preds = %.lr.ph63, %.thread
  %indvars.iv = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next, %.thread ]
  %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
  br i1 %5, label %27, label %31

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

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

34:                                               ; preds = %31
  %35 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %26)
  %.sroa.08.0.vec.extract = extractelement <2 x float> %35, i64 0
  %36 = fcmp olt float %.sroa.08.0.vec.extract, %.sroa.031.0.vec.extract
  br i1 %36, label %37, label %.critedge

37:                                               ; preds = %34
  %38 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %26)
  %.sroa.07.0.vec.extract = extractelement <2 x float> %38, i64 0
  %39 = fcmp ogt float %.sroa.07.0.vec.extract, %.sroa.031.0.vec.extract
  br i1 %39, label %.thread, label %.critedge

.critedge:                                        ; preds = %34, %31, %37
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %9) #8
  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) %26)
  invoke void @_ZNK5QAABB8FattenedEf(ptr dead_on_unwind nonnull writable sret(%class.QAABB) align 4 %9, ptr noundef nonnull align 4 dereferenceable(28) %10, float noundef %3)
          to label %40 unwind label %42

40:                                               ; preds = %.critedge
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #8
  %41 = call noundef zeroext i1 @_ZNK5QAABB15isCollidingWithERKS_(ptr noundef nonnull align 4 dereferenceable(28) %9, ptr noundef nonnull align 4 dereferenceable(28) %8)
  br i1 %41, label %44, label %.thread59

42:                                               ; preds = %.critedge
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #8
  br label %88

44:                                               ; preds = %40
  %45 = invoke noundef ptr @_ZN5QBody9GetMeshesEv(ptr noundef nonnull align 8 dereferenceable(293) %26)
          to label %46 unwind label %52

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %47 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #8
  store ptr %47, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %48 = call ptr @_ZNSt6vectorIP5QMeshSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #8
  store ptr %48, ptr %12, align 8
  %49 = 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 %49, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %50 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %51 = icmp eq i64 %50, %15
  br i1 %51, label %85, label %.thread59

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %88

.lr.ph:                                           ; preds = %46, %.loopexit
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %.critedge56, %.lr.ph
  %.037 = phi i32 [ 0, %.lr.ph ], [ %79, %.critedge56 ]
  %57 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %55)
          to label %58 unwind label %60

58:                                               ; preds = %56
  %59 = icmp slt i32 %.037, %57
  br i1 %59, label %62, label %.loopexit

60:                                               ; preds = %56
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %84

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %63 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %55, i32 noundef %.037)
          to label %64 unwind label %75

64:                                               ; preds = %62
  store ptr %63, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %65 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %63)
  %66 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %2, <2 x float> %65)
          to label %67 unwind label %77

67:                                               ; preds = %64
  store <2 x float> %66, ptr %14, align 8
  %68 = invoke noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %69 unwind label %77

69:                                               ; preds = %67
  %70 = fcmp olt float %68, %3
  br i1 %70, label %71, label %.critedge56

71:                                               ; preds = %69
  invoke void @_ZNSt6vectorIP9QParticleSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %72 unwind label %77

72:                                               ; preds = %71
  %73 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %74 = icmp eq i64 %73, %15
  br i1 %74, label %80, label %.critedge56

75:                                               ; preds = %62
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %81

77:                                               ; preds = %71, %67, %64
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %81

.critedge56:                                      ; preds = %72, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %79 = add nuw nsw i32 %.037, 1
  br label %56, !llvm.loop !63

80:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %.loopexit

81:                                               ; preds = %77, %75
  %.pn = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %84

.loopexit:                                        ; preds = %58, %80
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP5QMeshSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %83 = 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 %83, label %.lr.ph, label %._crit_edge

84:                                               ; preds = %81, %60
  %.pn.pn = phi { ptr, i32 } [ %.pn, %81 ], [ %61, %60 ]
  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 %88

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

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

.thread:                                          ; preds = %37, %27, %.thread59
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %87 = icmp ugt i64 %86, %indvars.iv.next
  br i1 %87, label %24, label %.loopexit61, !llvm.loop !65

88:                                               ; preds = %52, %84, %42
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %43, %42 ], [ %.pn.pn, %84 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %9) #8
  br label %89

.loopexit61:                                      ; preds = %.thread, %.preheader, %85
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %8) #8
  ret void

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5QAABB8FattenedEf(ptr dead_on_unwind noalias writable sret(%class.QAABB) align 4, ptr noundef nonnull align 4 dereferenceable(28), float noundef) local_unnamed_addr #5 align 2

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

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

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


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