; LLVM IR from mtsamis/box2d-optimized :: src/collision/b2_broad_phase.ll (ZN12b2BroadPhase3AddEP9b2Fixture)

; 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.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 }
%struct.b2Vec2 = type { float, float }
%class.b2IntHashTable = type <{ ptr, i32, [4 x i8] }>
%struct.b2MapNode = type { i32, i32, ptr }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z7b2Alloci(i32 noundef) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6b2FreePv(ptr noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14b2IntHashTable4GrowEv(ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN12b2BroadPhase3AddEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(137) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %13 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 10
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = call noundef ptr @_ZN14b2IntHashTable3GetEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef %14)
  store ptr %15, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %118

20:                                               ; preds = %2
  %21 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 12
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 11
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %25 = icmp sge i32 %22, %24
  br i1 %25, label %26, label %57

26:                                               ; preds = %20
  %27 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 11
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = mul nsw i32 %28, 2
  store i32 %29, ptr %27, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %30 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  store ptr %31, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 11
  %33 = load i32, ptr %32, align 8, !tbaa !18
  %34 = mul nsw i32 %33, 2
  %35 = sext i32 %34 to i64
  %36 = mul i64 %35, 48
  %37 = trunc i64 %36 to i32
  %38 = call noundef ptr @_Z7b2Alloci(i32 noundef %37)
  %39 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 0
  store ptr %38, ptr %39, align 8, !tbaa !19
  %40 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 12
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = mul i64 %45, 48
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %42, i64 %46, i1 false)
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_Z6b2FreePv(ptr noundef %47)
  %48 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  call void @_Z6b2FreePv(ptr noundef %49)
  %50 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 11
  %51 = load i32, ptr %50, align 8, !tbaa !18
  %52 = sext i32 %51 to i64
  %53 = mul i64 %52, 8
  %54 = trunc i64 %53 to i32
  %55 = call noundef ptr @_Z7b2Alloci(i32 noundef %54)
  %56 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 1
  store ptr %55, ptr %56, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %57

57:                                               ; preds = %26, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %58 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 12
  %59 = load i32, ptr %58, align 4, !tbaa !9
  store i32 %59, ptr %9, align 4, !tbaa !21
  %60 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 12
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %63 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !19
  %65 = load i32, ptr %9, align 4, !tbaa !21
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %struct.b2TreeNode, ptr %64, i64 %66
  store ptr %67, ptr %10, align 8, !tbaa !5
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !20
  %71 = load i32, ptr %9, align 4, !tbaa !21
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  store ptr %68, ptr %73, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.b2TreeNode, ptr %74, i32 0, i32 0
  store ptr null, ptr %75, align 8, !tbaa !22
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.b2TreeNode, ptr %76, i32 0, i32 1
  store ptr null, ptr %77, align 8, !tbaa !23
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.b2TreeNode, ptr %78, i32 0, i32 2
  store ptr null, ptr %79, align 8, !tbaa !24
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9b2Fixture7GetAABBEv(ptr noundef nonnull align 8 dereferenceable(84) %80)
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.b2TreeNode, ptr %82, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %83, ptr align 4 %81, i64 16, i1 false), !tbaa.struct !25
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.b2TreeNode, ptr %85, i32 0, i32 3
  store ptr %84, ptr %86, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %87 = call noundef ptr @_Z7b2Alloci(i32 noundef 16)
  store ptr %87, ptr %11, align 8, !tbaa !5
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call noundef i32 @_ZN9b2Fixture5GetIdEv(ptr noundef nonnull align 8 dereferenceable(84) %88)
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.b2MapNode, ptr %90, i32 0, i32 0
  store i32 %89, ptr %91, align 8, !tbaa !28
  %92 = load i32, ptr %9, align 4, !tbaa !21
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.b2MapNode, ptr %93, i32 0, i32 1
  store i32 %92, ptr %94, align 4, !tbaa !30
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.b2MapNode, ptr %95, i32 0, i32 2
  store ptr null, ptr %96, align 8, !tbaa !31
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %97, ptr %98, align 8, !tbaa !5
  %99 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 12
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 10
  %102 = getelementptr inbounds %class.b2IntHashTable, ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !32
  %104 = mul nsw i32 %103, 3
  %105 = sdiv i32 %104, 4
  %106 = icmp sge i32 %100, %105
  br i1 %106, label %107, label %109

107:                                              ; preds = %57
  %108 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 10
  call void @_ZN14b2IntHashTable4GrowEv(ptr noundef nonnull align 8 dereferenceable(12) %108)
  br label %109

109:                                              ; preds = %107, %57
  %110 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 13
  store i8 1, ptr %110, align 8, !tbaa !33
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %111)
  %113 = call noundef i32 @_ZNK6b2Body7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(208) %112)
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %117

115:                                              ; preds = %109
  %116 = getelementptr inbounds %class.b2BroadPhase, ptr %12, i32 0, i32 6
  store ptr null, ptr %116, align 8, !tbaa !34
  br label %117

117:                                              ; preds = %115, %109
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %118

118:                                              ; preds = %117, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %119 = load i1, ptr %3, align 1
  ret i1 %119
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9b2Fixture7GetAABBEv(ptr noundef nonnull align 8 dereferenceable(84)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84)) #3 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !15, i64 132}
!10 = !{!"_ZTS12b2BroadPhase", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !6, i64 80, !6, i64 88, !6, i64 96, !15, i64 104, !15, i64 108, !16, i64 112, !15, i64 128, !15, i64 132, !17, i64 136}
!11 = !{!"_ZTS10b2TreeNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!12 = !{!"_ZTS6b2AABB", !13, i64 0, !13, i64 8}
!13 = !{!"_ZTS6b2Vec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS14b2IntHashTable", !6, i64 0, !15, i64 8}
!17 = !{!"bool", !7, i64 0}
!18 = !{!10, !15, i64 128}
!19 = !{!10, !6, i64 0}
!20 = !{!10, !6, i64 8}
!21 = !{!15, !15, i64 0}
!22 = !{!11, !6, i64 0}
!23 = !{!11, !6, i64 8}
!24 = !{!11, !6, i64 16}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 4, !26, i64 12, i64 4, !26}
!26 = !{!14, !14, i64 0}
!27 = !{!11, !6, i64 24}
!28 = !{!29, !15, i64 0}
!29 = !{!"_ZTS9b2MapNode", !15, i64 0, !15, i64 4, !6, i64 8}
!30 = !{!29, !15, i64 4}
!31 = !{!29, !6, i64 8}
!32 = !{!10, !15, i64 120}
!33 = !{!10, !17, i64 136}
!34 = !{!10, !6, i64 88}


; 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.b2TreeNode = type { ptr, ptr, ptr, ptr, %struct.b2AABB }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2Vec2 = type { float, float }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z7b2Alloci(i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6b2FreePv(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14b2IntHashTable4GrowEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN12b2BroadPhase3AddEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(137) %0, ptr noundef %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 112
  %4 = tail call noundef ptr @_ZN14b2IntHashTable3GetEP9b2Fixture(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef %1)
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %52

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 132
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %0, i64 128
  %10 = load i32, ptr %9, align 8, !tbaa !18
  %.not24 = icmp slt i32 %8, %10
  br i1 %.not24, label %._crit_edge, label %11

._crit_edge:                                      ; preds = %6
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 8
  %.pre26 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !19
  br label %24

11:                                               ; preds = %6
  %12 = shl nsw i32 %10, 1
  store i32 %12, ptr %9, align 8, !tbaa !18
  %13 = load ptr, ptr %0, align 8, !tbaa !20
  %14 = mul i32 %10, 192
  %15 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %14)
  store ptr %15, ptr %0, align 8, !tbaa !20
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = mul nsw i64 %17, 48
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %13, i64 %18, i1 false)
  tail call void @_Z6b2FreePv(ptr noundef %13)
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  tail call void @_Z6b2FreePv(ptr noundef %20)
  %21 = load i32, ptr %9, align 8, !tbaa !18
  %22 = shl i32 %21, 3
  %23 = tail call noundef ptr @_Z7b2Alloci(i32 noundef %22)
  store ptr %23, ptr %19, align 8, !tbaa !19
  %.pre = load i32, ptr %7, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %._crit_edge, %11
  %25 = phi ptr [ %23, %11 ], [ %.pre26, %._crit_edge ]
  %26 = phi i32 [ %.pre, %11 ], [ %8, %._crit_edge ]
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %7, align 4, !tbaa !9
  %28 = load ptr, ptr %0, align 8, !tbaa !20
  %29 = sext i32 %26 to i64
  %30 = getelementptr inbounds %struct.b2TreeNode, ptr %28, i64 %29
  %31 = getelementptr inbounds ptr, ptr %25, i64 %29
  store ptr %30, ptr %31, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %30, i8 0, i64 24, i1 false)
  %32 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9b2Fixture7GetAABBEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %33 = getelementptr inbounds i8, ptr %30, i64 32
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(16) %32, i64 16, i1 false), !tbaa.struct !21
  %34 = getelementptr inbounds i8, ptr %30, i64 24
  store ptr %1, ptr %34, align 8, !tbaa !23
  %35 = tail call noundef ptr @_Z7b2Alloci(i32 noundef 16)
  %36 = tail call noundef i32 @_ZN9b2Fixture5GetIdEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  store i32 %36, ptr %35, align 8, !tbaa !24
  %37 = getelementptr inbounds i8, ptr %35, i64 4
  store i32 %26, ptr %37, align 4, !tbaa !26
  %38 = getelementptr inbounds i8, ptr %35, i64 8
  store ptr null, ptr %38, align 8, !tbaa !27
  store ptr %35, ptr %4, align 8, !tbaa !5
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %0, i64 120
  %41 = load i32, ptr %40, align 8, !tbaa !28
  %42 = mul nsw i32 %41, 3
  %43 = sdiv i32 %42, 4
  %.not25 = icmp slt i32 %39, %43
  br i1 %.not25, label %45, label %44

44:                                               ; preds = %24
  tail call void @_ZN14b2IntHashTable4GrowEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
  br label %45

45:                                               ; preds = %44, %24
  %46 = getelementptr inbounds i8, ptr %0, i64 136
  store i8 1, ptr %46, align 8, !tbaa !29
  %47 = tail call noundef ptr @_ZN9b2Fixture7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(84) %1)
  %48 = tail call noundef i32 @_ZNK6b2Body7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(208) %47)
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %45
  %51 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr null, ptr %51, align 8, !tbaa !30
  br label %52

52:                                               ; preds = %45, %50, %2
  ret i1 %.not
}

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

!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, !15, i64 132}
!10 = !{!"_ZTS12b2BroadPhase", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !6, i64 80, !6, i64 88, !6, i64 96, !15, i64 104, !15, i64 108, !16, i64 112, !15, i64 128, !15, i64 132, !17, i64 136}
!11 = !{!"_ZTS10b2TreeNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!12 = !{!"_ZTS6b2AABB", !13, i64 0, !13, i64 8}
!13 = !{!"_ZTS6b2Vec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS14b2IntHashTable", !6, i64 0, !15, i64 8}
!17 = !{!"bool", !7, i64 0}
!18 = !{!10, !15, i64 128}
!19 = !{!10, !6, i64 8}
!20 = !{!10, !6, i64 0}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22, i64 8, i64 4, !22, i64 12, i64 4, !22}
!22 = !{!14, !14, i64 0}
!23 = !{!11, !6, i64 24}
!24 = !{!25, !15, i64 0}
!25 = !{!"_ZTS9b2MapNode", !15, i64 0, !15, i64 4, !6, i64 8}
!26 = !{!25, !15, i64 4}
!27 = !{!25, !6, i64 8}
!28 = !{!10, !15, i64 120}
!29 = !{!10, !17, i64 136}
!30 = !{!10, !6, i64 88}


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