; LLVM IR from yangfengzzz/DigitalVox3 :: vox.geometry/surfaces (cylinder3)

; 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::geometry::MatrixElemWiseBinaryOp" = type <{ ptr, ptr, [8 x i8] }>
%"class.vox::geometry::BoundingBox.15" = type { %"class.vox::geometry::Matrix", %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Matrix" = type { double, double, double }
%"struct.vox::geometry::SurfaceRayIntersection" = type { i8, double, %"class.vox::geometry::Matrix", %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Plane" = type { %"class.vox::geometry::Surface.base", %"class.vox::geometry::Matrix", %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Surface.base" = type <{ ptr, %"class.vox::geometry::Transform", i8 }>
%"class.vox::geometry::Transform" = type { %"class.vox::geometry::Matrix", %"class.vox::geometry::Orientation" }
%"class.vox::geometry::Orientation" = type { %"class.vox::geometry::Quaternion", %"class.vox::geometry::Matrix.0", %"class.vox::geometry::Matrix.0" }
%"class.vox::geometry::Quaternion" = type { double, double, double, double }
%"class.vox::geometry::Matrix.0" = type { %"struct.std::array" }
%"struct.std::array" = type { [9 x double] }
%"class.vox::geometry::Matrix.4" = type { double, double }
%"class.vox::geometry::Ray" = type { %"class.vox::geometry::Matrix", %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Cylinder3" = type { %"class.vox::geometry::Surface.base", %"class.vox::geometry::Matrix", double, double }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) 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: nounwind
declare double @sqrt(double noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE3dotILm3ELm1ES3_dEENSt9enable_ifIXaaooclL_ZNS0_19isMatrixSizeDynamicILm3ELm1EEEbvEEeqLm1ELi1Eoocl19isMatrixSizeDynamicIXT_EXT0_EEEeqT0_Li1EET2_E4typeERKNS1_IdXT_EXT0_ET1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef) #0

declare void @_ZNK3vox8geometry7SurfaceILm3EE11boundingBoxEv(ptr dead_on_unwind writable sret(%"class.vox::geometry::BoundingBox.15") align 8, ptr noundef nonnull align 8 dereferenceable(209)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometry9TransformILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #2 align 2

declare void @_ZN3vox8geometry5PlaneILm3EEC1ERKNS0_6MatrixIdLm3ELm1EEES6_RKNS0_9TransformILm3EEEb(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(200), i1 noundef zeroext) unnamed_addr #6

declare void @_ZNK3vox8geometry7SurfaceILm3EE19closestIntersectionERKNS0_3RayIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8, ptr noundef nonnull align 8 dereferenceable(209), ptr noundef nonnull align 8 dereferenceable(48)) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox8geometry3RayIdLm3EE7pointAtEd(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox8geometry9Cylinder324closestIntersectionLocalERKNS0_3RayIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.vox::geometry::Matrix", align 8
  %8 = alloca %"class.vox::geometry::Matrix", align 8
  %9 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.vox::geometry::BoundingBox.15", align 8
  %14 = alloca %"class.vox::geometry::Plane", align 8
  %15 = alloca %"class.vox::geometry::Matrix", align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.vox::geometry::Transform", align 8
  %20 = alloca %"class.vox::geometry::Plane", align 8
  %21 = alloca %"class.vox::geometry::Matrix", align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.vox::geometry::Transform", align 8
  %28 = alloca %"struct.vox::geometry::SurfaceRayIntersection", align 8
  %29 = alloca %"struct.vox::geometry::SurfaceRayIntersection", align 8
  %30 = alloca %"class.vox::geometry::Matrix", align 8
  %31 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %32 = alloca %"class.vox::geometry::Matrix.4", align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca %"class.vox::geometry::Matrix", align 8
  %38 = alloca %"class.vox::geometry::Matrix", align 8
  %39 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %40 = alloca %"class.vox::geometry::Matrix", align 8
  %41 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %42 = alloca %"class.vox::geometry::Matrix", align 8
  %43 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8
  call void @_ZN3vox8geometry22SurfaceRayIntersectionILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.vox::geometry::Ray", ptr %45, i32 0, i32 1
  call void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %46)
  %47 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %7, i32 0, i32 1
  store double 0.000000e+00, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.vox::geometry::Ray", ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 1
  call void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %9, ptr noundef nonnull align 1 dereferenceable(1) %49, ptr noundef nonnull align 1 dereferenceable(1) %50)
  call void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #9
  %51 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %8, i32 0, i32 1
  store double 0.000000e+00, ptr %51, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %52 = call noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %7)
  store double %52, ptr %10, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %53 = call noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE3dotILm3ELm1ES3_dEENSt9enable_ifIXaaooclL_ZNS0_19isMatrixSizeDynamicILm3ELm1EEEbvEEeqLm1ELi1Eoocl19isMatrixSizeDynamicIXT_EXT0_EEEeqT0_Li1EET2_E4typeERKNS1_IdXT_EXT0_ET1_EE(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
  store double %53, ptr %11, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %54 = call noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
  %55 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 2
  %56 = load double, ptr %55, align 8, !tbaa !13
  %57 = call noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %56)
  %58 = fsub double %54, %57
  store double %58, ptr %12, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #9
  call void @_ZNK3vox8geometry7SurfaceILm3EE11boundingBoxEv(ptr dead_on_unwind writable sret(%"class.vox::geometry::BoundingBox.15") align 8 %13, ptr noundef nonnull align 8 dereferenceable(209) %44)
  call void @llvm.lifetime.start.p0(i64 264, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store double 1.000000e+00, ptr %17, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  store double 0.000000e+00, ptr %18, align 8, !tbaa !12
  call void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ERKdS4_S4_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %59 = getelementptr inbounds %"class.vox::geometry::BoundingBox.15", ptr %13, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 200, ptr %19) #9
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 200, i1 false)
  call void @_ZN3vox8geometry9TransformILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %19)
  call void @_ZN3vox8geometry5PlaneILm3EEC1ERKNS0_6MatrixIdLm3ELm1EEES6_RKNS0_9TransformILm3EEEb(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(200) %19, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 200, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 264, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  store double 0.000000e+00, ptr %22, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  store double -1.000000e+00, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  store double 0.000000e+00, ptr %24, align 8, !tbaa !12
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ERKdS4_S4_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %60 unwind label %102

60:                                               ; preds = %3
  %61 = getelementptr inbounds %"class.vox::geometry::BoundingBox.15", ptr %13, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 200, ptr %27) #9
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 200, i1 false)
  invoke void @_ZN3vox8geometry9TransformILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %27)
          to label %62 unwind label %106

62:                                               ; preds = %60
  invoke void @_ZN3vox8geometry5PlaneILm3EEC1ERKNS0_6MatrixIdLm3ELm1EEES6_RKNS0_9TransformILm3EEEb(ptr noundef nonnull align 8 dereferenceable(264) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(200) %27, i1 noundef zeroext false)
          to label %63 unwind label %106

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 200, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3vox8geometry7SurfaceILm3EE19closestIntersectionERKNS0_3RayIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8 %28, ptr noundef nonnull align 8 dereferenceable(209) %14, ptr noundef nonnull align 8 dereferenceable(48) %64)
          to label %65 unwind label %111

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #9
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3vox8geometry7SurfaceILm3EE19closestIntersectionERKNS0_3RayIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8 %29, ptr noundef nonnull align 8 dereferenceable(209) %20, ptr noundef nonnull align 8 dereferenceable(48) %66)
          to label %67 unwind label %115

67:                                               ; preds = %65
  %68 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 1
  store double 0x7FEFFFFFFFFFFFFF, ptr %68, align 8, !tbaa !22
  %69 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 0
  store i8 0, ptr %69, align 8, !tbaa !24
  %70 = load double, ptr %10, align 8, !tbaa !12
  %71 = fcmp olt double %70, 0x3CB0000000000000
  br i1 %71, label %81, label %72

72:                                               ; preds = %67
  %73 = load double, ptr %11, align 8, !tbaa !12
  %74 = load double, ptr %11, align 8, !tbaa !12
  %75 = load double, ptr %10, align 8, !tbaa !12
  %76 = load double, ptr %12, align 8, !tbaa !12
  %77 = fmul double %75, %76
  %78 = fneg double %77
  %79 = call double @llvm.fmuladd.f64(double %73, double %74, double %78)
  %80 = fcmp olt double %79, 0.000000e+00
  br i1 %80, label %81, label %141

81:                                               ; preds = %72, %67
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.vox::geometry::Ray", ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 1
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %31, ptr noundef nonnull align 1 dereferenceable(1) %83, ptr noundef nonnull align 1 dereferenceable(1) %84)
          to label %85 unwind label %119

85:                                               ; preds = %81
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %86 unwind label %119

86:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #9
  %87 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %30, i32 0, i32 0
  %88 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %30, i32 0, i32 2
  invoke void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 8 dereferenceable(8) %88)
          to label %89 unwind label %123

89:                                               ; preds = %86
  %90 = invoke noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %91 unwind label %123

91:                                               ; preds = %89
  %92 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 2
  %93 = load double, ptr %92, align 8, !tbaa !13
  %94 = invoke noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %93)
          to label %95 unwind label %123

95:                                               ; preds = %91
  %96 = fcmp ole double %90, %94
  br i1 %96, label %97, label %139

97:                                               ; preds = %95
  %98 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %28, i32 0, i32 0
  %99 = load i8, ptr %98, align 8, !tbaa !24, !range !25, !noundef !26
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %127

101:                                              ; preds = %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %28, i64 64, i1 false)
  br label %127

102:                                              ; preds = %3
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %25, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %26, align 4
  br label %110

106:                                              ; preds = %62, %60
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %25, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 200, ptr %27) #9
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  br label %296

111:                                              ; preds = %63
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %25, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %26, align 4
  br label %295

115:                                              ; preds = %65
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %25, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %26, align 4
  br label %294

119:                                              ; preds = %85, %81
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %25, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  br label %140

123:                                              ; preds = %91, %89, %86
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %25, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  br label %140

127:                                              ; preds = %101, %97
  %128 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %29, i32 0, i32 0
  %129 = load i8, ptr %128, align 8, !tbaa !24, !range !25, !noundef !26
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %138

131:                                              ; preds = %127
  %132 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %29, i32 0, i32 1
  %133 = load double, ptr %132, align 8, !tbaa !22
  %134 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 1
  %135 = load double, ptr %134, align 8, !tbaa !22
  %136 = fcmp olt double %133, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %29, i64 64, i1 false)
  br label %138

138:                                              ; preds = %137, %131, %127
  br label %139

139:                                              ; preds = %138, %95
  store i32 1, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  br label %293

140:                                              ; preds = %123, %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  br label %294

141:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %142 = load double, ptr %11, align 8, !tbaa !12
  %143 = fneg double %142
  %144 = load double, ptr %11, align 8, !tbaa !12
  %145 = load double, ptr %11, align 8, !tbaa !12
  %146 = load double, ptr %10, align 8, !tbaa !12
  %147 = load double, ptr %12, align 8, !tbaa !12
  %148 = fmul double %146, %147
  %149 = fneg double %148
  %150 = call double @llvm.fmuladd.f64(double %144, double %145, double %149)
  %151 = call double @sqrt(double noundef %150) #9
  %152 = fadd double %143, %151
  %153 = load double, ptr %10, align 8, !tbaa !12
  %154 = fdiv double %152, %153
  store double %154, ptr %34, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %155 = load double, ptr %11, align 8, !tbaa !12
  %156 = fneg double %155
  %157 = load double, ptr %11, align 8, !tbaa !12
  %158 = load double, ptr %11, align 8, !tbaa !12
  %159 = load double, ptr %10, align 8, !tbaa !12
  %160 = load double, ptr %12, align 8, !tbaa !12
  %161 = fmul double %159, %160
  %162 = fneg double %161
  %163 = call double @llvm.fmuladd.f64(double %157, double %158, double %162)
  %164 = call double @sqrt(double noundef %163) #9
  %165 = fsub double %156, %164
  %166 = load double, ptr %10, align 8, !tbaa !12
  %167 = fdiv double %165, %166
  store double %167, ptr %35, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %168 = load double, ptr %35, align 8, !tbaa !12
  store double %168, ptr %36, align 8, !tbaa !12
  %169 = load double, ptr %35, align 8, !tbaa !12
  %170 = fcmp olt double %169, 0.000000e+00
  br i1 %170, label %171, label %173

171:                                              ; preds = %141
  %172 = load double, ptr %34, align 8, !tbaa !12
  store double %172, ptr %36, align 8, !tbaa !12
  br label %173

173:                                              ; preds = %171, %141
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #9
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = load double, ptr %36, align 8, !tbaa !12
  invoke void @_ZNK3vox8geometry3RayIdLm3EE7pointAtEd(ptr dead_on_unwind writable sret(%"class.vox::geometry::Matrix") align 8 %37, ptr noundef nonnull align 8 dereferenceable(48) %174, double noundef %175)
          to label %176 unwind label %209

176:                                              ; preds = %173
  %177 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %37, i32 0, i32 1
  %178 = load double, ptr %177, align 8, !tbaa !9
  %179 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 1
  %180 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %179, i32 0, i32 1
  %181 = load double, ptr %180, align 8, !tbaa !27
  %182 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 3
  %183 = load double, ptr %182, align 8, !tbaa !28
  %184 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %183, double %181)
  %185 = fcmp oge double %178, %184
  br i1 %185, label %196, label %186

186:                                              ; preds = %176
  %187 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %37, i32 0, i32 1
  %188 = load double, ptr %187, align 8, !tbaa !9
  %189 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 1
  %190 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %189, i32 0, i32 1
  %191 = load double, ptr %190, align 8, !tbaa !27
  %192 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 3
  %193 = load double, ptr %192, align 8, !tbaa !28
  %194 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %193, double %191)
  %195 = fcmp ole double %188, %194
  br i1 %195, label %196, label %217

196:                                              ; preds = %186, %176
  %197 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 0
  store i8 1, ptr %197, align 8, !tbaa !24
  %198 = load double, ptr %36, align 8, !tbaa !12
  %199 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 1
  store double %198, ptr %199, align 8, !tbaa !22
  %200 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %200, ptr align 8 %37, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #9
  %201 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 1
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %39, ptr noundef nonnull align 1 dereferenceable(1) %37, ptr noundef nonnull align 1 dereferenceable(1) %201)
          to label %202 unwind label %213

202:                                              ; preds = %196
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %203 unwind label %213

203:                                              ; preds = %202
  %204 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %204, ptr align 8 %38, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #9
  %205 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 3
  %206 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %205, i32 0, i32 1
  store double 0.000000e+00, ptr %206, align 8, !tbaa !29
  %207 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 3
  invoke void @_ZN3vox8geometry15MatrixDenseBaseIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE9normalizeEv(ptr noundef nonnull align 1 dereferenceable(1) %207)
          to label %208 unwind label %209

208:                                              ; preds = %203
  br label %217

209:                                              ; preds = %203, %173
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %25, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %26, align 4
  br label %292

213:                                              ; preds = %202, %196
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %25, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #9
  br label %292

217:                                              ; preds = %208, %186
  %218 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %28, i32 0, i32 0
  %219 = load i8, ptr %218, align 8, !tbaa !24, !range !25, !noundef !26
  %220 = trunc i8 %219 to i1
  br i1 %220, label %221, label %254

221:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #9
  %222 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %28, i32 0, i32 2
  %223 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 1
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %41, ptr noundef nonnull align 1 dereferenceable(1) %222, ptr noundef nonnull align 1 dereferenceable(1) %223)
          to label %224 unwind label %236

224:                                              ; preds = %221
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %225 unwind label %236

225:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #9
  %226 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %40, i32 0, i32 1
  store double 0.000000e+00, ptr %226, align 8, !tbaa !9
  %227 = invoke noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %228 unwind label %240

228:                                              ; preds = %225
  %229 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 2
  %230 = load double, ptr %229, align 8, !tbaa !13
  %231 = invoke noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %230)
          to label %232 unwind label %240

232:                                              ; preds = %228
  %233 = fcmp ogt double %227, %231
  br i1 %233, label %234, label %244

234:                                              ; preds = %232
  %235 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %28, i32 0, i32 0
  store i8 0, ptr %235, align 8, !tbaa !24
  br label %252

236:                                              ; preds = %224, %221
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %25, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #9
  br label %253

240:                                              ; preds = %228, %225
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %25, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %26, align 4
  br label %253

244:                                              ; preds = %232
  %245 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %28, i32 0, i32 1
  %246 = load double, ptr %245, align 8, !tbaa !22
  %247 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 1
  %248 = load double, ptr %247, align 8, !tbaa !22
  %249 = fcmp olt double %246, %248
  br i1 %249, label %250, label %251

250:                                              ; preds = %244
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %28, i64 64, i1 false)
  br label %251

251:                                              ; preds = %250, %244
  br label %252

252:                                              ; preds = %251, %234
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #9
  br label %254

253:                                              ; preds = %240, %236
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #9
  br label %292

254:                                              ; preds = %252, %217
  %255 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %29, i32 0, i32 0
  %256 = load i8, ptr %255, align 8, !tbaa !24, !range !25, !noundef !26
  %257 = trunc i8 %256 to i1
  br i1 %257, label %258, label %291

258:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #9
  %259 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %29, i32 0, i32 2
  %260 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 1
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %43, ptr noundef nonnull align 1 dereferenceable(1) %259, ptr noundef nonnull align 1 dereferenceable(1) %260)
          to label %261 unwind label %273

261:                                              ; preds = %258
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 1 dereferenceable(1) %43)
          to label %262 unwind label %273

262:                                              ; preds = %261
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  %263 = getelementptr inbounds %"class.vox::geometry::Matrix", ptr %42, i32 0, i32 1
  store double 0.000000e+00, ptr %263, align 8, !tbaa !9
  %264 = invoke noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %265 unwind label %277

265:                                              ; preds = %262
  %266 = getelementptr inbounds %"class.vox::geometry::Cylinder3", ptr %44, i32 0, i32 2
  %267 = load double, ptr %266, align 8, !tbaa !13
  %268 = invoke noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %267)
          to label %269 unwind label %277

269:                                              ; preds = %265
  %270 = fcmp ogt double %264, %268
  br i1 %270, label %271, label %281

271:                                              ; preds = %269
  %272 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %29, i32 0, i32 0
  store i8 0, ptr %272, align 8, !tbaa !24
  br label %289

273:                                              ; preds = %261, %258
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %25, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  br label %290

277:                                              ; preds = %265, %262
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %25, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %26, align 4
  br label %290

281:                                              ; preds = %269
  %282 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %29, i32 0, i32 1
  %283 = load double, ptr %282, align 8, !tbaa !22
  %284 = getelementptr inbounds %"struct.vox::geometry::SurfaceRayIntersection", ptr %0, i32 0, i32 1
  %285 = load double, ptr %284, align 8, !tbaa !22
  %286 = fcmp olt double %283, %285
  br i1 %286, label %287, label %288

287:                                              ; preds = %281
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %29, i64 64, i1 false)
  br label %288

288:                                              ; preds = %287, %281
  br label %289

289:                                              ; preds = %288, %271
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #9
  br label %291

290:                                              ; preds = %277, %273
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #9
  br label %292

291:                                              ; preds = %289, %254
  store i32 1, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %293

292:                                              ; preds = %290, %253, %213, %209
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %294

293:                                              ; preds = %291, %139
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %20) #9
  call void @llvm.lifetime.end.p0(i64 264, ptr %20) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %14) #9
  call void @llvm.lifetime.end.p0(i64 264, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  ret void

294:                                              ; preds = %292, %140, %115
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #9
  br label %295

295:                                              ; preds = %294, %111
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %20) #9
  br label %296

296:                                              ; preds = %295, %110
  call void @llvm.lifetime.end.p0(i64 264, ptr %20) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %14) #9
  call void @llvm.lifetime.end.p0(i64 264, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  br label %297

297:                                              ; preds = %296
  %298 = load ptr, ptr %25, align 8
  %299 = load i32, ptr %26, align 4
  %300 = insertvalue { ptr, i32 } poison, ptr %298, 0
  %301 = insertvalue { ptr, i32 } %300, i32 %299, 1
  resume { ptr, i32 } %301
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox8geometry22SurfaceRayIntersectionILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #7 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) #8

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(209)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { "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 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 8}
!10 = !{!"_ZTSN3vox8geometry6MatrixIdLm3ELm1EEE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 240}
!14 = !{!"_ZTSN3vox8geometry9Cylinder3E", !15, i64 0, !10, i64 216, !11, i64 240, !11, i64 248}
!15 = !{!"_ZTSN3vox8geometry7SurfaceILm3EEE", !16, i64 8, !21, i64 208}
!16 = !{!"_ZTSN3vox8geometry9TransformILm3EEE", !10, i64 0, !17, i64 24}
!17 = !{!"_ZTSN3vox8geometry11OrientationILm3EEE", !18, i64 0, !19, i64 32, !19, i64 104}
!18 = !{!"_ZTSN3vox8geometry10QuaternionIdEE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!19 = !{!"_ZTSN3vox8geometry6MatrixIdLm3ELm3EEE", !20, i64 0}
!20 = !{!"_ZTSSt5arrayIdLm9EE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!23, !11, i64 8}
!23 = !{!"_ZTSN3vox8geometry22SurfaceRayIntersectionILm3EEE", !21, i64 0, !11, i64 8, !10, i64 16, !10, i64 40}
!24 = !{!23, !21, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!14, !11, i64 224}
!28 = !{!14, !11, i64 248}
!29 = !{!23, !11, i64 48}


; 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::geometry::MatrixElemWiseBinaryOp" = type <{ ptr, ptr, [8 x i8] }>
%"class.vox::geometry::BoundingBox.15" = type { %"class.vox::geometry::Matrix", %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Matrix" = type { double, double, double }
%"struct.vox::geometry::SurfaceRayIntersection" = type { i8, double, %"class.vox::geometry::Matrix", %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Plane" = type { %"class.vox::geometry::Surface.base", %"class.vox::geometry::Matrix", %"class.vox::geometry::Matrix" }
%"class.vox::geometry::Surface.base" = type <{ ptr, %"class.vox::geometry::Transform", i8 }>
%"class.vox::geometry::Transform" = type { %"class.vox::geometry::Matrix", %"class.vox::geometry::Orientation" }
%"class.vox::geometry::Orientation" = type { %"class.vox::geometry::Quaternion", %"class.vox::geometry::Matrix.0", %"class.vox::geometry::Matrix.0" }
%"class.vox::geometry::Quaternion" = type { double, double, double, double }
%"class.vox::geometry::Matrix.0" = type { %"struct.std::array" }
%"struct.std::array" = type { [9 x double] }
%"class.vox::geometry::Matrix.4" = type { double, double }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE3dotILm3ELm1ES3_dEENSt9enable_ifIXaaooclL_ZNS0_19isMatrixSizeDynamicILm3ELm1EEEbvEEeqLm1ELi1Eoocl19isMatrixSizeDynamicIXT_EXT0_EEEeqT0_Li1EET2_E4typeERKNS1_IdXT_EXT0_ET1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef) local_unnamed_addr #0

declare void @_ZNK3vox8geometry7SurfaceILm3EE11boundingBoxEv(ptr dead_on_unwind writable sret(%"class.vox::geometry::BoundingBox.15") align 8, ptr noundef nonnull align 8 dereferenceable(209)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vox8geometry9TransformILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #2 align 2

declare void @_ZN3vox8geometry5PlaneILm3EEC1ERKNS0_6MatrixIdLm3ELm1EEES6_RKNS0_9TransformILm3EEEb(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(200), i1 noundef zeroext) unnamed_addr #6

declare void @_ZNK3vox8geometry7SurfaceILm3EE19closestIntersectionERKNS0_3RayIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8, ptr noundef nonnull align 8 dereferenceable(209), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox8geometry3RayIdLm3EE7pointAtEd(ptr dead_on_unwind noalias writable sret(%"class.vox::geometry::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox8geometry9Cylinder324closestIntersectionLocalERKNS0_3RayIdLm3EEE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull align 8 dereferenceable(48) %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vox::geometry::Matrix", align 8
  %5 = alloca %"class.vox::geometry::Matrix", align 8
  %6 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %7 = alloca %"class.vox::geometry::BoundingBox.15", align 8
  %8 = alloca %"class.vox::geometry::Plane", align 8
  %9 = alloca %"class.vox::geometry::Matrix", align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.vox::geometry::Transform", align 8
  %14 = alloca %"class.vox::geometry::Plane", align 8
  %15 = alloca %"class.vox::geometry::Matrix", align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.vox::geometry::Transform", align 8
  %20 = alloca %"struct.vox::geometry::SurfaceRayIntersection", align 8
  %21 = alloca %"struct.vox::geometry::SurfaceRayIntersection", align 8
  %22 = alloca %"class.vox::geometry::Matrix", align 8
  %23 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %24 = alloca %"class.vox::geometry::Matrix.4", align 8
  %25 = alloca %"class.vox::geometry::Matrix", align 8
  %26 = alloca %"class.vox::geometry::Matrix", align 8
  %27 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %28 = alloca %"class.vox::geometry::Matrix", align 8
  %29 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  %30 = alloca %"class.vox::geometry::Matrix", align 8
  %31 = alloca %"class.vox::geometry::MatrixElemWiseBinaryOp", align 8
  tail call void @_ZN3vox8geometry22SurfaceRayIntersectionILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  %32 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %32)
  %33 = getelementptr inbounds i8, ptr %4, i64 8
  store double 0.000000e+00, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  %34 = getelementptr inbounds i8, ptr %1, i64 216
  call void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %6, ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 1 dereferenceable(1) %34)
  call void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  %35 = getelementptr inbounds i8, ptr %5, i64 8
  store double 0.000000e+00, ptr %35, align 8, !tbaa !5
  %36 = call noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %4)
  %37 = call noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE3dotILm3ELm1ES3_dEENSt9enable_ifIXaaooclL_ZNS0_19isMatrixSizeDynamicILm3ELm1EEEbvEEeqLm1ELi1Eoocl19isMatrixSizeDynamicIXT_EXT0_EEEeqT0_Li1EET2_E4typeERKNS1_IdXT_EXT0_ET1_EE(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %38 = call noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %5)
  %39 = getelementptr inbounds i8, ptr %1, i64 240
  %40 = load double, ptr %39, align 8, !tbaa !10
  %41 = call noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %40)
  %42 = fsub double %38, %41
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #9
  call void @_ZNK3vox8geometry7SurfaceILm3EE11boundingBoxEv(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::BoundingBox.15") align 8 %7, ptr noundef nonnull align 8 dereferenceable(209) %1)
  call void @llvm.lifetime.start.p0(i64 264, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  store double 0.000000e+00, ptr %10, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  store double 1.000000e+00, ptr %11, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  store double 0.000000e+00, ptr %12, align 8, !tbaa !19
  call void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ERKdS4_S4_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %43 = getelementptr inbounds i8, ptr %7, i64 24
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %13) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(200) %13, i8 0, i64 200, i1 false)
  call void @_ZN3vox8geometry9TransformILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %13)
  call void @_ZN3vox8geometry5PlaneILm3EEC1ERKNS0_6MatrixIdLm3ELm1EEES6_RKNS0_9TransformILm3EEEb(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(200) %13, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 264, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  store double -1.000000e+00, ptr %17, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  store double 0.000000e+00, ptr %18, align 8, !tbaa !19
  call void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ERKdS4_S4_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %19) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(200) %19, i8 0, i64 200, i1 false)
  invoke void @_ZN3vox8geometry9TransformILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %19)
          to label %44 unwind label %68

44:                                               ; preds = %3
  invoke void @_ZN3vox8geometry5PlaneILm3EEC1ERKNS0_6MatrixIdLm3ELm1EEES6_RKNS0_9TransformILm3EEEb(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(200) %19, i1 noundef zeroext false)
          to label %45 unwind label %68

45:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #9
  invoke void @_ZNK3vox8geometry7SurfaceILm3EE19closestIntersectionERKNS0_3RayIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8 %20, ptr noundef nonnull align 8 dereferenceable(209) %8, ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %46 unwind label %70

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #9
  invoke void @_ZNK3vox8geometry7SurfaceILm3EE19closestIntersectionERKNS0_3RayIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vox::geometry::SurfaceRayIntersection") align 8 %21, ptr noundef nonnull align 8 dereferenceable(209) %14, ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %47 unwind label %72

47:                                               ; preds = %46
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  store double 0x7FEFFFFFFFFFFFFF, ptr %48, align 8, !tbaa !20
  store i8 0, ptr %0, align 8, !tbaa !22
  %49 = fcmp olt double %36, 0x3CB0000000000000
  br i1 %49, label %55, label %50

50:                                               ; preds = %47
  %51 = fneg double %36
  %52 = fmul double %42, %51
  %53 = call double @llvm.fmuladd.f64(double %37, double %37, double %52)
  %54 = fcmp olt double %53, 0.000000e+00
  br i1 %54, label %55, label %89

55:                                               ; preds = %50, %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #9
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %23, ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %56 unwind label %74

56:                                               ; preds = %55
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %57 unwind label %74

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #9
  %58 = getelementptr inbounds i8, ptr %22, i64 16
  call void @_ZN3vox8geometry6MatrixIdLm2ELm1EEC2ERKdS4_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %58)
  %59 = invoke noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm2ELm1ENS0_6MatrixIdLm2ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %60 unwind label %76

60:                                               ; preds = %57
  %61 = load double, ptr %39, align 8, !tbaa !10
  %62 = call noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %61)
  %63 = fcmp ugt double %59, %62
  br i1 %63, label %87, label %64

64:                                               ; preds = %60
  %65 = load i8, ptr %20, align 8, !tbaa !22, !range !23, !noundef !24
  %66 = trunc nuw i8 %65 to i1
  br i1 %66, label %67, label %78

67:                                               ; preds = %64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(64) %20, i64 64, i1 false)
  br label %78

68:                                               ; preds = %44, %3
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %176

70:                                               ; preds = %45
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %175

72:                                               ; preds = %46
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %174

74:                                               ; preds = %56, %55
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #9
  br label %88

76:                                               ; preds = %57
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  br label %88

78:                                               ; preds = %67, %64
  %79 = load i8, ptr %21, align 8, !tbaa !22, !range !23, !noundef !24
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %81, label %87

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %21, i64 8
  %83 = load double, ptr %82, align 8, !tbaa !20
  %84 = load double, ptr %48, align 8, !tbaa !20
  %85 = fcmp olt double %83, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %81
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(64) %21, i64 64, i1 false)
  br label %87

87:                                               ; preds = %78, %81, %86, %60
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #9
  br label %173

88:                                               ; preds = %76, %74
  %.pn46 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #9
  br label %174

89:                                               ; preds = %50
  %90 = fneg double %37
  %91 = call double @sqrt(double noundef %53) #9
  %92 = call double @sqrt(double noundef %53) #9
  %93 = fsub double %90, %92
  %94 = fdiv double %93, %36
  %95 = fcmp olt double %94, 0.000000e+00
  %96 = fsub double %91, %37
  %97 = fdiv double %96, %36
  %.0 = select i1 %95, double %97, double %94
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #9
  invoke void @_ZNK3vox8geometry3RayIdLm3EE7pointAtEd(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::Matrix") align 8 %25, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %.0)
          to label %98 unwind label %115

98:                                               ; preds = %89
  %99 = getelementptr inbounds i8, ptr %25, i64 8
  %100 = load double, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %1, i64 224
  %102 = load double, ptr %101, align 8, !tbaa !25
  %103 = getelementptr inbounds i8, ptr %1, i64 248
  %104 = load double, ptr %103, align 8, !tbaa !26
  %105 = call double @llvm.fmuladd.f64(double %104, double -5.000000e-01, double %102)
  %106 = fcmp ult double %100, %105
  %107 = call double @llvm.fmuladd.f64(double %104, double 5.000000e-01, double %102)
  %108 = fcmp ugt double %100, %107
  %or.cond = select i1 %106, i1 %108, i1 false
  br i1 %or.cond, label %119, label %109

109:                                              ; preds = %98
  store i8 1, ptr %0, align 8, !tbaa !22
  store double %.0, ptr %48, align 8, !tbaa !20
  %110 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 8 dereferenceable(24) %25, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #9
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %27, ptr noundef nonnull align 1 dereferenceable(1) %25, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %111 unwind label %117

111:                                              ; preds = %109
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %112 unwind label %117

112:                                              ; preds = %111
  %113 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 8 dereferenceable(24) %26, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  %114 = getelementptr inbounds i8, ptr %0, i64 48
  store double 0.000000e+00, ptr %114, align 8, !tbaa !27
  invoke void @_ZN3vox8geometry15MatrixDenseBaseIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE9normalizeEv(ptr noundef nonnull align 1 dereferenceable(1) %113)
          to label %119 unwind label %115

115:                                              ; preds = %112, %89
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %172

117:                                              ; preds = %111, %109
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  br label %172

119:                                              ; preds = %98, %112
  %120 = load i8, ptr %20, align 8, !tbaa !22, !range !23, !noundef !24
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %122, label %145

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #9
  %123 = getelementptr inbounds i8, ptr %20, i64 16
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %29, ptr noundef nonnull align 1 dereferenceable(1) %123, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %124 unwind label %133

124:                                              ; preds = %122
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %125 unwind label %133

125:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #9
  %126 = getelementptr inbounds i8, ptr %28, i64 8
  store double 0.000000e+00, ptr %126, align 8, !tbaa !5
  %127 = invoke noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %128 unwind label %135

128:                                              ; preds = %125
  %129 = load double, ptr %39, align 8, !tbaa !10
  %130 = call noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %129)
  %131 = fcmp ogt double %127, %130
  br i1 %131, label %132, label %137

132:                                              ; preds = %128
  store i8 0, ptr %20, align 8, !tbaa !22
  br label %143

133:                                              ; preds = %124, %122
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #9
  br label %144

135:                                              ; preds = %125
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %144

137:                                              ; preds = %128
  %138 = getelementptr inbounds i8, ptr %20, i64 8
  %139 = load double, ptr %138, align 8, !tbaa !20
  %140 = load double, ptr %48, align 8, !tbaa !20
  %141 = fcmp olt double %139, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %137
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(64) %20, i64 64, i1 false)
  br label %143

143:                                              ; preds = %137, %142, %132
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  br label %145

144:                                              ; preds = %135, %133
  %.pn = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #9
  br label %172

145:                                              ; preds = %143, %119
  %146 = load i8, ptr %21, align 8, !tbaa !22, !range !23, !noundef !24
  %147 = trunc nuw i8 %146 to i1
  br i1 %147, label %148, label %171

148:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #9
  %149 = getelementptr inbounds i8, ptr %21, i64 16
  invoke void @_ZN3vox8geometrymiIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEES3_EEDaRKNS0_16MatrixExpressionIT_XT0_EXT1_ET2_EERKNS4_IS5_XT0_EXT1_ET3_EE(ptr dead_on_unwind nonnull writable sret(%"class.vox::geometry::MatrixElemWiseBinaryOp") align 8 %31, ptr noundef nonnull align 1 dereferenceable(1) %149, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %150 unwind label %159

150:                                              ; preds = %148
  invoke void @_ZN3vox8geometry6MatrixIdLm3ELm1EEC2ILm3ELm1ENS0_22MatrixElemWiseBinaryOpIdLm3ELm1ERKS2_S6_St5minusIdEEEEERKNS0_16MatrixExpressionIdXT_EXT0_ET1_EE(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %151 unwind label %159

151:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  %152 = getelementptr inbounds i8, ptr %30, i64 8
  store double 0.000000e+00, ptr %152, align 8, !tbaa !5
  %153 = invoke noundef double @_ZNK3vox8geometry16MatrixExpressionIdLm3ELm1ENS0_6MatrixIdLm3ELm1EEEE13lengthSquaredEv(ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %154 unwind label %161

154:                                              ; preds = %151
  %155 = load double, ptr %39, align 8, !tbaa !10
  %156 = call noundef double @_ZN3vox8geometry6squareIdEENSt9enable_ifIXsr3std13is_arithmeticIT_EE5valueES3_E4typeES3_(double noundef %155)
  %157 = fcmp ogt double %153, %156
  br i1 %157, label %158, label %163

158:                                              ; preds = %154
  store i8 0, ptr %21, align 8, !tbaa !22
  br label %169

159:                                              ; preds = %150, %148
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  br label %170

161:                                              ; preds = %151
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %170

163:                                              ; preds = %154
  %164 = getelementptr inbounds i8, ptr %21, i64 8
  %165 = load double, ptr %164, align 8, !tbaa !20
  %166 = load double, ptr %48, align 8, !tbaa !20
  %167 = fcmp olt double %165, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %163
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(64) %21, i64 64, i1 false)
  br label %169

169:                                              ; preds = %163, %168, %158
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #9
  br label %171

170:                                              ; preds = %161, %159
  %.pn43 = phi { ptr, i32 } [ %162, %161 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #9
  br label %172

171:                                              ; preds = %169, %145
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  br label %173

172:                                              ; preds = %170, %144, %117, %115
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %170 ], [ %.pn, %144 ], [ %116, %115 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  br label %174

173:                                              ; preds = %171, %87
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %14) #9
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %14) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %8) #9
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  ret void

174:                                              ; preds = %172, %88, %72
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %88 ], [ %.pn43.pn, %172 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #9
  br label %175

175:                                              ; preds = %174, %70
  %.pn46.pn.pn = phi { ptr, i32 } [ %.pn46.pn, %174 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %14) #9
  br label %176

176:                                              ; preds = %175, %68
  %.pn46.pn.pn.pn = phi { ptr, i32 } [ %.pn46.pn.pn, %175 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %14) #9
  call void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(264) %8) #9
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn46.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox8geometry22SurfaceRayIntersectionILm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #7 align 2

; Function Attrs: mustprogress 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) #8

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox8geometry7SurfaceILm3EED2Ev(ptr noundef nonnull align 8 dereferenceable(209)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree nounwind willreturn memory(write) "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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { "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 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 8}
!6 = !{!"_ZTSN3vox8geometry6MatrixIdLm3ELm1EEE", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 240}
!11 = !{!"_ZTSN3vox8geometry9Cylinder3E", !12, i64 0, !6, i64 216, !7, i64 240, !7, i64 248}
!12 = !{!"_ZTSN3vox8geometry7SurfaceILm3EEE", !13, i64 8, !18, i64 208}
!13 = !{!"_ZTSN3vox8geometry9TransformILm3EEE", !6, i64 0, !14, i64 24}
!14 = !{!"_ZTSN3vox8geometry11OrientationILm3EEE", !15, i64 0, !16, i64 32, !16, i64 104}
!15 = !{!"_ZTSN3vox8geometry10QuaternionIdEE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!16 = !{!"_ZTSN3vox8geometry6MatrixIdLm3ELm3EEE", !17, i64 0}
!17 = !{!"_ZTSSt5arrayIdLm9EE", !8, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !7, i64 8}
!21 = !{!"_ZTSN3vox8geometry22SurfaceRayIntersectionILm3EEE", !18, i64 0, !7, i64 8, !6, i64 16, !6, i64 40}
!22 = !{!21, !18, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!11, !7, i64 224}
!26 = !{!11, !7, i64 248}
!27 = !{!21, !7, i64 48}


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