; LLVM IR from yangfengzzz/DigitalVox4 :: vox.geometry/cylinder3.ll (ZNK3vox9Cylinder317closestPointLocalERKNS_5PointIdLm3EEE)

; 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::Point" = type { double, double, double }
%"class.vox::Vector" = type { double, double, double }
%"class.vox::Point.0" = type { double, double }
%"class.vox::Box2" = type { %"class.vox::Surface2.base", %"class.vox::BoundingBox" }
%"class.vox::Surface2.base" = type <{ ptr, %"class.vox::Transform2", i8 }>
%"class.vox::Transform2" = type { %"class.vox::Vector.1", double, double, double }
%"class.vox::Vector.1" = type { double, double }
%"class.vox::BoundingBox" = type { %"class.vox::Point.0", %"class.vox::Point.0" }
%"class.vox::Cylinder3" = type { %"class.vox::Surface3.base", %"class.vox::Point", double, double }
%"class.vox::Surface3.base" = type <{ ptr, %"class.vox::Transform3", i8 }>
%"class.vox::Transform3" = type { %"class.vox::Vector", %"class.vox::Quaternion", %"class.vox::Matrix", %"class.vox::Matrix" }
%"class.vox::Quaternion" = type { double, double, double, double }
%"class.vox::Matrix" = type { %"struct.std::array" }
%"struct.std::array" = type { [9 x double] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox9Cylinder317closestPointLocalERKNS_5PointIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.vox::Point") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) unnamed_addr #0 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::Vector", align 8
  %8 = alloca %"class.vox::Point.0", align 8
  %9 = alloca %"class.vox::Box2", align 8
  %10 = alloca %"class.vox::Point.0", align 8
  %11 = alloca %"class.vox::Point.0", align 8
  %12 = alloca %"class.vox::Transform2", align 8
  %13 = alloca %"class.vox::Point.0", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %"class.vox::Vector", 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
  %18 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.vox::Cylinder3", ptr %18, i32 0, i32 1
  call void @_ZN3voxmiIdEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind writable sret(%"class.vox::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %21 = getelementptr inbounds %"class.vox::Vector", ptr %7, i32 0, i32 0
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds %"class.vox::Vector", ptr %7, i32 0, i32 0
  %24 = load double, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %"class.vox::Vector", ptr %7, i32 0, i32 2
  %26 = load double, ptr %25, align 8, !tbaa !12
  %27 = getelementptr inbounds %"class.vox::Vector", ptr %7, i32 0, i32 2
  %28 = load double, ptr %27, align 8, !tbaa !12
  %29 = fmul double %26, %28
  %30 = call double @llvm.fmuladd.f64(double %22, double %24, double %29)
  %31 = call double @sqrt(double noundef %30) #7
  %32 = getelementptr inbounds %"class.vox::Vector", ptr %7, i32 0, i32 1
  %33 = load double, ptr %32, align 8, !tbaa !13
  call void @_ZN3vox5PointIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %31, double noundef %33)
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %34 = getelementptr inbounds %"class.vox::Cylinder3", ptr %18, i32 0, i32 2
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = fneg double %35
  %37 = getelementptr inbounds %"class.vox::Cylinder3", ptr %18, i32 0, i32 3
  %38 = load double, ptr %37, align 8, !tbaa !23
  %39 = fmul double -5.000000e-01, %38
  call void @_ZN3vox5PointIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %36, double noundef %39)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %40 = getelementptr inbounds %"class.vox::Cylinder3", ptr %18, i32 0, i32 2
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = getelementptr inbounds %"class.vox::Cylinder3", ptr %18, i32 0, i32 3
  %43 = load double, ptr %42, align 8, !tbaa !23
  %44 = fmul double 5.000000e-01, %43
  call void @_ZN3vox5PointIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %41, double noundef %44)
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #7
  call void @_ZN3vox10Transform2IdEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
  call void @_ZN3vox4Box2C1ERKNS_5PointIdLm2EEES4_RKNS_10Transform2IdEEb(ptr noundef nonnull align 8 dereferenceable(88) %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(40) %12, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  invoke void @_ZNK3vox8Surface212closestPointERKNS_5PointIdLm2EEE(ptr dead_on_unwind writable sret(%"class.vox::Point.0") align 8 %13, ptr noundef nonnull align 8 dereferenceable(49) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %45 unwind label %66

45:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %46 = getelementptr inbounds %"class.vox::Vector", ptr %7, i32 0, i32 2
  %47 = load double, ptr %46, align 8, !tbaa !12
  %48 = getelementptr inbounds %"class.vox::Vector", ptr %7, i32 0, i32 0
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = call double @atan2(double noundef %47, double noundef %49) #7
  store double %50, ptr %16, align 8, !tbaa !24
  %51 = getelementptr inbounds %"class.vox::Cylinder3", ptr %18, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  %52 = getelementptr inbounds %"class.vox::Point.0", ptr %13, i32 0, i32 0
  %53 = load double, ptr %52, align 8, !tbaa !25
  %54 = load double, ptr %16, align 8, !tbaa !24
  %55 = call double @cos(double noundef %54) #7
  %56 = fmul double %53, %55
  %57 = getelementptr inbounds %"class.vox::Point.0", ptr %13, i32 0, i32 1
  %58 = load double, ptr %57, align 8, !tbaa !27
  %59 = getelementptr inbounds %"class.vox::Point.0", ptr %13, i32 0, i32 0
  %60 = load double, ptr %59, align 8, !tbaa !25
  %61 = load double, ptr %16, align 8, !tbaa !24
  %62 = call double @sin(double noundef %61) #7
  %63 = fmul double %60, %62
  invoke void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %17, double noundef %56, double noundef %58, double noundef %63)
          to label %64 unwind label %70

64:                                               ; preds = %45
  invoke void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.vox::Point") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %65 unwind label %70

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @_ZN3vox8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  ret void

66:                                               ; preds = %3
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %14, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %15, align 4
  br label %74

70:                                               ; preds = %64, %45
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %14, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %74

74:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @_ZN3vox8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %14, align 8
  %77 = load i32, ptr %15, align 4
  %78 = insertvalue { ptr, i32 } poison, ptr %76, 0
  %79 = insertvalue { ptr, i32 } %78, i32 %77, 1
  resume { ptr, i32 } %79
}

; 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 @_ZN3voxmiIdEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind noalias writable sret(%"class.vox::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox10Transform2IdEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

declare void @_ZN3vox4Box2C1ERKNS_5PointIdLm2EEES4_RKNS_10Transform2IdEEb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) unnamed_addr #6

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

declare void @_ZNK3vox8Surface212closestPointERKNS_5PointIdLm2EEE(ptr dead_on_unwind writable sret(%"class.vox::Point.0") align 8, ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.vox::Point") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: nounwind
declare double @cos(double noundef) #2

; Function Attrs: nounwind
declare double @sin(double noundef) #2

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

; Function Attrs: nounwind
declare void @_ZN3vox8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(49)) unnamed_addr #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3vox6VectorIdLm3EEE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!10, !11, i64 8}
!14 = !{!15, !11, i64 240}
!15 = !{!"_ZTSN3vox9Cylinder3E", !16, i64 0, !22, i64 216, !11, i64 240, !11, i64 248}
!16 = !{!"_ZTSN3vox8Surface3E", !17, i64 8, !21, i64 208}
!17 = !{!"_ZTSN3vox10Transform3IdEE", !10, i64 0, !18, i64 24, !19, i64 56, !19, i64 128}
!18 = !{!"_ZTSN3vox10QuaternionIdEE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!19 = !{!"_ZTSN3vox6MatrixIdLm3ELm3EEE", !20, i64 0}
!20 = !{!"_ZTSSt5arrayIdLm9EE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN3vox5PointIdLm3EEE", !11, i64 0, !11, i64 8, !11, i64 16}
!23 = !{!15, !11, i64 248}
!24 = !{!11, !11, i64 0}
!25 = !{!26, !11, i64 0}
!26 = !{!"_ZTSN3vox5PointIdLm2EEE", !11, i64 0, !11, i64 8}
!27 = !{!26, !11, i64 8}


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

%"class.vox::Point" = type { double, double, double }
%"class.vox::Vector" = type { double, double, double }
%"class.vox::Point.0" = type { double, double }
%"class.vox::Box2" = type { %"class.vox::Surface2.base", %"class.vox::BoundingBox" }
%"class.vox::Surface2.base" = type <{ ptr, %"class.vox::Transform2", i8 }>
%"class.vox::Transform2" = type { %"class.vox::Vector.1", double, double, double }
%"class.vox::Vector.1" = type { double, double }
%"class.vox::BoundingBox" = type { %"class.vox::Point.0", %"class.vox::Point.0" }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox9Cylinder317closestPointLocalERKNS_5PointIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.vox::Point") align 8 %0, ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vox::Vector", align 8
  %5 = alloca %"class.vox::Point.0", align 8
  %6 = alloca %"class.vox::Box2", align 8
  %7 = alloca %"class.vox::Point.0", align 8
  %8 = alloca %"class.vox::Point.0", align 8
  %9 = alloca %"class.vox::Transform2", align 8
  %10 = alloca %"class.vox::Point.0", align 8
  %11 = alloca %"class.vox::Vector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  %12 = getelementptr inbounds i8, ptr %1, i64 216
  call void @_ZN3voxmiIdEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind nonnull writable sret(%"class.vox::Vector") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %13 = load double, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %4, i64 16
  %15 = load double, ptr %14, align 8, !tbaa !10
  %16 = fmul double %15, %15
  %17 = call double @llvm.fmuladd.f64(double %13, double %13, double %16)
  %sqrt = call double @llvm.sqrt.f64(double %17)
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = load double, ptr %18, align 8, !tbaa !11
  call void @_ZN3vox5PointIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %sqrt, double noundef %19)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %20 = getelementptr inbounds i8, ptr %1, i64 240
  %21 = load double, ptr %20, align 8, !tbaa !12
  %22 = fneg double %21
  %23 = getelementptr inbounds i8, ptr %1, i64 248
  %24 = load double, ptr %23, align 8, !tbaa !21
  %25 = fmul double %24, -5.000000e-01
  call void @_ZN3vox5PointIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %22, double noundef %25)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  %26 = load double, ptr %20, align 8, !tbaa !12
  %27 = load double, ptr %23, align 8, !tbaa !21
  %28 = fmul double %27, 5.000000e-01
  call void @_ZN3vox5PointIdLm2EEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %26, double noundef %28)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #9
  call void @_ZN3vox10Transform2IdEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
  call void @_ZN3vox4Box2C1ERKNS_5PointIdLm2EEES4_RKNS_10Transform2IdEEb(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(40) %9, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  invoke void @_ZNK3vox8Surface212closestPointERKNS_5PointIdLm2EEE(ptr dead_on_unwind nonnull writable sret(%"class.vox::Point.0") align 8 %10, ptr noundef nonnull align 8 dereferenceable(49) %6, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %29 unwind label %42

29:                                               ; preds = %3
  %30 = load double, ptr %14, align 8, !tbaa !10
  %31 = load double, ptr %4, align 8, !tbaa !5
  %32 = call double @atan2(double noundef %30, double noundef %31) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #9
  %33 = load double, ptr %10, align 8, !tbaa !22
  %34 = call double @cos(double noundef %32) #9
  %35 = fmul double %33, %34
  %36 = getelementptr inbounds i8, ptr %10, i64 8
  %37 = load double, ptr %36, align 8, !tbaa !24
  %38 = load double, ptr %10, align 8, !tbaa !22
  %39 = call double @sin(double noundef %32) #9
  %40 = fmul double %38, %39
  call void @_ZN3vox6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef %35, double noundef %37, double noundef %40)
  invoke void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.vox::Point") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %41 unwind label %44

41:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @_ZN3vox8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  ret void

42:                                               ; preds = %3
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %46

44:                                               ; preds = %29
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  br label %46

46:                                               ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @_ZN3vox8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn
}

; 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 @_ZN3voxmiIdEENS_6VectorIT_Lm3EEERKNS_5PointIS2_Lm3EEES7_(ptr dead_on_unwind noalias writable sret(%"class.vox::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3vox10Transform2IdEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

declare void @_ZN3vox4Box2C1ERKNS_5PointIdLm2EEES4_RKNS_10Transform2IdEEb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) unnamed_addr #5

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

declare void @_ZNK3vox8Surface212closestPointERKNS_5PointIdLm2EEE(ptr dead_on_unwind writable sret(%"class.vox::Point.0") align 8, ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan2(double noundef, double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3voxplIdEENS_5PointIT_Lm3EEERKS3_RKNS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.vox::Point") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind
declare void @_ZN3vox8Surface2D2Ev(ptr noundef nonnull align 8 dereferenceable(49)) unnamed_addr #7

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 0}
!6 = !{!"_ZTSN3vox6VectorIdLm3EEE", !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 = !{!6, !7, i64 16}
!11 = !{!6, !7, i64 8}
!12 = !{!13, !7, i64 240}
!13 = !{!"_ZTSN3vox9Cylinder3E", !14, i64 0, !20, i64 216, !7, i64 240, !7, i64 248}
!14 = !{!"_ZTSN3vox8Surface3E", !15, i64 8, !19, i64 208}
!15 = !{!"_ZTSN3vox10Transform3IdEE", !6, i64 0, !16, i64 24, !17, i64 56, !17, i64 128}
!16 = !{!"_ZTSN3vox10QuaternionIdEE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!17 = !{!"_ZTSN3vox6MatrixIdLm3ELm3EEE", !18, i64 0}
!18 = !{!"_ZTSSt5arrayIdLm9EE", !8, i64 0}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSN3vox5PointIdLm3EEE", !7, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!13, !7, i64 248}
!22 = !{!23, !7, i64 0}
!23 = !{!"_ZTSN3vox5PointIdLm2EEE", !7, i64 0, !7, i64 8}
!24 = !{!23, !7, i64 8}


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