; LLVM IR from atlantis13579/Riemann :: Src/Collision (DynamicAABBTree)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.Riemann::StaticStack.5" = type { i32, [32 x i32] }
%"struct.Riemann::IntersectResult" = type <{ i8, [7 x i8], %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::DynamicAABBTree" = type <{ i32, [4 x i8], %"class.std::vector", i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Riemann::DynamicAABBTree::Node, std::allocator<Riemann::DynamicAABBTree::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::DynamicAABBTree::Node, std::allocator<Riemann::DynamicAABBTree::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::DynamicAABBTree::Node, std::allocator<Riemann::DynamicAABBTree::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::DynamicAABBTree::Node, std::allocator<Riemann::DynamicAABBTree::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::DynamicAABBTree::Node" = type <{ %union.anon, %"class.Maths::TAABB3", i32, i32, i32, ptr, i8, [7 x i8] }>
%union.anon = type { i32 }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }
%"struct.Riemann::IntersectOption" = type { i32, %"struct.Riemann::CollisionData", ptr }
%"struct.Riemann::CollisionData" = type { i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE = external hidden unnamed_addr constant [109 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann11StaticStackIiLi32EEC2Ev(ptr noundef nonnull align 4 dereferenceable(132)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann11StaticStackIiLi32EE4pushEi(ptr noundef nonnull align 4 dereferenceable(132), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann11StaticStackIiLi32EE5emptyEv(ptr noundef nonnull align 4 dereferenceable(132)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7Riemann11StaticStackIiLi32EE3popEv(ptr noundef nonnull align 4 dereferenceable(132)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7Riemann11StaticStackIiLi32EE4fullEv(ptr noundef nonnull align 4 dereferenceable(132)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.Riemann::StaticStack.5", align 4
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.Riemann::IntersectResult", ptr %21, i32 0, i32 0
  store i8 0, ptr %22, align 8, !tbaa !9
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.Riemann::IntersectResult", ptr %23, i32 0, i32 2
  call void @_ZNSt6vectorIPN7Riemann8GeometryESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %25 = getelementptr inbounds %"class.Riemann::DynamicAABBTree", ptr %20, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !17
  %27 = icmp eq i32 %26, -1
  br i1 %27, label %28, label %29

28:                                               ; preds = %4
  store i1 false, ptr %5, align 1
  br label %180

29:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK7Riemann8Geometry28GetBoundingVolume_WorldSpaceEv(ptr noundef nonnull align 8 dereferenceable(204) %30)
  store ptr %31, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %32 = getelementptr inbounds %"class.Riemann::DynamicAABBTree", ptr %20, i32 0, i32 2
  %33 = getelementptr inbounds %"class.Riemann::DynamicAABBTree", ptr %20, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !17
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %35) #5
  store ptr %36, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %48, label %39

39:                                               ; preds = %29
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %41, i32 0, i32 1
  %43 = getelementptr inbounds %"class.Maths::TAABB3", ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds %"class.Maths::TAABB3", ptr %45, i32 0, i32 1
  %47 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKNS_8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %40, ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %46)
  br i1 %47, label %49, label %48

48:                                               ; preds = %39, %29
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %179

49:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 132, ptr %13) #5
  call void @_ZN7Riemann11StaticStackIiLi32EEC2Ev(ptr noundef nonnull align 4 dereferenceable(132) %13)
  %50 = getelementptr inbounds %"class.Riemann::DynamicAABBTree", ptr %20, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !17
  call void @_ZN7Riemann11StaticStackIiLi32EE4pushEi(ptr noundef nonnull align 4 dereferenceable(132) %13, i32 noundef %51)
  br label %52

52:                                               ; preds = %172, %49
  %53 = call noundef zeroext i1 @_ZNK7Riemann11StaticStackIiLi32EE5emptyEv(ptr noundef nonnull align 4 dereferenceable(132) %13)
  %54 = xor i1 %53, true
  br i1 %54, label %55, label %173

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %56 = getelementptr inbounds %"class.Riemann::DynamicAABBTree", ptr %20, i32 0, i32 2
  %57 = call noundef i32 @_ZN7Riemann11StaticStackIiLi32EE3popEv(ptr noundef nonnull align 4 dereferenceable(132) %13)
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %58) #5
  store ptr %59, ptr %14, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %167, %55
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %169

63:                                               ; preds = %60
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree4Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(49) %64)
  br i1 %65, label %66, label %91

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZN7RiemannL15OverlapGeometryEPKNS_8GeometryEPvPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef %67, ptr noundef %70, ptr noundef %71, ptr noundef %72)
  %74 = zext i1 %73 to i8
  store i8 %74, ptr %15, align 1, !tbaa !28
  %75 = load i8, ptr %15, align 1, !tbaa !28, !range !29, !noundef !30
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %88

77:                                               ; preds = %66
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.Riemann::IntersectResult", ptr %78, i32 0, i32 2
  %80 = call noundef i64 @_ZNKSt6vectorIPN7Riemann8GeometryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #5
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.Riemann::IntersectOption", ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !31
  %84 = zext i32 %83 to i64
  %85 = icmp uge i64 %80, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %77
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %89

87:                                               ; preds = %77
  br label %88

88:                                               ; preds = %87, %66
  store i32 5, ptr %12, align 4
  br label %89

89:                                               ; preds = %88, %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  %90 = load i32, ptr %12, align 4
  switch i32 %90, label %170 [
    i32 5, label %169
  ]

91:                                               ; preds = %63
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !34
  %95 = icmp ne i32 %94, -1
  br i1 %95, label %96, label %101

96:                                               ; preds = %91
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %97, i32 0, i32 3
  %99 = load i32, ptr %98, align 8, !tbaa !35
  %100 = icmp ne i32 %99, -1
  br label %101

101:                                              ; preds = %96, %91
  %102 = phi i1 [ false, %91 ], [ %100, %96 ]
  br i1 %102, label %103, label %104

103:                                              ; preds = %101
  br label %106

104:                                              ; preds = %101
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 214, ptr noundef @__PRETTY_FUNCTION__._ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE) #6
  unreachable

105:                                              ; No predecessors!
  br label %106

106:                                              ; preds = %105, %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %107 = getelementptr inbounds %"class.Riemann::DynamicAABBTree", ptr %20, i32 0, i32 2
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %108, i32 0, i32 2
  %110 = load i32, ptr %109, align 4, !tbaa !34
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %111) #5
  store ptr %112, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %113 = getelementptr inbounds %"class.Riemann::DynamicAABBTree", ptr %20, i32 0, i32 2
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %114, i32 0, i32 3
  %116 = load i32, ptr %115, align 8, !tbaa !35
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %117) #5
  store ptr %118, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds %"class.Maths::TAABB3", ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %123, i32 0, i32 1
  %125 = getelementptr inbounds %"class.Maths::TAABB3", ptr %124, i32 0, i32 1
  %126 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKNS_8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %119, ptr noundef nonnull align 4 dereferenceable(12) %122, ptr noundef nonnull align 4 dereferenceable(12) %125)
  %127 = zext i1 %126 to i8
  store i8 %127, ptr %18, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %129, i32 0, i32 1
  %131 = getelementptr inbounds %"class.Maths::TAABB3", ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %132, i32 0, i32 1
  %134 = getelementptr inbounds %"class.Maths::TAABB3", ptr %133, i32 0, i32 1
  %135 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKNS_8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %128, ptr noundef nonnull align 4 dereferenceable(12) %131, ptr noundef nonnull align 4 dereferenceable(12) %134)
  %136 = zext i1 %135 to i8
  store i8 %136, ptr %19, align 1, !tbaa !28
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7Riemann15IntersectResult12AddTestCountEi(ptr noundef nonnull align 8 dereferenceable(36) %137, i32 noundef 2)
  %138 = call noundef zeroext i1 @_ZNK7Riemann11StaticStackIiLi32EE4fullEv(ptr noundef nonnull align 4 dereferenceable(132) %13)
  %139 = xor i1 %138, true
  br i1 %139, label %140, label %141

140:                                              ; preds = %106
  br label %143

141:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 223, ptr noundef @__PRETTY_FUNCTION__._ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE) #6
  unreachable

142:                                              ; No predecessors!
  br label %143

143:                                              ; preds = %142, %140
  %144 = load i8, ptr %18, align 1, !tbaa !28, !range !29, !noundef !30
  %145 = trunc i8 %144 to i1
  br i1 %145, label %146, label %154

146:                                              ; preds = %143
  %147 = load i8, ptr %19, align 1, !tbaa !28, !range !29, !noundef !30
  %148 = trunc i8 %147 to i1
  br i1 %148, label %149, label %154

149:                                              ; preds = %146
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.Riemann::DynamicAABBTree::Node", ptr %150, i32 0, i32 3
  %152 = load i32, ptr %151, align 8, !tbaa !35
  call void @_ZN7Riemann11StaticStackIiLi32EE4pushEi(ptr noundef nonnull align 4 dereferenceable(132) %13, i32 noundef %152)
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %153, ptr %14, align 8, !tbaa !5
  store i32 4, ptr %12, align 4
  br label %167, !llvm.loop !36

154:                                              ; preds = %146, %143
  %155 = load i8, ptr %18, align 1, !tbaa !28, !range !29, !noundef !30
  %156 = trunc i8 %155 to i1
  br i1 %156, label %157, label %159

157:                                              ; preds = %154
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %158, ptr %14, align 8, !tbaa !5
  store i32 4, ptr %12, align 4
  br label %167, !llvm.loop !36

159:                                              ; preds = %154
  %160 = load i8, ptr %19, align 1, !tbaa !28, !range !29, !noundef !30
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %164

162:                                              ; preds = %159
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %163, ptr %14, align 8, !tbaa !5
  store i32 4, ptr %12, align 4
  br label %167, !llvm.loop !36

164:                                              ; preds = %159
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  store i32 5, ptr %12, align 4
  br label %167

167:                                              ; preds = %166, %162, %157, %149
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %168 = load i32, ptr %12, align 4
  switch i32 %168, label %182 [
    i32 4, label %60
    i32 5, label %169
  ]

169:                                              ; preds = %167, %89, %60
  store i32 0, ptr %12, align 4
  br label %170

170:                                              ; preds = %169, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %171 = load i32, ptr %12, align 4
  switch i32 %171, label %178 [
    i32 0, label %172
  ]

172:                                              ; preds = %170
  br label %52, !llvm.loop !38

173:                                              ; preds = %52
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.Riemann::IntersectResult", ptr %174, i32 0, i32 0
  %176 = load i8, ptr %175, align 8, !tbaa !9, !range !29, !noundef !30
  %177 = trunc i8 %176 to i1
  store i1 %177, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %178

178:                                              ; preds = %173, %170
  call void @llvm.lifetime.end.p0(i64 132, ptr %13) #5
  br label %179

179:                                              ; preds = %178, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %180

180:                                              ; preds = %179, %28
  %181 = load i1, ptr %5, align 1
  ret i1 %181

182:                                              ; preds = %167
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7RiemannL15OverlapGeometryEPKNS_8GeometryEPvPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResult12AddTestCountEi(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"_ZTSN7Riemann15IntersectResultE", !11, i64 0, !12, i64 8, !16, i64 32}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIPN7Riemann8GeometryESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !16, i64 0}
!18 = !{!"_ZTSN7Riemann15DynamicAABBTreeE", !16, i64 0, !19, i64 8, !16, i64 32, !16, i64 36, !16, i64 40}
!19 = !{!"_ZTSSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7Riemann15DynamicAABBTree4NodeESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15DynamicAABBTree4NodeESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15DynamicAABBTree4NodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!24, !6, i64 40}
!24 = !{!"_ZTSN7Riemann15DynamicAABBTree4NodeE", !7, i64 0, !25, i64 4, !16, i64 28, !16, i64 32, !16, i64 36, !6, i64 40, !11, i64 48}
!25 = !{!"_ZTSN5Maths6TAABB3IfEE", !26, i64 0, !26, i64 12}
!26 = !{!"_ZTSN5Maths8TVector3IfEE", !27, i64 0, !27, i64 4, !27, i64 8}
!27 = !{!"float", !7, i64 0}
!28 = !{!11, !11, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!32, !16, i64 0}
!32 = !{!"_ZTSN7Riemann15IntersectOptionE", !16, i64 0, !33, i64 4, !6, i64 24}
!33 = !{!"_ZTSN7Riemann13CollisionDataE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!34 = !{!24, !16, i64 28}
!35 = !{!24, !16, i64 32}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


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

%"class.Riemann::StaticStack.5" = type { i32, [32 x i32] }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE = external hidden unnamed_addr constant [109 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann11StaticStackIiLi32EEC2Ev(ptr noundef nonnull align 4 dereferenceable(132)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7Riemann11StaticStackIiLi32EE3popEv(ptr noundef nonnull align 4 dereferenceable(132)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #4 align 2 {
  %5 = alloca %"class.Riemann::StaticStack.5", align 4
  store i8 0, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  tail call void @_ZNSt6vectorIPN7Riemann8GeometryESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %7 = load i32, ptr %0, align 8, !tbaa !16
  %8 = icmp eq i32 %7, -1
  br i1 %8, label %59, label %9

9:                                                ; preds = %4
  %10 = tail call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK7Riemann8Geometry28GetBoundingVolume_WorldSpaceEv(ptr noundef nonnull align 8 dereferenceable(204) %1)
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i32, ptr %0, align 8, !tbaa !16
  %13 = sext i32 %12 to i64
  %14 = tail call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %13) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 4
  %16 = getelementptr inbounds i8, ptr %14, i64 16
  %17 = tail call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKNS_8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %16)
  br i1 %17, label %18, label %59

18:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %5) #5
  call void @_ZN7Riemann11StaticStackIiLi32EEC2Ev(ptr noundef nonnull align 4 dereferenceable(132) %5)
  %19 = load i32, ptr %0, align 8, !tbaa !16
  call void @_ZN7Riemann11StaticStackIiLi32EE4pushEi(ptr noundef nonnull align 4 dereferenceable(132) %5, i32 noundef %19)
  %20 = call noundef zeroext i1 @_ZNK7Riemann11StaticStackIiLi32EE5emptyEv(ptr noundef nonnull align 4 dereferenceable(132) %5)
  br i1 %20, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %18, %.critedge50
  %21 = call noundef i32 @_ZN7Riemann11StaticStackIiLi32EE3popEv(ptr noundef nonnull align 4 dereferenceable(132) %5)
  %22 = sext i32 %21 to i64
  %23 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %22) #5
  %24 = call noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree4Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(49) %23)
  br i1 %24, label %._crit_edge70, label %.lr.ph69

._crit_edge70:                                    ; preds = %.backedge, %.lr.ph
  %.044.lcssa = phi ptr [ %23, %.lr.ph ], [ %.044.be, %.backedge ]
  %25 = getelementptr inbounds i8, ptr %.044.lcssa, i64 40
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %27 = call noundef zeroext i1 @_ZN7RiemannL15OverlapGeometryEPKNS_8GeometryEPvPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull %1, ptr noundef %26, ptr noundef %2, ptr noundef nonnull %3)
  br i1 %27, label %28, label %.critedge50

28:                                               ; preds = %._crit_edge70
  %29 = call noundef i64 @_ZNKSt6vectorIPN7Riemann8GeometryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %30 = load i32, ptr %2, align 8, !tbaa !27
  %31 = zext i32 %30 to i64
  %.not48 = icmp ult i64 %29, %31
  br i1 %.not48, label %.critedge50, label %.critedge54

.lr.ph69:                                         ; preds = %.lr.ph, %.backedge
  %.04468 = phi ptr [ %.044.be, %.backedge ], [ %23, %.lr.ph ]
  %32 = getelementptr inbounds i8, ptr %.04468, i64 28
  %33 = load i32, ptr %32, align 4, !tbaa !30
  %.not = icmp eq i32 %33, -1
  br i1 %.not, label %.critedge, label %34

34:                                               ; preds = %.lr.ph69
  %35 = getelementptr inbounds i8, ptr %.04468, i64 32
  %36 = load i32, ptr %35, align 8, !tbaa !31
  %.not47 = icmp eq i32 %36, -1
  br i1 %.not47, label %.critedge, label %37

.critedge:                                        ; preds = %.lr.ph69, %34
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 214, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE) #6
  unreachable

37:                                               ; preds = %34
  %38 = sext i32 %33 to i64
  %39 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %38) #5
  %40 = load i32, ptr %35, align 8, !tbaa !31
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %41) #5
  %43 = getelementptr inbounds i8, ptr %39, i64 4
  %44 = getelementptr inbounds i8, ptr %39, i64 16
  %45 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKNS_8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %44)
  %46 = getelementptr inbounds i8, ptr %42, i64 4
  %47 = getelementptr inbounds i8, ptr %42, i64 16
  %48 = call noundef zeroext i1 @_ZNK5Maths6TAABB3IfE9IntersectERKNS_8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(12) %47)
  call void @_ZN7Riemann15IntersectResult12AddTestCountEi(ptr noundef nonnull align 8 dereferenceable(36) %3, i32 noundef 2)
  %49 = call noundef zeroext i1 @_ZNK7Riemann11StaticStackIiLi32EE4fullEv(ptr noundef nonnull align 4 dereferenceable(132) %5)
  br i1 %49, label %50, label %51

50:                                               ; preds = %37
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 223, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE) #6
  unreachable

51:                                               ; preds = %37
  %brmerge.demorgan = and i1 %45, %48
  br i1 %brmerge.demorgan, label %52, label %54

52:                                               ; preds = %51
  %53 = load i32, ptr %35, align 8, !tbaa !31
  call void @_ZN7Riemann11StaticStackIiLi32EE4pushEi(ptr noundef nonnull align 4 dereferenceable(132) %5, i32 noundef %53)
  br label %.backedge

54:                                               ; preds = %51
  %..044 = select i1 %48, ptr %42, ptr %.04468
  %spec.select = select i1 %45, ptr %39, ptr %..044
  %spec.select55 = or i1 %45, %48
  br i1 %spec.select55, label %.backedge, label %.critedge50

.backedge:                                        ; preds = %54, %52
  %.044.be = phi ptr [ %spec.select, %54 ], [ %39, %52 ]
  %55 = call noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree4Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(49) %.044.be)
  br i1 %55, label %._crit_edge70, label %.lr.ph69

.critedge50:                                      ; preds = %54, %._crit_edge70, %28
  %56 = call noundef zeroext i1 @_ZNK7Riemann11StaticStackIiLi32EE5emptyEv(ptr noundef nonnull align 4 dereferenceable(132) %5)
  br i1 %56, label %._crit_edge, label %.lr.ph, !llvm.loop !32

._crit_edge:                                      ; preds = %.critedge50, %18
  %57 = load i8, ptr %3, align 8, !tbaa !5, !range !34, !noundef !35
  %58 = trunc nuw i8 %57 to i1
  br label %.critedge54

.critedge54:                                      ; preds = %28, %._crit_edge
  %.4 = phi i1 [ %58, %._crit_edge ], [ true, %28 ]
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %5) #5
  br label %59

59:                                               ; preds = %.critedge54, %9, %4
  %.6 = phi i1 [ false, %4 ], [ %.4, %.critedge54 ], [ false, %9 ]
  ret i1 %.6
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN7RiemannL15OverlapGeometryEPKNS_8GeometryEPvPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResult12AddTestCountEi(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTSN7Riemann15IntersectResultE", !7, i64 0, !10, i64 8, !15, i64 32}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIPN7Riemann8GeometryESaIS2_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"_ZTSN7Riemann15DynamicAABBTreeE", !15, i64 0, !18, i64 8, !15, i64 32, !15, i64 36, !15, i64 40}
!18 = !{!"_ZTSSt6vectorIN7Riemann15DynamicAABBTree4NodeESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN7Riemann15DynamicAABBTree4NodeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15DynamicAABBTree4NodeESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7Riemann15DynamicAABBTree4NodeESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!22 = !{!23, !14, i64 40}
!23 = !{!"_ZTSN7Riemann15DynamicAABBTree4NodeE", !8, i64 0, !24, i64 4, !15, i64 28, !15, i64 32, !15, i64 36, !14, i64 40, !7, i64 48}
!24 = !{!"_ZTSN5Maths6TAABB3IfEE", !25, i64 0, !25, i64 12}
!25 = !{!"_ZTSN5Maths8TVector3IfEE", !26, i64 0, !26, i64 4, !26, i64 8}
!26 = !{!"float", !8, i64 0}
!27 = !{!28, !15, i64 0}
!28 = !{!"_ZTSN7Riemann15IntersectOptionE", !15, i64 0, !29, i64 4, !14, i64 24}
!29 = !{!"_ZTSN7Riemann13CollisionDataE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!30 = !{!23, !15, i64 28}
!31 = !{!23, !15, i64 32}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{i8 0, i8 2}
!35 = !{}


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