; LLVM IR from yangfengzzz/DigitalVox4 :: vox.math (collision_utils)

; 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.vox::Vector" = type { float, float, float }
%"class.vox::BoundingPlane" = type { %"class.vox::Vector", float }
%"class.vox::BoundingBox" = type { %"class.vox::Point", %"class.vox::Point" }
%"class.vox::Point" = 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: 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 float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox23intersectsFrustumAndBoxERKNS_15BoundingFrustumERKNS_11BoundingBoxIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(96) %0, ptr noundef nonnull align 4 dereferenceable(24) %1) #2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.vox::Vector", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.vox::BoundingPlane", align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %"class.vox::BoundingBox", ptr %13, i32 0, i32 0
  store ptr %14, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.vox::BoundingBox", ptr %15, i32 0, i32 1
  store ptr %16, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #4
  call void @_ZN3vox6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %81, %2
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = icmp slt i32 %18, 6
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  store i32 2, ptr %10, align 4
  br label %84

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind writable sret(%"class.vox::BoundingPlane") align 4 %11, ptr noundef nonnull align 4 dereferenceable(96) %22, i32 noundef %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %24 = getelementptr inbounds %"class.vox::BoundingPlane", ptr %11, i32 0, i32 0
  store ptr %24, ptr %12, align 8, !tbaa !5
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.vox::Vector", ptr %25, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = fcmp oge float %27, 0.000000e+00
  br i1 %28, label %29, label %33

29:                                               ; preds = %21
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.vox::Point", ptr %30, i32 0, i32 0
  %32 = load float, ptr %31, align 4, !tbaa !14
  br label %37

33:                                               ; preds = %21
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.vox::Point", ptr %34, i32 0, i32 0
  %36 = load float, ptr %35, align 4, !tbaa !14
  br label %37

37:                                               ; preds = %33, %29
  %38 = phi float [ %32, %29 ], [ %36, %33 ]
  %39 = getelementptr inbounds %"class.vox::Vector", ptr %8, i32 0, i32 0
  store float %38, ptr %39, align 4, !tbaa !11
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.vox::Vector", ptr %40, i32 0, i32 1
  %42 = load float, ptr %41, align 4, !tbaa !16
  %43 = fcmp oge float %42, 0.000000e+00
  br i1 %43, label %44, label %48

44:                                               ; preds = %37
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.vox::Point", ptr %45, i32 0, i32 1
  %47 = load float, ptr %46, align 4, !tbaa !17
  br label %52

48:                                               ; preds = %37
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.vox::Point", ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !17
  br label %52

52:                                               ; preds = %48, %44
  %53 = phi float [ %47, %44 ], [ %51, %48 ]
  %54 = getelementptr inbounds %"class.vox::Vector", ptr %8, i32 0, i32 1
  store float %53, ptr %54, align 4, !tbaa !16
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.vox::Vector", ptr %55, i32 0, i32 2
  %57 = load float, ptr %56, align 4, !tbaa !18
  %58 = fcmp oge float %57, 0.000000e+00
  br i1 %58, label %59, label %63

59:                                               ; preds = %52
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.vox::Point", ptr %60, i32 0, i32 2
  %62 = load float, ptr %61, align 4, !tbaa !19
  br label %67

63:                                               ; preds = %52
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.vox::Point", ptr %64, i32 0, i32 2
  %66 = load float, ptr %65, align 4, !tbaa !19
  br label %67

67:                                               ; preds = %63, %59
  %68 = phi float [ %62, %59 ], [ %66, %63 ]
  %69 = getelementptr inbounds %"class.vox::Vector", ptr %8, i32 0, i32 2
  store float %68, ptr %69, align 4, !tbaa !18
  %70 = getelementptr inbounds %"class.vox::BoundingPlane", ptr %11, i32 0, i32 0
  %71 = call noundef float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %72 = getelementptr inbounds %"class.vox::BoundingPlane", ptr %11, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !20
  %74 = fneg float %73
  %75 = fcmp ogt float %71, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %67
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %78

77:                                               ; preds = %67
  store i32 0, ptr %10, align 4
  br label %78

78:                                               ; preds = %77, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  %79 = load i32, ptr %10, align 4
  switch i32 %79, label %84 [
    i32 0, label %80
  ]

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %9, align 4, !tbaa !9
  br label %17, !llvm.loop !22

84:                                               ; preds = %78, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %85 = load i32, ptr %10, align 4
  switch i32 %85, label %87 [
    i32 2, label %86
  ]

86:                                               ; preds = %84
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %87

87:                                               ; preds = %86, %84
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %88 = load i1, ptr %3, align 1
  ret i1 %88
}

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

declare void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind writable sret(%"class.vox::BoundingPlane") align 4, ptr noundef nonnull align 4 dereferenceable(96), i32 noundef) #3

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 = { 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 = { "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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3vox6VectorIfLm3EEE", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTSN3vox5PointIfLm3EEE", !13, i64 0, !13, i64 4, !13, i64 8}
!16 = !{!12, !13, i64 4}
!17 = !{!15, !13, i64 4}
!18 = !{!12, !13, i64 8}
!19 = !{!15, !13, i64 8}
!20 = !{!21, !13, i64 12}
!21 = !{!"_ZTSN3vox13BoundingPlaneIfLm3EEE", !12, i64 0, !13, i64 12}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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

%"class.vox::Vector" = type { float, float, float }
%"class.vox::BoundingPlane" = type { %"class.vox::Vector", 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 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 float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vox23intersectsFrustumAndBoxERKNS_15BoundingFrustumERKNS_11BoundingBoxIfLm3EEE(ptr noundef nonnull align 4 dereferenceable(96) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(24) %1) local_unnamed_addr #2 {
  %3 = alloca %"class.vox::Vector", align 4
  %4 = alloca %"class.vox::BoundingPlane", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3vox6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3)
  %5 = getelementptr inbounds i8, ptr %4, i64 4
  %6 = getelementptr inbounds i8, ptr %3, i64 4
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  %9 = getelementptr inbounds i8, ptr %4, i64 12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind nonnull writable sret(%"class.vox::BoundingPlane") align 4 %4, ptr noundef nonnull align 4 dereferenceable(96) %0, i32 noundef 0)
  %10 = load float, ptr %4, align 4, !tbaa !5
  %11 = fcmp ult float %10, 0.000000e+00
  %..idx = select i1 %11, i64 12, i64 0
  %. = getelementptr inbounds i8, ptr %1, i64 %..idx
  %12 = load float, ptr %., align 4, !tbaa !10
  store float %12, ptr %3, align 4, !tbaa !5
  %13 = load float, ptr %5, align 4, !tbaa !12
  %14 = fcmp ult float %13, 0.000000e+00
  %.in21.v = select i1 %14, i64 16, i64 4
  %.in21 = getelementptr inbounds i8, ptr %1, i64 %.in21.v
  %15 = load float, ptr %.in21, align 4, !tbaa !13
  store float %15, ptr %6, align 4, !tbaa !12
  %16 = load float, ptr %7, align 4, !tbaa !14
  %17 = fcmp ult float %16, 0.000000e+00
  %.in22.v = select i1 %17, i64 20, i64 8
  %.in22 = getelementptr inbounds i8, ptr %1, i64 %.in22.v
  %18 = load float, ptr %.in22, align 4, !tbaa !15
  store float %18, ptr %8, align 4, !tbaa !14
  %19 = call noundef float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %20 = load float, ptr %9, align 4, !tbaa !16
  %21 = fneg float %20
  %22 = fcmp ule float %19, %21
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br i1 %22, label %23, label %.critedge

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind nonnull writable sret(%"class.vox::BoundingPlane") align 4 %4, ptr noundef nonnull align 4 dereferenceable(96) %0, i32 noundef 1)
  %24 = load float, ptr %4, align 4, !tbaa !5
  %25 = fcmp ult float %24, 0.000000e+00
  %..idx.1 = select i1 %25, i64 12, i64 0
  %..1 = getelementptr inbounds i8, ptr %1, i64 %..idx.1
  %26 = load float, ptr %..1, align 4, !tbaa !10
  store float %26, ptr %3, align 4, !tbaa !5
  %27 = load float, ptr %5, align 4, !tbaa !12
  %28 = fcmp ult float %27, 0.000000e+00
  %.in21.v.1 = select i1 %28, i64 16, i64 4
  %.in21.1 = getelementptr inbounds i8, ptr %1, i64 %.in21.v.1
  %29 = load float, ptr %.in21.1, align 4, !tbaa !13
  store float %29, ptr %6, align 4, !tbaa !12
  %30 = load float, ptr %7, align 4, !tbaa !14
  %31 = fcmp ult float %30, 0.000000e+00
  %.in22.v.1 = select i1 %31, i64 20, i64 8
  %.in22.1 = getelementptr inbounds i8, ptr %1, i64 %.in22.v.1
  %32 = load float, ptr %.in22.1, align 4, !tbaa !15
  store float %32, ptr %8, align 4, !tbaa !14
  %33 = call noundef float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %34 = load float, ptr %9, align 4, !tbaa !16
  %35 = fneg float %34
  %36 = fcmp ule float %33, %35
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br i1 %36, label %37, label %.critedge

37:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind nonnull writable sret(%"class.vox::BoundingPlane") align 4 %4, ptr noundef nonnull align 4 dereferenceable(96) %0, i32 noundef 2)
  %38 = load float, ptr %4, align 4, !tbaa !5
  %39 = fcmp ult float %38, 0.000000e+00
  %..idx.2 = select i1 %39, i64 12, i64 0
  %..2 = getelementptr inbounds i8, ptr %1, i64 %..idx.2
  %40 = load float, ptr %..2, align 4, !tbaa !10
  store float %40, ptr %3, align 4, !tbaa !5
  %41 = load float, ptr %5, align 4, !tbaa !12
  %42 = fcmp ult float %41, 0.000000e+00
  %.in21.v.2 = select i1 %42, i64 16, i64 4
  %.in21.2 = getelementptr inbounds i8, ptr %1, i64 %.in21.v.2
  %43 = load float, ptr %.in21.2, align 4, !tbaa !13
  store float %43, ptr %6, align 4, !tbaa !12
  %44 = load float, ptr %7, align 4, !tbaa !14
  %45 = fcmp ult float %44, 0.000000e+00
  %.in22.v.2 = select i1 %45, i64 20, i64 8
  %.in22.2 = getelementptr inbounds i8, ptr %1, i64 %.in22.v.2
  %46 = load float, ptr %.in22.2, align 4, !tbaa !15
  store float %46, ptr %8, align 4, !tbaa !14
  %47 = call noundef float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %48 = load float, ptr %9, align 4, !tbaa !16
  %49 = fneg float %48
  %50 = fcmp ule float %47, %49
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br i1 %50, label %51, label %.critedge

51:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind nonnull writable sret(%"class.vox::BoundingPlane") align 4 %4, ptr noundef nonnull align 4 dereferenceable(96) %0, i32 noundef 3)
  %52 = load float, ptr %4, align 4, !tbaa !5
  %53 = fcmp ult float %52, 0.000000e+00
  %..idx.3 = select i1 %53, i64 12, i64 0
  %..3 = getelementptr inbounds i8, ptr %1, i64 %..idx.3
  %54 = load float, ptr %..3, align 4, !tbaa !10
  store float %54, ptr %3, align 4, !tbaa !5
  %55 = load float, ptr %5, align 4, !tbaa !12
  %56 = fcmp ult float %55, 0.000000e+00
  %.in21.v.3 = select i1 %56, i64 16, i64 4
  %.in21.3 = getelementptr inbounds i8, ptr %1, i64 %.in21.v.3
  %57 = load float, ptr %.in21.3, align 4, !tbaa !13
  store float %57, ptr %6, align 4, !tbaa !12
  %58 = load float, ptr %7, align 4, !tbaa !14
  %59 = fcmp ult float %58, 0.000000e+00
  %.in22.v.3 = select i1 %59, i64 20, i64 8
  %.in22.3 = getelementptr inbounds i8, ptr %1, i64 %.in22.v.3
  %60 = load float, ptr %.in22.3, align 4, !tbaa !15
  store float %60, ptr %8, align 4, !tbaa !14
  %61 = call noundef float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %62 = load float, ptr %9, align 4, !tbaa !16
  %63 = fneg float %62
  %64 = fcmp ule float %61, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br i1 %64, label %65, label %.critedge

65:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind nonnull writable sret(%"class.vox::BoundingPlane") align 4 %4, ptr noundef nonnull align 4 dereferenceable(96) %0, i32 noundef 4)
  %66 = load float, ptr %4, align 4, !tbaa !5
  %67 = fcmp ult float %66, 0.000000e+00
  %..idx.4 = select i1 %67, i64 12, i64 0
  %..4 = getelementptr inbounds i8, ptr %1, i64 %..idx.4
  %68 = load float, ptr %..4, align 4, !tbaa !10
  store float %68, ptr %3, align 4, !tbaa !5
  %69 = load float, ptr %5, align 4, !tbaa !12
  %70 = fcmp ult float %69, 0.000000e+00
  %.in21.v.4 = select i1 %70, i64 16, i64 4
  %.in21.4 = getelementptr inbounds i8, ptr %1, i64 %.in21.v.4
  %71 = load float, ptr %.in21.4, align 4, !tbaa !13
  store float %71, ptr %6, align 4, !tbaa !12
  %72 = load float, ptr %7, align 4, !tbaa !14
  %73 = fcmp ult float %72, 0.000000e+00
  %.in22.v.4 = select i1 %73, i64 20, i64 8
  %.in22.4 = getelementptr inbounds i8, ptr %1, i64 %.in22.v.4
  %74 = load float, ptr %.in22.4, align 4, !tbaa !15
  store float %74, ptr %8, align 4, !tbaa !14
  %75 = call noundef float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %76 = load float, ptr %9, align 4, !tbaa !16
  %77 = fneg float %76
  %78 = fcmp ule float %75, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br i1 %78, label %79, label %.critedge

79:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind nonnull writable sret(%"class.vox::BoundingPlane") align 4 %4, ptr noundef nonnull align 4 dereferenceable(96) %0, i32 noundef 5)
  %80 = load float, ptr %4, align 4, !tbaa !5
  %81 = fcmp ult float %80, 0.000000e+00
  %..idx.5 = select i1 %81, i64 12, i64 0
  %..5 = getelementptr inbounds i8, ptr %1, i64 %..idx.5
  %82 = load float, ptr %..5, align 4, !tbaa !10
  store float %82, ptr %3, align 4, !tbaa !5
  %83 = load float, ptr %5, align 4, !tbaa !12
  %84 = fcmp ult float %83, 0.000000e+00
  %.in21.v.5 = select i1 %84, i64 16, i64 4
  %.in21.5 = getelementptr inbounds i8, ptr %1, i64 %.in21.v.5
  %85 = load float, ptr %.in21.5, align 4, !tbaa !13
  store float %85, ptr %6, align 4, !tbaa !12
  %86 = load float, ptr %7, align 4, !tbaa !14
  %87 = fcmp ult float %86, 0.000000e+00
  %.in22.v.5 = select i1 %87, i64 20, i64 8
  %.in22.5 = getelementptr inbounds i8, ptr %1, i64 %.in22.v.5
  %88 = load float, ptr %.in22.5, align 4, !tbaa !15
  store float %88, ptr %8, align 4, !tbaa !14
  %89 = call noundef float @_ZNK3vox6VectorIfLm3EE3dotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %90 = load float, ptr %9, align 4, !tbaa !16
  %91 = fneg float %90
  %92 = fcmp ule float %89, %91
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br i1 %92, label %93, label %.critedge

93:                                               ; preds = %79
  br label %.critedge

.critedge:                                        ; preds = %93, %79, %65, %51, %37, %23, %2
  %.lcssa = phi i1 [ false, %2 ], [ false, %23 ], [ false, %37 ], [ false, %51 ], [ false, %65 ], [ false, %79 ], [ true, %93 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  ret i1 %.lcssa
}

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

declare void @_ZNK3vox15BoundingFrustum8getPlaneEi(ptr dead_on_unwind writable sret(%"class.vox::BoundingPlane") align 4, ptr noundef nonnull align 4 dereferenceable(96), i32 noundef) local_unnamed_addr #3

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 = { 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 = { "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 = { 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 = !{!"_ZTSN3vox6VectorIfLm3EEE", !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 = !{!11, !7, i64 0}
!11 = !{!"_ZTSN3vox5PointIfLm3EEE", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!6, !7, i64 4}
!13 = !{!11, !7, i64 4}
!14 = !{!6, !7, i64 8}
!15 = !{!11, !7, i64 8}
!16 = !{!17, !7, i64 12}
!17 = !{!"_ZTSN3vox13BoundingPlaneIfLm3EEE", !6, i64 0, !7, i64 12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass