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

; 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::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 }
%"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 }

; 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 nounwind uwtable
declare dso_local void @_ZN7Riemann19AABBTreeNodeOfflineD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann15AABBTreeOffline4InitEii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %13 = load i32, ptr %5, align 4, !tbaa !9
  %14 = mul nsw i32 %13, 2
  %15 = sub nsw i32 %14, 1
  store i32 %15, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = icmp sle i32 %16, 1024
  br i1 %17, label %18, label %20

18:                                               ; preds = %3
  %19 = load i32, ptr %7, align 4, !tbaa !9
  br label %24

20:                                               ; preds = %3
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = sdiv i32 %21, %22
  br label %24

24:                                               ; preds = %20, %18
  %25 = phi i32 [ %19, %18 ], [ %23, %20 ]
  store i32 %25, ptr %8, align 4, !tbaa !9
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %27, i64 48)
  %29 = extractvalue { i64, i1 } %28, 1
  %30 = extractvalue { i64, i1 } %28, 0
  %31 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %30, i64 8)
  %32 = extractvalue { i64, i1 } %31, 1
  %33 = or i1 %29, %32
  %34 = extractvalue { i64, i1 } %31, 0
  %35 = select i1 %33, i64 -1, i64 %34
  %36 = call noalias noundef nonnull ptr @_Znam(i64 noundef %35) #8
  store i64 %27, ptr %36, align 16
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = icmp eq i64 %27, 0
  br i1 %38, label %46, label %39

39:                                               ; preds = %24
  %40 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %37, i64 %27
  br label %41

41:                                               ; preds = %43, %39
  %42 = phi ptr [ %37, %39 ], [ %44, %43 ]
  invoke void @_ZN7Riemann19AABBTreeNodeOfflineC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %42)
          to label %43 unwind label %65

43:                                               ; preds = %41
  %44 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %42, i64 1
  %45 = icmp eq ptr %44, %40
  br i1 %45, label %46, label %41

46:                                               ; preds = %43, %24
  %47 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 0
  store ptr %37, ptr %47, align 8, !tbaa !11
  %48 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = mul i64 48, %51
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 %52, i1 false)
  %53 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %54, i32 0, i32 3
  store i32 0, ptr %55, align 8, !tbaa !17
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %58, i32 0, i32 4
  store i32 %56, ptr %59, align 4, !tbaa !22
  %60 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 1
  %61 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !9
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12emplace_backIJRPNS0_19AABBTreeNodeOfflineEiRKiEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  %63 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 2
  store i32 0, ptr %63, align 8, !tbaa !23
  %64 = getelementptr inbounds %"class.Riemann::AABBTreeOffline", ptr %12, i32 0, i32 3
  store i32 1, ptr %64, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void

65:                                               ; preds = %41
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  %69 = icmp eq ptr %37, %42
  br i1 %69, label %74, label %70

70:                                               ; preds = %70, %65
  %71 = phi ptr [ %42, %65 ], [ %72, %70 ]
  %72 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %71, i64 -1
  call void @_ZN7Riemann19AABBTreeNodeOfflineD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %72) #7
  %73 = icmp eq ptr %72, %37
  br i1 %73, label %74, label %70

74:                                               ; preds = %70, %65
  call void @_ZdaPvm(ptr noundef %36, i64 noundef %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %75

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #4

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

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

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

; 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)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN7Riemann15AABBTreeOfflineE", !6, i64 0, !13, i64 8, !10, i64 32, !10, i64 36}
!13 = !{!"_ZTSSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!18, !10, i64 40}
!18 = !{!"_ZTSN7Riemann19AABBTreeNodeOfflineE", !19, i64 0, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44}
!19 = !{!"_ZTSN5Maths6TAABB3IfEE", !20, i64 0, !20, i64 12}
!20 = !{!"_ZTSN5Maths8TVector3IfEE", !21, i64 0, !21, i64 4, !21, i64 8}
!21 = !{!"float", !7, i64 0}
!22 = !{!18, !10, i64 44}
!23 = !{!12, !10, i64 32}
!24 = !{!12, !10, i64 36}


; 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 nounwind uwtable
declare dso_local void @_ZN7Riemann19AABBTreeNodeOfflineD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann15AABBTreeOffline4InitEii(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = shl nsw i32 %1, 1
  %7 = add nsw i32 %6, -1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %8 = icmp slt i32 %1, 513
  br i1 %8, label %11, label %9

9:                                                ; preds = %3
  %10 = sdiv i32 %7, %2
  br label %11

11:                                               ; preds = %3, %9
  %12 = phi i32 [ %10, %9 ], [ %7, %3 ]
  store i32 %12, ptr %4, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %13, i64 48)
  %15 = extractvalue { i64, i1 } %14, 1
  %16 = extractvalue { i64, i1 } %14, 0
  %17 = or disjoint i64 %16, 8
  %18 = select i1 %15, i64 -1, i64 %17
  %19 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %18) #8
  store i64 %13, ptr %19, align 16
  %.ptr12 = getelementptr inbounds i8, ptr %19, i64 8
  %20 = icmp eq i32 %12, 0
  br i1 %20, label %.loopexit17, label %21

21:                                               ; preds = %11
  %22 = getelementptr inbounds %"class.Riemann::AABBTreeNodeOffline", ptr %.ptr12, i64 %13
  br label %23

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

24:                                               ; preds = %23
  %.add = add nuw nsw i64 %.idx, 48
  %.ptr11 = getelementptr inbounds i8, ptr %19, i64 %.add
  %25 = icmp eq ptr %.ptr11, %22
  br i1 %25, label %.loopexit17, label %23

.loopexit17:                                      ; preds = %24, %11
  store ptr %.ptr12, ptr %0, align 8, !tbaa !9
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %.ptr12, i8 0, i64 %16, i1 false)
  %26 = getelementptr inbounds i8, ptr %19, i64 48
  store i32 0, ptr %26, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %19, i64 52
  store i32 %1, ptr %27, align 4, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 1, ptr %5, align 4, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7Riemann15AABBTreeOffline9NodeBlockESaIS2_EE12emplace_backIJRPNS0_19AABBTreeNodeOfflineEiRKiEEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %30, align 8, !tbaa !22
  %31 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 1, ptr %31, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  ret void

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

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

.loopexit:                                        ; preds = %.preheader, %32
  tail call void @_ZdaPvm(ptr noundef nonnull %19, i64 noundef %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  resume { ptr, i32 } %33
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann19AABBTreeNodeOfflineC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 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) #6

; 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 #3 align 2

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


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