; LLVM IR from mtsamis/box2d-optimized :: src/particle/b2_particle_system.ll (ZN16b2ParticleSystem12SolveElasticERK10b2TimeStep)

; 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.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2TimeStep = type { float, float, float, i32, i32, i32, i8 }
%class.b2ParticleSystem = type { i8, i32, i32, i8, i32, i8, i8, i32, float, float, float, float, i32, i32, %class.b2SlabAllocator, %"struct.b2ParticleSystem::UserOverridableBuffer", %"struct.b2ParticleSystem::UserOverridableBuffer.0", %"struct.b2ParticleSystem::UserOverridableBuffer.2", %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr, ptr, ptr, ptr, ptr, ptr, %"struct.b2ParticleSystem::UserOverridableBuffer.4", ptr, %"struct.b2ParticleSystem::UserOverridableBuffer.6", i32, [4 x i8], %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", %class.b2GrowableBuffer, %class.b2GrowableBuffer.10, %class.b2GrowableBuffer.11, %class.b2GrowableBuffer.12, %class.b2GrowableBuffer.13, %class.b2GrowableBuffer.14, %"struct.b2ParticleSystem::UserOverridableBuffer.8", %"struct.b2ParticleSystem::UserOverridableBuffer.8", i64, i8, i32, ptr, %struct.b2ParticleSystemDef, ptr, ptr, ptr }
%class.b2SlabAllocator = type { %class.b2TrackedBlockAllocator, i32, %class.b2TypedFreeList }
%class.b2TrackedBlockAllocator = type { %class.b2TypedIntrusiveListNode }
%class.b2TypedIntrusiveListNode = type { %class.b2IntrusiveListNode }
%class.b2IntrusiveListNode = type { ptr, ptr }
%class.b2TypedFreeList = type { %class.b2FreeList }
%class.b2FreeList = type { %class.b2IntrusiveListNode, %class.b2IntrusiveListNode }
%"struct.b2ParticleSystem::UserOverridableBuffer" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.0" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.2" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.4" = type <{ ptr, i32, [4 x i8] }>
%"struct.b2ParticleSystem::UserOverridableBuffer.6" = type <{ ptr, i32, [4 x i8] }>
%class.b2GrowableBuffer = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.10 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.11 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.12 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.13 = type { ptr, i32, i32, ptr }
%class.b2GrowableBuffer.14 = type { ptr, i32, i32, ptr }
%"struct.b2ParticleSystem::UserOverridableBuffer.8" = type <{ ptr, i32, [4 x i8] }>
%struct.b2ParticleSystemDef = type { i8, float, float, float, i32, float, float, float, float, float, float, float, float, float, float, float, float, i32, float, i8, float }
%struct.b2ParticleTriad = type { i32, i32, i32, i32, float, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float }

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

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

; Function Attrs: 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) #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(60) ptr @_ZN16b2GrowableBufferI15b2ParticleTriadEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystem12SolveElasticERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr noundef nonnull align 4 dereferenceable(28) %1) #6 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %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 ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca %struct.b2Vec2, align 4
  %22 = alloca %struct.b2Vec2, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca %struct.b2Vec2, align 4
  %26 = alloca %struct.b2Rot, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca %struct.b2Vec2, align 4
  %32 = alloca %struct.b2Vec2, align 4
  %33 = alloca %struct.b2Vec2, align 4
  %34 = alloca %struct.b2Vec2, align 4
  %35 = alloca %struct.b2Vec2, align 4
  %36 = alloca %struct.b2Vec2, align 4
  %37 = alloca %struct.b2Vec2, align 4
  %38 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %39 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.b2TimeStep, ptr %40, i32 0, i32 1
  %42 = load float, ptr %41, align 4, !tbaa !9
  %43 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 45
  %44 = getelementptr inbounds %struct.b2ParticleSystemDef, ptr %43, i32 0, i32 7
  %45 = load float, ptr %44, align 4, !tbaa !14
  %46 = fmul float %42, %45
  store float %46, ptr %5, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !37
  br label %47

47:                                               ; preds = %194, %2
  %48 = load i32, ptr %6, align 4, !tbaa !37
  %49 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 38
  %50 = call noundef i32 @_ZNK16b2GrowableBufferI15b2ParticleTriadE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  %51 = icmp slt i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %197

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %54 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 38
  %55 = load i32, ptr %6, align 4, !tbaa !37
  %56 = call noundef nonnull align 4 dereferenceable(60) ptr @_ZN16b2GrowableBufferI15b2ParticleTriadEixEi(ptr noundef nonnull align 8 dereferenceable(24) %54, i32 noundef %55)
  store ptr %56, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.b2ParticleTriad, ptr %57, i32 0, i32 3
  %59 = load i32, ptr %58, align 4, !tbaa !38
  %60 = and i32 %59, 16
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %193

62:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.b2ParticleTriad, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !41
  store i32 %65, ptr %8, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.b2ParticleTriad, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 4, !tbaa !42
  store i32 %68, ptr %9, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.b2ParticleTriad, ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !43
  store i32 %71, ptr %10, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.b2ParticleTriad, ptr %72, i32 0, i32 5
  store ptr %73, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.b2ParticleTriad, ptr %74, i32 0, i32 6
  store ptr %75, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.b2ParticleTriad, ptr %76, i32 0, i32 7
  store ptr %77, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %78 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 17
  %79 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !44
  %81 = load i32, ptr %8, align 4, !tbaa !37
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.b2Vec2, ptr %80, i64 %82
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %83, i64 8, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %84 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 17
  %85 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !44
  %87 = load i32, ptr %9, align 4, !tbaa !37
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %struct.b2Vec2, ptr %86, i64 %88
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %89, i64 8, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %90 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 17
  %91 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !44
  %93 = load i32, ptr %10, align 4, !tbaa !37
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds %struct.b2Vec2, ptr %92, i64 %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %95, i64 8, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %96 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 18
  %97 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !46
  %99 = load i32, ptr %8, align 4, !tbaa !37
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %struct.b2Vec2, ptr %98, i64 %100
  store ptr %101, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %102 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 18
  %103 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !46
  %105 = load i32, ptr %9, align 4, !tbaa !37
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.b2Vec2, ptr %104, i64 %106
  store ptr %107, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %108 = getelementptr inbounds %class.b2ParticleSystem, ptr %39, i32 0, i32 18
  %109 = getelementptr inbounds %"struct.b2ParticleSystem::UserOverridableBuffer.2", ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !46
  %111 = load i32, ptr %10, align 4, !tbaa !37
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.b2Vec2, ptr %110, i64 %112
  store ptr %113, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.b2TimeStep, ptr %114, i32 0, i32 0
  %116 = load float, ptr %115, align 4, !tbaa !47
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %116, ptr noundef nonnull align 4 dereferenceable(8) %117)
  store <2 x float> %118, ptr %20, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.b2TimeStep, ptr %119, i32 0, i32 0
  %121 = load float, ptr %120, align 4, !tbaa !47
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %121, ptr noundef nonnull align 4 dereferenceable(8) %122)
  store <2 x float> %123, ptr %21, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.b2TimeStep, ptr %124, i32 0, i32 0
  %126 = load float, ptr %125, align 4, !tbaa !47
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %126, ptr noundef nonnull align 4 dereferenceable(8) %127)
  store <2 x float> %128, ptr %22, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %129 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %129, ptr %25, align 4
  %130 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %130, ptr %24, align 4
  %131 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef 0x3FD5555560000000, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %131, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @_ZN5b2RotC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %26)
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %132, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %134, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %136 = fadd float %133, %135
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %137, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %139 = fadd float %136, %138
  %140 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 0
  store float %139, ptr %140, align 4, !tbaa !48
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %141, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %143, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %145 = fadd float %142, %144
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %146, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %148 = fadd float %145, %147
  %149 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 1
  store float %148, ptr %149, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %150 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 0
  %151 = load float, ptr %150, align 4, !tbaa !48
  %152 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 0
  %153 = load float, ptr %152, align 4, !tbaa !48
  %154 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !50
  %156 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 1
  %157 = load float, ptr %156, align 4, !tbaa !50
  %158 = fmul float %155, %157
  %159 = call float @llvm.fmuladd.f32(float %151, float %153, float %158)
  store float %159, ptr %27, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %160 = load float, ptr %27, align 4, !tbaa !36
  %161 = call noundef float @_Z9b2InvSqrtf(float noundef %160)
  store float %161, ptr %28, align 4, !tbaa !36
  %162 = load float, ptr %28, align 4, !tbaa !36
  %163 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 0
  %164 = load float, ptr %163, align 4, !tbaa !48
  %165 = fmul float %164, %162
  store float %165, ptr %163, align 4, !tbaa !48
  %166 = load float, ptr %28, align 4, !tbaa !36
  %167 = getelementptr inbounds %struct.b2Rot, ptr %26, i32 0, i32 1
  %168 = load float, ptr %167, align 4, !tbaa !50
  %169 = fmul float %168, %166
  store float %169, ptr %167, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %170 = load float, ptr %5, align 4, !tbaa !36
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.b2ParticleTriad, ptr %171, i32 0, i32 4
  %173 = load float, ptr %172, align 4, !tbaa !51
  %174 = fmul float %170, %173
  store float %174, ptr %29, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %175 = load float, ptr %29, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %176)
  store <2 x float> %177, ptr %32, align 4
  %178 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %178, ptr %31, align 4
  %179 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %175, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store <2 x float> %179, ptr %30, align 4
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %180, ptr noundef nonnull align 4 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %181 = load float, ptr %29, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %182 = load ptr, ptr %12, align 8, !tbaa !5
  %183 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %182)
  store <2 x float> %183, ptr %35, align 4
  %184 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %184, ptr %34, align 4
  %185 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %181, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %185, ptr %33, align 4
  %186 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %186, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %187 = load float, ptr %29, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %188)
  store <2 x float> %189, ptr %38, align 4
  %190 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %190, ptr %37, align 4
  %191 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %187, ptr noundef nonnull align 4 dereferenceable(8) %37)
  store <2 x float> %191, ptr %36, align 4
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %192, ptr noundef nonnull align 4 dereferenceable(8) %36)
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %193

193:                                              ; preds = %62, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %6, align 4, !tbaa !37
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %6, align 4, !tbaa !37
  br label %47, !llvm.loop !52

197:                                              ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 = { 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, !11, i64 4}
!10 = !{!"_ZTS10b2TimeStep", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24}
!11 = !{!"float", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !11, i64 548}
!15 = !{!"_ZTS16b2ParticleSystem", !13, i64 0, !12, i64 4, !12, i64 8, !13, i64 12, !12, i64 16, !13, i64 20, !13, i64 21, !12, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !12, i64 44, !12, i64 48, !16, i64 56, !22, i64 112, !23, i64 128, !24, i64 144, !24, i64 160, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !25, i64 224, !6, i64 240, !26, i64 248, !12, i64 264, !27, i64 272, !27, i64 288, !27, i64 304, !28, i64 320, !29, i64 344, !30, i64 368, !31, i64 392, !32, i64 416, !33, i64 440, !27, i64 464, !27, i64 480, !34, i64 496, !13, i64 504, !12, i64 508, !6, i64 512, !35, i64 520, !6, i64 608, !6, i64 616, !6, i64 624}
!16 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !17, i64 0, !12, i64 16, !20, i64 24}
!17 = !{!"_ZTS23b2TrackedBlockAllocator", !18, i64 0}
!18 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !19, i64 0}
!19 = !{!"_ZTS19b2IntrusiveListNode", !6, i64 0, !6, i64 8}
!20 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !21, i64 0}
!21 = !{!"_ZTS10b2FreeList", !19, i64 0, !19, i64 16}
!22 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !6, i64 0, !12, i64 8}
!23 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !6, i64 0, !12, i64 8}
!24 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !6, i64 0, !12, i64 8}
!25 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !6, i64 0, !12, i64 8}
!26 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !6, i64 0, !12, i64 8}
!27 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !6, i64 0, !12, i64 8}
!28 = !{!"_ZTS16b2GrowableBufferIiE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!29 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!30 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!31 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!32 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!33 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!34 = !{!"long long", !7, i64 0}
!35 = !{!"_ZTS19b2ParticleSystemDef", !13, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !12, i64 68, !11, i64 72, !13, i64 76, !11, i64 80}
!36 = !{!11, !11, i64 0}
!37 = !{!12, !12, i64 0}
!38 = !{!39, !12, i64 12}
!39 = !{!"_ZTS15b2ParticleTriad", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !11, i64 16, !40, i64 20, !40, i64 28, !40, i64 36, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56}
!40 = !{!"_ZTS6b2Vec2", !11, i64 0, !11, i64 4}
!41 = !{!39, !12, i64 0}
!42 = !{!39, !12, i64 4}
!43 = !{!39, !12, i64 8}
!44 = !{!15, !6, i64 144}
!45 = !{i64 0, i64 4, !36, i64 4, i64 4, !36}
!46 = !{!15, !6, i64 160}
!47 = !{!10, !11, i64 0}
!48 = !{!49, !11, i64 0}
!49 = !{!"_ZTS5b2Rot", !11, i64 0, !11, i64 4}
!50 = !{!49, !11, i64 4}
!51 = !{!39, !11, i64 16}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}


; 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.b2Vec2 = type { float, float }
%struct.b2Rot = 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2ParticleSystem12SolveElasticERK10b2TimeStep(ptr noundef nonnull align 8 dereferenceable(632) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(28) %1) local_unnamed_addr #5 align 2 {
  %3 = alloca %struct.b2Vec2, align 8
  %4 = alloca %struct.b2Vec2, align 8
  %5 = alloca %struct.b2Vec2, align 8
  %6 = alloca %struct.b2Vec2, align 8
  %7 = alloca %struct.b2Vec2, align 8
  %8 = alloca %struct.b2Vec2, align 8
  %9 = alloca %struct.b2Vec2, align 8
  %10 = alloca %struct.b2Vec2, align 8
  %11 = alloca %struct.b2Vec2, align 8
  %12 = alloca %struct.b2Rot, align 8
  %13 = alloca %struct.b2Vec2, align 8
  %14 = alloca %struct.b2Vec2, align 8
  %15 = alloca %struct.b2Vec2, align 8
  %16 = alloca %struct.b2Vec2, align 8
  %17 = alloca %struct.b2Vec2, align 8
  %18 = alloca %struct.b2Vec2, align 8
  %19 = alloca %struct.b2Vec2, align 8
  %20 = alloca %struct.b2Vec2, align 8
  %21 = alloca %struct.b2Vec2, align 8
  %22 = getelementptr inbounds i8, ptr %1, i64 4
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 548
  %25 = load float, ptr %24, align 4, !tbaa !12
  %26 = fmul float %23, %25
  %27 = getelementptr inbounds i8, ptr %0, i64 440
  %28 = tail call noundef i32 @_ZNK16b2GrowableBufferI15b2ParticleTriadE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %30 = getelementptr inbounds i8, ptr %0, i64 144
  %31 = getelementptr inbounds i8, ptr %0, i64 160
  %32 = getelementptr inbounds i8, ptr %12, i64 4
  br label %33

._crit_edge:                                      ; preds = %100, %2
  ret void

33:                                               ; preds = %.lr.ph, %100
  %.043 = phi i32 [ 0, %.lr.ph ], [ %101, %100 ]
  %34 = call noundef nonnull align 4 dereferenceable(60) ptr @_ZN16b2GrowableBufferI15b2ParticleTriadEixEi(ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef %.043)
  %35 = getelementptr inbounds i8, ptr %34, i64 12
  %36 = load i32, ptr %35, align 4, !tbaa !35
  %37 = and i32 %36, 16
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %100, label %38

38:                                               ; preds = %33
  %39 = load i32, ptr %34, align 4, !tbaa !38
  %40 = getelementptr inbounds i8, ptr %34, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !39
  %42 = getelementptr inbounds i8, ptr %34, i64 8
  %43 = load i32, ptr %42, align 4, !tbaa !40
  %44 = getelementptr inbounds i8, ptr %34, i64 20
  %45 = getelementptr inbounds i8, ptr %34, i64 28
  %46 = getelementptr inbounds i8, ptr %34, i64 36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %47 = load ptr, ptr %30, align 8, !tbaa !41
  %48 = sext i32 %39 to i64
  %49 = getelementptr inbounds %struct.b2Vec2, ptr %47, i64 %48
  %50 = load i64, ptr %49, align 4
  store i64 %50, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %51 = sext i32 %41 to i64
  %52 = getelementptr inbounds %struct.b2Vec2, ptr %47, i64 %51
  %53 = load i64, ptr %52, align 4
  store i64 %53, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %54 = sext i32 %43 to i64
  %55 = getelementptr inbounds %struct.b2Vec2, ptr %47, i64 %54
  %56 = load i64, ptr %55, align 4
  store i64 %56, ptr %5, align 8
  %57 = load ptr, ptr %31, align 8, !tbaa !42
  %58 = getelementptr inbounds %struct.b2Vec2, ptr %57, i64 %48
  %59 = getelementptr inbounds %struct.b2Vec2, ptr %57, i64 %51
  %60 = getelementptr inbounds %struct.b2Vec2, ptr %57, i64 %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %61 = load float, ptr %1, align 4, !tbaa !43
  %62 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %61, ptr noundef nonnull align 4 dereferenceable(8) %58)
  store <2 x float> %62, ptr %6, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %63 = load float, ptr %1, align 4, !tbaa !43
  %64 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %63, ptr noundef nonnull align 4 dereferenceable(8) %59)
  store <2 x float> %64, ptr %7, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %65 = load float, ptr %1, align 4, !tbaa !43
  %66 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %65, ptr noundef nonnull align 4 dereferenceable(8) %60)
  store <2 x float> %66, ptr %8, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %67 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %67, ptr %11, align 8
  %68 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %68, ptr %10, align 8
  %69 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef 0x3FD5555560000000, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %69, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @_ZN5b2RotC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
  %70 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %3)
  %71 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %72 = fadd float %70, %71
  %73 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %74 = fadd float %72, %73
  store float %74, ptr %12, align 8, !tbaa !44
  %75 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %3)
  %76 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %77 = fadd float %75, %76
  %78 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %79 = fadd float %77, %78
  store float %79, ptr %32, align 4, !tbaa !46
  %80 = load float, ptr %12, align 8, !tbaa !44
  %81 = fmul float %79, %79
  %82 = call float @llvm.fmuladd.f32(float %80, float %80, float %81)
  %83 = call noundef float @_Z9b2InvSqrtf(float noundef %82)
  %84 = load <2 x float>, ptr %12, align 8, !tbaa !47
  %85 = insertelement <2 x float> poison, float %83, i64 0
  %86 = shufflevector <2 x float> %85, <2 x float> poison, <2 x i32> zeroinitializer
  %87 = fmul <2 x float> %86, %84
  store <2 x float> %87, ptr %12, align 8, !tbaa !47
  %88 = getelementptr inbounds i8, ptr %34, i64 16
  %89 = load float, ptr %88, align 4, !tbaa !48
  %90 = fmul float %26, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %91 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %44)
  store <2 x float> %91, ptr %15, align 8
  %92 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %92, ptr %14, align 8
  %93 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %90, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %93, ptr %13, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %58, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %94 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %45)
  store <2 x float> %94, ptr %18, align 8
  %95 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %95, ptr %17, align 8
  %96 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %90, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %96, ptr %16, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %97 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %46)
  store <2 x float> %97, ptr %21, align 8
  %98 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %98, ptr %20, align 8
  %99 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %90, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %99, ptr %19, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %100

100:                                              ; preds = %38, %33
  %101 = add nuw nsw i32 %.043, 1
  %102 = call noundef i32 @_ZNK16b2GrowableBufferI15b2ParticleTriadE8GetCountEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %33, label %._crit_edge, !llvm.loop !49
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !7, i64 4}
!6 = !{!"_ZTS10b2TimeStep", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!13, !7, i64 548}
!13 = !{!"_ZTS16b2ParticleSystem", !11, i64 0, !10, i64 4, !10, i64 8, !11, i64 12, !10, i64 16, !11, i64 20, !11, i64 21, !10, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !10, i64 44, !10, i64 48, !14, i64 56, !21, i64 112, !22, i64 128, !23, i64 144, !23, i64 160, !18, i64 176, !18, i64 184, !18, i64 192, !18, i64 200, !18, i64 208, !18, i64 216, !24, i64 224, !18, i64 240, !25, i64 248, !10, i64 264, !26, i64 272, !26, i64 288, !26, i64 304, !27, i64 320, !28, i64 344, !29, i64 368, !30, i64 392, !31, i64 416, !32, i64 440, !26, i64 464, !26, i64 480, !33, i64 496, !11, i64 504, !10, i64 508, !18, i64 512, !34, i64 520, !18, i64 608, !18, i64 616, !18, i64 624}
!14 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !15, i64 0, !10, i64 16, !19, i64 24}
!15 = !{!"_ZTS23b2TrackedBlockAllocator", !16, i64 0}
!16 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !17, i64 0}
!17 = !{!"_ZTS19b2IntrusiveListNode", !18, i64 0, !18, i64 8}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !20, i64 0}
!20 = !{!"_ZTS10b2FreeList", !17, i64 0, !17, i64 16}
!21 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !18, i64 0, !10, i64 8}
!22 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !18, i64 0, !10, i64 8}
!23 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !18, i64 0, !10, i64 8}
!24 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !18, i64 0, !10, i64 8}
!25 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !18, i64 0, !10, i64 8}
!26 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !18, i64 0, !10, i64 8}
!27 = !{!"_ZTS16b2GrowableBufferIiE", !18, i64 0, !10, i64 8, !10, i64 12, !18, i64 16}
!28 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !18, i64 0, !10, i64 8, !10, i64 12, !18, i64 16}
!29 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !18, i64 0, !10, i64 8, !10, i64 12, !18, i64 16}
!30 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !18, i64 0, !10, i64 8, !10, i64 12, !18, i64 16}
!31 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !18, i64 0, !10, i64 8, !10, i64 12, !18, i64 16}
!32 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !18, i64 0, !10, i64 8, !10, i64 12, !18, i64 16}
!33 = !{!"long long", !8, i64 0}
!34 = !{!"_ZTS19b2ParticleSystemDef", !11, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !10, i64 68, !7, i64 72, !11, i64 76, !7, i64 80}
!35 = !{!36, !10, i64 12}
!36 = !{!"_ZTS15b2ParticleTriad", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16, !37, i64 20, !37, i64 28, !37, i64 36, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56}
!37 = !{!"_ZTS6b2Vec2", !7, i64 0, !7, i64 4}
!38 = !{!36, !10, i64 0}
!39 = !{!36, !10, i64 4}
!40 = !{!36, !10, i64 8}
!41 = !{!13, !18, i64 144}
!42 = !{!13, !18, i64 160}
!43 = !{!6, !7, i64 0}
!44 = !{!45, !7, i64 0}
!45 = !{!"_ZTS5b2Rot", !7, i64 0, !7, i64 4}
!46 = !{!45, !7, i64 4}
!47 = !{!7, !7, i64 0}
!48 = !{!36, !7, i64 16}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}


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