; LLVM IR from atlantis13579/Riemann :: Src/CollisionPrimitive (AxisAlignedBox3)

; 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 }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(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)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #2 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)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann15AxisAlignedBox316IntersectSegmentERKN5Maths8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) #1 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.Maths::TVector3", align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  %10 = alloca %"class.Maths::TVector3", align 4
  %11 = alloca %"class.Maths::TVector3", align 4
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #5
  call void @_ZNK7Riemann15AxisAlignedBox39GetCenterEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(24) %19)
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #5
  call void @_ZNK7Riemann15AxisAlignedBox39GetExtentEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(24) %19)
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %23 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %24 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 0
  %25 = load float, ptr %24, align 4, !tbaa !9
  %26 = call float @llvm.fabs.f32(float %25)
  store float %26, ptr %14, align 4, !tbaa !12
  %27 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 0
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = call float @llvm.fabs.f32(float %28)
  %30 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 0
  %31 = load float, ptr %30, align 4, !tbaa !9
  %32 = load float, ptr %14, align 4, !tbaa !12
  %33 = fadd float %31, %32
  %34 = fcmp ogt float %29, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %141

36:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %37 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 1
  %38 = load float, ptr %37, align 4, !tbaa !13
  %39 = call float @llvm.fabs.f32(float %38)
  store float %39, ptr %16, align 4, !tbaa !12
  %40 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 1
  %41 = load float, ptr %40, align 4, !tbaa !13
  %42 = call float @llvm.fabs.f32(float %41)
  %43 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 1
  %44 = load float, ptr %43, align 4, !tbaa !13
  %45 = load float, ptr %16, align 4, !tbaa !12
  %46 = fadd float %44, %45
  %47 = fcmp ogt float %42, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %36
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %140

49:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %50 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 2
  %51 = load float, ptr %50, align 4, !tbaa !14
  %52 = call float @llvm.fabs.f32(float %51)
  store float %52, ptr %17, align 4, !tbaa !12
  %53 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 2
  %54 = load float, ptr %53, align 4, !tbaa !14
  %55 = call float @llvm.fabs.f32(float %54)
  %56 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 2
  %57 = load float, ptr %56, align 4, !tbaa !14
  %58 = load float, ptr %17, align 4, !tbaa !12
  %59 = fadd float %57, %58
  %60 = fcmp ogt float %55, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %49
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %139

62:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store float 0x3EB0C6F7A0000000, ptr %18, align 4, !tbaa !12
  %63 = load float, ptr %14, align 4, !tbaa !12
  %64 = fadd float %63, 0x3EB0C6F7A0000000
  store float %64, ptr %14, align 4, !tbaa !12
  %65 = load float, ptr %16, align 4, !tbaa !12
  %66 = fadd float %65, 0x3EB0C6F7A0000000
  store float %66, ptr %16, align 4, !tbaa !12
  %67 = load float, ptr %17, align 4, !tbaa !12
  %68 = fadd float %67, 0x3EB0C6F7A0000000
  store float %68, ptr %17, align 4, !tbaa !12
  %69 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 1
  %70 = load float, ptr %69, align 4, !tbaa !13
  %71 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 2
  %72 = load float, ptr %71, align 4, !tbaa !14
  %73 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 2
  %74 = load float, ptr %73, align 4, !tbaa !14
  %75 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 1
  %76 = load float, ptr %75, align 4, !tbaa !13
  %77 = fmul float %74, %76
  %78 = fneg float %77
  %79 = call float @llvm.fmuladd.f32(float %70, float %72, float %78)
  %80 = call float @llvm.fabs.f32(float %79)
  %81 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !13
  %83 = load float, ptr %17, align 4, !tbaa !12
  %84 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 2
  %85 = load float, ptr %84, align 4, !tbaa !14
  %86 = load float, ptr %16, align 4, !tbaa !12
  %87 = fmul float %85, %86
  %88 = call float @llvm.fmuladd.f32(float %82, float %83, float %87)
  %89 = fcmp ogt float %80, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %62
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %138

91:                                               ; preds = %62
  %92 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 2
  %93 = load float, ptr %92, align 4, !tbaa !14
  %94 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 0
  %95 = load float, ptr %94, align 4, !tbaa !9
  %96 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 0
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 2
  %99 = load float, ptr %98, align 4, !tbaa !14
  %100 = fmul float %97, %99
  %101 = fneg float %100
  %102 = call float @llvm.fmuladd.f32(float %93, float %95, float %101)
  %103 = call float @llvm.fabs.f32(float %102)
  %104 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !9
  %106 = load float, ptr %17, align 4, !tbaa !12
  %107 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 2
  %108 = load float, ptr %107, align 4, !tbaa !14
  %109 = load float, ptr %14, align 4, !tbaa !12
  %110 = fmul float %108, %109
  %111 = call float @llvm.fmuladd.f32(float %105, float %106, float %110)
  %112 = fcmp ogt float %103, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %91
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %138

114:                                              ; preds = %91
  %115 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 0
  %116 = load float, ptr %115, align 4, !tbaa !9
  %117 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 1
  %118 = load float, ptr %117, align 4, !tbaa !13
  %119 = getelementptr inbounds %"class.Maths::TVector3", ptr %10, i32 0, i32 1
  %120 = load float, ptr %119, align 4, !tbaa !13
  %121 = getelementptr inbounds %"class.Maths::TVector3", ptr %12, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !9
  %123 = fmul float %120, %122
  %124 = fneg float %123
  %125 = call float @llvm.fmuladd.f32(float %116, float %118, float %124)
  %126 = call float @llvm.fabs.f32(float %125)
  %127 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 0
  %128 = load float, ptr %127, align 4, !tbaa !9
  %129 = load float, ptr %16, align 4, !tbaa !12
  %130 = getelementptr inbounds %"class.Maths::TVector3", ptr %9, i32 0, i32 1
  %131 = load float, ptr %130, align 4, !tbaa !13
  %132 = load float, ptr %14, align 4, !tbaa !12
  %133 = fmul float %131, %132
  %134 = call float @llvm.fmuladd.f32(float %128, float %129, float %133)
  %135 = fcmp ogt float %126, %134
  br i1 %135, label %136, label %137

136:                                              ; preds = %114
  store i1 false, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %138

137:                                              ; preds = %114
  store i1 true, ptr %4, align 1
  store i32 1, ptr %15, align 4
  br label %138

138:                                              ; preds = %137, %136, %113, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %139

139:                                              ; preds = %138, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %140

140:                                              ; preds = %139, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %141

141:                                              ; preds = %140, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  %142 = load i1, ptr %4, align 1
  ret i1 %142
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann15AxisAlignedBox39GetExtentEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(24)) #1 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)) #2 align 2

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

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

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

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


; 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 }

; 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 uwtable
declare dso_local void @_ZNK7Riemann15AxisAlignedBox39GetCenterEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmiERKS1_(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 #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #2 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 #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann15AxisAlignedBox316IntersectSegmentERKN5Maths8TVector3IfEES5_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.Maths::TVector3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.Maths::TVector3", align 4
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::TVector3", align 4
  %9 = alloca %"class.Maths::TVector3", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5
  call void @_ZNK7Riemann15AxisAlignedBox39GetCenterEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %4, ptr noundef nonnull align 4 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  call void @_ZNK7Riemann15AxisAlignedBox39GetExtentEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @_ZNK5Maths8TVector3IfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZNK5Maths8TVector3IfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  call void @_ZNK5Maths8TVector3IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %10 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  %11 = load float, ptr %8, align 4, !tbaa !5
  %12 = call float @llvm.fabs.f32(float %11)
  %13 = load float, ptr %6, align 4, !tbaa !5
  %14 = call float @llvm.fabs.f32(float %13)
  %15 = load float, ptr %5, align 4, !tbaa !5
  %16 = fadd float %12, %15
  %17 = fcmp ogt float %14, %16
  br i1 %17, label %67, label %18

18:                                               ; preds = %3
  %19 = getelementptr inbounds i8, ptr %8, i64 4
  %20 = load float, ptr %19, align 4, !tbaa !10
  %21 = call float @llvm.fabs.f32(float %20)
  %22 = getelementptr inbounds i8, ptr %6, i64 4
  %23 = load float, ptr %22, align 4, !tbaa !10
  %24 = call float @llvm.fabs.f32(float %23)
  %25 = getelementptr inbounds i8, ptr %5, i64 4
  %26 = load float, ptr %25, align 4, !tbaa !10
  %27 = fadd float %21, %26
  %28 = fcmp ogt float %24, %27
  br i1 %28, label %67, label %29

29:                                               ; preds = %18
  %30 = getelementptr inbounds i8, ptr %8, i64 8
  %31 = load float, ptr %30, align 4, !tbaa !11
  %32 = call float @llvm.fabs.f32(float %31)
  %33 = getelementptr inbounds i8, ptr %6, i64 8
  %34 = load float, ptr %33, align 4, !tbaa !11
  %35 = call float @llvm.fabs.f32(float %34)
  %36 = getelementptr inbounds i8, ptr %5, i64 8
  %37 = load float, ptr %36, align 4, !tbaa !11
  %38 = fadd float %32, %37
  %39 = fcmp ogt float %35, %38
  br i1 %39, label %67, label %40

40:                                               ; preds = %29
  %41 = fadd float %12, 0x3EB0C6F7A0000000
  %42 = fadd float %21, 0x3EB0C6F7A0000000
  %43 = fadd float %32, 0x3EB0C6F7A0000000
  %44 = fneg float %34
  %45 = fmul float %20, %44
  %46 = call float @llvm.fmuladd.f32(float %23, float %31, float %45)
  %47 = call float @llvm.fabs.f32(float %46)
  %48 = fmul float %42, %37
  %49 = call float @llvm.fmuladd.f32(float %26, float %43, float %48)
  %50 = fcmp ogt float %47, %49
  br i1 %50, label %67, label %51

51:                                               ; preds = %40
  %52 = fneg float %13
  %53 = fmul float %31, %52
  %54 = call float @llvm.fmuladd.f32(float %34, float %11, float %53)
  %55 = call float @llvm.fabs.f32(float %54)
  %56 = fmul float %41, %37
  %57 = call float @llvm.fmuladd.f32(float %15, float %43, float %56)
  %58 = fcmp ogt float %55, %57
  br i1 %58, label %67, label %59

59:                                               ; preds = %51
  %60 = fneg float %23
  %61 = fmul float %11, %60
  %62 = call float @llvm.fmuladd.f32(float %13, float %20, float %61)
  %63 = call float @llvm.fabs.f32(float %62)
  %64 = fmul float %41, %26
  %65 = call float @llvm.fmuladd.f32(float %15, float %42, float %64)
  %66 = fcmp ule float %63, %65
  br label %67

67:                                               ; preds = %18, %40, %51, %59, %29, %3
  %.3 = phi i1 [ false, %3 ], [ false, %18 ], [ false, %29 ], [ false, %40 ], [ false, %51 ], [ %66, %59 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  ret i1 %.3
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann15AxisAlignedBox39GetExtentEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #1 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 #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN5Maths8TVector3IfEE", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}


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