; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/Collision/BroadPhase/QuadTree.ll (ZN3JPH8QuadTreeD2Ev)

; 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.JPH::FixedSizeFreeList<JPH::QuadTree::Node>::Batch" = type { i32, i32, i32 }
%"class.JPH::QuadTree::NodeID" = type { i32 }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::QuadTree" = type <{ ptr, %"struct.JPH::FixedSizeFreeList<JPH::QuadTree::Node>::Batch", [44 x i8], %"struct.std::atomic.0", [2 x %"struct.JPH::QuadTree::RootNode"], %"struct.std::atomic.0", %"struct.std::atomic.6", [47 x i8] }>
%"struct.JPH::QuadTree::RootNode" = type { %"struct.std::atomic.0" }
%"struct.std::atomic.0" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i8 }
%"class.JPH::QuadTree::Node" = type { [4 x %"struct.std::atomic"], [4 x %"struct.std::atomic"], [4 x %"struct.std::atomic"], [4 x %"struct.std::atomic"], [4 x %"struct.std::atomic"], [4 x %"struct.std::atomic"], [4 x %"class.JPH::QuadTree::AtomicNodeID"], %"struct.std::atomic.0", %"struct.std::atomic.0", i32 }
%"struct.std::atomic" = type { float }
%"class.JPH::QuadTree::AtomicNodeID" = type { %"struct.std::atomic.0" }

@.str.2 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; 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 noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(124) ptr @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE3GetEj(ptr noundef nonnull align 64 dereferenceable(132), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3JPH8QuadTreeD2Ev(ptr noundef nonnull align 64 dereferenceable(81) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.JPH::FixedSizeFreeList<JPH::QuadTree::Node>::Batch", align 4
  %5 = alloca [128 x %"class.JPH::QuadTree::NodeID"], align 16
  %6 = alloca %"class.JPH::QuadTree::NodeID", align 4
  %7 = alloca %"struct.JPH::AssertLastParam", align 1
  %8 = alloca i32, align 4
  %9 = alloca %"class.JPH::QuadTree::NodeID", align 4
  %10 = alloca %"struct.JPH::AssertLastParam", align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.JPH::QuadTree::NodeID", align 4
  %17 = alloca %"struct.JPH::AssertLastParam", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  invoke void @_ZN3JPH8QuadTree14DiscardOldTreeEv(ptr noundef nonnull align 64 dereferenceable(81) %18)
          to label %19 unwind label %120

19:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %20 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH8QuadTree14GetCurrentRootEv(ptr noundef nonnull align 64 dereferenceable(81) %18)
          to label %21 unwind label %120

21:                                               ; preds = %19
  store ptr %20, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #8
  call void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE5BatchC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #8
  call void @llvm.lifetime.start.p0(i64 512, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = invoke i32 @_ZNK3JPH8QuadTree8RootNode9GetNodeIDEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %24 unwind label %120

24:                                               ; preds = %21
  %25 = getelementptr inbounds %"class.JPH::QuadTree::NodeID", ptr %6, i32 0, i32 0
  store i32 %23, ptr %25, align 4
  %26 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %5, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 4 %6, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %5, i64 0, i64 0
  %29 = invoke noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %30 unwind label %120

30:                                               ; preds = %27
  br i1 %29, label %35, label %31

31:                                               ; preds = %30
  %32 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 157)
          to label %33 unwind label %120

33:                                               ; preds = %31
  br i1 %32, label %34, label %35

34:                                               ; preds = %33
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !12
  br label %35

35:                                               ; preds = %34, %33, %30
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  %38 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %5, i64 0, i64 0
  %39 = invoke noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %40 unwind label %120

40:                                               ; preds = %37
  br i1 %39, label %41, label %116

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !10
  br label %42

42:                                               ; preds = %112, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %43 = load i32, ptr %8, align 4, !tbaa !10
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %5, i64 0, i64 %44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %45, i64 4, i1 false), !tbaa.struct !9
  br label %46

46:                                               ; preds = %42
  %47 = invoke noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsBodyEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %48 unwind label %120

48:                                               ; preds = %46
  br i1 %47, label %49, label %53

49:                                               ; preds = %48
  %50 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.11, ptr noundef @.str.2, i32 noundef 165)
          to label %51 unwind label %120

51:                                               ; preds = %49
  br i1 %50, label %52, label %53

52:                                               ; preds = %51
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !13
  br label %53

53:                                               ; preds = %52, %51, %48
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %56 = invoke noundef i32 @_ZNK3JPH8QuadTree6NodeID12GetNodeIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %57 unwind label %120

57:                                               ; preds = %55
  store i32 %56, ptr %11, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %58 = getelementptr inbounds %"class.JPH::QuadTree", ptr %18, i32 0, i32 0
  %59 = load ptr, ptr %58, align 64, !tbaa !14
  %60 = load i32, ptr %11, align 4, !tbaa !10
  %61 = invoke noundef nonnull align 4 dereferenceable(124) ptr @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE3GetEj(ptr noundef nonnull align 64 dereferenceable(132) %59, i32 noundef %60)
          to label %62 unwind label %120

62:                                               ; preds = %57
  store ptr %61, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.JPH::QuadTree::Node", ptr %63, i32 0, i32 6
  store ptr %64, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = getelementptr inbounds [4 x %"class.JPH::QuadTree::AtomicNodeID"], ptr %65, i64 0, i64 0
  store ptr %66, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds [4 x %"class.JPH::QuadTree::AtomicNodeID"], ptr %67, i64 0, i64 0
  %69 = getelementptr inbounds %"class.JPH::QuadTree::AtomicNodeID", ptr %68, i64 4
  store ptr %69, ptr %15, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %102, %62
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = icmp ne ptr %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %105

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = invoke i32 @_ZNK3JPH8QuadTree12AtomicNodeIDcvNS0_6NodeIDEEv(ptr noundef nonnull align 4 dereferenceable(4) %76)
          to label %78 unwind label %120

78:                                               ; preds = %75
  %79 = getelementptr inbounds %"class.JPH::QuadTree::NodeID", ptr %16, i32 0, i32 0
  store i32 %77, ptr %79, align 4
  %80 = invoke noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %81 unwind label %120

81:                                               ; preds = %78
  br i1 %80, label %82, label %101

82:                                               ; preds = %81
  %83 = invoke noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %84 unwind label %120

84:                                               ; preds = %82
  br i1 %83, label %85, label %101

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %8, align 4, !tbaa !10
  %88 = icmp slt i32 %87, 128
  br i1 %88, label %93, label %89

89:                                               ; preds = %86
  %90 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef 173)
          to label %91 unwind label %120

91:                                               ; preds = %89
  br i1 %90, label %92, label %93

92:                                               ; preds = %91
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !22
  br label %93

93:                                               ; preds = %92, %91, %86
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %8, align 4, !tbaa !10
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %5, i64 0, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %16, i64 4, i1 false), !tbaa.struct !9
  %99 = load i32, ptr %8, align 4, !tbaa !10
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %8, align 4, !tbaa !10
  br label %101

101:                                              ; preds = %95, %84, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.JPH::QuadTree::AtomicNodeID", ptr %103, i32 1
  store ptr %104, ptr %14, align 8, !tbaa !5
  br label %70

105:                                              ; preds = %74
  %106 = getelementptr inbounds %"class.JPH::QuadTree", ptr %18, i32 0, i32 0
  %107 = load ptr, ptr %106, align 64, !tbaa !14
  %108 = load i32, ptr %11, align 4, !tbaa !10
  invoke void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE16AddObjectToBatchERNS3_5BatchEj(ptr noundef nonnull align 64 dereferenceable(132) %107, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef %108)
          to label %109 unwind label %120

109:                                              ; preds = %105
  %110 = load i32, ptr %8, align 4, !tbaa !10
  %111 = add nsw i32 %110, -1
  store i32 %111, ptr %8, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %112

112:                                              ; preds = %109
  %113 = load i32, ptr %8, align 4, !tbaa !10
  %114 = icmp sge i32 %113, 0
  br i1 %114, label %42, label %115, !llvm.loop !23

115:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %116

116:                                              ; preds = %115, %40
  %117 = getelementptr inbounds %"class.JPH::QuadTree", ptr %18, i32 0, i32 0
  %118 = load ptr, ptr %117, align 64, !tbaa !14
  invoke void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE19DestructObjectBatchERNS3_5BatchE(ptr noundef nonnull align 64 dereferenceable(132) %118, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %119 unwind label %120

119:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 512, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  ret void

120:                                              ; preds = %116, %105, %89, %82, %78, %75, %57, %55, %49, %46, %37, %31, %27, %21, %19, %1
  %121 = landingpad { ptr, i32 }
          catch ptr null
  %122 = extractvalue { ptr, i32 } %121, 0
  call void @__clang_call_terminate(ptr %122) #9
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8QuadTree14DiscardOldTreeEv(ptr noundef nonnull align 64 dereferenceable(81)) #5 align 2

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #6

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH8QuadTree14GetCurrentRootEv(ptr noundef nonnull align 64 dereferenceable(81)) #7 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK3JPH8QuadTree8RootNode9GetNodeIDEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsBodyEv(ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH8QuadTree6NodeID12GetNodeIndexEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK3JPH8QuadTree12AtomicNodeIDcvNS0_6NodeIDEEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE16AddObjectToBatchERNS3_5BatchEj(ptr noundef nonnull align 64 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE19DestructObjectBatchERNS3_5BatchE(ptr noundef nonnull align 64 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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"="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 = { 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"="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 = { noinline noreturn nounwind uwtable "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 = { alwaysinline 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{i64 0, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{i64 2158529477}
!13 = !{i64 2158529825}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSN3JPH8QuadTreeE", !6, i64 0, !16, i64 8, !17, i64 64, !7, i64 68, !17, i64 76, !19, i64 80}
!16 = !{!"_ZTSN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE5BatchE", !11, i64 0, !11, i64 4, !11, i64 8}
!17 = !{!"_ZTSSt6atomicIjE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!19 = !{!"_ZTSSt6atomicIbE", !20, i64 0}
!20 = !{!"_ZTSSt13__atomic_baseIbE", !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i64 2158530171}
!23 = distinct !{!23, !24}
!24 = !{!"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.JPH::FixedSizeFreeList<JPH::QuadTree::Node>::Batch" = type { i32, i32, i32 }
%"class.JPH::QuadTree::NodeID" = type { i32 }

@.str.2 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; 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 noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(124) ptr @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE3GetEj(ptr noundef nonnull align 64 dereferenceable(132), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3JPH8QuadTreeD2Ev(ptr noundef nonnull align 64 dereferenceable(81) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.JPH::FixedSizeFreeList<JPH::QuadTree::Node>::Batch", align 4
  %3 = alloca [128 x %"class.JPH::QuadTree::NodeID"], align 16
  %4 = alloca %"class.JPH::QuadTree::NodeID", align 4
  %5 = alloca %"class.JPH::QuadTree::NodeID", align 4
  invoke void @_ZN3JPH8QuadTree14DiscardOldTreeEv(ptr noundef nonnull align 64 dereferenceable(81) %0)
          to label %6 unwind label %.loopexit.split-lp.loopexit.split-lp

6:                                                ; preds = %1
  %7 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH8QuadTree14GetCurrentRootEv(ptr noundef nonnull align 64 dereferenceable(81) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  call void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE5BatchC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %2) #7
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #7
  %8 = invoke i32 @_ZNK3JPH8QuadTree8RootNode9GetNodeIDEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %9 unwind label %.loopexit.split-lp.loopexit.split-lp

9:                                                ; preds = %6
  store i32 %8, ptr %3, align 16, !tbaa !5
  %10 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %10, label %15, label %11

11:                                               ; preds = %9
  %12 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 157)
          to label %13 unwind label %.loopexit.split-lp.loopexit.split-lp

13:                                               ; preds = %11
  br i1 %12, label %14, label %15

14:                                               ; preds = %13
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !9
  br label %15

15:                                               ; preds = %14, %13, %9
  %16 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %16, label %.preheader, label %.loopexit22

.preheader:                                       ; preds = %15, %99
  %.0 = phi i32 [ %100, %99 ], [ 0, %15 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %17 = zext nneg i32 %.0 to i64
  %18 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %3, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %19, ptr %4, align 4, !tbaa !5
  %20 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsBodyEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  br i1 %20, label %21, label %25

21:                                               ; preds = %.preheader
  %22 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.2, i32 noundef 165)
          to label %23 unwind label %.loopexit.split-lp.loopexit

23:                                               ; preds = %21
  br i1 %22, label %24, label %25

24:                                               ; preds = %23
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !10
  br label %25

25:                                               ; preds = %24, %23, %.preheader
  %26 = invoke noundef i32 @_ZNK3JPH8QuadTree6NodeID12GetNodeIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %27 unwind label %.loopexit.split-lp.loopexit

27:                                               ; preds = %25
  %28 = load ptr, ptr %0, align 64, !tbaa !11
  %29 = call noundef nonnull align 4 dereferenceable(124) ptr @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE3GetEj(ptr noundef nonnull align 64 dereferenceable(132) %28, i32 noundef %26)
  %.016.ptr = getelementptr inbounds i8, ptr %29, i64 96
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %30 = invoke i32 @_ZNK3JPH8QuadTree12AtomicNodeIDcvNS0_6NodeIDEEv(ptr noundef nonnull align 4 dereferenceable(4) %.016.ptr)
          to label %31 unwind label %.loopexit

31:                                               ; preds = %27
  store i32 %30, ptr %5, align 4
  %32 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %32, label %33, label %46

33:                                               ; preds = %31
  %34 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %34, label %35, label %46

35:                                               ; preds = %33
  %36 = icmp slt i32 %.0, 128
  br i1 %36, label %41, label %37

37:                                               ; preds = %35
  %38 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 173)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %37
  br i1 %38, label %40, label %41

40:                                               ; preds = %39
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !20
  br label %41

41:                                               ; preds = %40, %39, %35
  %42 = sext i32 %.0 to i64
  %43 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %3, i64 0, i64 %42
  %44 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %44, ptr %43, align 4, !tbaa !5
  %45 = add nsw i32 %.0, 1
  br label %46

46:                                               ; preds = %41, %33, %31
  %.2 = phi i32 [ %45, %41 ], [ %.0, %33 ], [ %.0, %31 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %.016.ptr.1 = getelementptr inbounds i8, ptr %29, i64 100
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %47 = invoke i32 @_ZNK3JPH8QuadTree12AtomicNodeIDcvNS0_6NodeIDEEv(ptr noundef nonnull align 4 dereferenceable(4) %.016.ptr.1)
          to label %48 unwind label %.loopexit

48:                                               ; preds = %46
  store i32 %47, ptr %5, align 4
  %49 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %49, label %50, label %63

50:                                               ; preds = %48
  %51 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %51, label %52, label %63

52:                                               ; preds = %50
  %53 = icmp slt i32 %.2, 128
  br i1 %53, label %58, label %54

54:                                               ; preds = %52
  %55 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 173)
          to label %56 unwind label %.loopexit

56:                                               ; preds = %54
  br i1 %55, label %57, label %58

57:                                               ; preds = %56
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !20
  br label %58

58:                                               ; preds = %57, %56, %52
  %59 = sext i32 %.2 to i64
  %60 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %3, i64 0, i64 %59
  %61 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %61, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %.2, 1
  br label %63

63:                                               ; preds = %58, %50, %48
  %.2.1 = phi i32 [ %62, %58 ], [ %.2, %50 ], [ %.2, %48 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %.016.ptr.2 = getelementptr inbounds i8, ptr %29, i64 104
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %64 = invoke i32 @_ZNK3JPH8QuadTree12AtomicNodeIDcvNS0_6NodeIDEEv(ptr noundef nonnull align 4 dereferenceable(4) %.016.ptr.2)
          to label %65 unwind label %.loopexit

65:                                               ; preds = %63
  store i32 %64, ptr %5, align 4
  %66 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %66, label %67, label %80

67:                                               ; preds = %65
  %68 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %68, label %69, label %80

69:                                               ; preds = %67
  %70 = icmp slt i32 %.2.1, 128
  br i1 %70, label %75, label %71

71:                                               ; preds = %69
  %72 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 173)
          to label %73 unwind label %.loopexit

73:                                               ; preds = %71
  br i1 %72, label %74, label %75

74:                                               ; preds = %73
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !20
  br label %75

75:                                               ; preds = %74, %73, %69
  %76 = sext i32 %.2.1 to i64
  %77 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %3, i64 0, i64 %76
  %78 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %78, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %.2.1, 1
  br label %80

80:                                               ; preds = %75, %67, %65
  %.2.2 = phi i32 [ %79, %75 ], [ %.2.1, %67 ], [ %.2.1, %65 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %.016.ptr.3 = getelementptr inbounds i8, ptr %29, i64 108
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %81 = invoke i32 @_ZNK3JPH8QuadTree12AtomicNodeIDcvNS0_6NodeIDEEv(ptr noundef nonnull align 4 dereferenceable(4) %.016.ptr.3)
          to label %82 unwind label %.loopexit

82:                                               ; preds = %80
  store i32 %81, ptr %5, align 4
  %83 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %83, label %84, label %97

84:                                               ; preds = %82
  %85 = call noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %85, label %86, label %97

86:                                               ; preds = %84
  %87 = icmp slt i32 %.2.2, 128
  br i1 %87, label %92, label %88

88:                                               ; preds = %86
  %89 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 173)
          to label %90 unwind label %.loopexit

90:                                               ; preds = %88
  br i1 %89, label %91, label %92

91:                                               ; preds = %90
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !20
  br label %92

92:                                               ; preds = %91, %90, %86
  %93 = sext i32 %.2.2 to i64
  %94 = getelementptr inbounds [128 x %"class.JPH::QuadTree::NodeID"], ptr %3, i64 0, i64 %93
  %95 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %95, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %.2.2, 1
  br label %97

97:                                               ; preds = %92, %84, %82
  %.2.3 = phi i32 [ %96, %92 ], [ %.2.2, %84 ], [ %.2.2, %82 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %98 = load ptr, ptr %0, align 64, !tbaa !11
  invoke void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE16AddObjectToBatchERNS3_5BatchEj(ptr noundef nonnull align 64 dereferenceable(132) %98, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %26)
          to label %99 unwind label %.loopexit.split-lp.loopexit

99:                                               ; preds = %97
  %100 = add nsw i32 %.2.3, -1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %101 = icmp sgt i32 %.2.3, 0
  br i1 %101, label %.preheader, label %.loopexit22, !llvm.loop !21

.loopexit22:                                      ; preds = %99, %15
  %102 = load ptr, ptr %0, align 64, !tbaa !11
  call void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE19DestructObjectBatchERNS3_5BatchE(ptr noundef nonnull align 64 dereferenceable(132) %102, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  ret void

.loopexit:                                        ; preds = %88, %80, %71, %63, %54, %46, %27, %37
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %97, %25, %21
  %lpad.loopexit19 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %11, %6, %1
  %lpad.loopexit.split-lp20 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit19, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp20, %.loopexit.split-lp.loopexit.split-lp ]
  %103 = extractvalue { ptr, i32 } %lpad.phi, 0
  call void @__clang_call_terminate(ptr %103) #8
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8QuadTree14DiscardOldTreeEv(ptr noundef nonnull align 64 dereferenceable(81)) local_unnamed_addr #4 align 2

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH8QuadTree14GetCurrentRootEv(ptr noundef nonnull align 64 dereferenceable(81)) local_unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK3JPH8QuadTree8RootNode9GetNodeIDEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID7IsValidEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsNodeEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH8QuadTree6NodeID6IsBodyEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH8QuadTree6NodeID12GetNodeIndexEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK3JPH8QuadTree12AtomicNodeIDcvNS0_6NodeIDEEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE16AddObjectToBatchERNS3_5BatchEj(ptr noundef nonnull align 64 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE19DestructObjectBatchERNS3_5BatchE(ptr noundef nonnull align 64 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 2158529477}
!10 = !{i64 2158529825}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3JPH8QuadTreeE", !13, i64 0, !14, i64 8, !15, i64 64, !7, i64 68, !15, i64 76, !17, i64 80}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSN3JPH17FixedSizeFreeListINS_8QuadTree4NodeEE5BatchE", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = !{!"_ZTSSt6atomicIjE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIjE", !6, i64 0}
!17 = !{!"_ZTSSt6atomicIbE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIbE", !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i64 2158530171}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass