; LLVM IR from atlantis13579/Riemann :: Test/Test_Collision.ll (Z12TestBuildOBBv)

; 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.Maths::TVector3" = type { float, float, float }
%"class.Riemann::AxisAlignedBox3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::Matrix3" = type { [3 x [3 x float]] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::OrientedBox3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::Matrix3" }
%"class.Maths::Matrix3::ColumnProxy" = type <{ ptr, i32, [4 x i8] }>

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1

declare i32 @printf(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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10BreakPointPKcl(ptr noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE5UnitXEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) #3 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #4

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12TestBuildOBBv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.Riemann::AxisAlignedBox3", align 4
  %2 = alloca %"class.Maths::TVector3", align 4
  %3 = alloca %"class.Maths::TVector3", align 4
  %4 = alloca %"class.Maths::Matrix3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector.10", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca %"class.Riemann::OrientedBox3", align 4
  %15 = alloca %"class.Maths::TVector3", align 4
  %16 = alloca %"class.Maths::Matrix3::ColumnProxy", align 8
  %17 = alloca { ptr, i32 }, align 8
  %18 = alloca float, align 4
  %19 = alloca %"class.Maths::TVector3", align 4
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #8
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef -1.000000e+01, float noundef -2.500000e+00, float noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #8
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 1.000000e+01, float noundef 2.500000e+00, float noundef 1.000000e+00)
  call void @_ZN7Riemann15AxisAlignedBox3C2ERKN5Maths8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %4) #8
  call void @_ZN5Maths7Matrix3C2Ev(ptr noundef nonnull align 4 dereferenceable(36) %4)
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #8
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
  %21 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix311LoadRotateZEf(ptr noundef nonnull align 4 dereferenceable(36) %4, float noundef 0x3FE0C15240000000)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  call void @_ZNSt6vectorItSaItEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  invoke void @_ZN7Riemann15AxisAlignedBox37GetMeshERSt6vectorIN5Maths8TVector3IfEESaIS4_EERS1_ItSaItEES7_(ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %22 unwind label %28

22:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %41, %22
  %24 = load i64, ptr %11, align 8, !tbaa !5
  %25 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %26 = icmp ult i64 %24, %25
  br i1 %26, label %32, label %27

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %48

28:                                               ; preds = %0
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %9, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %10, align 4
  br label %125

32:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  %33 = load i64, ptr %11, align 8, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %33) #8
  invoke void @_ZNK5Maths7Matrix3mlERKNS_8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %4, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %35 unwind label %44

35:                                               ; preds = %32
  invoke void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %36 unwind label %44

36:                                               ; preds = %35
  %37 = load i64, ptr %11, align 8, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %37) #8
  %39 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %40 unwind label %44

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %41

41:                                               ; preds = %40
  %42 = load i64, ptr %11, align 8, !tbaa !5
  %43 = add i64 %42, 1
  store i64 %43, ptr %11, align 8, !tbaa !5
  br label %23, !llvm.loop !9

44:                                               ; preds = %36, %35, %32
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %9, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %125

48:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 60, ptr %14) #8
  %49 = call noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %50 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %51 = trunc i64 %50 to i32
  invoke void @_ZN7Riemann12OrientedBox322ComputeBoundingOBB_PCAEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind writable sret(%"class.Riemann::OrientedBox3") align 4 %14, ptr noundef %49, i32 noundef %51)
          to label %52 unwind label %65

52:                                               ; preds = %48
  %53 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %14, i32 0, i32 0
  %54 = getelementptr inbounds %"class.Maths::TVector3", ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = getelementptr inbounds %"class.Maths::TVector3", ptr %5, i32 0, i32 0
  %57 = load float, ptr %56, align 4, !tbaa !16
  %58 = fsub float %55, %57
  %59 = call float @llvm.fabs.f32(float %58)
  %60 = fcmp olt float %59, 0x3FB99999A0000000
  br i1 %60, label %69, label %61

61:                                               ; preds = %52
  %62 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 441)
          to label %63 unwind label %65

63:                                               ; preds = %61
  invoke void @_Z10BreakPointPKcl(ptr noundef @.str.2, i64 noundef 441)
          to label %64 unwind label %65

64:                                               ; preds = %63
  br label %69

65:                                               ; preds = %93, %91, %80, %78, %63, %61, %48
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %124

69:                                               ; preds = %64, %52
  %70 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %14, i32 0, i32 0
  %71 = getelementptr inbounds %"class.Maths::TVector3", ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !17
  %73 = getelementptr inbounds %"class.Maths::TVector3", ptr %5, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !18
  %75 = fsub float %72, %74
  %76 = call float @llvm.fabs.f32(float %75)
  %77 = fcmp olt float %76, 0x3FB99999A0000000
  br i1 %77, label %82, label %78

78:                                               ; preds = %69
  %79 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 442)
          to label %80 unwind label %65

80:                                               ; preds = %78
  invoke void @_Z10BreakPointPKcl(ptr noundef @.str.2, i64 noundef 442)
          to label %81 unwind label %65

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %69
  %83 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %14, i32 0, i32 0
  %84 = getelementptr inbounds %"class.Maths::TVector3", ptr %83, i32 0, i32 2
  %85 = load float, ptr %84, align 4, !tbaa !19
  %86 = getelementptr inbounds %"class.Maths::TVector3", ptr %5, i32 0, i32 2
  %87 = load float, ptr %86, align 4, !tbaa !20
  %88 = fsub float %85, %87
  %89 = call float @llvm.fabs.f32(float %88)
  %90 = fcmp olt float %89, 0x3FB99999A0000000
  br i1 %90, label %95, label %91

91:                                               ; preds = %82
  %92 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 443)
          to label %93 unwind label %65

93:                                               ; preds = %91
  invoke void @_Z10BreakPointPKcl(ptr noundef @.str.2, i64 noundef 443)
          to label %94 unwind label %65

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94, %82
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %96 = getelementptr inbounds %"class.Riemann::OrientedBox3", ptr %14, i32 0, i32 2
  %97 = invoke { ptr, i32 } @_ZN5Maths7Matrix36ColumnEi(ptr noundef nonnull align 4 dereferenceable(36) %96, i32 noundef 0)
          to label %98 unwind label %109

98:                                               ; preds = %95
  store { ptr, i32 } %97, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %17, i64 12, i1 false)
  invoke void @_ZNK5Maths7Matrix311ColumnProxycvNS_8TVector3IfEEEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %15, ptr noundef nonnull align 8 dereferenceable(12) %16)
          to label %99 unwind label %109

99:                                               ; preds = %98
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  invoke void @_ZN5Maths8TVector3IfE5UnitXEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %19)
          to label %100 unwind label %113

100:                                              ; preds = %99
  %101 = invoke noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %102 unwind label %113

102:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  store float %101, ptr %18, align 4, !tbaa !21
  %103 = load float, ptr %18, align 4, !tbaa !21
  %104 = fcmp oge float %103, 0x3FE99999A0000000
  br i1 %104, label %121, label %105

105:                                              ; preds = %102
  %106 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 447)
          to label %107 unwind label %117

107:                                              ; preds = %105
  invoke void @_Z10BreakPointPKcl(ptr noundef @.str.2, i64 noundef 447)
          to label %108 unwind label %117

108:                                              ; preds = %107
  br label %121

109:                                              ; preds = %98, %95
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %9, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %123

113:                                              ; preds = %100, %99
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  br label %122

117:                                              ; preds = %107, %105
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  br label %122

121:                                              ; preds = %108, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 60, ptr %14) #8
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #8
  ret void

122:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %123

123:                                              ; preds = %122, %109
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  br label %124

124:                                              ; preds = %123, %65
  call void @llvm.lifetime.end.p0(i64 60, ptr %14) #8
  br label %125

125:                                              ; preds = %124, %44, %28
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #8
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %9, align 8
  %128 = load i32, ptr %10, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths7Matrix3C2Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix311LoadRotateZEf(ptr noundef nonnull align 4 dereferenceable(36), float noundef) #5 align 2

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

declare void @_ZN7Riemann15AxisAlignedBox37GetMeshERSt6vectorIN5Maths8TVector3IfEESaIS4_EERS1_ItSaItEES7_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3mlERKNS_8TVector3IfEE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

declare void @_ZN7Riemann12OrientedBox322ComputeBoundingOBB_PCAEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind writable sret(%"class.Riemann::OrientedBox3") align 4, ptr noundef, i32 noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i32 } @_ZN5Maths7Matrix36ColumnEi(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) #6 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

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

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

%"class.Maths::TVector3" = type { float, float, float }
%"class.Riemann::AxisAlignedBox3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::Matrix3" = type { [3 x [3 x float]] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::OrientedBox3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::Matrix3" }
%"class.Maths::Matrix3::ColumnProxy" = type <{ ptr, i32, [4 x i8] }>

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10BreakPointPKcl(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE5UnitXEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #4

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12TestBuildOBBv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.Riemann::AxisAlignedBox3", align 4
  %2 = alloca %"class.Maths::TVector3", align 4
  %3 = alloca %"class.Maths::TVector3", align 4
  %4 = alloca %"class.Maths::Matrix3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector.10", align 8
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca %"class.Riemann::OrientedBox3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::Matrix3::ColumnProxy", align 8
  %14 = alloca %"class.Maths::TVector3", align 4
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #8
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef -1.000000e+01, float noundef -2.500000e+00, float noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #8
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 1.000000e+01, float noundef 2.500000e+00, float noundef 1.000000e+00)
  call void @_ZN7Riemann15AxisAlignedBox3C2ERKN5Maths8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %4) #8
  call void @_ZN5Maths7Matrix3C2Ev(ptr noundef nonnull align 4 dereferenceable(36) %4)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #8
  call void @_ZN5Maths8TVector3IfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 2.000000e+00)
  %16 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix311LoadRotateZEf(ptr noundef nonnull align 4 dereferenceable(36) %4, float noundef 0x3FE0C15240000000)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorItSaItEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  invoke void @_ZN7Riemann15AxisAlignedBox37GetMeshERSt6vectorIN5Maths8TVector3IfEESaIS4_EERS1_ItSaItEES7_(ptr noundef nonnull align 4 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %.preheader unwind label %21

.preheader:                                       ; preds = %0
  %17 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %25, %.preheader
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %11) #8
  %18 = call noundef ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %19 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %20 = trunc i64 %19 to i32
  invoke void @_ZN7Riemann12OrientedBox322ComputeBoundingOBB_PCAEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind nonnull writable sret(%"class.Riemann::OrientedBox3") align 4 %11, ptr noundef %18, i32 noundef %20)
          to label %33 unwind label %41

21:                                               ; preds = %0
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %80

.lr.ph:                                           ; preds = %.preheader, %25
  %.0914 = phi i64 [ %28, %25 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  %23 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.0914) #8
  invoke void @_ZNK5Maths7Matrix3mlERKNS_8TVector3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(36) %4, ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %24 unwind label %31

24:                                               ; preds = %.lr.ph
  invoke void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %25 unwind label %31

25:                                               ; preds = %24
  %26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.0914) #8
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  %28 = add nuw i64 %.0914, 1
  %29 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %30 = icmp ult i64 %28, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !5

31:                                               ; preds = %24, %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  br label %80

33:                                               ; preds = %._crit_edge
  %34 = load float, ptr %11, align 4, !tbaa !7
  %35 = load float, ptr %5, align 4, !tbaa !14
  %36 = fsub float %34, %35
  %37 = call float @llvm.fabs.f32(float %36)
  %38 = fcmp olt float %37, 0x3FB99999A0000000
  br i1 %38, label %43, label %39

39:                                               ; preds = %33
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2, i32 noundef 441)
  call void @_Z10BreakPointPKcl(ptr noundef nonnull @.str.2, i64 noundef 441)
  br label %43

41:                                               ; preds = %._crit_edge
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %79

43:                                               ; preds = %39, %33
  %44 = getelementptr inbounds i8, ptr %11, i64 4
  %45 = load float, ptr %44, align 4, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %5, i64 4
  %47 = load float, ptr %46, align 4, !tbaa !16
  %48 = fsub float %45, %47
  %49 = call float @llvm.fabs.f32(float %48)
  %50 = fcmp olt float %49, 0x3FB99999A0000000
  br i1 %50, label %53, label %51

51:                                               ; preds = %43
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2, i32 noundef 442)
  call void @_Z10BreakPointPKcl(ptr noundef nonnull @.str.2, i64 noundef 442)
  br label %53

53:                                               ; preds = %51, %43
  %54 = getelementptr inbounds i8, ptr %11, i64 8
  %55 = load float, ptr %54, align 4, !tbaa !17
  %56 = getelementptr inbounds i8, ptr %5, i64 8
  %57 = load float, ptr %56, align 4, !tbaa !18
  %58 = fsub float %55, %57
  %59 = call float @llvm.fabs.f32(float %58)
  %60 = fcmp olt float %59, 0x3FB99999A0000000
  br i1 %60, label %63, label %61

61:                                               ; preds = %53
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2, i32 noundef 443)
  call void @_Z10BreakPointPKcl(ptr noundef nonnull @.str.2, i64 noundef 443)
  br label %63

63:                                               ; preds = %61, %53
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %64 = getelementptr inbounds i8, ptr %11, i64 24
  %65 = invoke { ptr, i32 } @_ZN5Maths7Matrix36ColumnEi(ptr noundef nonnull align 4 dereferenceable(36) %64, i32 noundef 0)
          to label %66 unwind label %73

66:                                               ; preds = %63
  %.fca.0.extract = extractvalue { ptr, i32 } %65, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %65, 1
  store ptr %.fca.0.extract, ptr %13, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  invoke void @_ZNK5Maths7Matrix311ColumnProxycvNS_8TVector3IfEEEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 8 dereferenceable(12) %13)
          to label %67 unwind label %73

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #8
  invoke void @_ZN5Maths8TVector3IfE5UnitXEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %14)
          to label %68 unwind label %75

68:                                               ; preds = %67
  %69 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  %70 = fcmp ult float %69, 0x3FE99999A0000000
  br i1 %70, label %71, label %77

71:                                               ; preds = %68
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2, i32 noundef 447)
  call void @_Z10BreakPointPKcl(ptr noundef nonnull @.str.2, i64 noundef 447)
  br label %77

73:                                               ; preds = %66, %63
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %78

75:                                               ; preds = %67
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  br label %78

77:                                               ; preds = %71, %68
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %11) #8
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  ret void

78:                                               ; preds = %75, %73
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  br label %79

79:                                               ; preds = %78, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %78 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %11) #8
  br label %80

80:                                               ; preds = %79, %31, %21
  %.pn12 = phi { ptr, i32 } [ %32, %31 ], [ %.pn.pn, %79 ], [ %22, %21 ]
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn12
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths7Matrix3C2Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix311LoadRotateZEf(ptr noundef nonnull align 4 dereferenceable(36), float noundef) local_unnamed_addr #5 align 2

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

declare void @_ZN7Riemann15AxisAlignedBox37GetMeshERSt6vectorIN5Maths8TVector3IfEESaIS4_EERS1_ItSaItEES7_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths7Matrix3mlERKNS_8TVector3IfEE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6 align 2

declare void @_ZN7Riemann12OrientedBox322ComputeBoundingOBB_PCAEPKN5Maths8TVector3IfEEi(ptr dead_on_unwind writable sret(%"class.Riemann::OrientedBox3") align 4, ptr noundef, i32 noundef) local_unnamed_addr #7

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

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

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

attributes #0 = { nofree 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 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 #8 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !10, i64 0}
!8 = !{!"_ZTSN7Riemann12OrientedBox3E", !9, i64 0, !9, i64 12, !13, i64 24}
!9 = !{!"_ZTSN5Maths8TVector3IfEE", !10, i64 0, !10, i64 4, !10, i64 8}
!10 = !{!"float", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSN5Maths7Matrix3E", !11, i64 0}
!14 = !{!9, !10, i64 0}
!15 = !{!8, !10, i64 4}
!16 = !{!9, !10, i64 4}
!17 = !{!8, !10, i64 8}
!18 = !{!9, !10, i64 8}


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