; LLVM IR from mtsamis/box2d-optimized :: src/dynamics/b2_world.ll (ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem)

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

%class.b2World = type { %class.b2BlockAllocator, %class.b2StackAllocator, %class.b2ContactManager, ptr, ptr, ptr, ptr, i32, i32, %struct.b2Vec2, i8, ptr, ptr, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.b2Profile }
%class.b2BlockAllocator = type { ptr, i32, i32, [14 x ptr] }
%class.b2StackAllocator = type <{ [102400 x i8], i32, i32, i32, [4 x i8], [32 x %struct.b2StackEntry], i32, [4 x i8] }>
%struct.b2StackEntry = type { ptr, i32, i8 }
%class.b2ContactManager = type { %class.b2BroadPhase, i32, ptr, ptr, ptr, ptr }
%class.b2BroadPhase = type <{ ptr, ptr, ptr, ptr, %struct.b2TreeNode, ptr, ptr, ptr, i32, i32, %class.b2IntHashTable, i32, i32, i8, [7 x i8] }>
%struct.b2TreeNode = type { ptr, ptr, ptr, ptr, %struct.b2AABB }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }
%class.b2IntHashTable = type <{ ptr, i32, [4 x i8] }>
%struct.b2Vec2 = type { float, float }
%struct.b2Profile = type { float, float, float, float, float }
%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 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem(ptr noundef nonnull align 8 dereferenceable(103352) %0, ptr noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8
  %6 = getelementptr inbounds %class.b2World, ptr %5, i32 0, i32 6
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = icmp ne ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %2
  br label %12

10:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 445, ptr noundef @__PRETTY_FUNCTION__._ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem) #5
  unreachable

11:                                               ; No predecessors!
  br label %12

12:                                               ; preds = %11, %9
  %13 = call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %5)
  %14 = zext i1 %13 to i32
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %12
  br label %19

17:                                               ; preds = %12
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 446, ptr noundef @__PRETTY_FUNCTION__._ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem) #5
  unreachable

18:                                               ; No predecessors!
  br label %19

19:                                               ; preds = %18, %16
  %20 = call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %5)
  br i1 %20, label %21, label %22

21:                                               ; preds = %19
  br label %62

22:                                               ; preds = %19
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %class.b2ParticleSystem, ptr %23, i32 0, i32 47
  %25 = load ptr, ptr %24, align 8, !tbaa !23
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %35

27:                                               ; preds = %22
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %class.b2ParticleSystem, ptr %28, i32 0, i32 48
  %30 = load ptr, ptr %29, align 8, !tbaa !45
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.b2ParticleSystem, ptr %31, i32 0, i32 47
  %33 = load ptr, ptr %32, align 8, !tbaa !23
  %34 = getelementptr inbounds %class.b2ParticleSystem, ptr %33, i32 0, i32 48
  store ptr %30, ptr %34, align 8, !tbaa !45
  br label %35

35:                                               ; preds = %27, %22
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.b2ParticleSystem, ptr %36, i32 0, i32 48
  %38 = load ptr, ptr %37, align 8, !tbaa !45
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %48

40:                                               ; preds = %35
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %class.b2ParticleSystem, ptr %41, i32 0, i32 47
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.b2ParticleSystem, ptr %44, i32 0, i32 48
  %46 = load ptr, ptr %45, align 8, !tbaa !45
  %47 = getelementptr inbounds %class.b2ParticleSystem, ptr %46, i32 0, i32 47
  store ptr %43, ptr %47, align 8, !tbaa !23
  br label %48

48:                                               ; preds = %40, %35
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.b2World, ptr %5, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = icmp eq ptr %49, %51
  br i1 %52, label %53, label %58

53:                                               ; preds = %48
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.b2ParticleSystem, ptr %54, i32 0, i32 48
  %56 = load ptr, ptr %55, align 8, !tbaa !45
  %57 = getelementptr inbounds %class.b2World, ptr %5, i32 0, i32 6
  store ptr %56, ptr %57, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %53, %48
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN16b2ParticleSystemD1Ev(ptr noundef nonnull align 8 dereferenceable(632) %59) #6
  %60 = getelementptr inbounds %class.b2World, ptr %5, i32 0, i32 0
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128) %60, ptr noundef %61, i32 noundef 632)
  br label %62

62:                                               ; preds = %58, %21
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352)) #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

declare void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @_ZN16b2ParticleSystemD1Ev(ptr noundef nonnull align 8 dereferenceable(632)) unnamed_addr #4

attributes #0 = { 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 #1 = { 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 #2 = { noreturn nounwind "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 = { "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 = { nounwind "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 = { noreturn nounwind }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 103272}
!10 = !{!"_ZTS7b2World", !11, i64 0, !13, i64 128, !14, i64 103064, !6, i64 103248, !6, i64 103256, !6, i64 103264, !6, i64 103272, !12, i64 103280, !12, i64 103284, !18, i64 103288, !21, i64 103296, !6, i64 103304, !6, i64 103312, !19, i64 103320, !21, i64 103324, !21, i64 103325, !21, i64 103326, !21, i64 103327, !21, i64 103328, !21, i64 103329, !21, i64 103330, !21, i64 103331, !22, i64 103332}
!11 = !{!"_ZTS16b2BlockAllocator", !6, i64 0, !12, i64 8, !12, i64 12, !7, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS16b2StackAllocator", !7, i64 0, !12, i64 102400, !12, i64 102404, !12, i64 102408, !7, i64 102416, !12, i64 102928}
!14 = !{!"_ZTS16b2ContactManager", !15, i64 0, !12, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!15 = !{!"_ZTS12b2BroadPhase", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !16, i64 32, !6, i64 80, !6, i64 88, !6, i64 96, !12, i64 104, !12, i64 108, !20, i64 112, !12, i64 128, !12, i64 132, !21, i64 136}
!16 = !{!"_ZTS10b2TreeNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !17, i64 32}
!17 = !{!"_ZTS6b2AABB", !18, i64 0, !18, i64 8}
!18 = !{!"_ZTS6b2Vec2", !19, i64 0, !19, i64 4}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTS14b2IntHashTable", !6, i64 0, !12, i64 8}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTS9b2Profile", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !19, i64 16}
!23 = !{!24, !6, i64 616}
!24 = !{!"_ZTS16b2ParticleSystem", !21, i64 0, !12, i64 4, !12, i64 8, !21, i64 12, !12, i64 16, !21, i64 20, !21, i64 21, !12, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !19, i64 40, !12, i64 44, !12, i64 48, !25, i64 56, !31, i64 112, !32, i64 128, !33, i64 144, !33, i64 160, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !34, i64 224, !6, i64 240, !35, i64 248, !12, i64 264, !36, i64 272, !36, i64 288, !36, i64 304, !37, i64 320, !38, i64 344, !39, i64 368, !40, i64 392, !41, i64 416, !42, i64 440, !36, i64 464, !36, i64 480, !43, i64 496, !21, i64 504, !12, i64 508, !6, i64 512, !44, i64 520, !6, i64 608, !6, i64 616, !6, i64 624}
!25 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !26, i64 0, !12, i64 16, !29, i64 24}
!26 = !{!"_ZTS23b2TrackedBlockAllocator", !27, i64 0}
!27 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !28, i64 0}
!28 = !{!"_ZTS19b2IntrusiveListNode", !6, i64 0, !6, i64 8}
!29 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !30, i64 0}
!30 = !{!"_ZTS10b2FreeList", !28, i64 0, !28, i64 16}
!31 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !6, i64 0, !12, i64 8}
!32 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !6, i64 0, !12, i64 8}
!33 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !6, i64 0, !12, i64 8}
!34 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !6, i64 0, !12, i64 8}
!35 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !6, i64 0, !12, i64 8}
!36 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !6, i64 0, !12, i64 8}
!37 = !{!"_ZTS16b2GrowableBufferIiE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!38 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!39 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!40 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!41 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!42 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!43 = !{!"long long", !7, i64 0}
!44 = !{!"_ZTS19b2ParticleSystemDef", !21, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !12, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !19, i64 40, !19, i64 44, !19, i64 48, !19, i64 52, !19, i64 56, !19, i64 60, !19, i64 64, !12, i64 68, !19, i64 72, !21, i64 76, !19, i64 80}
!45 = !{!24, !6, i64 624}


; 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"

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem(ptr noundef nonnull align 8 dereferenceable(103352) %0, ptr noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 103272
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 445, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem) #5
  unreachable

6:                                                ; preds = %2
  %7 = tail call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %0)
  br i1 %7, label %8, label %9

8:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 446, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7b2World21DestroyParticleSystemEP16b2ParticleSystem) #5
  unreachable

9:                                                ; preds = %6
  %10 = tail call noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352) %0)
  br i1 %10, label %23, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %1, i64 616
  %13 = load ptr, ptr %12, align 8, !tbaa !22
  %.not12 = icmp eq ptr %13, null
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 624
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !44
  br i1 %.not12, label %._crit_edge, label %14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %13, i64 624
  store ptr %.pre, ptr %15, align 8, !tbaa !44
  br label %._crit_edge

._crit_edge:                                      ; preds = %11, %14
  %.not13 = icmp eq ptr %.pre, null
  br i1 %.not13, label %18, label %16

16:                                               ; preds = %._crit_edge
  %17 = getelementptr inbounds i8, ptr %.pre, i64 616
  store ptr %13, ptr %17, align 8, !tbaa !22
  br label %18

18:                                               ; preds = %16, %._crit_edge
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = icmp eq ptr %19, %1
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  store ptr %.pre, ptr %3, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %21, %18
  tail call void @_ZN16b2ParticleSystemD1Ev(ptr noundef nonnull align 8 dereferenceable(632) %1) #6
  tail call void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull %1, i32 noundef 632)
  br label %23

23:                                               ; preds = %9, %22
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7b2World8IsLockedEv(ptr noundef nonnull align 8 dereferenceable(103352)) local_unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN16b2BlockAllocator4FreeEPvi(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN16b2ParticleSystemD1Ev(ptr noundef nonnull align 8 dereferenceable(632)) unnamed_addr #4

attributes #0 = { 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 #1 = { 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 #2 = { noreturn nounwind "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 = { "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 = { nounwind "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 = { noreturn nounwind }
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, !8, i64 103272}
!6 = !{!"_ZTS7b2World", !7, i64 0, !12, i64 128, !13, i64 103064, !8, i64 103248, !8, i64 103256, !8, i64 103264, !8, i64 103272, !11, i64 103280, !11, i64 103284, !17, i64 103288, !20, i64 103296, !8, i64 103304, !8, i64 103312, !18, i64 103320, !20, i64 103324, !20, i64 103325, !20, i64 103326, !20, i64 103327, !20, i64 103328, !20, i64 103329, !20, i64 103330, !20, i64 103331, !21, i64 103332}
!7 = !{!"_ZTS16b2BlockAllocator", !8, i64 0, !11, i64 8, !11, i64 12, !9, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS16b2StackAllocator", !9, i64 0, !11, i64 102400, !11, i64 102404, !11, i64 102408, !9, i64 102416, !11, i64 102928}
!13 = !{!"_ZTS16b2ContactManager", !14, i64 0, !11, i64 144, !8, i64 152, !8, i64 160, !8, i64 168, !8, i64 176}
!14 = !{!"_ZTS12b2BroadPhase", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !15, i64 32, !8, i64 80, !8, i64 88, !8, i64 96, !11, i64 104, !11, i64 108, !19, i64 112, !11, i64 128, !11, i64 132, !20, i64 136}
!15 = !{!"_ZTS10b2TreeNode", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !16, i64 32}
!16 = !{!"_ZTS6b2AABB", !17, i64 0, !17, i64 8}
!17 = !{!"_ZTS6b2Vec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !9, i64 0}
!19 = !{!"_ZTS14b2IntHashTable", !8, i64 0, !11, i64 8}
!20 = !{!"bool", !9, i64 0}
!21 = !{!"_ZTS9b2Profile", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16}
!22 = !{!23, !8, i64 616}
!23 = !{!"_ZTS16b2ParticleSystem", !20, i64 0, !11, i64 4, !11, i64 8, !20, i64 12, !11, i64 16, !20, i64 20, !20, i64 21, !11, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !11, i64 44, !11, i64 48, !24, i64 56, !30, i64 112, !31, i64 128, !32, i64 144, !32, i64 160, !8, i64 176, !8, i64 184, !8, i64 192, !8, i64 200, !8, i64 208, !8, i64 216, !33, i64 224, !8, i64 240, !34, i64 248, !11, i64 264, !35, i64 272, !35, i64 288, !35, i64 304, !36, i64 320, !37, i64 344, !38, i64 368, !39, i64 392, !40, i64 416, !41, i64 440, !35, i64 464, !35, i64 480, !42, i64 496, !20, i64 504, !11, i64 508, !8, i64 512, !43, i64 520, !8, i64 608, !8, i64 616, !8, i64 624}
!24 = !{!"_ZTS15b2SlabAllocatorI16b2ParticleHandleE", !25, i64 0, !11, i64 16, !28, i64 24}
!25 = !{!"_ZTS23b2TrackedBlockAllocator", !26, i64 0}
!26 = !{!"_ZTS24b2TypedIntrusiveListNodeI14b2TrackedBlockE", !27, i64 0}
!27 = !{!"_ZTS19b2IntrusiveListNode", !8, i64 0, !8, i64 8}
!28 = !{!"_ZTS15b2TypedFreeListI16b2ParticleHandleE", !29, i64 0}
!29 = !{!"_ZTS10b2FreeList", !27, i64 0, !27, i64 16}
!30 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIP16b2ParticleHandleEE", !8, i64 0, !11, i64 8}
!31 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIjEE", !8, i64 0, !11, i64 8}
!32 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI6b2Vec2EE", !8, i64 0, !11, i64 8}
!33 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferI15b2ParticleColorEE", !8, i64 0, !11, i64 8}
!34 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIPvEE", !8, i64 0, !11, i64 8}
!35 = !{!"_ZTSN16b2ParticleSystem21UserOverridableBufferIiEE", !8, i64 0, !11, i64 8}
!36 = !{!"_ZTS16b2GrowableBufferIiE", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!37 = !{!"_ZTS16b2GrowableBufferIN16b2ParticleSystem5ProxyEE", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!38 = !{!"_ZTS16b2GrowableBufferI17b2ParticleContactE", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!39 = !{!"_ZTS16b2GrowableBufferI21b2ParticleBodyContactE", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!40 = !{!"_ZTS16b2GrowableBufferI14b2ParticlePairE", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!41 = !{!"_ZTS16b2GrowableBufferI15b2ParticleTriadE", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!42 = !{!"long long", !9, i64 0}
!43 = !{!"_ZTS19b2ParticleSystemDef", !20, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !11, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !11, i64 68, !18, i64 72, !20, i64 76, !18, i64 80}
!44 = !{!23, !8, i64 624}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass