; LLVM IR from atlantis13579/Riemann :: Src/Geometry (SparseOctree)

; 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.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::ListSet<int>::ValueEnumerable" = type <{ ptr, i32, [4 x i8] }>
%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator" = type { ptr, i32, i32, ptr }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }
%"class.Riemann::SparseOctree" = type <{ %"class.std::vector", %"class.Riemann::SparseGrid3", %"class.Riemann::ListSet", %"class.std::set", %"class.std::unordered_map", %"class.Maths::TVector3", float, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Riemann::SparseOctree::Cell, std::allocator<Riemann::SparseOctree::Cell>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::SparseOctree::Cell, std::allocator<Riemann::SparseOctree::Cell>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::SparseOctree::Cell, std::allocator<Riemann::SparseOctree::Cell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::SparseOctree::Cell, std::allocator<Riemann::SparseOctree::Cell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::SparseGrid3" = type { %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<Maths::TVector3<int>, std::pair<const Maths::TVector3<int>, int>, std::_Select1st<std::pair<const Maths::TVector3<int>, int>>, std::less<Maths::TVector3<int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Maths::TVector3<int>, std::pair<const Maths::TVector3<int>, int>, std::_Select1st<std::pair<const Maths::TVector3<int>, int>>, std::less<Maths::TVector3<int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.Riemann::ListSet" = type { %"class.std::vector.3", %"class.std::vector.8", %"class.std::vector.13" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<Riemann::ListSet<int>::Header, std::allocator<Riemann::ListSet<int>::Header>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::ListSet<int>::Header, std::allocator<Riemann::ListSet<int>::Header>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::ListSet<int>::Header, std::allocator<Riemann::ListSet<int>::Header>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::ListSet<int>::Header, std::allocator<Riemann::ListSet<int>::Header>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Riemann::ListSet<int>::Block, std::allocator<Riemann::ListSet<int>::Block>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::ListSet<int>::Block, std::allocator<Riemann::ListSet<int>::Block>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::ListSet<int>::Block, std::allocator<Riemann::ListSet<int>::Block>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::ListSet<int>::Block, std::allocator<Riemann::ListSet<int>::Block>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.Riemann::SparseOctree::Cell" = type { i32, i32, %"class.Maths::TVector3.28", [8 x i32] }
%"class.Maths::TVector3.28" = type { i32, i32, i32 }

declare i32 @__gxx_personality_v0(...)

; 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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7Riemann12SparseOctree10RangeQueryERKN5Maths6TAABB3IfEERSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector.29", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.Riemann::ListSet<int>::ValueEnumerable", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca { ptr, i32 }, align 8
  %18 = alloca %"class.Riemann::ListSet<int>::ValueEnumerable::Iterator", align 8
  %19 = alloca %"class.Riemann::ListSet<int>::ValueEnumerable::Iterator", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.Maths::TAABB3", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %25 = getelementptr inbounds %"class.Riemann::SparseOctree", ptr %24, i32 0, i32 3
  store ptr %25, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %26) #6
  %28 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %8, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %29) #6
  %31 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %9, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  br label %32

32:                                               ; preds = %39, %3
  %33 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %33, label %35, label %34

34:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %41

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %37 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %37, ptr %10, align 4, !tbaa !9
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %39

39:                                               ; preds = %35
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %32

41:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7Riemann12SparseOctree20InitializeQueryQueueERKN5Maths6TAABB3IfEE(ptr dead_on_unwind writable sret(%"class.std::vector.29") align 8 %11, ptr noundef nonnull align 8 dereferenceable(268) %24, ptr noundef nonnull align 4 dereferenceable(24) %42)
  br label %43

43:                                               ; preds = %135, %41
  %44 = call noundef i64 @_ZNKSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %45 = icmp ugt i64 %44, 0
  br i1 %45, label %46, label %137

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %48, ptr %12, align 8, !tbaa !5
  call void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %49 = getelementptr inbounds %"class.Riemann::SparseOctree", ptr %24, i32 0, i32 2
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.Riemann::SparseOctree::Cell", ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = invoke { ptr, i32 } @_ZNK7Riemann7ListSetIiLi8EEixEi(ptr noundef nonnull align 8 dereferenceable(72) %49, i32 noundef %52)
          to label %54 unwind label %63

54:                                               ; preds = %46
  store { ptr, i32 } %53, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %17, i64 12, i1 false)
  store ptr %14, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable5beginEv(ptr dead_on_unwind writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8 %18, ptr noundef nonnull align 8 dereferenceable(12) %55)
          to label %56 unwind label %67

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable3endEv(ptr dead_on_unwind writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8 %19, ptr noundef nonnull align 8 dereferenceable(12) %57)
          to label %58 unwind label %71

58:                                               ; preds = %56
  br label %59

59:                                               ; preds = %83, %58
  %60 = invoke noundef zeroext i1 @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %61 unwind label %71

61:                                               ; preds = %59
  br i1 %60, label %75, label %62

62:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %91

63:                                               ; preds = %46
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %15, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %16, align 4
  br label %90

67:                                               ; preds = %54
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %15, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %16, align 4
  br label %89

71:                                               ; preds = %81, %59, %56
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %15, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %16, align 4
  br label %88

75:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %76 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %77 unwind label %84

77:                                               ; preds = %75
  %78 = load i32, ptr %76, align 4, !tbaa !9
  store i32 %78, ptr %20, align 4, !tbaa !9
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %80 unwind label %84

80:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %81

81:                                               ; preds = %80
  %82 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %83 unwind label %71

83:                                               ; preds = %81
  br label %59

84:                                               ; preds = %77, %75
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %15, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %88

88:                                               ; preds = %84, %71
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %89

89:                                               ; preds = %88, %67
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  br label %90

90:                                               ; preds = %89, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %136

91:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %131, %91
  %93 = load i32, ptr %21, align 4, !tbaa !9
  %94 = icmp slt i32 %93, 8
  br i1 %94, label %96, label %95

95:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %135

96:                                               ; preds = %92
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = load i32, ptr %21, align 4, !tbaa !9
  %99 = invoke noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %97, i32 noundef %98)
          to label %100 unwind label %116

100:                                              ; preds = %96
  br i1 %99, label %101, label %130

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %102 = getelementptr inbounds %"class.Riemann::SparseOctree", ptr %24, i32 0, i32 0
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load i32, ptr %21, align 4, !tbaa !9
  %105 = invoke noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %103, i32 noundef %104)
          to label %106 unwind label %120

106:                                              ; preds = %101
  %107 = sext i32 %105 to i64
  %108 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %107) #6
  store ptr %108, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  %109 = load ptr, ptr %22, align 8, !tbaa !5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind writable sret(%"class.Maths::TAABB3") align 4 %23, ptr noundef nonnull align 8 dereferenceable(268) %24, ptr noundef nonnull align 4 dereferenceable(52) %109)
          to label %110 unwind label %124

110:                                              ; preds = %106
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = invoke noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(24) %111)
          to label %113 unwind label %124

113:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br i1 %112, label %114, label %128

114:                                              ; preds = %113
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %115 unwind label %120

115:                                              ; preds = %114
  br label %128

116:                                              ; preds = %96
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %15, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %16, align 4
  br label %134

120:                                              ; preds = %114, %101
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %15, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %16, align 4
  br label %129

124:                                              ; preds = %110, %106
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %15, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br label %129

128:                                              ; preds = %115, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %130

129:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %134

130:                                              ; preds = %128, %100
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %21, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %21, align 4, !tbaa !9
  br label %92, !llvm.loop !14

134:                                              ; preds = %129, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %136

135:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %43, !llvm.loop !16

136:                                              ; preds = %134, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %138

137:                                              ; preds = %43
  call void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  ret void

138:                                              ; preds = %136
  %139 = load ptr, ptr %15, align 8
  %140 = load i32, ptr %16, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann12SparseOctree20InitializeQueryQueueERKN5Maths6TAABB3IfEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.29") align 8, ptr noundef nonnull align 8 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(24)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i32 } @_ZNK7Riemann7ListSetIiLi8EEixEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable3endEv(ptr dead_on_unwind noalias writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TAABB3") align 4, ptr noundef nonnull align 8 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(52)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN7Riemann12SparseOctree4CellE", !10, i64 0, !10, i64 4, !13, i64 8, !7, i64 20}
!13 = !{!"_ZTSN5Maths8TVector3IiEE", !10, i64 0, !10, i64 4, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Riemann::SparseOctree::Cell *, std::allocator<const Riemann::SparseOctree::Cell *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::ListSet<int>::ValueEnumerable" = type <{ ptr, i32, [4 x i8] }>
%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator" = type { ptr, i32, i32, ptr }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }

declare i32 @__gxx_personality_v0(...)

; 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7Riemann12SparseOctree10RangeQueryERKN5Maths6TAABB3IfEERSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.29", align 8
  %8 = alloca %"class.Riemann::ListSet<int>::ValueEnumerable", align 8
  %9 = alloca %"class.Riemann::ListSet<int>::ValueEnumerable::Iterator", align 8
  %10 = alloca %"class.Riemann::ListSet<int>::ValueEnumerable::Iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.Maths::TAABB3", align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %15 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #5
  store ptr %15, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %16 = tail call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %14) #5
  store ptr %16, ptr %5, align 8
  %17 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNK7Riemann12SparseOctree20InitializeQueryQueueERKN5Maths6TAABB3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.29") align 8 %7, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(24) %1)
  %18 = call noundef i64 @_ZNKSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %.not32 = icmp eq i64 %18, 0
  br i1 %.not32, label %._crit_edge35, label %.lr.ph34

.lr.ph34:                                         ; preds = %._crit_edge
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %24

.lr.ph:                                           ; preds = %3, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %21 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %21, ptr %6, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %23 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %23, label %.lr.ph, label %._crit_edge

24:                                               ; preds = %.lr.ph34, %.loopexit
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  call void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = invoke { ptr, i32 } @_ZNK7Riemann7ListSetIiLi8EEixEi(ptr noundef nonnull align 8 dereferenceable(72) %19, i32 noundef %27)
          to label %29 unwind label %33

29:                                               ; preds = %24
  %.fca.0.extract = extractvalue { ptr, i32 } %28, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %28, 1
  store ptr %.fca.0.extract, ptr %8, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  invoke void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(12) %8)
          to label %30 unwind label %35

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  invoke void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable3endEv(ptr dead_on_unwind nonnull writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(12) %8)
          to label %.preheader unwind label %37

.preheader:                                       ; preds = %30
  %31 = call noundef zeroext i1 @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
  br i1 %31, label %.lr.ph29, label %._crit_edge30

._crit_edge30:                                    ; preds = %41, %.preheader
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  %32 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 0)
  br i1 %32, label %48, label %61

33:                                               ; preds = %24
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %132

35:                                               ; preds = %29
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %47

37:                                               ; preds = %30
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %46

.lr.ph29:                                         ; preds = %.preheader, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %40 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %40, ptr %11, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %41 unwind label %44

41:                                               ; preds = %.lr.ph29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %43 = call noundef zeroext i1 @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
  br i1 %43, label %.lr.ph29, label %._crit_edge30

44:                                               ; preds = %.lr.ph29
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %46

46:                                               ; preds = %44, %37
  %.pn24 = phi { ptr, i32 } [ %45, %44 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %47

47:                                               ; preds = %46, %35
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %46 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %132

48:                                               ; preds = %._crit_edge30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %49 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 0)
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %50) #5
  store ptr %51, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %51)
          to label %52 unwind label %57

52:                                               ; preds = %48
  %53 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %53, label %54, label %59

54:                                               ; preds = %52
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %59 unwind label %55

55:                                               ; preds = %129, %119, %109, %99, %89, %79, %69, %54
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %60

57:                                               ; preds = %123, %113, %103, %93, %83, %73, %63, %48
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %60

59:                                               ; preds = %54, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %61

60:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %132

61:                                               ; preds = %._crit_edge30, %59
  %62 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 1)
  br i1 %62, label %63, label %71

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %64 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 1)
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %65) #5
  store ptr %66, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %66)
          to label %67 unwind label %57

67:                                               ; preds = %63
  %68 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %68, label %69, label %70

69:                                               ; preds = %67
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %70 unwind label %55

70:                                               ; preds = %69, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %71

71:                                               ; preds = %70, %61
  %72 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 2)
  br i1 %72, label %73, label %81

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %74 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 2)
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %75) #5
  store ptr %76, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %76)
          to label %77 unwind label %57

77:                                               ; preds = %73
  %78 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %78, label %79, label %80

79:                                               ; preds = %77
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %80 unwind label %55

80:                                               ; preds = %79, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %81

81:                                               ; preds = %80, %71
  %82 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 3)
  br i1 %82, label %83, label %91

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %84 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 3)
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %85) #5
  store ptr %86, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %86)
          to label %87 unwind label %57

87:                                               ; preds = %83
  %88 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %88, label %89, label %90

89:                                               ; preds = %87
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %90 unwind label %55

90:                                               ; preds = %89, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %91

91:                                               ; preds = %90, %81
  %92 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 4)
  br i1 %92, label %93, label %101

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %94 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 4)
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %95) #5
  store ptr %96, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %96)
          to label %97 unwind label %57

97:                                               ; preds = %93
  %98 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %98, label %99, label %100

99:                                               ; preds = %97
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %100 unwind label %55

100:                                              ; preds = %99, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %101

101:                                              ; preds = %100, %91
  %102 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 5)
  br i1 %102, label %103, label %111

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %104 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 5)
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %105) #5
  store ptr %106, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %106)
          to label %107 unwind label %57

107:                                              ; preds = %103
  %108 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %108, label %109, label %110

109:                                              ; preds = %107
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %110 unwind label %55

110:                                              ; preds = %109, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %111

111:                                              ; preds = %110, %101
  %112 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 6)
  br i1 %112, label %113, label %121

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %114 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 6)
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %115) #5
  store ptr %116, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %116)
          to label %117 unwind label %57

117:                                              ; preds = %113
  %118 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %118, label %119, label %120

119:                                              ; preds = %117
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %120 unwind label %55

120:                                              ; preds = %119, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %121

121:                                              ; preds = %120, %111
  %122 = call noundef zeroext i1 @_ZNK7Riemann12SparseOctree4Cell8HasChildEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 7)
  br i1 %122, label %123, label %.loopexit

123:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %124 = call noundef i32 @_ZNK7Riemann12SparseOctree4Cell10GetChildIDEi(ptr noundef nonnull align 4 dereferenceable(52) %26, i32 noundef 7)
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(52) ptr @_ZNKSt6vectorIN7Riemann12SparseOctree4CellESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %125) #5
  store ptr %126, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  invoke void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %13, ptr noundef nonnull align 8 dereferenceable(268) %0, ptr noundef nonnull align 4 dereferenceable(52) %126)
          to label %127 unwind label %57

127:                                              ; preds = %123
  %128 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(24) %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br i1 %128, label %129, label %130

129:                                              ; preds = %127
  invoke void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %130 unwind label %55

130:                                              ; preds = %129, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %.loopexit

.loopexit:                                        ; preds = %130, %121
  %131 = call noundef i64 @_ZNKSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %.not = icmp eq i64 %131, 0
  br i1 %.not, label %._crit_edge35, label %24, !llvm.loop !14

132:                                              ; preds = %33, %47, %60
  %.pn24.pn.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %.pn24.pn, %47 ], [ %34, %33 ]
  call void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  resume { ptr, i32 } %.pn24.pn.pn.pn

._crit_edge35:                                    ; preds = %.loopexit, %._crit_edge
  call void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann12SparseOctree20InitializeQueryQueueERKN5Maths6TAABB3IfEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.29") align 8, ptr noundef nonnull align 8 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i32 } @_ZNK7Riemann7ListSetIiLi8EEixEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable3endEv(ptr dead_on_unwind noalias writable sret(%"class.Riemann::ListSet<int>::ValueEnumerable::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Riemann7ListSetIiLi8EE15ValueEnumerable8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann12SparseOctree10GetCellBoxERKNS0_4CellE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TAABB3") align 4, ptr noundef nonnull align 8 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(52)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKN7Riemann12SparseOctree4CellESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN7Riemann12SparseOctree4CellE", !6, i64 0, !6, i64 4, !13, i64 8, !7, i64 20}
!13 = !{!"_ZTSN5Maths8TVector3IiEE", !6, i64 0, !6, i64 4, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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