; LLVM IR from gazebosim/gz-physics :: tpe/lib/src/aabb_tree/AABB.ll (ZN4aabb4Tree7balanceEj)

; 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.aabb::Tree" = type <{ i32, [4 x i8], %"class.std::vector.0", i32, i32, i32, i32, i8, [7 x i8], double, %"class.std::vector.5", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::unordered_map", i8, [7 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<aabb::Node, std::allocator<aabb::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<aabb::Node, std::allocator<aabb::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<aabb::Node, std::allocator<aabb::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aabb::Node, std::allocator<aabb::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.aabb::Node" = type { %"class.aabb::AABB", i32, i32, i32, i32, i32, i32 }
%"class.aabb::AABB" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", double }

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj = external hidden unnamed_addr constant [47 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4aabb4Node6isLeafEv(ptr noundef nonnull align 8 dereferenceable(104)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4aabb4Tree7balanceEj(ptr noundef nonnull align 8 dereferenceable(233) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca i32, align 4
  %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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %14 = load ptr, ptr %4, align 8
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = icmp ne i32 %15, -1
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  br label %20

18:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 858, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #6
  %25 = call noundef zeroext i1 @_ZNK4aabb4Node6isLeafEv(ptr noundef nonnull align 8 dereferenceable(104) %24)
  br i1 %25, label %34, label %26

26:                                               ; preds = %20
  %27 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #6
  %31 = getelementptr inbounds %"struct.aabb::Node", ptr %30, i32 0, i32 5
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = icmp slt i32 %32, 2
  br i1 %33, label %34, label %36

34:                                               ; preds = %26, %20
  %35 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %35, ptr %3, align 4
  br label %694

36:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %37 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #6
  %41 = getelementptr inbounds %"struct.aabb::Node", ptr %40, i32 0, i32 3
  %42 = load i32, ptr %41, align 8, !tbaa !19
  store i32 %42, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %43 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %45) #6
  %47 = getelementptr inbounds %"struct.aabb::Node", ptr %46, i32 0, i32 4
  %48 = load i32, ptr %47, align 4, !tbaa !20
  store i32 %48, ptr %7, align 4, !tbaa !9
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 4
  %51 = load i32, ptr %50, align 4, !tbaa !21
  %52 = icmp ult i32 %49, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %36
  br label %56

54:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 866, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

55:                                               ; No predecessors!
  br label %56

56:                                               ; preds = %55, %53
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 4
  %59 = load i32, ptr %58, align 4, !tbaa !21
  %60 = icmp ult i32 %57, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %56
  br label %64

62:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 867, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

63:                                               ; No predecessors!
  br label %64

64:                                               ; preds = %63, %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %65 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #6
  %69 = getelementptr inbounds %"struct.aabb::Node", ptr %68, i32 0, i32 5
  %70 = load i32, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73) #6
  %75 = getelementptr inbounds %"struct.aabb::Node", ptr %74, i32 0, i32 5
  %76 = load i32, ptr %75, align 8, !tbaa !11
  %77 = sub nsw i32 %70, %76
  store i32 %77, ptr %8, align 4, !tbaa !9
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = icmp sgt i32 %78, 1
  br i1 %79, label %80, label %384

80:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %81 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83) #6
  %85 = getelementptr inbounds %"struct.aabb::Node", ptr %84, i32 0, i32 3
  %86 = load i32, ptr %85, align 8, !tbaa !19
  store i32 %86, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %87 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #6
  %91 = getelementptr inbounds %"struct.aabb::Node", ptr %90, i32 0, i32 4
  %92 = load i32, ptr %91, align 4, !tbaa !20
  store i32 %92, ptr %10, align 4, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 4
  %95 = load i32, ptr %94, align 4, !tbaa !21
  %96 = icmp ult i32 %93, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %80
  br label %100

98:                                               ; preds = %80
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.1, i32 noundef 877, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99, %97
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 4
  %103 = load i32, ptr %102, align 4, !tbaa !21
  %104 = icmp ult i32 %101, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %100
  br label %108

106:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.1, i32 noundef 878, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107, %105
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #6
  %114 = getelementptr inbounds %"struct.aabb::Node", ptr %113, i32 0, i32 3
  store i32 %109, ptr %114, align 8, !tbaa !19
  %115 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %116 = load i32, ptr %5, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #6
  %119 = getelementptr inbounds %"struct.aabb::Node", ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 8, !tbaa !40
  %121 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %123) #6
  %125 = getelementptr inbounds %"struct.aabb::Node", ptr %124, i32 0, i32 1
  store i32 %120, ptr %125, align 8, !tbaa !40
  %126 = load i32, ptr %7, align 4, !tbaa !9
  %127 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %128 = load i32, ptr %5, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129) #6
  %131 = getelementptr inbounds %"struct.aabb::Node", ptr %130, i32 0, i32 1
  store i32 %126, ptr %131, align 8, !tbaa !40
  %132 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %133 = load i32, ptr %7, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #6
  %136 = getelementptr inbounds %"struct.aabb::Node", ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !40
  %138 = icmp ne i32 %137, -1
  br i1 %138, label %139, label %195

139:                                              ; preds = %108
  %140 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %141 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %142 = load i32, ptr %7, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #6
  %145 = getelementptr inbounds %"struct.aabb::Node", ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 8, !tbaa !40
  %147 = zext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %147) #6
  %149 = getelementptr inbounds %"struct.aabb::Node", ptr %148, i32 0, i32 3
  %150 = load i32, ptr %149, align 8, !tbaa !19
  %151 = load i32, ptr %5, align 4, !tbaa !9
  %152 = icmp eq i32 %150, %151
  br i1 %152, label %153, label %165

153:                                              ; preds = %139
  %154 = load i32, ptr %7, align 4, !tbaa !9
  %155 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %156 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #6
  %160 = getelementptr inbounds %"struct.aabb::Node", ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !40
  %162 = zext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %162) #6
  %164 = getelementptr inbounds %"struct.aabb::Node", ptr %163, i32 0, i32 3
  store i32 %154, ptr %164, align 8, !tbaa !19
  br label %194

165:                                              ; preds = %139
  %166 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %167 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %168 = load i32, ptr %7, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #6
  %171 = getelementptr inbounds %"struct.aabb::Node", ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 8, !tbaa !40
  %173 = zext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %173) #6
  %175 = getelementptr inbounds %"struct.aabb::Node", ptr %174, i32 0, i32 4
  %176 = load i32, ptr %175, align 4, !tbaa !20
  %177 = load i32, ptr %5, align 4, !tbaa !9
  %178 = icmp eq i32 %176, %177
  br i1 %178, label %179, label %180

179:                                              ; preds = %165
  br label %182

180:                                              ; preds = %165
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.1, i32 noundef 891, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

181:                                              ; No predecessors!
  br label %182

182:                                              ; preds = %181, %179
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %185 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %186 = load i32, ptr %7, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %187) #6
  %189 = getelementptr inbounds %"struct.aabb::Node", ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 8, !tbaa !40
  %191 = zext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %191) #6
  %193 = getelementptr inbounds %"struct.aabb::Node", ptr %192, i32 0, i32 4
  store i32 %183, ptr %193, align 4, !tbaa !20
  br label %194

194:                                              ; preds = %182, %153
  br label %198

195:                                              ; preds = %108
  %196 = load i32, ptr %7, align 4, !tbaa !9
  %197 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 0
  store i32 %196, ptr %197, align 8, !tbaa !41
  br label %198

198:                                              ; preds = %195, %194
  %199 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %200 = load i32, ptr %9, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201) #6
  %203 = getelementptr inbounds %"struct.aabb::Node", ptr %202, i32 0, i32 5
  %204 = load i32, ptr %203, align 8, !tbaa !11
  %205 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %206 = load i32, ptr %10, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %207) #6
  %209 = getelementptr inbounds %"struct.aabb::Node", ptr %208, i32 0, i32 5
  %210 = load i32, ptr %209, align 8, !tbaa !11
  %211 = icmp sgt i32 %204, %210
  br i1 %211, label %212, label %297

212:                                              ; preds = %198
  %213 = load i32, ptr %9, align 4, !tbaa !9
  %214 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %215 = load i32, ptr %7, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216) #6
  %218 = getelementptr inbounds %"struct.aabb::Node", ptr %217, i32 0, i32 4
  store i32 %213, ptr %218, align 4, !tbaa !20
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %221 = load i32, ptr %5, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %220, i64 noundef %222) #6
  %224 = getelementptr inbounds %"struct.aabb::Node", ptr %223, i32 0, i32 4
  store i32 %219, ptr %224, align 4, !tbaa !20
  %225 = load i32, ptr %5, align 4, !tbaa !9
  %226 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %227 = load i32, ptr %10, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %228) #6
  %230 = getelementptr inbounds %"struct.aabb::Node", ptr %229, i32 0, i32 1
  store i32 %225, ptr %230, align 8, !tbaa !40
  %231 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %232 = load i32, ptr %5, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %233) #6
  %235 = getelementptr inbounds %"struct.aabb::Node", ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %237 = load i32, ptr %6, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %238) #6
  %240 = getelementptr inbounds %"struct.aabb::Node", ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %242 = load i32, ptr %10, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %243) #6
  %245 = getelementptr inbounds %"struct.aabb::Node", ptr %244, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %235, ptr noundef nonnull align 8 dereferenceable(80) %240, ptr noundef nonnull align 8 dereferenceable(80) %245)
  %246 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %247 = load i32, ptr %7, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %246, i64 noundef %248) #6
  %250 = getelementptr inbounds %"struct.aabb::Node", ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %252 = load i32, ptr %5, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %251, i64 noundef %253) #6
  %255 = getelementptr inbounds %"struct.aabb::Node", ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %257 = load i32, ptr %9, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %256, i64 noundef %258) #6
  %260 = getelementptr inbounds %"struct.aabb::Node", ptr %259, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %250, ptr noundef nonnull align 8 dereferenceable(80) %255, ptr noundef nonnull align 8 dereferenceable(80) %260)
  %261 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %262 = load i32, ptr %6, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %263) #6
  %265 = getelementptr inbounds %"struct.aabb::Node", ptr %264, i32 0, i32 5
  %266 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %267 = load i32, ptr %10, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %268) #6
  %270 = getelementptr inbounds %"struct.aabb::Node", ptr %269, i32 0, i32 5
  %271 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %265, ptr noundef nonnull align 4 dereferenceable(4) %270)
  %272 = load i32, ptr %271, align 4, !tbaa !9
  %273 = add nsw i32 1, %272
  %274 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %275 = load i32, ptr %5, align 4, !tbaa !9
  %276 = zext i32 %275 to i64
  %277 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %276) #6
  %278 = getelementptr inbounds %"struct.aabb::Node", ptr %277, i32 0, i32 5
  store i32 %273, ptr %278, align 8, !tbaa !11
  %279 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %280 = load i32, ptr %5, align 4, !tbaa !9
  %281 = zext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %279, i64 noundef %281) #6
  %283 = getelementptr inbounds %"struct.aabb::Node", ptr %282, i32 0, i32 5
  %284 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %285 = load i32, ptr %9, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %284, i64 noundef %286) #6
  %288 = getelementptr inbounds %"struct.aabb::Node", ptr %287, i32 0, i32 5
  %289 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %283, ptr noundef nonnull align 4 dereferenceable(4) %288)
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = add nsw i32 1, %290
  %292 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %293 = load i32, ptr %7, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %292, i64 noundef %294) #6
  %296 = getelementptr inbounds %"struct.aabb::Node", ptr %295, i32 0, i32 5
  store i32 %291, ptr %296, align 8, !tbaa !11
  br label %382

297:                                              ; preds = %198
  %298 = load i32, ptr %10, align 4, !tbaa !9
  %299 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %300 = load i32, ptr %7, align 4, !tbaa !9
  %301 = zext i32 %300 to i64
  %302 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %299, i64 noundef %301) #6
  %303 = getelementptr inbounds %"struct.aabb::Node", ptr %302, i32 0, i32 4
  store i32 %298, ptr %303, align 4, !tbaa !20
  %304 = load i32, ptr %9, align 4, !tbaa !9
  %305 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %306 = load i32, ptr %5, align 4, !tbaa !9
  %307 = zext i32 %306 to i64
  %308 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %307) #6
  %309 = getelementptr inbounds %"struct.aabb::Node", ptr %308, i32 0, i32 4
  store i32 %304, ptr %309, align 4, !tbaa !20
  %310 = load i32, ptr %5, align 4, !tbaa !9
  %311 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %312 = load i32, ptr %9, align 4, !tbaa !9
  %313 = zext i32 %312 to i64
  %314 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %311, i64 noundef %313) #6
  %315 = getelementptr inbounds %"struct.aabb::Node", ptr %314, i32 0, i32 1
  store i32 %310, ptr %315, align 8, !tbaa !40
  %316 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %317 = load i32, ptr %5, align 4, !tbaa !9
  %318 = zext i32 %317 to i64
  %319 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %316, i64 noundef %318) #6
  %320 = getelementptr inbounds %"struct.aabb::Node", ptr %319, i32 0, i32 0
  %321 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %322 = load i32, ptr %6, align 4, !tbaa !9
  %323 = zext i32 %322 to i64
  %324 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %321, i64 noundef %323) #6
  %325 = getelementptr inbounds %"struct.aabb::Node", ptr %324, i32 0, i32 0
  %326 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %327 = load i32, ptr %9, align 4, !tbaa !9
  %328 = zext i32 %327 to i64
  %329 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %326, i64 noundef %328) #6
  %330 = getelementptr inbounds %"struct.aabb::Node", ptr %329, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %320, ptr noundef nonnull align 8 dereferenceable(80) %325, ptr noundef nonnull align 8 dereferenceable(80) %330)
  %331 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %332 = load i32, ptr %7, align 4, !tbaa !9
  %333 = zext i32 %332 to i64
  %334 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %331, i64 noundef %333) #6
  %335 = getelementptr inbounds %"struct.aabb::Node", ptr %334, i32 0, i32 0
  %336 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %337 = load i32, ptr %5, align 4, !tbaa !9
  %338 = zext i32 %337 to i64
  %339 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %336, i64 noundef %338) #6
  %340 = getelementptr inbounds %"struct.aabb::Node", ptr %339, i32 0, i32 0
  %341 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %342 = load i32, ptr %10, align 4, !tbaa !9
  %343 = zext i32 %342 to i64
  %344 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %341, i64 noundef %343) #6
  %345 = getelementptr inbounds %"struct.aabb::Node", ptr %344, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %335, ptr noundef nonnull align 8 dereferenceable(80) %340, ptr noundef nonnull align 8 dereferenceable(80) %345)
  %346 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %347 = load i32, ptr %6, align 4, !tbaa !9
  %348 = zext i32 %347 to i64
  %349 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %346, i64 noundef %348) #6
  %350 = getelementptr inbounds %"struct.aabb::Node", ptr %349, i32 0, i32 5
  %351 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %352 = load i32, ptr %9, align 4, !tbaa !9
  %353 = zext i32 %352 to i64
  %354 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %351, i64 noundef %353) #6
  %355 = getelementptr inbounds %"struct.aabb::Node", ptr %354, i32 0, i32 5
  %356 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %350, ptr noundef nonnull align 4 dereferenceable(4) %355)
  %357 = load i32, ptr %356, align 4, !tbaa !9
  %358 = add nsw i32 1, %357
  %359 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %360 = load i32, ptr %5, align 4, !tbaa !9
  %361 = zext i32 %360 to i64
  %362 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %359, i64 noundef %361) #6
  %363 = getelementptr inbounds %"struct.aabb::Node", ptr %362, i32 0, i32 5
  store i32 %358, ptr %363, align 8, !tbaa !11
  %364 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %365 = load i32, ptr %5, align 4, !tbaa !9
  %366 = zext i32 %365 to i64
  %367 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %364, i64 noundef %366) #6
  %368 = getelementptr inbounds %"struct.aabb::Node", ptr %367, i32 0, i32 5
  %369 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %370 = load i32, ptr %10, align 4, !tbaa !9
  %371 = zext i32 %370 to i64
  %372 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %369, i64 noundef %371) #6
  %373 = getelementptr inbounds %"struct.aabb::Node", ptr %372, i32 0, i32 5
  %374 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %368, ptr noundef nonnull align 4 dereferenceable(4) %373)
  %375 = load i32, ptr %374, align 4, !tbaa !9
  %376 = add nsw i32 1, %375
  %377 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %378 = load i32, ptr %7, align 4, !tbaa !9
  %379 = zext i32 %378 to i64
  %380 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %377, i64 noundef %379) #6
  %381 = getelementptr inbounds %"struct.aabb::Node", ptr %380, i32 0, i32 5
  store i32 %376, ptr %381, align 8, !tbaa !11
  br label %382

382:                                              ; preds = %297, %212
  %383 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %383, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %693

384:                                              ; preds = %64
  %385 = load i32, ptr %8, align 4, !tbaa !9
  %386 = icmp slt i32 %385, -1
  br i1 %386, label %387, label %691

387:                                              ; preds = %384
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %388 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %389 = load i32, ptr %6, align 4, !tbaa !9
  %390 = zext i32 %389 to i64
  %391 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %388, i64 noundef %390) #6
  %392 = getelementptr inbounds %"struct.aabb::Node", ptr %391, i32 0, i32 3
  %393 = load i32, ptr %392, align 8, !tbaa !19
  store i32 %393, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %394 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %395 = load i32, ptr %6, align 4, !tbaa !9
  %396 = zext i32 %395 to i64
  %397 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %394, i64 noundef %396) #6
  %398 = getelementptr inbounds %"struct.aabb::Node", ptr %397, i32 0, i32 4
  %399 = load i32, ptr %398, align 4, !tbaa !20
  store i32 %399, ptr %13, align 4, !tbaa !9
  %400 = load i32, ptr %12, align 4, !tbaa !9
  %401 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 4
  %402 = load i32, ptr %401, align 4, !tbaa !21
  %403 = icmp ult i32 %400, %402
  br i1 %403, label %404, label %405

404:                                              ; preds = %387
  br label %407

405:                                              ; preds = %387
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.1, i32 noundef 930, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

406:                                              ; No predecessors!
  br label %407

407:                                              ; preds = %406, %404
  %408 = load i32, ptr %13, align 4, !tbaa !9
  %409 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 4
  %410 = load i32, ptr %409, align 4, !tbaa !21
  %411 = icmp ult i32 %408, %410
  br i1 %411, label %412, label %413

412:                                              ; preds = %407
  br label %415

413:                                              ; preds = %407
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.1, i32 noundef 931, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

414:                                              ; No predecessors!
  br label %415

415:                                              ; preds = %414, %412
  %416 = load i32, ptr %5, align 4, !tbaa !9
  %417 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %418 = load i32, ptr %6, align 4, !tbaa !9
  %419 = zext i32 %418 to i64
  %420 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %417, i64 noundef %419) #6
  %421 = getelementptr inbounds %"struct.aabb::Node", ptr %420, i32 0, i32 3
  store i32 %416, ptr %421, align 8, !tbaa !19
  %422 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %423 = load i32, ptr %5, align 4, !tbaa !9
  %424 = zext i32 %423 to i64
  %425 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %422, i64 noundef %424) #6
  %426 = getelementptr inbounds %"struct.aabb::Node", ptr %425, i32 0, i32 1
  %427 = load i32, ptr %426, align 8, !tbaa !40
  %428 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %429 = load i32, ptr %6, align 4, !tbaa !9
  %430 = zext i32 %429 to i64
  %431 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %428, i64 noundef %430) #6
  %432 = getelementptr inbounds %"struct.aabb::Node", ptr %431, i32 0, i32 1
  store i32 %427, ptr %432, align 8, !tbaa !40
  %433 = load i32, ptr %6, align 4, !tbaa !9
  %434 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %435 = load i32, ptr %5, align 4, !tbaa !9
  %436 = zext i32 %435 to i64
  %437 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %434, i64 noundef %436) #6
  %438 = getelementptr inbounds %"struct.aabb::Node", ptr %437, i32 0, i32 1
  store i32 %433, ptr %438, align 8, !tbaa !40
  %439 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %440 = load i32, ptr %6, align 4, !tbaa !9
  %441 = zext i32 %440 to i64
  %442 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %439, i64 noundef %441) #6
  %443 = getelementptr inbounds %"struct.aabb::Node", ptr %442, i32 0, i32 1
  %444 = load i32, ptr %443, align 8, !tbaa !40
  %445 = icmp ne i32 %444, -1
  br i1 %445, label %446, label %502

446:                                              ; preds = %415
  %447 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %448 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %449 = load i32, ptr %6, align 4, !tbaa !9
  %450 = zext i32 %449 to i64
  %451 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %448, i64 noundef %450) #6
  %452 = getelementptr inbounds %"struct.aabb::Node", ptr %451, i32 0, i32 1
  %453 = load i32, ptr %452, align 8, !tbaa !40
  %454 = zext i32 %453 to i64
  %455 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %447, i64 noundef %454) #6
  %456 = getelementptr inbounds %"struct.aabb::Node", ptr %455, i32 0, i32 3
  %457 = load i32, ptr %456, align 8, !tbaa !19
  %458 = load i32, ptr %5, align 4, !tbaa !9
  %459 = icmp eq i32 %457, %458
  br i1 %459, label %460, label %472

460:                                              ; preds = %446
  %461 = load i32, ptr %6, align 4, !tbaa !9
  %462 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %463 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %464 = load i32, ptr %6, align 4, !tbaa !9
  %465 = zext i32 %464 to i64
  %466 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %463, i64 noundef %465) #6
  %467 = getelementptr inbounds %"struct.aabb::Node", ptr %466, i32 0, i32 1
  %468 = load i32, ptr %467, align 8, !tbaa !40
  %469 = zext i32 %468 to i64
  %470 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %462, i64 noundef %469) #6
  %471 = getelementptr inbounds %"struct.aabb::Node", ptr %470, i32 0, i32 3
  store i32 %461, ptr %471, align 8, !tbaa !19
  br label %501

472:                                              ; preds = %446
  %473 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %474 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %475 = load i32, ptr %6, align 4, !tbaa !9
  %476 = zext i32 %475 to i64
  %477 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %474, i64 noundef %476) #6
  %478 = getelementptr inbounds %"struct.aabb::Node", ptr %477, i32 0, i32 1
  %479 = load i32, ptr %478, align 8, !tbaa !40
  %480 = zext i32 %479 to i64
  %481 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %473, i64 noundef %480) #6
  %482 = getelementptr inbounds %"struct.aabb::Node", ptr %481, i32 0, i32 4
  %483 = load i32, ptr %482, align 4, !tbaa !20
  %484 = load i32, ptr %5, align 4, !tbaa !9
  %485 = icmp eq i32 %483, %484
  br i1 %485, label %486, label %487

486:                                              ; preds = %472
  br label %489

487:                                              ; preds = %472
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.1, i32 noundef 944, ptr noundef @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #5
  unreachable

488:                                              ; No predecessors!
  br label %489

489:                                              ; preds = %488, %486
  %490 = load i32, ptr %6, align 4, !tbaa !9
  %491 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %492 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %493 = load i32, ptr %6, align 4, !tbaa !9
  %494 = zext i32 %493 to i64
  %495 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %492, i64 noundef %494) #6
  %496 = getelementptr inbounds %"struct.aabb::Node", ptr %495, i32 0, i32 1
  %497 = load i32, ptr %496, align 8, !tbaa !40
  %498 = zext i32 %497 to i64
  %499 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %491, i64 noundef %498) #6
  %500 = getelementptr inbounds %"struct.aabb::Node", ptr %499, i32 0, i32 4
  store i32 %490, ptr %500, align 4, !tbaa !20
  br label %501

501:                                              ; preds = %489, %460
  br label %505

502:                                              ; preds = %415
  %503 = load i32, ptr %6, align 4, !tbaa !9
  %504 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 0
  store i32 %503, ptr %504, align 8, !tbaa !41
  br label %505

505:                                              ; preds = %502, %501
  %506 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %507 = load i32, ptr %12, align 4, !tbaa !9
  %508 = zext i32 %507 to i64
  %509 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %506, i64 noundef %508) #6
  %510 = getelementptr inbounds %"struct.aabb::Node", ptr %509, i32 0, i32 5
  %511 = load i32, ptr %510, align 8, !tbaa !11
  %512 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %513 = load i32, ptr %13, align 4, !tbaa !9
  %514 = zext i32 %513 to i64
  %515 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %512, i64 noundef %514) #6
  %516 = getelementptr inbounds %"struct.aabb::Node", ptr %515, i32 0, i32 5
  %517 = load i32, ptr %516, align 8, !tbaa !11
  %518 = icmp sgt i32 %511, %517
  br i1 %518, label %519, label %604

519:                                              ; preds = %505
  %520 = load i32, ptr %12, align 4, !tbaa !9
  %521 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %522 = load i32, ptr %6, align 4, !tbaa !9
  %523 = zext i32 %522 to i64
  %524 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %521, i64 noundef %523) #6
  %525 = getelementptr inbounds %"struct.aabb::Node", ptr %524, i32 0, i32 4
  store i32 %520, ptr %525, align 4, !tbaa !20
  %526 = load i32, ptr %13, align 4, !tbaa !9
  %527 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %528 = load i32, ptr %5, align 4, !tbaa !9
  %529 = zext i32 %528 to i64
  %530 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %527, i64 noundef %529) #6
  %531 = getelementptr inbounds %"struct.aabb::Node", ptr %530, i32 0, i32 3
  store i32 %526, ptr %531, align 8, !tbaa !19
  %532 = load i32, ptr %5, align 4, !tbaa !9
  %533 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %534 = load i32, ptr %13, align 4, !tbaa !9
  %535 = zext i32 %534 to i64
  %536 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %533, i64 noundef %535) #6
  %537 = getelementptr inbounds %"struct.aabb::Node", ptr %536, i32 0, i32 1
  store i32 %532, ptr %537, align 8, !tbaa !40
  %538 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %539 = load i32, ptr %5, align 4, !tbaa !9
  %540 = zext i32 %539 to i64
  %541 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %538, i64 noundef %540) #6
  %542 = getelementptr inbounds %"struct.aabb::Node", ptr %541, i32 0, i32 0
  %543 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %544 = load i32, ptr %7, align 4, !tbaa !9
  %545 = zext i32 %544 to i64
  %546 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %543, i64 noundef %545) #6
  %547 = getelementptr inbounds %"struct.aabb::Node", ptr %546, i32 0, i32 0
  %548 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %549 = load i32, ptr %13, align 4, !tbaa !9
  %550 = zext i32 %549 to i64
  %551 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %548, i64 noundef %550) #6
  %552 = getelementptr inbounds %"struct.aabb::Node", ptr %551, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %542, ptr noundef nonnull align 8 dereferenceable(80) %547, ptr noundef nonnull align 8 dereferenceable(80) %552)
  %553 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %554 = load i32, ptr %6, align 4, !tbaa !9
  %555 = zext i32 %554 to i64
  %556 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %553, i64 noundef %555) #6
  %557 = getelementptr inbounds %"struct.aabb::Node", ptr %556, i32 0, i32 0
  %558 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %559 = load i32, ptr %5, align 4, !tbaa !9
  %560 = zext i32 %559 to i64
  %561 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %558, i64 noundef %560) #6
  %562 = getelementptr inbounds %"struct.aabb::Node", ptr %561, i32 0, i32 0
  %563 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %564 = load i32, ptr %12, align 4, !tbaa !9
  %565 = zext i32 %564 to i64
  %566 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %563, i64 noundef %565) #6
  %567 = getelementptr inbounds %"struct.aabb::Node", ptr %566, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %557, ptr noundef nonnull align 8 dereferenceable(80) %562, ptr noundef nonnull align 8 dereferenceable(80) %567)
  %568 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %569 = load i32, ptr %7, align 4, !tbaa !9
  %570 = zext i32 %569 to i64
  %571 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %568, i64 noundef %570) #6
  %572 = getelementptr inbounds %"struct.aabb::Node", ptr %571, i32 0, i32 5
  %573 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %574 = load i32, ptr %13, align 4, !tbaa !9
  %575 = zext i32 %574 to i64
  %576 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %573, i64 noundef %575) #6
  %577 = getelementptr inbounds %"struct.aabb::Node", ptr %576, i32 0, i32 5
  %578 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %572, ptr noundef nonnull align 4 dereferenceable(4) %577)
  %579 = load i32, ptr %578, align 4, !tbaa !9
  %580 = add nsw i32 1, %579
  %581 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %582 = load i32, ptr %5, align 4, !tbaa !9
  %583 = zext i32 %582 to i64
  %584 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %581, i64 noundef %583) #6
  %585 = getelementptr inbounds %"struct.aabb::Node", ptr %584, i32 0, i32 5
  store i32 %580, ptr %585, align 8, !tbaa !11
  %586 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %587 = load i32, ptr %5, align 4, !tbaa !9
  %588 = zext i32 %587 to i64
  %589 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %586, i64 noundef %588) #6
  %590 = getelementptr inbounds %"struct.aabb::Node", ptr %589, i32 0, i32 5
  %591 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %592 = load i32, ptr %12, align 4, !tbaa !9
  %593 = zext i32 %592 to i64
  %594 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %591, i64 noundef %593) #6
  %595 = getelementptr inbounds %"struct.aabb::Node", ptr %594, i32 0, i32 5
  %596 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %590, ptr noundef nonnull align 4 dereferenceable(4) %595)
  %597 = load i32, ptr %596, align 4, !tbaa !9
  %598 = add nsw i32 1, %597
  %599 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %600 = load i32, ptr %6, align 4, !tbaa !9
  %601 = zext i32 %600 to i64
  %602 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %599, i64 noundef %601) #6
  %603 = getelementptr inbounds %"struct.aabb::Node", ptr %602, i32 0, i32 5
  store i32 %598, ptr %603, align 8, !tbaa !11
  br label %689

604:                                              ; preds = %505
  %605 = load i32, ptr %13, align 4, !tbaa !9
  %606 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %607 = load i32, ptr %6, align 4, !tbaa !9
  %608 = zext i32 %607 to i64
  %609 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %606, i64 noundef %608) #6
  %610 = getelementptr inbounds %"struct.aabb::Node", ptr %609, i32 0, i32 4
  store i32 %605, ptr %610, align 4, !tbaa !20
  %611 = load i32, ptr %12, align 4, !tbaa !9
  %612 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %613 = load i32, ptr %5, align 4, !tbaa !9
  %614 = zext i32 %613 to i64
  %615 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %612, i64 noundef %614) #6
  %616 = getelementptr inbounds %"struct.aabb::Node", ptr %615, i32 0, i32 3
  store i32 %611, ptr %616, align 8, !tbaa !19
  %617 = load i32, ptr %5, align 4, !tbaa !9
  %618 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %619 = load i32, ptr %12, align 4, !tbaa !9
  %620 = zext i32 %619 to i64
  %621 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %618, i64 noundef %620) #6
  %622 = getelementptr inbounds %"struct.aabb::Node", ptr %621, i32 0, i32 1
  store i32 %617, ptr %622, align 8, !tbaa !40
  %623 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %624 = load i32, ptr %5, align 4, !tbaa !9
  %625 = zext i32 %624 to i64
  %626 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %623, i64 noundef %625) #6
  %627 = getelementptr inbounds %"struct.aabb::Node", ptr %626, i32 0, i32 0
  %628 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %629 = load i32, ptr %7, align 4, !tbaa !9
  %630 = zext i32 %629 to i64
  %631 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %628, i64 noundef %630) #6
  %632 = getelementptr inbounds %"struct.aabb::Node", ptr %631, i32 0, i32 0
  %633 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %634 = load i32, ptr %12, align 4, !tbaa !9
  %635 = zext i32 %634 to i64
  %636 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %633, i64 noundef %635) #6
  %637 = getelementptr inbounds %"struct.aabb::Node", ptr %636, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %627, ptr noundef nonnull align 8 dereferenceable(80) %632, ptr noundef nonnull align 8 dereferenceable(80) %637)
  %638 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %639 = load i32, ptr %6, align 4, !tbaa !9
  %640 = zext i32 %639 to i64
  %641 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %638, i64 noundef %640) #6
  %642 = getelementptr inbounds %"struct.aabb::Node", ptr %641, i32 0, i32 0
  %643 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %644 = load i32, ptr %5, align 4, !tbaa !9
  %645 = zext i32 %644 to i64
  %646 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %643, i64 noundef %645) #6
  %647 = getelementptr inbounds %"struct.aabb::Node", ptr %646, i32 0, i32 0
  %648 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %649 = load i32, ptr %13, align 4, !tbaa !9
  %650 = zext i32 %649 to i64
  %651 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %648, i64 noundef %650) #6
  %652 = getelementptr inbounds %"struct.aabb::Node", ptr %651, i32 0, i32 0
  call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %642, ptr noundef nonnull align 8 dereferenceable(80) %647, ptr noundef nonnull align 8 dereferenceable(80) %652)
  %653 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %654 = load i32, ptr %7, align 4, !tbaa !9
  %655 = zext i32 %654 to i64
  %656 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %653, i64 noundef %655) #6
  %657 = getelementptr inbounds %"struct.aabb::Node", ptr %656, i32 0, i32 5
  %658 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %659 = load i32, ptr %12, align 4, !tbaa !9
  %660 = zext i32 %659 to i64
  %661 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %658, i64 noundef %660) #6
  %662 = getelementptr inbounds %"struct.aabb::Node", ptr %661, i32 0, i32 5
  %663 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %657, ptr noundef nonnull align 4 dereferenceable(4) %662)
  %664 = load i32, ptr %663, align 4, !tbaa !9
  %665 = add nsw i32 1, %664
  %666 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %667 = load i32, ptr %5, align 4, !tbaa !9
  %668 = zext i32 %667 to i64
  %669 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %666, i64 noundef %668) #6
  %670 = getelementptr inbounds %"struct.aabb::Node", ptr %669, i32 0, i32 5
  store i32 %665, ptr %670, align 8, !tbaa !11
  %671 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %672 = load i32, ptr %5, align 4, !tbaa !9
  %673 = zext i32 %672 to i64
  %674 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %671, i64 noundef %673) #6
  %675 = getelementptr inbounds %"struct.aabb::Node", ptr %674, i32 0, i32 5
  %676 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %677 = load i32, ptr %13, align 4, !tbaa !9
  %678 = zext i32 %677 to i64
  %679 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %676, i64 noundef %678) #6
  %680 = getelementptr inbounds %"struct.aabb::Node", ptr %679, i32 0, i32 5
  %681 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %675, ptr noundef nonnull align 4 dereferenceable(4) %680)
  %682 = load i32, ptr %681, align 4, !tbaa !9
  %683 = add nsw i32 1, %682
  %684 = getelementptr inbounds %"class.aabb::Tree", ptr %14, i32 0, i32 2
  %685 = load i32, ptr %6, align 4, !tbaa !9
  %686 = zext i32 %685 to i64
  %687 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %684, i64 noundef %686) #6
  %688 = getelementptr inbounds %"struct.aabb::Node", ptr %687, i32 0, i32 5
  store i32 %683, ptr %688, align 8, !tbaa !11
  br label %689

689:                                              ; preds = %604, %519
  %690 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %690, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %693

691:                                              ; preds = %384
  %692 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %692, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %693

693:                                              ; preds = %691, %689, %382
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %694

694:                                              ; preds = %693, %34
  %695 = load i32, ptr %3, align 4
  ret i32 %695
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

attributes #0 = { noreturn 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 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 = { noreturn nounwind }
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 96}
!12 = !{!"_ZTSN4aabb4NodeE", !13, i64 0, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100}
!13 = !{!"_ZTSN4aabb4AABBE", !14, i64 0, !14, i64 24, !14, i64 48, !18, i64 72}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"double", !7, i64 0}
!19 = !{!12, !10, i64 88}
!20 = !{!12, !10, i64 92}
!21 = !{!22, !10, i64 36}
!22 = !{!"_ZTSN4aabb4TreeE", !10, i64 0, !23, i64 8, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !27, i64 48, !18, i64 56, !28, i64 64, !14, i64 104, !14, i64 128, !14, i64 152, !34, i64 176, !27, i64 232}
!23 = !{!"_ZTSSt6vectorIN4aabb4NodeESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN4aabb4NodeESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN4aabb4NodeESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4aabb4NodeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSSt6vectorIbSaIbEE", !29, i64 0}
!29 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !30, i64 0}
!30 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !32, i64 0, !32, i64 16, !6, i64 32}
!32 = !{!"_ZTSSt13_Bit_iterator", !33, i64 0}
!33 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !10, i64 8}
!34 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !36, i64 8, !37, i64 16, !36, i64 24, !38, i64 32, !6, i64 48}
!36 = !{!"long", !7, i64 0}
!37 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!38 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !39, i64 0, !36, i64 8}
!39 = !{!"float", !7, i64 0}
!40 = !{!12, !10, i64 80}
!41 = !{!22, !10, 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"

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj = external hidden unnamed_addr constant [47 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4aabb4Node6isLeafEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4aabb4Tree7balanceEj(ptr noundef nonnull align 8 dereferenceable(233) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %.not = icmp eq i32 %1, -1
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 858, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = zext i32 %1 to i64
  %7 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %8 = tail call noundef zeroext i1 @_ZNK4aabb4Node6isLeafEv(ptr noundef nonnull align 8 dereferenceable(104) %7)
  br i1 %8, label %213, label %9

9:                                                ; preds = %4
  %10 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %11 = getelementptr inbounds i8, ptr %10, i64 96
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = icmp slt i32 %12, 2
  br i1 %13, label %213, label %14

14:                                               ; preds = %9
  %15 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %16 = getelementptr inbounds i8, ptr %15, i64 88
  %17 = load i32, ptr %16, align 8, !tbaa !17
  %18 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %19 = getelementptr inbounds i8, ptr %18, i64 92
  %20 = load i32, ptr %19, align 4, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %0, i64 36
  %22 = load i32, ptr %21, align 4, !tbaa !19
  %23 = icmp ult i32 %17, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 866, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

25:                                               ; preds = %14
  %26 = icmp ult i32 %20, %22
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 867, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

28:                                               ; preds = %25
  %29 = zext i32 %20 to i64
  %30 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %31 = getelementptr inbounds i8, ptr %30, i64 96
  %32 = load i32, ptr %31, align 8, !tbaa !5
  %33 = zext i32 %17 to i64
  %34 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %35 = getelementptr inbounds i8, ptr %34, i64 96
  %36 = load i32, ptr %35, align 8, !tbaa !5
  %37 = sub nsw i32 %32, %36
  %38 = icmp sgt i32 %37, 1
  br i1 %38, label %39, label %112

39:                                               ; preds = %28
  %40 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %41 = getelementptr inbounds i8, ptr %40, i64 88
  %42 = load i32, ptr %41, align 8, !tbaa !17
  %43 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %44 = getelementptr inbounds i8, ptr %43, i64 92
  %45 = load i32, ptr %44, align 4, !tbaa !18
  %46 = load i32, ptr %21, align 4, !tbaa !19
  %47 = icmp ult i32 %42, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %39
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.1, i32 noundef 877, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

49:                                               ; preds = %39
  %50 = icmp ult i32 %45, %46
  br i1 %50, label %52, label %51

51:                                               ; preds = %49
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.1, i32 noundef 878, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

52:                                               ; preds = %49
  %53 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %54 = getelementptr inbounds i8, ptr %53, i64 88
  store i32 %1, ptr %54, align 8, !tbaa !17
  %55 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %56 = getelementptr inbounds i8, ptr %55, i64 80
  %57 = load i32, ptr %56, align 8, !tbaa !38
  %58 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %59 = getelementptr inbounds i8, ptr %58, i64 80
  store i32 %57, ptr %59, align 8, !tbaa !38
  %60 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %61 = getelementptr inbounds i8, ptr %60, i64 80
  store i32 %20, ptr %61, align 8, !tbaa !38
  %62 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %63 = getelementptr inbounds i8, ptr %62, i64 80
  %64 = load i32, ptr %63, align 8, !tbaa !38
  %.not144 = icmp eq i32 %64, -1
  br i1 %.not144, label %93, label %65

65:                                               ; preds = %52
  %66 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %67 = getelementptr inbounds i8, ptr %66, i64 80
  %68 = load i32, ptr %67, align 8, !tbaa !38
  %69 = zext i32 %68 to i64
  %70 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %69) #5
  %71 = getelementptr inbounds i8, ptr %70, i64 88
  %72 = load i32, ptr %71, align 8, !tbaa !17
  %73 = icmp eq i32 %72, %1
  %74 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %75 = getelementptr inbounds i8, ptr %74, i64 80
  %76 = load i32, ptr %75, align 8, !tbaa !38
  %77 = zext i32 %76 to i64
  %78 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %77) #5
  br i1 %73, label %79, label %81

79:                                               ; preds = %65
  %80 = getelementptr inbounds i8, ptr %78, i64 88
  store i32 %20, ptr %80, align 8, !tbaa !17
  br label %94

81:                                               ; preds = %65
  %82 = getelementptr inbounds i8, ptr %78, i64 92
  %83 = load i32, ptr %82, align 4, !tbaa !18
  %84 = icmp eq i32 %83, %1
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.1, i32 noundef 891, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

86:                                               ; preds = %81
  %87 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %88 = getelementptr inbounds i8, ptr %87, i64 80
  %89 = load i32, ptr %88, align 8, !tbaa !38
  %90 = zext i32 %89 to i64
  %91 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %90) #5
  %92 = getelementptr inbounds i8, ptr %91, i64 92
  store i32 %20, ptr %92, align 4, !tbaa !18
  br label %94

93:                                               ; preds = %52
  store i32 %20, ptr %0, align 8, !tbaa !39
  br label %94

94:                                               ; preds = %79, %86, %93
  %95 = zext i32 %42 to i64
  %96 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %95) #5
  %97 = getelementptr inbounds i8, ptr %96, i64 96
  %98 = load i32, ptr %97, align 8, !tbaa !5
  %99 = zext i32 %45 to i64
  %100 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %99) #5
  %101 = getelementptr inbounds i8, ptr %100, i64 96
  %102 = load i32, ptr %101, align 8, !tbaa !5
  %103 = icmp sgt i32 %98, %102
  %104 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %29) #5
  %105 = getelementptr inbounds i8, ptr %104, i64 92
  br i1 %103, label %106, label %109

106:                                              ; preds = %94
  store i32 %42, ptr %105, align 4, !tbaa !18
  %107 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %108 = getelementptr inbounds i8, ptr %107, i64 92
  store i32 %45, ptr %108, align 4, !tbaa !18
  br label %.sink.split

109:                                              ; preds = %94
  store i32 %45, ptr %105, align 4, !tbaa !18
  %110 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %111 = getelementptr inbounds i8, ptr %110, i64 92
  store i32 %42, ptr %111, align 4, !tbaa !18
  br label %.sink.split

112:                                              ; preds = %28
  %113 = icmp slt i32 %37, -1
  br i1 %113, label %114, label %213

114:                                              ; preds = %112
  %115 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %116 = getelementptr inbounds i8, ptr %115, i64 88
  %117 = load i32, ptr %116, align 8, !tbaa !17
  %118 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %119 = getelementptr inbounds i8, ptr %118, i64 92
  %120 = load i32, ptr %119, align 4, !tbaa !18
  %121 = load i32, ptr %21, align 4, !tbaa !19
  %122 = icmp ult i32 %117, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %114
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.1, i32 noundef 930, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

124:                                              ; preds = %114
  %125 = icmp ult i32 %120, %121
  br i1 %125, label %127, label %126

126:                                              ; preds = %124
  tail call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.1, i32 noundef 931, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

127:                                              ; preds = %124
  %128 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %129 = getelementptr inbounds i8, ptr %128, i64 88
  store i32 %1, ptr %129, align 8, !tbaa !17
  %130 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %131 = getelementptr inbounds i8, ptr %130, i64 80
  %132 = load i32, ptr %131, align 8, !tbaa !38
  %133 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %134 = getelementptr inbounds i8, ptr %133, i64 80
  store i32 %132, ptr %134, align 8, !tbaa !38
  %135 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %136 = getelementptr inbounds i8, ptr %135, i64 80
  store i32 %17, ptr %136, align 8, !tbaa !38
  %137 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %138 = getelementptr inbounds i8, ptr %137, i64 80
  %139 = load i32, ptr %138, align 8, !tbaa !38
  %.not143 = icmp eq i32 %139, -1
  br i1 %.not143, label %168, label %140

140:                                              ; preds = %127
  %141 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %142 = getelementptr inbounds i8, ptr %141, i64 80
  %143 = load i32, ptr %142, align 8, !tbaa !38
  %144 = zext i32 %143 to i64
  %145 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %144) #5
  %146 = getelementptr inbounds i8, ptr %145, i64 88
  %147 = load i32, ptr %146, align 8, !tbaa !17
  %148 = icmp eq i32 %147, %1
  %149 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %150 = getelementptr inbounds i8, ptr %149, i64 80
  %151 = load i32, ptr %150, align 8, !tbaa !38
  %152 = zext i32 %151 to i64
  %153 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %152) #5
  br i1 %148, label %154, label %156

154:                                              ; preds = %140
  %155 = getelementptr inbounds i8, ptr %153, i64 88
  store i32 %17, ptr %155, align 8, !tbaa !17
  br label %169

156:                                              ; preds = %140
  %157 = getelementptr inbounds i8, ptr %153, i64 92
  %158 = load i32, ptr %157, align 4, !tbaa !18
  %159 = icmp eq i32 %158, %1
  br i1 %159, label %161, label %160

160:                                              ; preds = %156
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.1, i32 noundef 944, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4aabb4Tree7balanceEj) #4
  unreachable

161:                                              ; preds = %156
  %162 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %163 = getelementptr inbounds i8, ptr %162, i64 80
  %164 = load i32, ptr %163, align 8, !tbaa !38
  %165 = zext i32 %164 to i64
  %166 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %165) #5
  %167 = getelementptr inbounds i8, ptr %166, i64 92
  store i32 %17, ptr %167, align 4, !tbaa !18
  br label %169

168:                                              ; preds = %127
  store i32 %17, ptr %0, align 8, !tbaa !39
  br label %169

169:                                              ; preds = %154, %161, %168
  %170 = zext i32 %117 to i64
  %171 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %170) #5
  %172 = getelementptr inbounds i8, ptr %171, i64 96
  %173 = load i32, ptr %172, align 8, !tbaa !5
  %174 = zext i32 %120 to i64
  %175 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %174) #5
  %176 = getelementptr inbounds i8, ptr %175, i64 96
  %177 = load i32, ptr %176, align 8, !tbaa !5
  %178 = icmp sgt i32 %173, %177
  %179 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %33) #5
  %180 = getelementptr inbounds i8, ptr %179, i64 92
  br i1 %178, label %181, label %184

181:                                              ; preds = %169
  store i32 %117, ptr %180, align 4, !tbaa !18
  %182 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %183 = getelementptr inbounds i8, ptr %182, i64 88
  store i32 %120, ptr %183, align 8, !tbaa !17
  br label %.sink.split

184:                                              ; preds = %169
  store i32 %120, ptr %180, align 4, !tbaa !18
  %185 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %186 = getelementptr inbounds i8, ptr %185, i64 88
  store i32 %117, ptr %186, align 8, !tbaa !17
  br label %.sink.split

.sink.split:                                      ; preds = %181, %184, %106, %109
  %.sink = phi i64 [ %95, %109 ], [ %99, %106 ], [ %170, %184 ], [ %174, %181 ]
  %.sink166 = phi i64 [ %33, %109 ], [ %33, %106 ], [ %29, %184 ], [ %29, %181 ]
  %.sink162 = phi i64 [ %29, %109 ], [ %29, %106 ], [ %33, %184 ], [ %33, %181 ]
  %.sink161 = phi i64 [ %99, %109 ], [ %95, %106 ], [ %174, %184 ], [ %170, %181 ]
  %.1.ph = phi i32 [ %20, %109 ], [ %20, %106 ], [ %17, %184 ], [ %17, %181 ]
  %187 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink) #5
  %188 = getelementptr inbounds i8, ptr %187, i64 80
  store i32 %1, ptr %188, align 8, !tbaa !38
  %189 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %190 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink166) #5
  %191 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink) #5
  tail call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %189, ptr noundef nonnull align 8 dereferenceable(80) %190, ptr noundef nonnull align 8 dereferenceable(80) %191)
  %192 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink162) #5
  %193 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %194 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink161) #5
  tail call void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %192, ptr noundef nonnull align 8 dereferenceable(80) %193, ptr noundef nonnull align 8 dereferenceable(80) %194)
  %195 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink166) #5
  %196 = getelementptr inbounds i8, ptr %195, i64 96
  %197 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink) #5
  %198 = getelementptr inbounds i8, ptr %197, i64 96
  %199 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %196, ptr noundef nonnull align 4 dereferenceable(4) %198)
  %200 = load i32, ptr %199, align 4, !tbaa !40
  %201 = add nsw i32 %200, 1
  %202 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %203 = getelementptr inbounds i8, ptr %202, i64 96
  store i32 %201, ptr %203, align 8, !tbaa !5
  %204 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6) #5
  %205 = getelementptr inbounds i8, ptr %204, i64 96
  %206 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink161) #5
  %207 = getelementptr inbounds i8, ptr %206, i64 96
  %208 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %205, ptr noundef nonnull align 4 dereferenceable(4) %207)
  %209 = load i32, ptr %208, align 4, !tbaa !40
  %210 = add nsw i32 %209, 1
  %211 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.sink162) #5
  %212 = getelementptr inbounds i8, ptr %211, i64 96
  store i32 %210, ptr %212, align 8, !tbaa !5
  br label %213

213:                                              ; preds = %.sink.split, %112, %4, %9
  %.1 = phi i32 [ %1, %9 ], [ %1, %4 ], [ %1, %112 ], [ %.1.ph, %.sink.split ]
  ret i32 %.1
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

attributes #0 = { noreturn 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
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, !16, i64 96}
!6 = !{!"_ZTSN4aabb4NodeE", !7, i64 0, !16, i64 80, !16, i64 84, !16, i64 88, !16, i64 92, !16, i64 96, !16, i64 100}
!7 = !{!"_ZTSN4aabb4AABBE", !8, i64 0, !8, i64 24, !8, i64 48, !15, i64 72}
!8 = !{!"_ZTSSt6vectorIdSaIdEE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"double", !13, i64 0}
!16 = !{!"int", !13, i64 0}
!17 = !{!6, !16, i64 88}
!18 = !{!6, !16, i64 92}
!19 = !{!20, !16, i64 36}
!20 = !{!"_ZTSN4aabb4TreeE", !16, i64 0, !21, i64 8, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !25, i64 48, !15, i64 56, !26, i64 64, !8, i64 104, !8, i64 128, !8, i64 152, !32, i64 176, !25, i64 232}
!21 = !{!"_ZTSSt6vectorIN4aabb4NodeESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN4aabb4NodeESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN4aabb4NodeESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4aabb4NodeESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!25 = !{!"bool", !13, i64 0}
!26 = !{!"_ZTSSt6vectorIbSaIbEE", !27, i64 0}
!27 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !28, i64 0}
!28 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !30, i64 0, !30, i64 16, !12, i64 32}
!30 = !{!"_ZTSSt13_Bit_iterator", !31, i64 0}
!31 = !{!"_ZTSSt18_Bit_iterator_base", !12, i64 0, !16, i64 8}
!32 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !34, i64 8, !35, i64 16, !34, i64 24, !36, i64 32, !12, i64 48}
!34 = !{!"long", !13, i64 0}
!35 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!36 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !37, i64 0, !34, i64 8}
!37 = !{!"float", !13, i64 0}
!38 = !{!6, !16, i64 80}
!39 = !{!20, !16, i64 0}
!40 = !{!16, !16, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass