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

; 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::AABB" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", double }
%"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.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::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 }

@.str.1 = external hidden unnamed_addr constant [84 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.30 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj = external hidden unnamed_addr constant [53 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [70 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4aabb4Tree15validateMetricsEj(ptr noundef nonnull align 8 dereferenceable(233) %0, i32 noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %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 %"class.aabb::AABB", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %15 = load ptr, ptr %3, align 8
  %16 = load i32, ptr %4, align 4, !tbaa !9
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  br label %181

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %20 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %21 = load i32, ptr %4, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %22) #6
  %24 = getelementptr inbounds %"struct.aabb::Node", ptr %23, i32 0, i32 3
  %25 = load i32, ptr %24, align 8, !tbaa !11
  store i32 %25, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %26 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %28) #6
  %30 = getelementptr inbounds %"struct.aabb::Node", ptr %29, i32 0, i32 4
  %31 = load i32, ptr %30, align 4, !tbaa !19
  store i32 %31, ptr %6, align 4, !tbaa !9
  %32 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %33 = load i32, ptr %4, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #6
  %36 = call noundef zeroext i1 @_ZNK4aabb4Node6isLeafEv(ptr noundef nonnull align 8 dereferenceable(104) %35)
  br i1 %36, label %37, label %61

37:                                               ; preds = %19
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  br label %43

41:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.1, i32 noundef 1166, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %40
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = icmp eq i32 %44, -1
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  br label %49

47:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.31, ptr noundef @.str.1, i32 noundef 1167, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

48:                                               ; No predecessors!
  br label %49

49:                                               ; preds = %48, %46
  %50 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %51 = load i32, ptr %4, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #6
  %54 = getelementptr inbounds %"struct.aabb::Node", ptr %53, i32 0, i32 5
  %55 = load i32, ptr %54, align 8, !tbaa !20
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %49
  br label %60

58:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.1, i32 noundef 1168, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59, %57
  store i32 1, ptr %7, align 4
  br label %179

61:                                               ; preds = %19
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 4
  %64 = load i32, ptr %63, align 4, !tbaa !21
  %65 = icmp ult i32 %62, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %69

67:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 1172, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

68:                                               ; No predecessors!
  br label %69

69:                                               ; preds = %68, %66
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 4
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = icmp ult i32 %70, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %69
  br label %77

75:                                               ; preds = %69
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 1173, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %78 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %79 = load i32, ptr %5, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #6
  %82 = getelementptr inbounds %"struct.aabb::Node", ptr %81, i32 0, i32 5
  %83 = load i32, ptr %82, align 8, !tbaa !20
  store i32 %83, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %84 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %85 = load i32, ptr %6, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #6
  %88 = getelementptr inbounds %"struct.aabb::Node", ptr %87, i32 0, i32 5
  %89 = load i32, ptr %88, align 8, !tbaa !20
  store i32 %89, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = add nsw i32 1, %91
  store i32 %92, ptr %10, align 4, !tbaa !9
  %93 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %94 = load i32, ptr %4, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %95) #6
  %97 = getelementptr inbounds %"struct.aabb::Node", ptr %96, i32 0, i32 5
  %98 = load i32, ptr %97, align 8, !tbaa !20
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = icmp eq i32 %98, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %77
  br label %104

102:                                              ; preds = %77
  call void @__assert_fail(ptr noundef @.str.35, ptr noundef @.str.1, i32 noundef 1179, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

103:                                              ; No predecessors!
  br label %104

104:                                              ; preds = %103, %101
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #6
  call void @_ZN4aabb4AABBC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %11)
  %105 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #6
  %109 = getelementptr inbounds %"struct.aabb::Node", ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %111 = load i32, ptr %6, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #6
  %114 = getelementptr inbounds %"struct.aabb::Node", ptr %113, i32 0, i32 0
  invoke void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %11, ptr noundef nonnull align 8 dereferenceable(80) %109, ptr noundef nonnull align 8 dereferenceable(80) %114)
          to label %115 unwind label %122

115:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %171, %115
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 6
  %119 = load i32, ptr %118, align 4, !tbaa !40
  %120 = icmp ult i32 %117, %119
  br i1 %120, label %126, label %121

121:                                              ; preds = %116
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %174

122:                                              ; preds = %176, %174, %104
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %13, align 4
  call void @_ZN4aabb4AABBD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %182

126:                                              ; preds = %116
  %127 = getelementptr inbounds %"class.aabb::AABB", ptr %11, i32 0, i32 0
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129) #6
  %131 = load double, ptr %130, align 8, !tbaa !41
  %132 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %133 = load i32, ptr %4, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #6
  %136 = getelementptr inbounds %"struct.aabb::Node", ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %"class.aabb::AABB", ptr %136, i32 0, i32 0
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %139) #6
  %141 = load double, ptr %140, align 8, !tbaa !41
  %142 = fsub double %131, %141
  %143 = call double @llvm.fabs.f64(double %142)
  %144 = fcmp olt double %143, 0x3EB0C6F7A0B5ED8D
  br i1 %144, label %145, label %146

145:                                              ; preds = %126
  br label %148

146:                                              ; preds = %126
  call void @__assert_fail(ptr noundef @.str.36, ptr noundef @.str.1, i32 noundef 1186, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

147:                                              ; No predecessors!
  br label %148

148:                                              ; preds = %147, %145
  %149 = getelementptr inbounds %"class.aabb::AABB", ptr %11, i32 0, i32 1
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #6
  %153 = load double, ptr %152, align 8, !tbaa !41
  %154 = getelementptr inbounds %"class.aabb::Tree", ptr %15, i32 0, i32 2
  %155 = load i32, ptr %4, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #6
  %158 = getelementptr inbounds %"struct.aabb::Node", ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds %"class.aabb::AABB", ptr %158, i32 0, i32 1
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #6
  %163 = load double, ptr %162, align 8, !tbaa !41
  %164 = fsub double %153, %163
  %165 = call double @llvm.fabs.f64(double %164)
  %166 = fcmp olt double %165, 0x3EB0C6F7A0B5ED8D
  br i1 %166, label %167, label %168

167:                                              ; preds = %148
  br label %170

168:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.37, ptr noundef @.str.1, i32 noundef 1187, ptr noundef @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

169:                                              ; No predecessors!
  br label %170

170:                                              ; preds = %169, %167
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = add i32 %172, 1
  store i32 %173, ptr %14, align 4, !tbaa !9
  br label %116, !llvm.loop !42

174:                                              ; preds = %121
  %175 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @_ZNK4aabb4Tree15validateMetricsEj(ptr noundef nonnull align 8 dereferenceable(233) %15, i32 noundef %175)
          to label %176 unwind label %122

176:                                              ; preds = %174
  %177 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZNK4aabb4Tree15validateMetricsEj(ptr noundef nonnull align 8 dereferenceable(233) %15, i32 noundef %177)
          to label %178 unwind label %122

178:                                              ; preds = %176
  call void @_ZN4aabb4AABBD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  store i32 0, ptr %7, align 4
  br label %179

179:                                              ; preds = %178, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %180 = load i32, ptr %7, align 4
  switch i32 %180, label %187 [
    i32 0, label %181
    i32 1, label %181
  ]

181:                                              ; preds = %179, %179, %18
  ret void

182:                                              ; preds = %122
  %183 = load ptr, ptr %12, align 8
  %184 = load i32, ptr %13, align 4
  %185 = insertvalue { ptr, i32 } poison, ptr %183, 0
  %186 = insertvalue { ptr, i32 } %185, i32 %184, 1
  resume { ptr, i32 } %186

187:                                              ; preds = %179
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

declare void @_ZN4aabb4AABBC1Ev(ptr)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 88}
!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 92}
!20 = !{!12, !10, i64 96}
!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 = !{!22, !10, i64 44}
!41 = !{!18, !18, i64 0}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.aabb::AABB" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", double }
%"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 }

@.str.1 = external hidden unnamed_addr constant [84 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.30 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj = external hidden unnamed_addr constant [53 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [70 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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 #3 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4aabb4AABBD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

; 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 #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4aabb4Tree15validateMetricsEj(ptr noundef nonnull align 8 dereferenceable(233) %0, i32 noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.aabb::AABB", align 8
  %6 = icmp eq i32 %1, -1
  br i1 %6, label %90, label %7

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = zext i32 %1 to i64
  %10 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #6
  %11 = getelementptr inbounds i8, ptr %10, i64 88
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #6
  %14 = getelementptr inbounds i8, ptr %13, i64 92
  %15 = load i32, ptr %14, align 4, !tbaa !17
  %16 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #6
  %17 = tail call noundef zeroext i1 @_ZNK4aabb4Node6isLeafEv(ptr noundef nonnull align 8 dereferenceable(104) %16)
  br i1 %17, label %18, label %30

18:                                               ; preds = %7
  %19 = icmp eq i32 %12, -1
  br i1 %19, label %21, label %20

20:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.1, i32 noundef 1166, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

21:                                               ; preds = %18
  %22 = icmp eq i32 %15, -1
  br i1 %22, label %24, label %23

23:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.1, i32 noundef 1167, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

24:                                               ; preds = %21
  %25 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #6
  %26 = getelementptr inbounds i8, ptr %25, i64 96
  %27 = load i32, ptr %26, align 8, !tbaa !18
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %90, label %29

29:                                               ; preds = %24
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.1, i32 noundef 1168, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

30:                                               ; preds = %7
  %31 = getelementptr inbounds i8, ptr %0, i64 36
  %32 = load i32, ptr %31, align 4, !tbaa !19
  %33 = icmp ult i32 %12, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 1172, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

35:                                               ; preds = %30
  %36 = icmp ult i32 %15, %32
  br i1 %36, label %38, label %37

37:                                               ; preds = %35
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 1173, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %39 = zext i32 %12 to i64
  %40 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %39) #6
  %41 = getelementptr inbounds i8, ptr %40, i64 96
  %42 = load i32, ptr %41, align 8, !tbaa !18
  store i32 %42, ptr %3, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %43 = zext i32 %15 to i64
  %44 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %43) #6
  %45 = getelementptr inbounds i8, ptr %44, i64 96
  %46 = load i32, ptr %45, align 8, !tbaa !18
  store i32 %46, ptr %4, align 4, !tbaa !38
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %48 = load i32, ptr %47, align 4, !tbaa !38
  %49 = add nsw i32 %48, 1
  %50 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #6
  %51 = getelementptr inbounds i8, ptr %50, i64 96
  %52 = load i32, ptr %51, align 8, !tbaa !18
  %53 = icmp eq i32 %52, %49
  br i1 %53, label %55, label %54

54:                                               ; preds = %38
  call void @__assert_fail(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.1, i32 noundef 1179, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

55:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #6
  call void @_ZN4aabb4AABBC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %56 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %39) #6
  %57 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %43) #6
  invoke void @_ZN4aabb4AABB5mergeERKS0_S2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(80) %56, ptr noundef nonnull align 8 dereferenceable(80) %57)
          to label %.preheader unwind label %65

.preheader:                                       ; preds = %55
  %58 = getelementptr inbounds i8, ptr %0, i64 44
  %59 = load i32, ptr %58, align 4, !tbaa !39
  %.not = icmp eq i32 %59, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %60 = getelementptr inbounds i8, ptr %5, i64 24
  br label %67

61:                                               ; preds = %77
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = load i32, ptr %58, align 4, !tbaa !39
  %63 = zext i32 %62 to i64
  %64 = icmp ult i64 %indvars.iv.next, %63
  br i1 %64, label %67, label %._crit_edge, !llvm.loop !40

._crit_edge:                                      ; preds = %61, %.preheader
  invoke void @_ZNK4aabb4Tree15validateMetricsEj(ptr noundef nonnull align 8 dereferenceable(233) %0, i32 noundef %12)
          to label %88 unwind label %65

65:                                               ; preds = %88, %._crit_edge, %55
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4aabb4AABBD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  resume { ptr, i32 } %66

67:                                               ; preds = %.lr.ph, %61
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %61 ]
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #6
  %69 = load double, ptr %68, align 8, !tbaa !42
  %70 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #6
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %indvars.iv) #6
  %72 = load double, ptr %71, align 8, !tbaa !42
  %73 = fsub double %69, %72
  %74 = call double @llvm.fabs.f64(double %73)
  %75 = fcmp olt double %74, 0x3EB0C6F7A0B5ED8D
  br i1 %75, label %77, label %76

76:                                               ; preds = %67
  call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.1, i32 noundef 1186, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

77:                                               ; preds = %67
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %indvars.iv) #6
  %79 = load double, ptr %78, align 8, !tbaa !42
  %80 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNKSt6vectorIN4aabb4NodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #6
  %81 = getelementptr inbounds i8, ptr %80, i64 24
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %indvars.iv) #6
  %83 = load double, ptr %82, align 8, !tbaa !42
  %84 = fsub double %79, %83
  %85 = call double @llvm.fabs.f64(double %84)
  %86 = fcmp olt double %85, 0x3EB0C6F7A0B5ED8D
  br i1 %86, label %61, label %87

87:                                               ; preds = %77
  call void @__assert_fail(ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.1, i32 noundef 1187, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4aabb4Tree15validateMetricsEj) #7
  unreachable

88:                                               ; preds = %._crit_edge
  invoke void @_ZNK4aabb4Tree15validateMetricsEj(ptr noundef nonnull align 8 dereferenceable(233) %0, i32 noundef %15)
          to label %89 unwind label %65

89:                                               ; preds = %88
  call void @_ZN4aabb4AABBD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %90

90:                                               ; preds = %89, %24, %2
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

declare void @_ZN4aabb4AABBC1Ev(ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !16, i64 88}
!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 92}
!18 = !{!6, !16, i64 96}
!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 = !{!16, !16, i64 0}
!39 = !{!20, !16, i64 44}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!15, !15, i64 0}


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