; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qareabody.ll (ZN9QAreaBody11CheckBodiesEv)

; 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.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = 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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QVector = type { float, float }
%"class.std::vector.21" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator.81" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.80" = type { ptr }
%class.QAreaBody = type { %class.QBody.base, %"class.std::unordered_set", i8, %struct.QVector, %"class.std::function.8", %"class.std::function.8" }
%class.QBody.base = type <{ ptr, float, float, ptr, %struct.QVector, %struct.QVector, float, float, %class.QAABB, i32, i8, i8, i8, i8, float, i32, i8, [3 x i8], float, i8, i8, [2 x i8], %struct.QVector, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i32, i32, i32, i8, [3 x i8], %"class.std::function", %"class.std::function", %"class.std::function.0", i8, [7 x i8], %"class.std::vector", i32, i8 }>
%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.0" = type { %"class.std::_Function_base", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.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::function.8" = type { %"class.std::_Function_base", ptr }
%class.QBody = type <{ ptr, float, float, ptr, %struct.QVector, %struct.QVector, float, float, %class.QAABB, i32, i8, i8, i8, i8, float, i32, i8, [3 x i8], float, i8, i8, [2 x i8], %struct.QVector, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i32, i32, i32, i8, [3 x i8], %"class.std::function", %"class.std::function", %"class.std::function.0", i8, [7 x i8], %"class.std::vector", i32, i8, [3 x i8] }>
%class.QParticle = type <{ float, %struct.QVector, %struct.QVector, %struct.QVector, float, ptr, i8, [3 x i8], %struct.QVector, [4 x i8], %"class.std::vector.45", i8, i8, [2 x i8], %class.QAABB, i8, [7 x i8], %"class.std::unordered_set.60", %"class.std::unordered_set", %"class.std::unordered_set", i8, i8, [6 x i8] }>
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl" }
%"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl" = type { %"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QVector, std::allocator<QVector>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set.60" = type { %"class.std::_Hashtable.61" }
%"class.std::_Hashtable.61" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.QCollision::Contact" = type <{ %struct.QVector, ptr, %struct.QVector, float, [4 x i8], %"class.std::vector.25", i8, [7 x i8] }>
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = 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 }

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

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) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9QAreaBody11CheckBodiesEv(ptr noundef nonnull align 8 dereferenceable(432) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.11", align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector.16", align 8
  %13 = alloca %struct.QVector, align 4
  %14 = alloca %struct.QVector, align 4
  %15 = alloca %struct.QVector, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::vector.21", align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::vector.21", align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i8, align 1
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca ptr, align 8
  %33 = alloca i64, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"struct.std::_Bit_reference", align 8
  %36 = alloca %struct.QVector, align 4
  %37 = alloca %struct.QVector, align 4
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.81", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.80", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.80", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %41 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #7
  call void @_ZNSt6vectorIP5QBodySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %42 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 1
  store ptr %42, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %43) #7
  %45 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %5, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %45, i32 0, i32 0
  store ptr %44, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %47) #7
  %49 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %6, i32 0, i32 0
  %50 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %49, i32 0, i32 0
  store ptr %48, ptr %50, align 8
  br label %51

51:                                               ; preds = %439, %1
  %52 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP5QBodyLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  br i1 %52, label %54, label %53

53:                                               ; preds = %51
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %444

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIP5QBodyLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %56, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !9
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = invoke noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %57)
          to label %59 unwind label %64

59:                                               ; preds = %54
  %60 = zext i1 %58 to i32
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %68

62:                                               ; preds = %59
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %63 unwind label %64

63:                                               ; preds = %62
  store i8 1, ptr %9, align 1, !tbaa !9
  br label %68

64:                                               ; preds = %62, %54
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %10, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %11, align 4
  br label %443

68:                                               ; preds = %63, %59
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %69 = getelementptr inbounds %class.QBody, ptr %41, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN6QWorld13GetCollisionsEP5QBodyS1_(ptr dead_on_unwind writable sret(%"class.std::vector.16") align 8 %12, ptr noundef %41, ptr noundef %71)
          to label %72 unwind label %83

72:                                               ; preds = %68
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = invoke noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %73)
          to label %75 unwind label %87

75:                                               ; preds = %72
  %76 = zext i1 %74 to i32
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %81, label %78

78:                                               ; preds = %75
  %79 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %80 = icmp eq i64 %79, 0
  br i1 %80, label %81, label %91

81:                                               ; preds = %78, %75
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %82 unwind label %87

82:                                               ; preds = %81
  store i8 1, ptr %9, align 1, !tbaa !9
  br label %91

83:                                               ; preds = %68
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %10, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %11, align 4
  br label %442

87:                                               ; preds = %164, %149, %105, %81, %72
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %10, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %11, align 4
  br label %441

91:                                               ; preds = %82, %78
  %92 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 2
  %93 = load i8, ptr %92, align 8, !tbaa !27, !range !35, !noundef !36
  %94 = trunc i8 %93 to i1
  %95 = zext i1 %94 to i32
  %96 = icmp eq i32 %95, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  br i1 %96, label %103, label %97

97:                                               ; preds = %91
  %98 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 3
  %99 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %100 unwind label %122

100:                                              ; preds = %97
  store <2 x float> %99, ptr %13, align 4
  %101 = invoke noundef zeroext i1 @_ZNK7QVectorneERKS_(ptr noundef nonnull align 4 dereferenceable(8) %98, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %102 unwind label %122

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102, %91
  %104 = phi i1 [ true, %91 ], [ %101, %102 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br i1 %104, label %105, label %438

105:                                              ; preds = %103
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = invoke noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %106)
          to label %108 unwind label %87

108:                                              ; preds = %105
  %109 = icmp eq i32 %107, 0
  br i1 %109, label %110, label %164

110:                                              ; preds = %108
  %111 = load i8, ptr %9, align 1, !tbaa !9, !range !35, !noundef !36
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %127

113:                                              ; preds = %110
  %114 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 2
  %115 = load i8, ptr %114, align 8, !tbaa !27, !range !35, !noundef !36
  %116 = trunc i8 %115 to i1
  %117 = zext i1 %116 to i32
  %118 = icmp eq i32 %117, 1
  br i1 %118, label %119, label %126

119:                                              ; preds = %113
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.QBody, ptr %120, i32 0, i32 46
  store i8 0, ptr %121, align 4, !tbaa !37
  br label %126

122:                                              ; preds = %100, %97
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %10, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %441

126:                                              ; preds = %119, %113
  br label %163

127:                                              ; preds = %110
  %128 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 2
  %129 = load i8, ptr %128, align 8, !tbaa !27, !range !35, !noundef !36
  %130 = trunc i8 %129 to i1
  %131 = zext i1 %130 to i32
  %132 = icmp eq i32 %131, 1
  br i1 %132, label %133, label %143

133:                                              ; preds = %127
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %class.QBody, ptr %134, i32 0, i32 46
  %136 = load i8, ptr %135, align 4, !tbaa !37, !range !35, !noundef !36
  %137 = trunc i8 %136 to i1
  %138 = zext i1 %137 to i32
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %143

140:                                              ; preds = %133
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.QBody, ptr %141, i32 0, i32 46
  store i8 1, ptr %142, align 4, !tbaa !37
  br label %143

143:                                              ; preds = %140, %133, %127
  %144 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %145 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %146 unwind label %158

146:                                              ; preds = %143
  store <2 x float> %145, ptr %14, align 4
  %147 = invoke noundef zeroext i1 @_ZNK7QVectorneERKS_(ptr noundef nonnull align 4 dereferenceable(8) %144, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %148 unwind label %158

148:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br i1 %147, label %149, label %162

149:                                              ; preds = %148
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %151, i64 8, i1 false), !tbaa.struct !38
  %152 = load <2 x float>, ptr %15, align 4
  %153 = load ptr, ptr %150, align 8, !tbaa !40
  %154 = getelementptr inbounds ptr, ptr %153, i64 9
  %155 = load ptr, ptr %154, align 8
  %156 = invoke noundef ptr %155(ptr noundef nonnull align 8 dereferenceable(293) %150, <2 x float> %152)
          to label %157 unwind label %87

157:                                              ; preds = %149
  br label %162

158:                                              ; preds = %146, %143
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %10, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %441

162:                                              ; preds = %157, %148
  br label %163

163:                                              ; preds = %162, %126
  br label %437

164:                                              ; preds = %108
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = invoke noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %165)
          to label %167 unwind label %87

167:                                              ; preds = %164
  %168 = icmp eq i32 %166, 2
  br i1 %168, label %169, label %436

169:                                              ; preds = %167
  %170 = load i8, ptr %9, align 1, !tbaa !9, !range !35, !noundef !36
  %171 = trunc i8 %170 to i1
  br i1 %171, label %172, label %235

172:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !42
  br label %173

173:                                              ; preds = %229, %172
  %174 = load i64, ptr %16, align 8, !tbaa !42
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = invoke noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293) %175)
          to label %177 unwind label %181

177:                                              ; preds = %173
  %178 = sext i32 %176 to i64
  %179 = icmp ult i64 %174, %178
  br i1 %179, label %185, label %180

180:                                              ; preds = %177
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %234

181:                                              ; preds = %173
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %10, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %11, align 4
  br label %233

185:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = load i64, ptr %16, align 8, !tbaa !42
  %188 = trunc i64 %187 to i32
  %189 = invoke noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293) %186, i32 noundef %188)
          to label %190 unwind label %199

190:                                              ; preds = %185
  store ptr %189, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #7
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !42
  br label %191

191:                                              ; preds = %224, %190
  %192 = load i64, ptr %19, align 8, !tbaa !42
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %193)
          to label %195 unwind label %203

195:                                              ; preds = %191
  %196 = sext i32 %194 to i64
  %197 = icmp ult i64 %192, %196
  br i1 %197, label %207, label %198

198:                                              ; preds = %195
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %228

199:                                              ; preds = %185
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %10, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %11, align 4
  br label %232

203:                                              ; preds = %191
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %10, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %11, align 4
  br label %227

207:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %208 = load ptr, ptr %17, align 8, !tbaa !5
  %209 = load i64, ptr %19, align 8, !tbaa !42
  %210 = trunc i64 %209 to i32
  %211 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %208, i32 noundef %210)
          to label %212 unwind label %219

212:                                              ; preds = %207
  store ptr %211, ptr %20, align 8, !tbaa !5
  %213 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 2
  %214 = load i8, ptr %213, align 8, !tbaa !27, !range !35, !noundef !36
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %223

216:                                              ; preds = %212
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = getelementptr inbounds %class.QParticle, ptr %217, i32 0, i32 20
  store i8 0, ptr %218, align 8, !tbaa !43
  br label %223

219:                                              ; preds = %207
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %10, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %227

223:                                              ; preds = %216, %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %224

224:                                              ; preds = %223
  %225 = load i64, ptr %19, align 8, !tbaa !42
  %226 = add i64 %225, 1
  store i64 %226, ptr %19, align 8, !tbaa !42
  br label %191, !llvm.loop !51

227:                                              ; preds = %219, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #7
  br label %232

228:                                              ; preds = %198
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %229

229:                                              ; preds = %228
  %230 = load i64, ptr %16, align 8, !tbaa !42
  %231 = add i64 %230, 1
  store i64 %231, ptr %16, align 8, !tbaa !42
  br label %173, !llvm.loop !53

232:                                              ; preds = %227, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %233

233:                                              ; preds = %232, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %441

234:                                              ; preds = %180
  br label %435

235:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !42
  br label %236

236:                                              ; preds = %428, %235
  %237 = load i64, ptr %21, align 8, !tbaa !42
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = invoke noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293) %238)
          to label %240 unwind label %244

240:                                              ; preds = %236
  %241 = sext i32 %239 to i64
  %242 = icmp ult i64 %237, %241
  br i1 %242, label %248, label %243

243:                                              ; preds = %240
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %434

244:                                              ; preds = %236
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %10, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %11, align 4
  br label %433

248:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = load i64, ptr %21, align 8, !tbaa !42
  %251 = trunc i64 %250 to i32
  %252 = invoke noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293) %249, i32 noundef %251)
          to label %253 unwind label %262

253:                                              ; preds = %248
  store ptr %252, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #7
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !42
  br label %254

254:                                              ; preds = %339, %253
  %255 = load i64, ptr %24, align 8, !tbaa !42
  %256 = load ptr, ptr %22, align 8, !tbaa !5
  %257 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %256)
          to label %258 unwind label %266

258:                                              ; preds = %254
  %259 = sext i32 %257 to i64
  %260 = icmp ult i64 %255, %259
  br i1 %260, label %270, label %261

261:                                              ; preds = %258
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %348

262:                                              ; preds = %248
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %10, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %11, align 4
  br label %432

266:                                              ; preds = %254
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %10, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %11, align 4
  br label %347

270:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %271 = load ptr, ptr %22, align 8, !tbaa !5
  %272 = load i64, ptr %24, align 8, !tbaa !42
  %273 = trunc i64 %272 to i32
  %274 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %271, i32 noundef %273)
          to label %275 unwind label %281

275:                                              ; preds = %270
  store ptr %274, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #7
  store i8 0, ptr %26, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !42
  br label %276

276:                                              ; preds = %331, %275
  %277 = load i64, ptr %27, align 8, !tbaa !42
  %278 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %279 = icmp ult i64 %277, %278
  br i1 %279, label %285, label %280

280:                                              ; preds = %276
  store i32 16, ptr %7, align 4
  br label %334

281:                                              ; preds = %270
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %10, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %11, align 4
  br label %346

285:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %286 = load i64, ptr %27, align 8, !tbaa !42
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %286) #7
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  store ptr %288, ptr %28, align 8, !tbaa !5
  %289 = load ptr, ptr %28, align 8, !tbaa !5
  %290 = getelementptr inbounds %"struct.QCollision::Contact", ptr %289, i32 0, i32 1
  %291 = load ptr, ptr %290, align 8, !tbaa !54
  %292 = load ptr, ptr %25, align 8, !tbaa !5
  %293 = icmp eq ptr %291, %292
  br i1 %293, label %294, label %295

294:                                              ; preds = %285
  store i8 1, ptr %26, align 1, !tbaa !9
  store i32 16, ptr %7, align 4
  br label %328

295:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %296 = load ptr, ptr %28, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.QCollision::Contact", ptr %296, i32 0, i32 5
  store ptr %297, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %298 = load ptr, ptr %29, align 8, !tbaa !5
  %299 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %298) #7
  %300 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %299, ptr %300, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %301 = load ptr, ptr %29, align 8, !tbaa !5
  %302 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %301) #7
  %303 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %302, ptr %303, align 8
  br label %304

304:                                              ; preds = %318, %295
  %305 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9QParticleSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br i1 %305, label %307, label %306

306:                                              ; preds = %304
  store i32 19, ptr %7, align 4
  br label %320

307:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  %309 = load ptr, ptr %308, align 8, !tbaa !5
  store ptr %309, ptr %32, align 8, !tbaa !5
  %310 = load ptr, ptr %32, align 8, !tbaa !5
  %311 = load ptr, ptr %25, align 8, !tbaa !5
  %312 = icmp eq ptr %310, %311
  br i1 %312, label %313, label %314

313:                                              ; preds = %307
  store i8 1, ptr %26, align 1, !tbaa !9
  store i32 19, ptr %7, align 4
  br label %315

314:                                              ; preds = %307
  store i32 0, ptr %7, align 4
  br label %315

315:                                              ; preds = %314, %313
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  %316 = load i32, ptr %7, align 4
  switch i32 %316, label %320 [
    i32 0, label %317
  ]

317:                                              ; preds = %315
  br label %318

318:                                              ; preds = %317
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  br label %304

320:                                              ; preds = %315, %306
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %321

321:                                              ; preds = %320
  %322 = load i8, ptr %26, align 1, !tbaa !9, !range !35, !noundef !36
  %323 = trunc i8 %322 to i1
  %324 = zext i1 %323 to i32
  %325 = icmp eq i32 %324, 1
  br i1 %325, label %326, label %327

326:                                              ; preds = %321
  store i32 16, ptr %7, align 4
  br label %328

327:                                              ; preds = %321
  store i32 0, ptr %7, align 4
  br label %328

328:                                              ; preds = %327, %326, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  %329 = load i32, ptr %7, align 4
  switch i32 %329, label %334 [
    i32 0, label %330
  ]

330:                                              ; preds = %328
  br label %331

331:                                              ; preds = %330
  %332 = load i64, ptr %27, align 8, !tbaa !42
  %333 = add i64 %332, 1
  store i64 %333, ptr %27, align 8, !tbaa !42
  br label %276, !llvm.loop !60

334:                                              ; preds = %328, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %335

335:                                              ; preds = %334
  %336 = load i8, ptr %26, align 1, !tbaa !9, !range !35, !noundef !36
  %337 = trunc i8 %336 to i1
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %23, i1 noundef zeroext %337)
          to label %338 unwind label %342

338:                                              ; preds = %335
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %339

339:                                              ; preds = %338
  %340 = load i64, ptr %24, align 8, !tbaa !42
  %341 = add i64 %340, 1
  store i64 %341, ptr %24, align 8, !tbaa !42
  br label %254, !llvm.loop !61

342:                                              ; preds = %335
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %10, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  br label %346

346:                                              ; preds = %342, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %347

347:                                              ; preds = %346, %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %431

348:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !42
  br label %349

349:                                              ; preds = %423, %348
  %350 = load i64, ptr %33, align 8, !tbaa !42
  %351 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %23) #7
  %352 = icmp ult i64 %350, %351
  br i1 %352, label %354, label %353

353:                                              ; preds = %349
  store i32 21, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %427

354:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %355 = load ptr, ptr %22, align 8, !tbaa !5
  %356 = load i64, ptr %33, align 8, !tbaa !42
  %357 = trunc i64 %356 to i32
  %358 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %355, i32 noundef %357)
          to label %359 unwind label %372

359:                                              ; preds = %354
  store ptr %358, ptr %34, align 8, !tbaa !5
  %360 = load ptr, ptr %34, align 8, !tbaa !5
  %361 = invoke noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %360)
          to label %362 unwind label %372

362:                                              ; preds = %359
  %363 = zext i1 %361 to i32
  %364 = icmp eq i32 %363, 0
  br i1 %364, label %371, label %365

365:                                              ; preds = %362
  %366 = load ptr, ptr %34, align 8, !tbaa !5
  %367 = invoke noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %366)
          to label %368 unwind label %372

368:                                              ; preds = %365
  %369 = zext i1 %367 to i32
  %370 = icmp eq i32 %369, 1
  br i1 %370, label %371, label %376

371:                                              ; preds = %368, %362
  store i32 23, ptr %7, align 4
  br label %420

372:                                              ; preds = %409, %365, %359, %354
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %10, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %11, align 4
  br label %426

376:                                              ; preds = %368
  %377 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 2
  %378 = load i8, ptr %377, align 8, !tbaa !27, !range !35, !noundef !36
  %379 = trunc i8 %378 to i1
  br i1 %379, label %380, label %396

380:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %381 = load i64, ptr %33, align 8, !tbaa !42
  %382 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %23, i64 noundef %381)
          to label %383 unwind label %392

383:                                              ; preds = %380
  %384 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %385 = extractvalue { ptr, i64 } %382, 0
  store ptr %385, ptr %384, align 8
  %386 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %387 = extractvalue { ptr, i64 } %382, 1
  store i64 %387, ptr %386, align 8
  %388 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  %389 = load ptr, ptr %34, align 8, !tbaa !5
  %390 = getelementptr inbounds %class.QParticle, ptr %389, i32 0, i32 20
  %391 = zext i1 %388 to i8
  store i8 %391, ptr %390, align 8, !tbaa !43
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %396

392:                                              ; preds = %380
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %10, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %426

396:                                              ; preds = %383, %376
  %397 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %398 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %399 unwind label %415

399:                                              ; preds = %396
  store <2 x float> %398, ptr %36, align 4
  %400 = invoke noundef zeroext i1 @_ZNK7QVectorneERKS_(ptr noundef nonnull align 4 dereferenceable(8) %397, ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %401 unwind label %415

401:                                              ; preds = %399
  br i1 %400, label %402, label %407

402:                                              ; preds = %401
  %403 = load ptr, ptr %8, align 8, !tbaa !5
  %404 = invoke noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %403)
          to label %405 unwind label %415

405:                                              ; preds = %402
  %406 = icmp ne i32 %404, 1
  br label %407

407:                                              ; preds = %405, %401
  %408 = phi i1 [ false, %401 ], [ %406, %405 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br i1 %408, label %409, label %419

409:                                              ; preds = %407
  %410 = load ptr, ptr %34, align 8, !tbaa !5
  %411 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %411, i64 8, i1 false), !tbaa.struct !38
  %412 = load <2 x float>, ptr %37, align 4
  %413 = invoke noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %410, <2 x float> %412)
          to label %414 unwind label %372

414:                                              ; preds = %409
  br label %419

415:                                              ; preds = %402, %399, %396
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %10, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %426

419:                                              ; preds = %414, %407
  store i32 0, ptr %7, align 4
  br label %420

420:                                              ; preds = %419, %371
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  %421 = load i32, ptr %7, align 4
  switch i32 %421, label %507 [
    i32 0, label %422
    i32 23, label %423
  ]

422:                                              ; preds = %420
  br label %423

423:                                              ; preds = %422, %420
  %424 = load i64, ptr %33, align 8, !tbaa !42
  %425 = add i64 %424, 1
  store i64 %425, ptr %33, align 8, !tbaa !42
  br label %349, !llvm.loop !62

426:                                              ; preds = %415, %392, %372
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %431

427:                                              ; preds = %353
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %428

428:                                              ; preds = %427
  %429 = load i64, ptr %21, align 8, !tbaa !42
  %430 = add i64 %429, 1
  store i64 %430, ptr %21, align 8, !tbaa !42
  br label %236, !llvm.loop !63

431:                                              ; preds = %426, %347
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #7
  br label %432

432:                                              ; preds = %431, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %433

433:                                              ; preds = %432, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %441

434:                                              ; preds = %243
  br label %435

435:                                              ; preds = %434, %234
  br label %436

436:                                              ; preds = %435, %167
  br label %437

437:                                              ; preds = %436, %163
  br label %438

438:                                              ; preds = %437, %103
  call void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %439

439:                                              ; preds = %438
  %440 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIP5QBodyLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br label %51

441:                                              ; preds = %433, %233, %158, %122, %87
  call void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br label %442

442:                                              ; preds = %441, %83
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %443

443:                                              ; preds = %442, %64
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %501

444:                                              ; preds = %53
  br label %445

445:                                              ; preds = %494, %444
  %446 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %447 = icmp ne i64 %446, 0
  br i1 %447, label %448, label %500

448:                                              ; preds = %445
  %449 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %450 = load ptr, ptr %449, align 8, !tbaa !5
  %451 = load ptr, ptr %41, align 8, !tbaa !40
  %452 = getelementptr inbounds ptr, ptr %451, i64 11
  %453 = load ptr, ptr %452, align 8
  invoke void %453(ptr noundef nonnull align 8 dereferenceable(432) %41, ptr noundef %450)
          to label %454 unwind label %462

454:                                              ; preds = %448
  %455 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 5
  %456 = call noundef zeroext i1 @_ZStneIvJP9QAreaBodyP5QBodyEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %455, ptr null) #7
  br i1 %456, label %457, label %466

457:                                              ; preds = %454
  %458 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 5
  %459 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %460 = load ptr, ptr %459, align 8, !tbaa !5
  invoke void @_ZNKSt8functionIFvP9QAreaBodyP5QBodyEEclES1_S3_(ptr noundef nonnull align 8 dereferenceable(32) %458, ptr noundef %41, ptr noundef %460)
          to label %461 unwind label %462

461:                                              ; preds = %457
  br label %466

462:                                              ; preds = %484, %457, %448
  %463 = landingpad { ptr, i32 }
          cleanup
  %464 = extractvalue { ptr, i32 } %463, 0
  store ptr %464, ptr %10, align 8
  %465 = extractvalue { ptr, i32 } %463, 1
  store i32 %465, ptr %11, align 4
  br label %501

466:                                              ; preds = %461, %454
  %467 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 2
  %468 = load i8, ptr %467, align 8, !tbaa !27, !range !35, !noundef !36
  %469 = trunc i8 %468 to i1
  %470 = zext i1 %469 to i32
  %471 = icmp eq i32 %470, 1
  br i1 %471, label %472, label %484

472:                                              ; preds = %466
  %473 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %474 = load ptr, ptr %473, align 8, !tbaa !5
  %475 = getelementptr inbounds %class.QBody, ptr %474, i32 0, i32 46
  %476 = load i8, ptr %475, align 4, !tbaa !37, !range !35, !noundef !36
  %477 = trunc i8 %476 to i1
  %478 = zext i1 %477 to i32
  %479 = icmp eq i32 %478, 1
  br i1 %479, label %480, label %484

480:                                              ; preds = %472
  %481 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %482 = load ptr, ptr %481, align 8, !tbaa !5
  %483 = getelementptr inbounds %class.QBody, ptr %482, i32 0, i32 46
  store i8 0, ptr %483, align 4, !tbaa !37
  br label %484

484:                                              ; preds = %480, %472, %466
  %485 = getelementptr inbounds %class.QAreaBody, ptr %41, i32 0, i32 1
  %486 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %487 = invoke noundef i64 @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %485, ptr noundef nonnull align 8 dereferenceable(8) %486)
          to label %488 unwind label %462

488:                                              ; preds = %484
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %489 = call ptr @_ZNSt6vectorIP5QBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %490 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.80", ptr %39, i32 0, i32 0
  store ptr %489, ptr %490, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP5QBodySt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  %491 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.81", ptr %38, i32 0, i32 0
  %492 = load ptr, ptr %491, align 8
  %493 = invoke ptr @_ZNSt6vectorIP5QBodySaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr %492)
          to label %494 unwind label %496

494:                                              ; preds = %488
  %495 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.80", ptr %40, i32 0, i32 0
  store ptr %493, ptr %495, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %445, !llvm.loop !64

496:                                              ; preds = %488
  %497 = landingpad { ptr, i32 }
          cleanup
  %498 = extractvalue { ptr, i32 } %497, 0
  store ptr %498, ptr %10, align 8
  %499 = extractvalue { ptr, i32 } %497, 1
  store i32 %499, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %501

500:                                              ; preds = %445
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  ret void

501:                                              ; preds = %496, %462, %443
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  br label %502

502:                                              ; preds = %501
  %503 = load ptr, ptr %10, align 8
  %504 = load i32, ptr %11, align 4
  %505 = insertvalue { ptr, i32 } poison, ptr %503, 0
  %506 = insertvalue { ptr, i32 } %505, i32 %504, 1
  resume { ptr, i32 } %506

507:                                              ; preds = %420
  unreachable
}

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

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

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

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

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

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

declare void @_ZN6QWorld13GetCollisionsEP5QBodyS1_(ptr dead_on_unwind writable sret(%"class.std::vector.16") align 8, ptr noundef, ptr noundef) #6

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

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

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

declare noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293)) #6

declare noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293), i32 noundef) #6

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTS5QBody", !13, i64 8, !13, i64 12, !6, i64 16, !14, i64 24, !14, i64 32, !13, i64 40, !13, i64 44, !15, i64 48, !16, i64 76, !10, i64 80, !10, i64 81, !10, i64 82, !13, i64 84, !17, i64 88, !10, i64 92, !13, i64 96, !10, i64 100, !10, i64 101, !14, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !18, i64 132, !18, i64 136, !10, i64 140, !10, i64 141, !10, i64 142, !18, i64 144, !18, i64 148, !18, i64 152, !10, i64 156, !19, i64 160, !19, i64 192, !21, i64 224, !10, i64 256, !22, i64 264, !26, i64 288, !10, i64 292}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS7QVector", !13, i64 0, !13, i64 4}
!15 = !{!"_ZTS5QAABB", !14, i64 0, !14, i64 8, !14, i64 16, !13, i64 24}
!16 = !{!"_ZTSN5QBody5ModesE", !7, i64 0}
!17 = !{!"_ZTSN5QBody9BodyTypesE", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSSt8functionIFvP5QBodyEE", !20, i64 0, !6, i64 24}
!20 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!21 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !20, i64 0, !6, i64 24}
!22 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN5QBody16SimulationModelsE", !7, i64 0}
!27 = !{!28, !10, i64 352}
!28 = !{!"_ZTS9QAreaBody", !12, i64 0, !29, i64 296, !10, i64 352, !14, i64 356, !34, i64 368, !34, i64 400}
!29 = !{!"_ZTSSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableIP5QBodyS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !31, i64 8, !32, i64 16, !31, i64 24, !33, i64 32, !6, i64 48}
!31 = !{!"long", !7, i64 0}
!32 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!33 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !13, i64 0, !31, i64 8}
!34 = !{!"_ZTSSt8functionIFvP9QAreaBodyP5QBodyEE", !20, i64 0, !6, i64 24}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!12, !10, i64 292}
!38 = !{i64 0, i64 4, !39, i64 4, i64 4, !39}
!39 = !{!13, !13, i64 0}
!40 = !{!41, !41, i64 0}
!41 = !{!"vtable pointer", !8, i64 0}
!42 = !{!31, !31, i64 0}
!43 = !{!44, !10, i64 288}
!44 = !{!"_ZTS9QParticle", !13, i64 0, !14, i64 4, !14, i64 12, !14, i64 20, !13, i64 28, !6, i64 32, !10, i64 40, !14, i64 44, !45, i64 56, !10, i64 80, !10, i64 81, !15, i64 84, !10, i64 112, !49, i64 120, !29, i64 176, !29, i64 232, !10, i64 288, !10, i64 289}
!45 = !{!"_ZTSSt6vectorI7QVectorSaIS0_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseI7QVectorSaIS0_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"_ZTSSt13unordered_setIP9QParticleSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSSt10_HashtableIP9QParticleS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !31, i64 8, !32, i64 16, !31, i64 24, !33, i64 32, !6, i64 48}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}
!53 = distinct !{!53, !52}
!54 = !{!55, !6, i64 8}
!55 = !{!"_ZTSN10QCollision7ContactE", !14, i64 0, !6, i64 8, !14, i64 16, !13, i64 24, !56, i64 32, !10, i64 56}
!56 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !57, i64 0}
!57 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!60 = distinct !{!60, !52}
!61 = distinct !{!61, !52}
!62 = distinct !{!62, !52}
!63 = distinct !{!63, !52}
!64 = distinct !{!64, !52}


; 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.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = 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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QCollision::Contact *, std::allocator<QCollision::Contact *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QVector = type { float, float }
%"class.std::vector.21" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"class.__gnu_cxx::__normal_iterator.81" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.80" = type { ptr }

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

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) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIvJP9QAreaBodyP5QBodyEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvP9QAreaBodyP5QBodyEEclES1_S3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9QAreaBody11CheckBodiesEv(ptr noundef nonnull align 8 dereferenceable(432) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.11", align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector.16", align 8
  %7 = alloca %struct.QVector, align 8
  %8 = alloca %struct.QVector, align 8
  %9 = alloca %"class.std::vector.21", align 8
  %10 = alloca %"class.std::vector.21", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %struct.QVector, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.81", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.80", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIP5QBodySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %17 = getelementptr inbounds i8, ptr %0, i64 296
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %18 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  store ptr %18, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %19 = call ptr @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  store ptr %19, ptr %4, align 8
  %20 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP5QBodyLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %20, label %.lr.ph118, label %._crit_edge119

.lr.ph118:                                        ; preds = %1
  %21 = getelementptr inbounds i8, ptr %0, i64 352
  %22 = getelementptr inbounds i8, ptr %0, i64 356
  %23 = getelementptr inbounds i8, ptr %13, i64 8
  br label %27

._crit_edge119:                                   ; preds = %.loopexit, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %24 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.not120 = icmp eq i64 %24, 0
  br i1 %.not120, label %._crit_edge123, label %.lr.ph122

.lr.ph122:                                        ; preds = %._crit_edge119
  %25 = getelementptr inbounds i8, ptr %0, i64 400
  %26 = getelementptr inbounds i8, ptr %0, i64 352
  br label %222

27:                                               ; preds = %.lr.ph118, %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8__detail14_Node_iteratorIP5QBodyLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  store ptr %29, ptr %5, align 8, !tbaa !5
  %30 = call noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %29)
  br i1 %30, label %34, label %31

31:                                               ; preds = %27
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %34 unwind label %32

32:                                               ; preds = %31
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %221

34:                                               ; preds = %31, %27
  %.051 = phi i8 [ 0, %27 ], [ 1, %31 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN6QWorld13GetCollisionsEP5QBodyS1_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.16") align 8 %6, ptr noundef nonnull %0, ptr noundef %35)
          to label %36 unwind label %43

36:                                               ; preds = %34
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %37)
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  %40 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %42, label %47

42:                                               ; preds = %39, %36
  invoke void @_ZNSt6vectorIP5QBodySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %47 unwind label %45

43:                                               ; preds = %34
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %220

45:                                               ; preds = %79, %42
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %219

47:                                               ; preds = %42, %39
  %.152 = phi i8 [ %.051, %39 ], [ 1, %42 ]
  %48 = load i8, ptr %21, align 8, !tbaa !9, !range !33, !noundef !34
  %49 = trunc nuw i8 %48 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  br i1 %49, label %.critedge, label %50

50:                                               ; preds = %47
  %51 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %52 unwind label %66

52:                                               ; preds = %50
  store <2 x float> %51, ptr %7, align 8
  %53 = call noundef zeroext i1 @_ZNK7QVectorneERKS_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br i1 %53, label %54, label %.loopexit

.critedge:                                        ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %54

54:                                               ; preds = %.critedge, %52
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %55)
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %87

58:                                               ; preds = %54
  %59 = trunc nuw i8 %.152 to i1
  %60 = load i8, ptr %21, align 8, !tbaa !9, !range !33, !noundef !34
  %61 = trunc nuw i8 %60 to i1
  br i1 %59, label %62, label %68

62:                                               ; preds = %58
  br i1 %61, label %63, label %.loopexit

63:                                               ; preds = %62
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 292
  store i8 0, ptr %65, align 4, !tbaa !35
  br label %.loopexit

66:                                               ; preds = %50
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %219

68:                                               ; preds = %58
  br i1 %61, label %69, label %75

69:                                               ; preds = %68
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 292
  %72 = load i8, ptr %71, align 4, !tbaa !35, !range !33, !noundef !34
  %73 = icmp eq i8 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %69
  store i8 1, ptr %71, align 4, !tbaa !35
  br label %75

75:                                               ; preds = %74, %69, %68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %76 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %77 unwind label %85

77:                                               ; preds = %75
  store <2 x float> %76, ptr %8, align 8
  %78 = call noundef zeroext i1 @_ZNK7QVectorneERKS_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br i1 %78, label %79, label %.loopexit

79:                                               ; preds = %77
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %.sroa.041.0.copyload = load <2 x float>, ptr %22, align 4
  %81 = load ptr, ptr %80, align 8, !tbaa !36
  %82 = getelementptr inbounds i8, ptr %81, i64 72
  %83 = load ptr, ptr %82, align 8
  %84 = invoke noundef ptr %83(ptr noundef nonnull align 8 dereferenceable(293) %80, <2 x float> %.sroa.041.0.copyload)
          to label %.loopexit unwind label %45

85:                                               ; preds = %75
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %219

87:                                               ; preds = %54
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call noundef i32 @_ZN5QBody11GetBodyTypeEv(ptr noundef nonnull align 8 dereferenceable(293) %88)
  %90 = icmp eq i32 %89, 2
  br i1 %90, label %91, label %.loopexit

91:                                               ; preds = %87
  %92 = trunc nuw i8 %.152 to i1
  br i1 %92, label %.preheader102, label %.preheader103

.preheader102:                                    ; preds = %91, %110
  %.069 = phi i64 [ %111, %110 ], [ 0, %91 ]
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = invoke noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293) %93)
          to label %95 unwind label %98

95:                                               ; preds = %.preheader102
  %96 = sext i32 %94 to i64
  %97 = icmp ult i64 %.069, %96
  br i1 %97, label %100, label %.loopexit

98:                                               ; preds = %.preheader102
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %219

100:                                              ; preds = %95
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = trunc i64 %.069 to i32
  %103 = invoke noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293) %101, i32 noundef %102)
          to label %104 unwind label %112

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  br label %105

105:                                              ; preds = %126, %104
  %.070 = phi i64 [ 0, %104 ], [ %127, %126 ]
  %106 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %103)
          to label %107 unwind label %114

107:                                              ; preds = %105
  %108 = sext i32 %106 to i64
  %109 = icmp ult i64 %.070, %108
  br i1 %109, label %116, label %110

110:                                              ; preds = %107
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  %111 = add nuw i64 %.069, 1
  br label %.preheader102, !llvm.loop !38

112:                                              ; preds = %100
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %219

114:                                              ; preds = %105
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %128

116:                                              ; preds = %107
  %117 = trunc i64 %.070 to i32
  %118 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %103, i32 noundef %117)
          to label %119 unwind label %124

119:                                              ; preds = %116
  %120 = load i8, ptr %21, align 8, !tbaa !9, !range !33, !noundef !34
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %122, label %126

122:                                              ; preds = %119
  %123 = getelementptr inbounds i8, ptr %118, i64 288
  store i8 0, ptr %123, align 8, !tbaa !40
  br label %126

124:                                              ; preds = %116
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %128

126:                                              ; preds = %122, %119
  %127 = add nuw i64 %.070, 1
  br label %105, !llvm.loop !48

128:                                              ; preds = %124, %114
  %.pn90 = phi { ptr, i32 } [ %125, %124 ], [ %115, %114 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %219

.preheader103:                                    ; preds = %91, %._crit_edge116
  %.078 = phi i64 [ %179, %._crit_edge116 ], [ 0, %91 ]
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = invoke noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293) %129)
          to label %131 unwind label %134

131:                                              ; preds = %.preheader103
  %132 = sext i32 %130 to i64
  %133 = icmp ult i64 %.078, %132
  br i1 %133, label %136, label %.loopexit

134:                                              ; preds = %.preheader103
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %219

136:                                              ; preds = %131
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = trunc i64 %.078 to i32
  %139 = invoke noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293) %137, i32 noundef %138)
          to label %140 unwind label %147

140:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  br label %141

141:                                              ; preds = %175, %140
  %.079 = phi i64 [ 0, %140 ], [ %176, %175 ]
  %142 = invoke noundef i32 @_ZN5QMesh16GetParticleCountEv(ptr noundef nonnull align 8 dereferenceable(256) %139)
          to label %143 unwind label %149

143:                                              ; preds = %141
  %144 = sext i32 %142 to i64
  %145 = icmp ult i64 %.079, %144
  br i1 %145, label %151, label %.preheader101

.preheader101:                                    ; preds = %143
  %146 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  %.not124 = icmp eq i64 %146, 0
  br i1 %.not124, label %._crit_edge116, label %.lr.ph115

147:                                              ; preds = %136
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %219

149:                                              ; preds = %141
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %216

151:                                              ; preds = %143
  %152 = trunc i64 %.079 to i32
  %153 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %139, i32 noundef %152)
          to label %.preheader unwind label %155

.preheader:                                       ; preds = %151
  %154 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %.not125 = icmp eq i64 %154, 0
  br i1 %.not125, label %.thread, label %.lr.ph109

155:                                              ; preds = %151
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %216

.lr.ph109:                                        ; preds = %.preheader, %._crit_edge
  %.071108 = phi i64 [ %172, %._crit_edge ], [ 0, %.preheader ]
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.071108) #6
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %158, i64 8
  %160 = load ptr, ptr %159, align 8, !tbaa !49
  %161 = icmp eq ptr %160, %153
  br i1 %161, label %.thread, label %162

162:                                              ; preds = %.lr.ph109
  %163 = getelementptr inbounds i8, ptr %158, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %164 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #6
  store ptr %164, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %165 = call ptr @_ZNSt6vectorIP9QParticleSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #6
  store ptr %165, ptr %12, align 8
  %166 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9QParticleSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %166, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %162, %169
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %.not83 = icmp eq ptr %168, %153
  br i1 %.not83, label %._crit_edge.thread, label %169

._crit_edge.thread:                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %.thread

169:                                              ; preds = %.lr.ph
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9QParticleSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %171 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9QParticleSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %171, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %169, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %172 = add nuw i64 %.071108, 1
  %173 = call noundef i64 @_ZNKSt6vectorIPN10QCollision7ContactESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %174 = icmp ult i64 %172, %173
  br i1 %174, label %.lr.ph109, label %.thread, !llvm.loop !55

.thread:                                          ; preds = %._crit_edge, %.lr.ph109, %._crit_edge.thread, %.preheader
  %.577 = phi i1 [ false, %.preheader ], [ true, %._crit_edge.thread ], [ %161, %.lr.ph109 ], [ %161, %._crit_edge ]
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %10, i1 noundef zeroext %.577)
          to label %175 unwind label %177

175:                                              ; preds = %.thread
  %176 = add nuw i64 %.079, 1
  br label %141, !llvm.loop !56

177:                                              ; preds = %.thread
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %216

._crit_edge116:                                   ; preds = %212, %.preheader101
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  %179 = add nuw i64 %.078, 1
  br label %.preheader103, !llvm.loop !57

.lr.ph115:                                        ; preds = %.preheader101, %212
  %.055114 = phi i64 [ %213, %212 ], [ 0, %.preheader101 ]
  %180 = trunc i64 %.055114 to i32
  %181 = invoke noundef ptr @_ZN5QMesh13GetParticleAtEi(ptr noundef nonnull align 8 dereferenceable(256) %139, i32 noundef %180)
          to label %182 unwind label %186

182:                                              ; preds = %.lr.ph115
  %183 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %181)
  br i1 %183, label %184, label %212

184:                                              ; preds = %182
  %185 = call noundef zeroext i1 @_ZN9QParticle9GetIsLazyEv(ptr noundef nonnull align 8 dereferenceable(290) %181)
  br i1 %185, label %212, label %188

186:                                              ; preds = %208, %.lr.ph115
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %216

188:                                              ; preds = %184
  %189 = load i8, ptr %21, align 8, !tbaa !9, !range !33, !noundef !34
  %190 = trunc nuw i8 %189 to i1
  br i1 %190, label %191, label %201

191:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %192 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %.055114)
          to label %193 unwind label %199

193:                                              ; preds = %191
  %194 = extractvalue { ptr, i64 } %192, 0
  store ptr %194, ptr %13, align 8
  %195 = extractvalue { ptr, i64 } %192, 1
  store i64 %195, ptr %23, align 8
  %196 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  %197 = getelementptr inbounds i8, ptr %181, i64 288
  %198 = zext i1 %196 to i8
  store i8 %198, ptr %197, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %201

199:                                              ; preds = %191
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %216

201:                                              ; preds = %193, %188
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %202 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %203 unwind label %210

203:                                              ; preds = %201
  store <2 x float> %202, ptr %14, align 8
  %204 = call noundef zeroext i1 @_ZNK7QVectorneERKS_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %14)
  br i1 %204, label %205, label %.critedge3

205:                                              ; preds = %203
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %206)
  %.not81 = icmp eq i32 %207, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br i1 %.not81, label %212, label %208

208:                                              ; preds = %205
  %.sroa.04.0.copyload = load <2 x float>, ptr %22, align 4
  %209 = invoke noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %181, <2 x float> %.sroa.04.0.copyload)
          to label %212 unwind label %186

210:                                              ; preds = %201
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %216

.critedge3:                                       ; preds = %203
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %212

212:                                              ; preds = %205, %.critedge3, %208, %182, %184
  %213 = add nuw i64 %.055114, 1
  %214 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  %215 = icmp ult i64 %213, %214
  br i1 %215, label %.lr.ph115, label %._crit_edge116, !llvm.loop !58

216:                                              ; preds = %186, %199, %210, %149, %177, %155
  %.pn84.pn.pn = phi { ptr, i32 } [ %150, %149 ], [ %178, %177 ], [ %156, %155 ], [ %187, %186 ], [ %211, %210 ], [ %200, %199 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  br label %219

.loopexit:                                        ; preds = %131, %95, %77, %79, %62, %63, %87, %52
  call void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIP5QBodyLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %218 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIP5QBodyLb0EEES5_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %218, label %27, label %._crit_edge119

219:                                              ; preds = %134, %216, %147, %98, %128, %112, %85, %66, %45
  %.pn94 = phi { ptr, i32 } [ %46, %45 ], [ %86, %85 ], [ %67, %66 ], [ %99, %98 ], [ %.pn90, %128 ], [ %113, %112 ], [ %135, %134 ], [ %.pn84.pn.pn, %216 ], [ %148, %147 ]
  call void @_ZNSt6vectorIPN10QCollision7ContactESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %220

220:                                              ; preds = %219, %43
  %.pn94.pn = phi { ptr, i32 } [ %.pn94, %219 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %221

221:                                              ; preds = %220, %32
  %.pn94.pn.pn = phi { ptr, i32 } [ %.pn94.pn, %220 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %259

222:                                              ; preds = %.lr.ph122, %255
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %224 = load ptr, ptr %223, align 8, !tbaa !5
  %225 = load ptr, ptr %0, align 8, !tbaa !36
  %226 = getelementptr inbounds i8, ptr %225, i64 88
  %227 = load ptr, ptr %226, align 8
  invoke void %227(ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef %224)
          to label %228 unwind label %233

228:                                              ; preds = %222
  %229 = call noundef zeroext i1 @_ZStneIvJP9QAreaBodyP5QBodyEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr null) #6
  br i1 %229, label %230, label %235

230:                                              ; preds = %228
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  invoke void @_ZNKSt8functionIFvP9QAreaBodyP5QBodyEEclES1_S3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull %0, ptr noundef %232)
          to label %235 unwind label %233

233:                                              ; preds = %248, %230, %222
  %234 = landingpad { ptr, i32 }
          cleanup
  br label %259

235:                                              ; preds = %230, %228
  %236 = load i8, ptr %26, align 8, !tbaa !9, !range !33, !noundef !34
  %237 = trunc nuw i8 %236 to i1
  br i1 %237, label %238, label %248

238:                                              ; preds = %235
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %240 = load ptr, ptr %239, align 8, !tbaa !5
  %241 = getelementptr inbounds i8, ptr %240, i64 292
  %242 = load i8, ptr %241, align 4, !tbaa !35, !range !33, !noundef !34
  %243 = trunc nuw i8 %242 to i1
  br i1 %243, label %244, label %248

244:                                              ; preds = %238
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %246 = load ptr, ptr %245, align 8, !tbaa !5
  %247 = getelementptr inbounds i8, ptr %246, i64 292
  store i8 0, ptr %247, align 4, !tbaa !35
  br label %248

248:                                              ; preds = %244, %238, %235
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP5QBodySaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %250 = invoke noundef i64 @_ZNSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(8) %249)
          to label %251 unwind label %233

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %252 = call ptr @_ZNSt6vectorIP5QBodySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %252, ptr %16, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP5QBodySt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %253 = load ptr, ptr %15, align 8
  %254 = invoke ptr @_ZNSt6vectorIP5QBodySaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EE(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr %253)
          to label %255 unwind label %257

255:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  %256 = call noundef i64 @_ZNKSt6vectorIP5QBodySaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.not = icmp eq i64 %256, 0
  br i1 %.not, label %._crit_edge123, label %222, !llvm.loop !59

257:                                              ; preds = %251
  %258 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %259

._crit_edge123:                                   ; preds = %255, %._crit_edge119
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret void

259:                                              ; preds = %257, %233, %221
  %.pn94.pn.pn.pn = phi { ptr, i32 } [ %.pn94.pn.pn, %221 ], [ %258, %257 ], [ %234, %233 ]
  call void @_ZNSt6vectorIP5QBodySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn94.pn.pn.pn
}

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

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

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

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

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

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

declare void @_ZN6QWorld13GetCollisionsEP5QBodyS1_(ptr dead_on_unwind writable sret(%"class.std::vector.16") align 8, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

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

declare noundef i32 @_ZN5QBody12GetMeshCountEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #5

declare noundef ptr @_ZN5QBody9GetMeshAtEi(ptr noundef nonnull align 8 dereferenceable(293), i32 noundef) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { 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, !16, i64 352}
!10 = !{!"_ZTS9QAreaBody", !11, i64 0, !27, i64 296, !16, i64 352, !13, i64 356, !32, i64 368, !32, i64 400}
!11 = !{!"_ZTS5QBody", !12, i64 8, !12, i64 12, !6, i64 16, !13, i64 24, !13, i64 32, !12, i64 40, !12, i64 44, !14, i64 48, !15, i64 76, !16, i64 80, !16, i64 81, !16, i64 82, !12, i64 84, !17, i64 88, !16, i64 92, !12, i64 96, !16, i64 100, !16, i64 101, !13, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !18, i64 132, !18, i64 136, !16, i64 140, !16, i64 141, !16, i64 142, !18, i64 144, !18, i64 148, !18, i64 152, !16, i64 156, !19, i64 160, !19, i64 192, !21, i64 224, !16, i64 256, !22, i64 264, !26, i64 288, !16, i64 292}
!12 = !{!"float", !7, i64 0}
!13 = !{!"_ZTS7QVector", !12, i64 0, !12, i64 4}
!14 = !{!"_ZTS5QAABB", !13, i64 0, !13, i64 8, !13, i64 16, !12, i64 24}
!15 = !{!"_ZTSN5QBody5ModesE", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN5QBody9BodyTypesE", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSSt8functionIFvP5QBodyEE", !20, i64 0, !6, i64 24}
!20 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!21 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !20, i64 0, !6, i64 24}
!22 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN5QBody16SimulationModelsE", !7, i64 0}
!27 = !{!"_ZTSSt13unordered_setIP5QBodySt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIP5QBodyS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !29, i64 8, !30, i64 16, !29, i64 24, !31, i64 32, !6, i64 48}
!29 = !{!"long", !7, i64 0}
!30 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!31 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !29, i64 8}
!32 = !{!"_ZTSSt8functionIFvP9QAreaBodyP5QBodyEE", !20, i64 0, !6, i64 24}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!11, !16, i64 292}
!36 = !{!37, !37, i64 0}
!37 = !{!"vtable pointer", !8, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!41, !16, i64 288}
!41 = !{!"_ZTS9QParticle", !12, i64 0, !13, i64 4, !13, i64 12, !13, i64 20, !12, i64 28, !6, i64 32, !16, i64 40, !13, i64 44, !42, i64 56, !16, i64 80, !16, i64 81, !14, i64 84, !16, i64 112, !46, i64 120, !27, i64 176, !27, i64 232, !16, i64 288, !16, i64 289}
!42 = !{!"_ZTSSt6vectorI7QVectorSaIS0_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseI7QVectorSaIS0_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseI7QVectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt13unordered_setIP9QParticleSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt10_HashtableIP9QParticleS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !29, i64 8, !30, i64 16, !29, i64 24, !31, i64 32, !6, i64 48}
!48 = distinct !{!48, !39}
!49 = !{!50, !6, i64 8}
!50 = !{!"_ZTSN10QCollision7ContactE", !13, i64 0, !6, i64 8, !13, i64 16, !12, i64 24, !51, i64 32, !16, i64 56}
!51 = !{!"_ZTSSt6vectorIP9QParticleSaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIP9QParticleSaIS1_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIP9QParticleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = distinct !{!55, !39}
!56 = distinct !{!56, !39}
!57 = distinct !{!57, !39}
!58 = distinct !{!58, !39}
!59 = distinct !{!59, !39}


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