; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics (qmesh)

; 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.111" = type { %"struct.std::_Vector_base.112" }
%"struct.std::_Vector_base.112" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QVector = type { float, float }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.113" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.117" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.116" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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: mustprogress uwtable
declare dso_local <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5QMesh13CheckIsReflexE7QVectorS0_S0_(<2 x float>, <2 x float>, <2 x float>) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5QMesh18TriangulatePolygonERSt6vectorIP9QParticleSaIS2_EERS0_IS0_IiSaIiEESaIS7_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.111", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.QVector, align 4
  %17 = alloca %struct.QVector, align 4
  %18 = alloca %struct.QVector, align 4
  %19 = alloca %struct.QVector, align 4
  %20 = alloca %struct.QVector, align 4
  %21 = alloca %struct.QVector, align 4
  %22 = alloca %struct.QVector, align 4
  %23 = alloca %struct.QVector, align 4
  %24 = alloca %struct.QVector, align 4
  %25 = alloca %struct.QVector, align 4
  %26 = alloca %struct.QVector, align 4
  %27 = alloca %struct.QVector, align 4
  %28 = alloca %struct.QVector, align 4
  %29 = alloca %struct.QVector, align 4
  %30 = alloca %struct.QVector, align 4
  %31 = alloca %struct.QVector, align 4
  %32 = alloca %struct.QVector, align 4
  %33 = alloca %struct.QVector, align 4
  %34 = alloca i8, align 1
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %struct.QVector, align 4
  %38 = alloca float, align 4
  %39 = alloca %struct.QVector, align 4
  %40 = alloca %struct.QVector, align 4
  %41 = alloca %struct.QVector, align 4
  %42 = alloca %struct.QVector, align 4
  %43 = alloca float, align 4
  %44 = alloca %struct.QVector, align 4
  %45 = alloca %struct.QVector, align 4
  %46 = alloca %struct.QVector, align 4
  %47 = alloca %struct.QVector, align 4
  %48 = alloca float, align 4
  %49 = alloca %struct.QVector, align 4
  %50 = alloca %struct.QVector, align 4
  %51 = alloca %struct.QVector, align 4
  %52 = alloca %struct.QVector, align 4
  %53 = alloca %"class.std::vector.111", align 8
  %54 = alloca %"class.std::initializer_list", align 8
  %55 = alloca [3 x i32], align 4
  %56 = alloca %"class.std::allocator.113", align 1
  %57 = alloca %"class.__gnu_cxx::__normal_iterator.117", align 8
  %58 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %60 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %61 = alloca %"class.std::vector.111", align 8
  %62 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %72, %2
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  %68 = icmp ult i64 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %79

70:                                               ; preds = %63
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %71 unwind label %75

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %6, align 4, !tbaa !9
  br label %63, !llvm.loop !11

75:                                               ; preds = %70
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %379

79:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %80 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %81 = mul i64 %80, 3
  %82 = trunc i64 %81 to i32
  store i32 %82, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %350, %79
  %84 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %85 = icmp ugt i64 %84, 3
  br i1 %85, label %86, label %351

86:                                               ; preds = %83
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = icmp sgt i32 %89, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %86
  br label %351

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %339, %93
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %98 = icmp ult i64 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %94
  store i32 7, ptr %12, align 4
  br label %349

100:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %105 = add i64 %103, %104
  %106 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %107 = urem i64 %105, %106
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %107) #8
  %109 = load i32, ptr %108, align 4, !tbaa !9
  store i32 %109, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %111) #8
  %113 = load i32, ptr %112, align 4, !tbaa !9
  store i32 %113, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %118 = urem i64 %116, %117
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %118) #8
  %120 = load i32, ptr %119, align 4, !tbaa !9
  store i32 %120, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %123) #8
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = invoke <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %125)
          to label %127 unwind label %148

127:                                              ; preds = %100
  store <2 x float> %126, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #8
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = invoke <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %132)
          to label %134 unwind label %152

134:                                              ; preds = %127
  store <2 x float> %133, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %137) #8
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = invoke <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %139)
          to label %141 unwind label %156

141:                                              ; preds = %134
  store <2 x float> %140, ptr %18, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !13
  %142 = load <2 x float>, ptr %19, align 4
  %143 = load <2 x float>, ptr %20, align 4
  %144 = load <2 x float>, ptr %21, align 4
  %145 = invoke noundef zeroext i1 @_ZN5QMesh13CheckIsReflexE7QVectorS0_S0_(<2 x float> %142, <2 x float> %143, <2 x float> %144)
          to label %146 unwind label %156

146:                                              ; preds = %141
  br i1 %145, label %147, label %160

147:                                              ; preds = %146
  store i32 9, ptr %12, align 4
  br label %336

148:                                              ; preds = %100
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %7, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %8, align 4
  br label %348

152:                                              ; preds = %127
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %7, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %8, align 4
  br label %347

156:                                              ; preds = %141, %134
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  br label %346

160:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !13
  %161 = load <2 x float>, ptr %24, align 4
  %162 = load <2 x float>, ptr %25, align 4
  %163 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %161, <2 x float> %162)
          to label %164 unwind label %185

164:                                              ; preds = %160
  store <2 x float> %163, ptr %23, align 4
  %165 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %166 unwind label %185

166:                                              ; preds = %164
  store <2 x float> %165, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !13
  %167 = load <2 x float>, ptr %28, align 4
  %168 = load <2 x float>, ptr %29, align 4
  %169 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %167, <2 x float> %168)
          to label %170 unwind label %189

170:                                              ; preds = %166
  store <2 x float> %169, ptr %27, align 4
  %171 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %27)
          to label %172 unwind label %189

172:                                              ; preds = %170
  store <2 x float> %171, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !13
  %173 = load <2 x float>, ptr %32, align 4
  %174 = load <2 x float>, ptr %33, align 4
  %175 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %173, <2 x float> %174)
          to label %176 unwind label %193

176:                                              ; preds = %172
  store <2 x float> %175, ptr %31, align 4
  %177 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %31)
          to label %178 unwind label %193

178:                                              ; preds = %176
  store <2 x float> %177, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #8
  store i8 0, ptr %34, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %282, %178
  %180 = load i32, ptr %35, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %183 = icmp ult i64 %181, %182
  br i1 %183, label %197, label %184

184:                                              ; preds = %179
  store i32 10, ptr %12, align 4
  br label %288

185:                                              ; preds = %164, %160
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %345

189:                                              ; preds = %170, %166
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %7, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %344

193:                                              ; preds = %176, %172
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %7, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %343

197:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %198 = load i32, ptr %35, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %199) #8
  %201 = load i32, ptr %200, align 4, !tbaa !9
  store i32 %201, ptr %36, align 4, !tbaa !9
  %202 = load i32, ptr %36, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = icmp eq i32 %202, %203
  br i1 %204, label %213, label %205

205:                                              ; preds = %197
  %206 = load i32, ptr %36, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = icmp eq i32 %206, %207
  br i1 %208, label %213, label %209

209:                                              ; preds = %205
  %210 = load i32, ptr %36, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = icmp eq i32 %210, %211
  br i1 %212, label %213, label %214

213:                                              ; preds = %209, %205, %197
  store i32 12, ptr %12, align 4
  br label %279

214:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = load i32, ptr %36, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #8
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = invoke <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %219)
          to label %221 unwind label %261

221:                                              ; preds = %214
  store <2 x float> %220, ptr %37, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %37, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !13
  %222 = load <2 x float>, ptr %40, align 4
  %223 = load <2 x float>, ptr %41, align 4
  %224 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %222, <2 x float> %223)
          to label %225 unwind label %265

225:                                              ; preds = %221
  store <2 x float> %224, ptr %39, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !13
  %226 = load <2 x float>, ptr %42, align 4
  %227 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %39, <2 x float> %226)
          to label %228 unwind label %265

228:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  store float %227, ptr %38, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %37, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !13
  %229 = load <2 x float>, ptr %45, align 4
  %230 = load <2 x float>, ptr %46, align 4
  %231 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %229, <2 x float> %230)
          to label %232 unwind label %269

232:                                              ; preds = %228
  store <2 x float> %231, ptr %44, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %26, i64 8, i1 false), !tbaa.struct !13
  %233 = load <2 x float>, ptr %47, align 4
  %234 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %44, <2 x float> %233)
          to label %235 unwind label %269

235:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  store float %234, ptr %43, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %37, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !13
  %236 = load <2 x float>, ptr %50, align 4
  %237 = load <2 x float>, ptr %51, align 4
  %238 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %236, <2 x float> %237)
          to label %239 unwind label %273

239:                                              ; preds = %235
  store <2 x float> %238, ptr %49, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !13
  %240 = load <2 x float>, ptr %52, align 4
  %241 = invoke noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %49, <2 x float> %240)
          to label %242 unwind label %273

242:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  store float %241, ptr %48, align 4, !tbaa !14
  %243 = load float, ptr %38, align 4, !tbaa !14
  %244 = fcmp ogt float %243, 0.000000e+00
  br i1 %244, label %245, label %251

245:                                              ; preds = %242
  %246 = load float, ptr %43, align 4, !tbaa !14
  %247 = fcmp ogt float %246, 0.000000e+00
  br i1 %247, label %248, label %251

248:                                              ; preds = %245
  %249 = load float, ptr %48, align 4, !tbaa !14
  %250 = fcmp ogt float %249, 0.000000e+00
  br i1 %250, label %260, label %251

251:                                              ; preds = %248, %245, %242
  %252 = load float, ptr %38, align 4, !tbaa !14
  %253 = fcmp olt float %252, 0.000000e+00
  br i1 %253, label %254, label %277

254:                                              ; preds = %251
  %255 = load float, ptr %43, align 4, !tbaa !14
  %256 = fcmp olt float %255, 0.000000e+00
  br i1 %256, label %257, label %277

257:                                              ; preds = %254
  %258 = load float, ptr %48, align 4, !tbaa !14
  %259 = fcmp olt float %258, 0.000000e+00
  br i1 %259, label %260, label %277

260:                                              ; preds = %257, %248
  store i8 1, ptr %34, align 1, !tbaa !16
  store i32 10, ptr %12, align 4
  br label %278

261:                                              ; preds = %214
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %7, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %8, align 4
  br label %287

265:                                              ; preds = %225, %221
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %7, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %286

269:                                              ; preds = %232, %228
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %7, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %285

273:                                              ; preds = %239, %235
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %7, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br label %285

277:                                              ; preds = %257, %254, %251
  store i32 0, ptr %12, align 4
  br label %278

278:                                              ; preds = %277, %260
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %279

279:                                              ; preds = %278, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  %280 = load i32, ptr %12, align 4
  switch i32 %280, label %288 [
    i32 0, label %281
    i32 12, label %282
  ]

281:                                              ; preds = %279
  br label %282

282:                                              ; preds = %281, %279
  %283 = load i32, ptr %35, align 4, !tbaa !9
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %35, align 4, !tbaa !9
  br label %179, !llvm.loop !18

285:                                              ; preds = %273, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %286

286:                                              ; preds = %285, %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %287

287:                                              ; preds = %286, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %342

288:                                              ; preds = %279, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %289

289:                                              ; preds = %288
  %290 = load i8, ptr %34, align 1, !tbaa !16, !range !19, !noundef !20
  %291 = trunc i8 %290 to i1
  %292 = zext i1 %291 to i32
  %293 = icmp eq i32 %292, 0
  br i1 %293, label %294, label %334

294:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 24, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %55) #8
  %295 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %295, ptr %55, align 4, !tbaa !9
  %296 = getelementptr inbounds i32, ptr %55, i64 1
  %297 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %297, ptr %296, align 4, !tbaa !9
  %298 = getelementptr inbounds i32, ptr %55, i64 2
  %299 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %299, ptr %298, align 4, !tbaa !9
  %300 = getelementptr inbounds %"class.std::initializer_list", ptr %54, i32 0, i32 0
  store ptr %55, ptr %300, align 8, !tbaa !21
  %301 = getelementptr inbounds %"class.std::initializer_list", ptr %54, i32 0, i32 1
  store i64 3, ptr %301, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #8
  %302 = getelementptr inbounds { ptr, i64 }, ptr %54, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8
  %304 = getelementptr inbounds { ptr, i64 }, ptr %54, i32 0, i32 1
  %305 = load i64, ptr %304, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr %303, i64 %305, ptr noundef nonnull align 1 dereferenceable(1) %56)
          to label %306 unwind label %320

306:                                              ; preds = %294
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #8
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %307, ptr noundef nonnull align 8 dereferenceable(24) %53)
          to label %308 unwind label %324

308:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %309 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %310 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.116", ptr %59, i32 0, i32 0
  store ptr %309, ptr %310, align 8
  %311 = load i32, ptr %11, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %59, i64 noundef %312) #8
  %314 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.116", ptr %58, i32 0, i32 0
  store ptr %313, ptr %314, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %58) #8
  %315 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.117", ptr %57, i32 0, i32 0
  %316 = load ptr, ptr %315, align 8
  %317 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %316)
          to label %318 unwind label %328

318:                                              ; preds = %308
  %319 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.116", ptr %60, i32 0, i32 0
  store ptr %317, ptr %319, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  store i32 7, ptr %12, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #8
  br label %335

320:                                              ; preds = %294
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %7, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #8
  br label %333

324:                                              ; preds = %306
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %7, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %8, align 4
  br label %332

328:                                              ; preds = %308
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %7, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  br label %332

332:                                              ; preds = %328, %324
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #8
  br label %333

333:                                              ; preds = %332, %320
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #8
  br label %342

334:                                              ; preds = %289
  store i32 0, ptr %12, align 4
  br label %335

335:                                              ; preds = %334, %318
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %336

336:                                              ; preds = %335, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  %337 = load i32, ptr %12, align 4
  switch i32 %337, label %349 [
    i32 0, label %338
    i32 9, label %339
  ]

338:                                              ; preds = %336
  br label %339

339:                                              ; preds = %338, %336
  %340 = load i32, ptr %11, align 4, !tbaa !9
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %11, align 4, !tbaa !9
  br label %94, !llvm.loop !25

342:                                              ; preds = %333, %287
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #8
  br label %343

343:                                              ; preds = %342, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %344

344:                                              ; preds = %343, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %345

345:                                              ; preds = %344, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %346

346:                                              ; preds = %345, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %347

347:                                              ; preds = %346, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %348

348:                                              ; preds = %347, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %378

349:                                              ; preds = %336, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %350

350:                                              ; preds = %349
  br label %83, !llvm.loop !26

351:                                              ; preds = %92, %83
  call void @llvm.lifetime.start.p0(i64 24, ptr %61) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  store i32 0, ptr %62, align 4, !tbaa !9
  br label %352

352:                                              ; preds = %363, %351
  %353 = load i32, ptr %62, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %356 = icmp ult i64 %354, %355
  br i1 %356, label %358, label %357

357:                                              ; preds = %352
  store i32 13, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  br label %370

358:                                              ; preds = %352
  %359 = load i32, ptr %62, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %360) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 4 dereferenceable(4) %361)
          to label %362 unwind label %366

362:                                              ; preds = %358
  br label %363

363:                                              ; preds = %362
  %364 = load i32, ptr %62, align 4, !tbaa !9
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %62, align 4, !tbaa !9
  br label %352, !llvm.loop !27

366:                                              ; preds = %358
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %7, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  br label %377

370:                                              ; preds = %357
  %371 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %371, ptr noundef nonnull align 8 dereferenceable(24) %61)
          to label %372 unwind label %373

372:                                              ; preds = %370
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  ret void

373:                                              ; preds = %370
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %7, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %8, align 4
  br label %377

377:                                              ; preds = %373, %366
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %61) #8
  br label %378

378:                                              ; preds = %377, %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %379

379:                                              ; preds = %378, %75
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  br label %380

380:                                              ; preds = %379
  %381 = load ptr, ptr %7, align 8
  %382 = load i32, ptr %8, align 4
  %383 = insertvalue { ptr, i32 } poison, ptr %381, 0
  %384 = insertvalue { ptr, i32 } %383, i32 %382, 1
  resume { ptr, i32 } %384
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSSt16initializer_listIiE", !6, i64 0, !23, i64 8}
!23 = !{!"long", !7, i64 0}
!24 = !{!22, !23, i64 8}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}


; 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.111" = type { %"struct.std::_Vector_base.112" }
%"struct.std::_Vector_base.112" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QVector = type { float, float }
%"class.std::allocator.113" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.117" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.116" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5QMesh13CheckIsReflexE7QVectorS0_S0_(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5QMesh18TriangulatePolygonERSt6vectorIP9QParticleSaIS2_EERS0_IS0_IiSaIiEESaIS7_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.111", align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.QVector, align 8
  %6 = alloca %struct.QVector, align 8
  %7 = alloca %struct.QVector, align 8
  %8 = alloca %struct.QVector, align 8
  %9 = alloca %struct.QVector, align 8
  %10 = alloca %struct.QVector, align 8
  %11 = alloca %"class.std::vector.111", align 8
  %12 = alloca [3 x i32], align 4
  %13 = alloca %"class.std::allocator.113", align 1
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.117", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.116", align 8
  %17 = alloca %"class.std::vector.111", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  %18 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %.not203 = icmp eq i64 %18, 0
  br i1 %.not203, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %26, %2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %19 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %20 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %21 = icmp ugt i64 %20, 3
  br i1 %21, label %.lr.ph196, label %._crit_edge197

.lr.ph196:                                        ; preds = %._crit_edge
  %22 = trunc i64 %19 to i32
  %23 = mul i32 %22, 3
  %24 = getelementptr inbounds i8, ptr %12, i64 4
  %25 = getelementptr inbounds i8, ptr %12, i64 8
  %smax = call i32 @llvm.smax.i32(i32 %23, i32 0)
  br label %34

.lr.ph:                                           ; preds = %2, %26
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %26 unwind label %32

26:                                               ; preds = %.lr.ph
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %4, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = call noundef i64 @_ZNKSt6vectorIP9QParticleSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %31 = icmp ugt i64 %30, %29
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !9

32:                                               ; preds = %.lr.ph
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %150

34:                                               ; preds = %.lr.ph196, %.loopexit
  %.0102194 = phi i32 [ 0, %.lr.ph196 ], [ %35, %.loopexit ]
  %35 = add nuw i32 %.0102194, 1
  %exitcond.not = icmp eq i32 %.0102194, %smax
  br i1 %exitcond.not, label %._crit_edge197, label %.preheader

.preheader:                                       ; preds = %34
  %36 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %.not204 = icmp eq i64 %36, 0
  br i1 %.not204, label %.loopexit, label %.lr.ph193

.lr.ph193:                                        ; preds = %.preheader, %.thread.thread
  %indvars.iv247 = phi i64 [ %indvars.iv.next248, %.thread.thread ], [ 0, %.preheader ]
  %37 = add nsw i64 %indvars.iv247, -1
  %38 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %39 = add i64 %38, %37
  %40 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %41 = urem i64 %39, %40
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %41) #8
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv247) #8
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %indvars.iv.next248 = add nuw nsw i64 %indvars.iv247, 1
  %46 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %47 = urem i64 %indvars.iv.next248, %46
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %47) #8
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = sext i32 %43 to i64
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %50) #8
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = call <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %52)
  %54 = sext i32 %45 to i64
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %54) #8
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = call <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %56)
  %58 = sext i32 %49 to i64
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %58) #8
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = call <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %60)
  %62 = invoke noundef zeroext i1 @_ZN5QMesh13CheckIsReflexE7QVectorS0_S0_(<2 x float> %53, <2 x float> %57, <2 x float> %61)
          to label %63 unwind label %64

63:                                               ; preds = %.lr.ph193
  br i1 %62, label %.thread.thread, label %66

64:                                               ; preds = %.lr.ph193
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %150

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %67 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %61, <2 x float> %57)
          to label %68 unwind label %80

68:                                               ; preds = %66
  store <2 x float> %67, ptr %5, align 8
  %69 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %70 unwind label %80

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %71 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %53, <2 x float> %61)
          to label %72 unwind label %82

72:                                               ; preds = %70
  store <2 x float> %71, ptr %6, align 8
  %73 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %74 unwind label %82

74:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %75 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %57, <2 x float> %53)
          to label %76 unwind label %84

76:                                               ; preds = %74
  store <2 x float> %75, ptr %7, align 8
  %77 = invoke <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %78 unwind label %84

78:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %79 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %.not142180.not = icmp eq i64 %79, 0
  br i1 %.not142180.not, label %.critedge, label %.lr.ph183

80:                                               ; preds = %68, %66
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %150

82:                                               ; preds = %72, %70
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %150

84:                                               ; preds = %76, %74
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %150

.lr.ph183:                                        ; preds = %78, %118
  %indvars.iv = phi i64 [ %indvars.iv.next, %118 ], [ 0, %78 ]
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp eq i32 %87, %43
  %89 = icmp eq i32 %87, %45
  %or.cond133 = select i1 %88, i1 true, i1 %89
  %90 = icmp eq i32 %87, %49
  %or.cond134 = select i1 %or.cond133, i1 true, i1 %90
  br i1 %or.cond134, label %118, label %91

91:                                               ; preds = %.lr.ph183
  %92 = sext i32 %87 to i64
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9QParticleSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %92) #8
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = call <2 x float> @_ZN9QParticle11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %94)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %96 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %95, <2 x float> %57)
          to label %97 unwind label %112

97:                                               ; preds = %91
  store <2 x float> %96, ptr %8, align 8
  %98 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %8, <2 x float> %69)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %99 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %95, <2 x float> %61)
          to label %100 unwind label %114

100:                                              ; preds = %97
  store <2 x float> %99, ptr %9, align 8
  %101 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %9, <2 x float> %73)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %102 = invoke <2 x float> @_Zmi7QVectorS_(<2 x float> %95, <2 x float> %53)
          to label %103 unwind label %116

103:                                              ; preds = %100
  store <2 x float> %102, ptr %10, align 8
  %104 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %10, <2 x float> %77)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %105 = fcmp ogt float %98, 0.000000e+00
  %106 = fcmp ogt float %101, 0.000000e+00
  %or.cond = and i1 %105, %106
  %107 = fcmp ogt float %104, 0.000000e+00
  %or.cond3 = and i1 %or.cond, %107
  br i1 %or.cond3, label %.thread.thread, label %108

108:                                              ; preds = %103
  %109 = fcmp olt float %98, 0.000000e+00
  %110 = fcmp olt float %101, 0.000000e+00
  %or.cond5 = and i1 %109, %110
  %111 = fcmp olt float %104, 0.000000e+00
  %or.cond7 = and i1 %or.cond5, %111
  br i1 %or.cond7, label %.thread.thread, label %118

112:                                              ; preds = %91
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %150

114:                                              ; preds = %97
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %150

116:                                              ; preds = %100
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %150

118:                                              ; preds = %.lr.ph183, %108
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %119 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %.not142 = icmp ugt i64 %119, %indvars.iv.next
  br i1 %.not142, label %.lr.ph183, label %.critedge, !llvm.loop !13

.critedge:                                        ; preds = %78, %118
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  store i32 %43, ptr %12, align 4, !tbaa !5
  store i32 %45, ptr %24, align 4, !tbaa !5
  store i32 %49, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr nonnull %12, i64 3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %120 unwind label %126

120:                                              ; preds = %.critedge
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %121 unwind label %128

121:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %122 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %122, ptr %16, align 8
  %123 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %indvars.iv247) #8
  store ptr %123, ptr %15, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %124 = load ptr, ptr %14, align 8
  %125 = invoke ptr @_ZNSt6vectorIiSaIiEE5eraseEN9__gnu_cxx17__normal_iteratorIPKiS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr %124)
          to label %134 unwind label %130

126:                                              ; preds = %.critedge
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  br label %133

128:                                              ; preds = %120
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %121
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %132

132:                                              ; preds = %130, %128
  %.pn120 = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %133

133:                                              ; preds = %132, %126
  %.pn120.pn = phi { ptr, i32 } [ %.pn120, %132 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %150

134:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %.loopexit

.thread.thread:                                   ; preds = %103, %108, %63
  %135 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %136 = icmp ugt i64 %135, %indvars.iv.next248
  br i1 %136, label %.lr.ph193, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %.thread.thread, %.preheader, %134
  %137 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %138 = icmp ugt i64 %137, 3
  br i1 %138, label %34, label %._crit_edge197, !llvm.loop !15

._crit_edge197:                                   ; preds = %.loopexit, %34, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %139 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %.not205 = icmp eq i64 %139, 0
  br i1 %.not205, label %._crit_edge202, label %.lr.ph201

._crit_edge202:                                   ; preds = %141, %._crit_edge197
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %146 unwind label %147

.lr.ph201:                                        ; preds = %._crit_edge197, %141
  %indvars.iv250 = phi i64 [ %indvars.iv.next251, %141 ], [ 0, %._crit_edge197 ]
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv250) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %140)
          to label %141 unwind label %144

141:                                              ; preds = %.lr.ph201
  %indvars.iv.next251 = add nuw nsw i64 %indvars.iv250, 1
  %142 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %143 = icmp ugt i64 %142, %indvars.iv.next251
  br i1 %143, label %.lr.ph201, label %._crit_edge202, !llvm.loop !16

144:                                              ; preds = %.lr.ph201
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %149

146:                                              ; preds = %._crit_edge202
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

147:                                              ; preds = %._crit_edge202
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %149

149:                                              ; preds = %147, %144
  %.pn128 = phi { ptr, i32 } [ %145, %144 ], [ %148, %147 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  br label %150

150:                                              ; preds = %149, %80, %84, %112, %116, %114, %133, %82, %64, %32
  %.pn131 = phi { ptr, i32 } [ %33, %32 ], [ %.pn128, %149 ], [ %65, %64 ], [ %81, %80 ], [ %83, %82 ], [ %85, %84 ], [ %.pn120.pn, %133 ], [ %113, %112 ], [ %117, %116 ], [ %115, %114 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn131
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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