; LLVM IR from atlantis13579/Riemann :: Src/Collision/AABBTreeOffline.ll (ZN7Riemann15AABBTreeOffline10AllocNodesEv)

; 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.Riemann::AABBTreeOffline" = type { ptr, %"class.std::vector.0", i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Riemann::AABBTreeOffline::NodeBlock, std::allocator<Riemann::AABBTreeOffline::NodeBlock>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::AABBTreeOffline::NodeBlock, std::allocator<Riemann::AABBTreeOffline::NodeBlock>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::AABBTreeOffline::NodeBlock, std::allocator<Riemann::AABBTreeOffline::NodeBlock>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::AABBTreeOffline::NodeBlock, std::allocator<Riemann::AABBTreeOffline::NodeBlock>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::AABBTreeOffline::NodeBlock" = type { ptr, i32, i32 }
%"class.Riemann::AABBTreeNodeOffline" = type { %"class.Maths::TAABB3", ptr, ptr, i32, i32 }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7Riemann15AABBTreeOffline10AllocNodesEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 3
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = add nsw i32 %14, 2
  store i32 %15, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %16 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 1
  %17 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 2
  %18 = load i32, ptr %17, align 8, !tbaa !16
  %19 = sext i32 %18 to i64
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %19) #6
  store ptr %20, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.Riemann::AABBTreeOffline::NodeBlock", ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !17
  %24 = add nsw i32 %23, 2
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.Riemann::AABBTreeOffline::NodeBlock", ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !19
  %28 = icmp sle i32 %24, %27
  br i1 %28, label %29, label %43

29:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.Riemann::AABBTreeOffline::NodeBlock", ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.Riemann::AABBTreeOffline::NodeBlock", ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !17
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %32, i64 %36
  store ptr %37, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.Riemann::AABBTreeOffline::NodeBlock", ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !17
  %41 = add nsw i32 %40, 2
  store i32 %41, ptr %39, align 8, !tbaa !17
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %42, ptr %2, align 8
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %70

43:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1024, ptr %7, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %44 = call noalias noundef nonnull ptr @_Znam(i64 noundef 49160) #7
  store i64 1024, ptr %44, align 16
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %45, i64 1024
  br label %47

47:                                               ; preds = %49, %43
  %48 = phi ptr [ %45, %43 ], [ %50, %49 ]
  invoke void @_ZN7Riemann19AABBTreeNodeOfflineC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %48)
          to label %49 unwind label %60

49:                                               ; preds = %47
  %50 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %48, i64 1
  %51 = icmp eq ptr %50, %46
  br i1 %51, label %52, label %47

52:                                               ; preds = %49
  store ptr %45, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %53, i8 0, i64 49152, i1 false)
  %54 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 2, ptr %11, align 4, !tbaa !21
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12emplace_backIJRPNS0_19AABBTreeNodeOfflineEiRKiEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %56 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !16
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 8, !tbaa !16
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %59, ptr %2, align 8
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %70

60:                                               ; preds = %47
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  %64 = icmp eq ptr %45, %48
  br i1 %64, label %69, label %65

65:                                               ; preds = %65, %60
  %66 = phi ptr [ %48, %60 ], [ %67, %65 ]
  %67 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %66, i64 -1
  call void @_ZN7Riemann19AABBTreeNodeOfflineD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %67) #6
  %68 = icmp eq ptr %67, %45
  br i1 %68, label %69, label %65

69:                                               ; preds = %65, %60
  call void @_ZdaPvm(ptr noundef %44, i64 noundef 49160) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %72

70:                                               ; preds = %52, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %71 = load ptr, ptr %2, align 8
  ret ptr %71

72:                                               ; preds = %69
  %73 = load ptr, ptr %9, align 8
  %74 = load i32, ptr %10, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19AABBTreeNodeOfflineC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12emplace_backIJRPNS0_19AABBTreeNodeOfflineEiRKiEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nobuiltin 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 #4 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 36}
!10 = !{!"_ZTSN7Riemann15AABBTreeOfflineE", !6, i64 0, !11, i64 8, !15, i64 32, !15, i64 36}
!11 = !{!"_ZTSSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!10, !15, i64 32}
!17 = !{!18, !15, i64 8}
!18 = !{!"_ZTSN7Riemann15AABBTreeOffline9NodeBlockE", !6, i64 0, !15, i64 8, !15, i64 12}
!19 = !{!18, !15, i64 12}
!20 = !{!18, !6, i64 0}
!21 = !{!15, !15, i64 0}


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

%"class.Riemann::AABBTreeNodeOffline" = type { %"class.Maths::TAABB3", ptr, ptr, i32, i32 }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7Riemann15AABBTreeOffline10AllocNodesEv(ptr noundef nonnull align 8 dereferenceable(40) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = getelementptr inbounds i8, ptr %0, i64 36
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = add nsw i32 %6, 2
  store i32 %7, ptr %5, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load i32, ptr %9, align 8, !tbaa !15
  %11 = sext i32 %10 to i64
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %11) #6
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !16
  %15 = add nsw i32 %14, 2
  %16 = getelementptr inbounds i8, ptr %12, i64 12
  %17 = load i32, ptr %16, align 4, !tbaa !18
  %.not = icmp sgt i32 %15, %17
  br i1 %.not, label %22, label %18

18:                                               ; preds = %1
  %19 = load ptr, ptr %12, align 8, !tbaa !19
  %20 = sext i32 %14 to i64
  %21 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %19, i64 %20
  store i32 %15, ptr %13, align 8, !tbaa !16
  br label %36

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 1024, ptr %2, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %23 = tail call noalias noundef nonnull dereferenceable(49160) ptr @_Znam(i64 noundef 49160) #7
  store i64 1024, ptr %23, align 16
  %.ptr13 = getelementptr inbounds i8, ptr %23, i64 8
  br label %24

24:                                               ; preds = %25, %22
  %.idx = phi i64 [ 8, %22 ], [ %.add, %25 ]
  %.ptr.ptr = getelementptr inbounds i8, ptr %23, i64 %.idx
  invoke void @_ZN7Riemann19AABBTreeNodeOfflineC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr.ptr)
          to label %25 unwind label %32

25:                                               ; preds = %24
  %.add = add nuw nsw i64 %.idx, 48
  %26 = icmp eq i64 %.add, 49160
  br i1 %26, label %27, label %24

27:                                               ; preds = %25
  store ptr %.ptr13, ptr %3, align 8, !tbaa !21
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(49152) %.ptr13, i8 0, i64 49152, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 2, ptr %4, align 4, !tbaa !20
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12emplace_backIJRPNS0_19AABBTreeNodeOfflineEiRKiEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %29 = load i32, ptr %9, align 8, !tbaa !15
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %9, align 8, !tbaa !15
  %31 = load ptr, ptr %3, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  br label %36

32:                                               ; preds = %24
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = icmp eq i64 %.idx, 8
  br i1 %34, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %32, %.preheader
  %.idx14 = phi i64 [ %.add15, %.preheader ], [ %.idx, %32 ]
  %.add15 = add nsw i64 %.idx14, -48
  %.ptr17 = getelementptr inbounds i8, ptr %23, i64 %.add15
  tail call void @_ZN7Riemann19AABBTreeNodeOfflineD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr17) #6
  %35 = icmp eq i64 %.add15, 8
  br i1 %35, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %32
  tail call void @_ZdaPvm(ptr noundef nonnull %23, i64 noundef 49160) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  resume { ptr, i32 } %33

36:                                               ; preds = %27, %18
  %.0 = phi ptr [ %21, %18 ], [ %31, %27 ]
  ret ptr %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19AABBTreeNodeOfflineC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12emplace_backIJRPNS0_19AABBTreeNodeOfflineEiRKiEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nobuiltin 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 #4 = { nobuiltin allocsize(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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !14, i64 36}
!6 = !{!"_ZTSN7Riemann15AABBTreeOfflineE", !7, i64 0, !10, i64 8, !14, i64 32, !14, i64 36}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !14, i64 32}
!16 = !{!17, !14, i64 8}
!17 = !{!"_ZTSN7Riemann15AABBTreeOffline9NodeBlockE", !7, i64 0, !14, i64 8, !14, i64 12}
!18 = !{!17, !14, i64 12}
!19 = !{!17, !7, i64 0}
!20 = !{!14, !14, i64 0}
!21 = !{!7, !7, i64 0}


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