; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qangleconstraint.ll (ZN16QAngleConstraint6UpdateEfb)

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

%struct.QVector = type { float, float }
%class.QAngleConstraint = type <{ ptr, float, [4 x i8], ptr, ptr, ptr, float, float, float, float, i8, i8, i8, [5 x i8] }>

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16QAngleConstraint6UpdateEfb(ptr noundef nonnull align 8 dereferenceable(59) %0, float noundef %1, i1 noundef zeroext %2) unnamed_addr #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca i8, align 1
  %7 = alloca float, align 4
  %8 = alloca %struct.QVector, align 4
  %9 = alloca %struct.QVector, align 4
  %10 = alloca %struct.QVector, align 4
  %11 = alloca %struct.QVector, align 4
  %12 = alloca %struct.QVector, align 4
  %13 = alloca %struct.QVector, align 4
  %14 = alloca float, align 4
  %15 = alloca %struct.QVector, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.QVector, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.QVector, align 4
  %21 = alloca %struct.QVector, align 4
  %22 = alloca float, align 4
  %23 = alloca %struct.QVector, align 4
  %24 = alloca %struct.QVector, align 4
  %25 = alloca float, align 4
  %26 = alloca float, 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 %struct.QVector, align 4
  %35 = alloca %struct.QVector, align 4
  %36 = alloca %struct.QVector, align 4
  %37 = alloca %struct.QVector, align 4
  %38 = alloca %struct.QVector, 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 %struct.QVector, align 4
  %44 = alloca %struct.QVector, align 4
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca %struct.QVector, align 4
  %48 = alloca %struct.QVector, 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 %struct.QVector, align 4
  %54 = alloca %struct.QVector, align 4
  %55 = alloca %struct.QVector, align 4
  %56 = alloca %struct.QVector, align 4
  %57 = alloca %struct.QVector, align 4
  %58 = alloca %struct.QVector, align 4
  %59 = alloca %struct.QVector, align 4
  %60 = alloca %struct.QVector, align 4
  %61 = alloca %struct.QVector, align 4
  %62 = alloca %struct.QVector, align 4
  %63 = alloca %struct.QVector, align 4
  %64 = alloca %struct.QVector, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  %65 = zext i1 %2 to i8
  store i8 %65, ptr %6, align 1, !tbaa !11
  %66 = load ptr, ptr %4, align 8
  %67 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 10
  %68 = load i8, ptr %67, align 8, !tbaa !13, !range !15, !noundef !16
  %69 = trunc i8 %68 to i1
  %70 = zext i1 %69 to i32
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %3
  br label %323

73:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %74 = load float, ptr %5, align 4, !tbaa !9
  %75 = fcmp oge float %74, 0.000000e+00
  br i1 %75, label %76, label %81

76:                                               ; preds = %73
  %77 = load float, ptr %5, align 4, !tbaa !9
  %78 = fcmp ole float %77, 1.000000e+00
  br i1 %78, label %79, label %81

79:                                               ; preds = %76
  %80 = load float, ptr %5, align 4, !tbaa !9
  br label %84

81:                                               ; preds = %76, %73
  %82 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 1
  %83 = load float, ptr %82, align 8, !tbaa !17
  br label %84

84:                                               ; preds = %81, %79
  %85 = phi float [ %80, %79 ], [ %83, %81 ]
  store float %85, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %86 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !18
  %88 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  store <2 x float> %88, ptr %9, align 4
  %89 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %90)
  store <2 x float> %91, ptr %10, align 4
  %92 = load <2 x float>, ptr %9, align 4
  %93 = load <2 x float>, ptr %10, align 4
  %94 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %92, <2 x float> %93)
  store <2 x float> %94, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %95 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %96 = load ptr, ptr %95, align 8, !tbaa !20
  %97 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %96)
  store <2 x float> %97, ptr %12, align 4
  %98 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %99)
  store <2 x float> %100, ptr %13, align 4
  %101 = load <2 x float>, ptr %12, align 4
  %102 = load <2 x float>, ptr %13, align 4
  %103 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %101, <2 x float> %102)
  store <2 x float> %103, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !21
  %104 = load <2 x float>, ptr %15, align 4
  %105 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %11, <2 x float> %104)
  %106 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %107 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %108 = fmul float %106, %107
  %109 = fdiv float %105, %108
  store float %109, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  %110 = call <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %110, ptr %17, align 4
  %111 = load <2 x float>, ptr %17, align 4
  %112 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %11, <2 x float> %111)
  %113 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %114 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %115 = fmul float %113, %114
  %116 = fdiv float %112, %115
  store float %116, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %117 = load float, ptr %16, align 4, !tbaa !9
  %118 = load float, ptr %14, align 4, !tbaa !9
  %119 = call noundef float @_ZSt5atan2ff(float noundef %117, float noundef %118)
  store float %119, ptr %18, align 4, !tbaa !9
  %120 = load float, ptr %18, align 4, !tbaa !9
  %121 = fcmp olt float %120, 0.000000e+00
  br i1 %121, label %122, label %128

122:                                              ; preds = %84
  %123 = load float, ptr %18, align 4, !tbaa !9
  %124 = call noundef float @_ZSt3absf(float noundef %123)
  %125 = fpext float %124 to double
  %126 = fsub double 0x401921FB54442D18, %125
  %127 = fptrunc double %126 to float
  store float %127, ptr %18, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %122, %84
  %129 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 11
  %130 = load i8, ptr %129, align 1, !tbaa !22, !range !15, !noundef !16
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %138

132:                                              ; preds = %128
  %133 = load float, ptr %18, align 4, !tbaa !9
  %134 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 9
  store float %133, ptr %134, align 4, !tbaa !23
  %135 = load float, ptr %18, align 4, !tbaa !9
  %136 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 8
  store float %135, ptr %136, align 8, !tbaa !24
  %137 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 11
  store i8 0, ptr %137, align 1, !tbaa !22
  store i32 1, ptr %19, align 4
  br label %321

138:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %139 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 9
  %140 = load float, ptr %139, align 4, !tbaa !23
  %141 = call <2 x float> @_ZN7QVector17AngleToUnitVectorEf(float noundef %140)
  store <2 x float> %141, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %142 = load float, ptr %18, align 4, !tbaa !9
  %143 = call <2 x float> @_ZN7QVector17AngleToUnitVectorEf(float noundef %142)
  store <2 x float> %143, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !21
  %144 = load <2 x float>, ptr %23, align 4
  %145 = load <2 x float>, ptr %24, align 4
  %146 = call noundef float @_ZN7QVector22AngleBetweenTwoVectorsES_S_(<2 x float> %144, <2 x float> %145)
  store float %146, ptr %22, align 4, !tbaa !9
  %147 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 9
  %148 = load float, ptr %147, align 4, !tbaa !23
  %149 = load float, ptr %22, align 4, !tbaa !9
  %150 = fadd float %148, %149
  store float %150, ptr %18, align 4, !tbaa !9
  %151 = load float, ptr %18, align 4, !tbaa !9
  %152 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 8
  store float %151, ptr %152, align 8, !tbaa !24
  %153 = load float, ptr %18, align 4, !tbaa !9
  %154 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 7
  %155 = load float, ptr %154, align 4, !tbaa !25
  %156 = fcmp ogt float %153, %155
  br i1 %156, label %157, label %235

157:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  %158 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 7
  %159 = load float, ptr %158, align 4, !tbaa !25
  %160 = load float, ptr %18, align 4, !tbaa !9
  %161 = fsub float %159, %160
  store float %161, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  %162 = load float, ptr %25, align 4, !tbaa !9
  %163 = fmul float %162, 5.000000e-01
  store float %163, ptr %26, align 4, !tbaa !9
  %164 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %165 = load ptr, ptr %164, align 8, !tbaa !18
  %166 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %165)
  br i1 %166, label %167, label %198

167:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %168 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !19
  %170 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %169)
  store <2 x float> %170, ptr %28, align 4
  %171 = load float, ptr %26, align 4, !tbaa !9
  %172 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %171)
  store <2 x float> %172, ptr %29, align 4
  %173 = load <2 x float>, ptr %28, align 4
  %174 = load <2 x float>, ptr %29, align 4
  %175 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %173, <2 x float> %174)
  store <2 x float> %175, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !21
  %176 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %177 = load ptr, ptr %176, align 8, !tbaa !18
  %178 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %177)
  store <2 x float> %178, ptr %33, align 4
  %179 = load <2 x float>, ptr %32, align 4
  %180 = load <2 x float>, ptr %33, align 4
  %181 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %179, <2 x float> %180)
  store <2 x float> %181, ptr %31, align 4
  %182 = load float, ptr %7, align 4, !tbaa !9
  %183 = load <2 x float>, ptr %31, align 4
  %184 = call <2 x float> @_Zml7QVectorf(<2 x float> %183, float noundef %182)
  store <2 x float> %184, ptr %30, align 4
  %185 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %192

187:                                              ; preds = %167
  %188 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %189 = load ptr, ptr %188, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !21
  %190 = load <2 x float>, ptr %34, align 4
  %191 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %189, <2 x float> %190)
  br label %197

192:                                              ; preds = %167
  %193 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !21
  %195 = load <2 x float>, ptr %35, align 4
  %196 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %194, <2 x float> %195)
  br label %197

197:                                              ; preds = %192, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %198

198:                                              ; preds = %197, %157
  %199 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %200 = load ptr, ptr %199, align 8, !tbaa !20
  %201 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %200)
  br i1 %201, label %202, label %234

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %203 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 4
  %204 = load ptr, ptr %203, align 8, !tbaa !19
  %205 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %204)
  store <2 x float> %205, ptr %37, align 4
  %206 = load float, ptr %26, align 4, !tbaa !9
  %207 = fneg float %206
  %208 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %207)
  store <2 x float> %208, ptr %38, align 4
  %209 = load <2 x float>, ptr %37, align 4
  %210 = load <2 x float>, ptr %38, align 4
  %211 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %209, <2 x float> %210)
  store <2 x float> %211, ptr %36, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %36, i64 8, i1 false), !tbaa.struct !21
  %212 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %213 = load ptr, ptr %212, align 8, !tbaa !20
  %214 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %213)
  store <2 x float> %214, ptr %42, align 4
  %215 = load <2 x float>, ptr %41, align 4
  %216 = load <2 x float>, ptr %42, align 4
  %217 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %215, <2 x float> %216)
  store <2 x float> %217, ptr %40, align 4
  %218 = load float, ptr %7, align 4, !tbaa !9
  %219 = load <2 x float>, ptr %40, align 4
  %220 = call <2 x float> @_Zml7QVectorf(<2 x float> %219, float noundef %218)
  store <2 x float> %220, ptr %39, align 4
  %221 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %222 = trunc i8 %221 to i1
  br i1 %222, label %223, label %228

223:                                              ; preds = %202
  %224 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %225 = load ptr, ptr %224, align 8, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !21
  %226 = load <2 x float>, ptr %43, align 4
  %227 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %225, <2 x float> %226)
  br label %233

228:                                              ; preds = %202
  %229 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !21
  %231 = load <2 x float>, ptr %44, align 4
  %232 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %230, <2 x float> %231)
  br label %233

233:                                              ; preds = %228, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %234

234:                                              ; preds = %233, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %235

235:                                              ; preds = %234, %138
  %236 = load float, ptr %18, align 4, !tbaa !9
  %237 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 6
  %238 = load float, ptr %237, align 8, !tbaa !26
  %239 = fcmp olt float %236, %238
  br i1 %239, label %240, label %318

240:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #10
  %241 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 6
  %242 = load float, ptr %241, align 8, !tbaa !26
  %243 = load float, ptr %18, align 4, !tbaa !9
  %244 = fsub float %242, %243
  store float %244, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #10
  %245 = load float, ptr %45, align 4, !tbaa !9
  %246 = fmul float %245, 5.000000e-01
  store float %246, ptr %46, align 4, !tbaa !9
  %247 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %248 = load ptr, ptr %247, align 8, !tbaa !18
  %249 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %248)
  br i1 %249, label %250, label %281

250:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %251 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 4
  %252 = load ptr, ptr %251, align 8, !tbaa !19
  %253 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %252)
  store <2 x float> %253, ptr %48, align 4
  %254 = load float, ptr %46, align 4, !tbaa !9
  %255 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %254)
  store <2 x float> %255, ptr %49, align 4
  %256 = load <2 x float>, ptr %48, align 4
  %257 = load <2 x float>, ptr %49, align 4
  %258 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %256, <2 x float> %257)
  store <2 x float> %258, ptr %47, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !21
  %259 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %260 = load ptr, ptr %259, align 8, !tbaa !18
  %261 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %260)
  store <2 x float> %261, ptr %53, align 4
  %262 = load <2 x float>, ptr %52, align 4
  %263 = load <2 x float>, ptr %53, align 4
  %264 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %262, <2 x float> %263)
  store <2 x float> %264, ptr %51, align 4
  %265 = load float, ptr %7, align 4, !tbaa !9
  %266 = load <2 x float>, ptr %51, align 4
  %267 = call <2 x float> @_Zml7QVectorf(<2 x float> %266, float noundef %265)
  store <2 x float> %267, ptr %50, align 4
  %268 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %269 = trunc i8 %268 to i1
  br i1 %269, label %270, label %275

270:                                              ; preds = %250
  %271 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %272 = load ptr, ptr %271, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %50, i64 8, i1 false), !tbaa.struct !21
  %273 = load <2 x float>, ptr %54, align 4
  %274 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %272, <2 x float> %273)
  br label %280

275:                                              ; preds = %250
  %276 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 3
  %277 = load ptr, ptr %276, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %50, i64 8, i1 false), !tbaa.struct !21
  %278 = load <2 x float>, ptr %55, align 4
  %279 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %277, <2 x float> %278)
  br label %280

280:                                              ; preds = %275, %270
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %281

281:                                              ; preds = %280, %240
  %282 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %283 = load ptr, ptr %282, align 8, !tbaa !20
  %284 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %283)
  br i1 %284, label %285, label %317

285:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  %286 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !19
  %288 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %287)
  store <2 x float> %288, ptr %57, align 4
  %289 = load float, ptr %46, align 4, !tbaa !9
  %290 = fneg float %289
  %291 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %290)
  store <2 x float> %291, ptr %58, align 4
  %292 = load <2 x float>, ptr %57, align 4
  %293 = load <2 x float>, ptr %58, align 4
  %294 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %292, <2 x float> %293)
  store <2 x float> %294, ptr %56, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %56, i64 8, i1 false), !tbaa.struct !21
  %295 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %296 = load ptr, ptr %295, align 8, !tbaa !20
  %297 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %296)
  store <2 x float> %297, ptr %62, align 4
  %298 = load <2 x float>, ptr %61, align 4
  %299 = load <2 x float>, ptr %62, align 4
  %300 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %298, <2 x float> %299)
  store <2 x float> %300, ptr %60, align 4
  %301 = load float, ptr %7, align 4, !tbaa !9
  %302 = load <2 x float>, ptr %60, align 4
  %303 = call <2 x float> @_Zml7QVectorf(<2 x float> %302, float noundef %301)
  store <2 x float> %303, ptr %59, align 4
  %304 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %305 = trunc i8 %304 to i1
  br i1 %305, label %306, label %311

306:                                              ; preds = %285
  %307 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %308 = load ptr, ptr %307, align 8, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %59, i64 8, i1 false), !tbaa.struct !21
  %309 = load <2 x float>, ptr %63, align 4
  %310 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %308, <2 x float> %309)
  br label %316

311:                                              ; preds = %285
  %312 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 5
  %313 = load ptr, ptr %312, align 8, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %59, i64 8, i1 false), !tbaa.struct !21
  %314 = load <2 x float>, ptr %64, align 4
  %315 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %313, <2 x float> %314)
  br label %316

316:                                              ; preds = %311, %306
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  br label %317

317:                                              ; preds = %316, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  br label %318

318:                                              ; preds = %317, %235
  %319 = load float, ptr %18, align 4, !tbaa !9
  %320 = getelementptr inbounds %class.QAngleConstraint, ptr %66, i32 0, i32 9
  store float %319, ptr %320, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  store i32 0, ptr %19, align 4
  br label %321

321:                                              ; preds = %318, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  %322 = load i32, ptr %19, align 4
  switch i32 %322, label %324 [
    i32 0, label %323
    i32 1, label %323
  ]

323:                                              ; preds = %321, %321, %72
  ret void

324:                                              ; preds = %321
  unreachable
}

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

declare <2 x float> @_ZN7QVector17AngleToUnitVectorEf(float noundef) #8

declare noundef float @_ZN7QVector22AngleBetweenTwoVectorsES_S_(<2 x float>, <2 x float>) #8

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

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

declare <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #8

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

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

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

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

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

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


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

%struct.QVector = type { float, float }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8)) 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #5

; 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
define dso_local void @_ZN16QAngleConstraint6UpdateEfb(ptr nocapture noundef nonnull align 8 dereferenceable(59) %0, float noundef %1, i1 noundef zeroext %2) unnamed_addr #1 align 2 {
  %4 = alloca %struct.QVector, align 8
  %5 = alloca %struct.QVector, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 56
  %7 = load i8, ptr %6, align 8, !tbaa !5, !range !12, !noundef !13
  %8 = icmp eq i8 %7, 0
  br i1 %8, label %144, label %9

9:                                                ; preds = %3
  %10 = fcmp oge float %1, 0.000000e+00
  %11 = fcmp ole float %1, 1.000000e+00
  %or.cond = and i1 %10, %11
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load float, ptr %12, align 8
  %14 = select i1 %or.cond, float %1, float %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = tail call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = tail call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %19)
  %21 = tail call <2 x float> @_Zmi7QVectorS_(<2 x float> %17, <2 x float> %20)
  store <2 x float> %21, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = tail call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %23)
  %25 = load ptr, ptr %18, align 8, !tbaa !15
  %26 = tail call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %25)
  %27 = tail call <2 x float> @_Zmi7QVectorS_(<2 x float> %24, <2 x float> %26)
  store <2 x float> %27, ptr %5, align 8
  %28 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %5, <2 x float> %21)
  %29 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %30 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %31 = fmul float %29, %30
  %32 = fdiv float %28, %31
  %33 = call <2 x float> @_ZNK7QVector13PerpendicularEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %34 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %5, <2 x float> %33)
  %35 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %36 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %37 = fmul float %35, %36
  %38 = fdiv float %34, %37
  %39 = call noundef float @_ZSt5atan2ff(float noundef %38, float noundef %32)
  %40 = fcmp olt float %39, 0.000000e+00
  br i1 %40, label %41, label %46

41:                                               ; preds = %9
  %42 = call noundef float @_ZSt3absf(float noundef %39)
  %43 = fpext float %42 to double
  %44 = fsub double 0x401921FB54442D18, %43
  %45 = fptrunc double %44 to float
  br label %46

46:                                               ; preds = %41, %9
  %.0 = phi float [ %45, %41 ], [ %39, %9 ]
  %47 = getelementptr inbounds i8, ptr %0, i64 57
  %48 = load i8, ptr %47, align 1, !tbaa !17, !range !12, !noundef !13
  %49 = trunc nuw i8 %48 to i1
  %50 = getelementptr inbounds i8, ptr %0, i64 52
  br i1 %49, label %51, label %53

51:                                               ; preds = %46
  store float %.0, ptr %50, align 4, !tbaa !18
  %52 = getelementptr inbounds i8, ptr %0, i64 48
  store float %.0, ptr %52, align 8, !tbaa !19
  store i8 0, ptr %47, align 1, !tbaa !17
  br label %143

53:                                               ; preds = %46
  %54 = load float, ptr %50, align 4, !tbaa !18
  %55 = call <2 x float> @_ZN7QVector17AngleToUnitVectorEf(float noundef %54)
  %56 = call <2 x float> @_ZN7QVector17AngleToUnitVectorEf(float noundef %.0)
  %57 = call noundef float @_ZN7QVector22AngleBetweenTwoVectorsES_S_(<2 x float> %56, <2 x float> %55)
  %58 = load float, ptr %50, align 4, !tbaa !18
  %59 = fadd float %57, %58
  %60 = getelementptr inbounds i8, ptr %0, i64 48
  store float %59, ptr %60, align 8, !tbaa !19
  %61 = getelementptr inbounds i8, ptr %0, i64 44
  %62 = load float, ptr %61, align 4, !tbaa !20
  %63 = fcmp ogt float %59, %62
  br i1 %63, label %64, label %101

64:                                               ; preds = %53
  %65 = fsub float %62, %59
  %66 = fmul float %65, 5.000000e-01
  %67 = load ptr, ptr %15, align 8, !tbaa !14
  %68 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %67)
  br i1 %68, label %69, label %83

69:                                               ; preds = %64
  %70 = load ptr, ptr %18, align 8, !tbaa !15
  %71 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %70)
  %72 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %66)
  %73 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %71, <2 x float> %72)
  %74 = load ptr, ptr %15, align 8, !tbaa !14
  %75 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %74)
  %76 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %73, <2 x float> %75)
  %77 = call <2 x float> @_Zml7QVectorf(<2 x float> %76, float noundef %14)
  %78 = load ptr, ptr %15, align 8, !tbaa !14
  br i1 %2, label %79, label %81

79:                                               ; preds = %69
  %80 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %78, <2 x float> %77)
  br label %83

81:                                               ; preds = %69
  %82 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %78, <2 x float> %77)
  br label %83

83:                                               ; preds = %79, %81, %64
  %84 = load ptr, ptr %22, align 8, !tbaa !16
  %85 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %84)
  br i1 %85, label %86, label %101

86:                                               ; preds = %83
  %87 = load ptr, ptr %18, align 8, !tbaa !15
  %88 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %87)
  %89 = fneg float %66
  %90 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %89)
  %91 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %88, <2 x float> %90)
  %92 = load ptr, ptr %22, align 8, !tbaa !16
  %93 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %92)
  %94 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %91, <2 x float> %93)
  %95 = call <2 x float> @_Zml7QVectorf(<2 x float> %94, float noundef %14)
  %96 = load ptr, ptr %22, align 8, !tbaa !16
  br i1 %2, label %97, label %99

97:                                               ; preds = %86
  %98 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %96, <2 x float> %95)
  br label %101

99:                                               ; preds = %86
  %100 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %96, <2 x float> %95)
  br label %101

101:                                              ; preds = %83, %99, %97, %53
  %102 = getelementptr inbounds i8, ptr %0, i64 40
  %103 = load float, ptr %102, align 8, !tbaa !21
  %104 = fcmp olt float %59, %103
  br i1 %104, label %105, label %142

105:                                              ; preds = %101
  %106 = fsub float %103, %59
  %107 = fmul float %106, 5.000000e-01
  %108 = load ptr, ptr %15, align 8, !tbaa !14
  %109 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %108)
  br i1 %109, label %110, label %124

110:                                              ; preds = %105
  %111 = load ptr, ptr %18, align 8, !tbaa !15
  %112 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %111)
  %113 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %107)
  %114 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %112, <2 x float> %113)
  %115 = load ptr, ptr %15, align 8, !tbaa !14
  %116 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %115)
  %117 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %114, <2 x float> %116)
  %118 = call <2 x float> @_Zml7QVectorf(<2 x float> %117, float noundef %14)
  %119 = load ptr, ptr %15, align 8, !tbaa !14
  br i1 %2, label %120, label %122

120:                                              ; preds = %110
  %121 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %119, <2 x float> %118)
  br label %124

122:                                              ; preds = %110
  %123 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %119, <2 x float> %118)
  br label %124

124:                                              ; preds = %120, %122, %105
  %125 = load ptr, ptr %22, align 8, !tbaa !16
  %126 = call noundef zeroext i1 @_ZN9QParticle10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(290) %125)
  br i1 %126, label %127, label %142

127:                                              ; preds = %124
  %128 = load ptr, ptr %18, align 8, !tbaa !15
  %129 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %128)
  %130 = fneg float %107
  %131 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %130)
  %132 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %129, <2 x float> %131)
  %133 = load ptr, ptr %22, align 8, !tbaa !16
  %134 = call <2 x float> @_ZN9QParticle17GetGlobalPositionEv(ptr noundef nonnull align 8 dereferenceable(290) %133)
  %135 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %132, <2 x float> %134)
  %136 = call <2 x float> @_Zml7QVectorf(<2 x float> %135, float noundef %14)
  %137 = load ptr, ptr %22, align 8, !tbaa !16
  br i1 %2, label %138, label %140

138:                                              ; preds = %127
  %139 = call noundef ptr @_ZN9QParticle19AddAccumulatedForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %137, <2 x float> %136)
  br label %142

140:                                              ; preds = %127
  %141 = call noundef ptr @_ZN9QParticle10ApplyForceE7QVector(ptr noundef nonnull align 8 dereferenceable(290) %137, <2 x float> %136)
  br label %142

142:                                              ; preds = %124, %140, %138, %101
  store float %59, ptr %50, align 4, !tbaa !18
  br label %143

143:                                              ; preds = %142, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br label %144

144:                                              ; preds = %3, %143
  ret void
}

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

declare <2 x float> @_ZN7QVector17AngleToUnitVectorEf(float noundef) local_unnamed_addr #7

declare noundef float @_ZN7QVector22AngleBetweenTwoVectorsES_S_(<2 x float>, <2 x float>) local_unnamed_addr #7

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

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

declare <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #7

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 56}
!6 = !{!"_ZTS16QAngleConstraint", !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !11, i64 56, !11, i64 57, !11, i64 58}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !10, i64 16}
!15 = !{!6, !10, i64 24}
!16 = !{!6, !10, i64 32}
!17 = !{!6, !11, i64 57}
!18 = !{!6, !7, i64 52}
!19 = !{!6, !7, i64 48}
!20 = !{!6, !7, i64 44}
!21 = !{!6, !7, i64 40}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass