; LLVM IR from jrouwe/JoltPhysics :: Jolt/Geometry (ConvexHullBuilder)

; 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.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::ConvexHullBuilder::Coplanar" = type { i32, float }
%"class.JPH::ConvexHullBuilder" = type { ptr, %"class.JPH::Array.2", %"class.JPH::Array.5" }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::Array.5" = type { i64, i64, ptr }
%"class.JPH::ConvexHullBuilder::Face" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Array", ptr, float, i8, [11 x i8] }>
%"class.JPH::Array" = type { i64, i64, ptr }

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH17ConvexHullBuilder19GetDistanceToEdgeSqENS_4Vec3EPKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(56), double, double, ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH17ConvexHullBuilder17AssignPointToFaceEiRKNS_5ArrayIPNS0_4FaceENS_12STLAllocatorIS3_EEEEf(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, float noundef %3) #2 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca float, align 4
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"struct.JPH::ConvexHullBuilder::Coplanar", align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store float %3, ptr %9, align 4, !tbaa !11
  %18 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %19 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %22)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !18
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %26 = load double, ptr %25, align 16
  %27 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %28 = load double, ptr %27, align 8
  call void @_ZNK3JPH17ConvexHullBuilder15GetFaceForPointENS_4Vec3ERKNS_5ArrayIPNS0_4FaceENS_12STLAllocatorIS4_EEEERS4_Rf(ptr noundef nonnull align 8 dereferenceable(56) %18, double %26, double %28, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %77

31:                                               ; preds = %4
  %32 = load float, ptr %12, align 4, !tbaa !11
  %33 = load float, ptr %9, align 4, !tbaa !11
  %34 = fcmp ole float %32, %33
  br i1 %34, label %35, label %52

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !18
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %38 = load double, ptr %37, align 16
  %39 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %40 = load double, ptr %39, align 8
  %41 = call noundef float @_ZNK3JPH17ConvexHullBuilder19GetDistanceToEdgeSqENS_4Vec3EPKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(56) %18, double %38, double %40, ptr noundef %36)
  store float %41, ptr %14, align 4, !tbaa !11
  %42 = load float, ptr %14, align 4, !tbaa !11
  %43 = load float, ptr %9, align 4, !tbaa !11
  %44 = fcmp ogt float %42, %43
  br i1 %44, label %45, label %51

45:                                               ; preds = %35
  %46 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %18, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %47 = getelementptr inbounds %"struct.JPH::ConvexHullBuilder::Coplanar", ptr %16, i32 0, i32 0
  %48 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %48, ptr %47, align 4, !tbaa !20
  %49 = getelementptr inbounds %"struct.JPH::ConvexHullBuilder::Coplanar", ptr %16, i32 0, i32 1
  %50 = load float, ptr %14, align 4, !tbaa !11
  store float %50, ptr %49, align 4, !tbaa !22
  call void @_ZN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %51

51:                                               ; preds = %45, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %76

52:                                               ; preds = %31
  %53 = load float, ptr %12, align 4, !tbaa !11
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %54, i32 0, i32 4
  %56 = load float, ptr %55, align 16, !tbaa !23
  %57 = fcmp ogt float %53, %56
  br i1 %57, label %58, label %64

58:                                               ; preds = %52
  %59 = load float, ptr %12, align 4, !tbaa !11
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %60, i32 0, i32 4
  store float %59, ptr %61, align 16, !tbaa !23
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %62, i32 0, i32 2
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 4 dereferenceable(4) %7)
  br label %75

64:                                               ; preds = %52
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %67, i32 0, i32 2
  %69 = call noundef ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %68)
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %70, i32 0, i32 2
  %72 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71)
  %73 = getelementptr inbounds i32, ptr %69, i64 %72
  %74 = getelementptr inbounds i32, ptr %73, i64 -1
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6insertEPKiRS4_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef %74, ptr noundef nonnull align 4 dereferenceable(4) %7)
  br label %75

75:                                               ; preds = %64, %58
  store i1 true, ptr %5, align 1
  store i32 1, ptr %17, align 4
  br label %78

76:                                               ; preds = %51
  br label %77

77:                                               ; preds = %76, %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %17, align 4
  br label %78

78:                                               ; preds = %77, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  %79 = load i1, ptr %5, align 1
  ret i1 %79
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN3JPH17ConvexHullBuilderE", !6, i64 0, !15, i64 8, !17, i64 32}
!15 = !{!"_ZTSN3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEEE", !16, i64 0, !16, i64 8, !6, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEEE", !16, i64 0, !16, i64 8, !6, i64 16}
!18 = !{i64 0, i64 16, !19}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !10, i64 0}
!21 = !{!"_ZTSN3JPH17ConvexHullBuilder8CoplanarE", !10, i64 0, !12, i64 4}
!22 = !{!21, !12, i64 4}
!23 = !{!24, !12, i64 64}
!24 = !{!"_ZTSN3JPH17ConvexHullBuilder4FaceE", !25, i64 0, !25, i64 16, !26, i64 32, !6, i64 56, !12, i64 64, !27, i64 68}
!25 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!26 = !{!"_ZTSN3JPH5ArrayIiNS_12STLAllocatorIiEEEE", !16, i64 0, !16, i64 8, !6, i64 16}
!27 = !{!"bool", !7, i64 0}


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

%"struct.JPH::ConvexHullBuilder::Coplanar" = type { i32, float }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH17ConvexHullBuilder15GetFaceForPointENS_4Vec3ERKNS_5ArrayIPNS0_4FaceENS_12STLAllocatorIS4_EEEERS4_Rf(ptr noundef nonnull align 8 dereferenceable(56), double, double, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH17ConvexHullBuilder17AssignPointToFaceEiRKNS_5ArrayIPNS0_4FaceENS_12STLAllocatorIS3_EEEEf(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, float noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca %"struct.JPH::ConvexHullBuilder::Coplanar", align 4
  store i32 %1, ptr %5, align 4, !tbaa !5
  %9 = load ptr, ptr %0, align 8, !tbaa !9
  %10 = sext i32 %1 to i64
  %11 = tail call noundef nonnull align 16 dereferenceable(16) ptr @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %10)
  %.sroa.04.0.copyload = load double, ptr %11, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.5.0.copyload = load double, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @_ZNK3JPH17ConvexHullBuilder15GetFaceForPointENS_4Vec3ERKNS_5ArrayIPNS0_4FaceENS_12STLAllocatorIS4_EEEERS4_Rf(ptr noundef nonnull align 8 dereferenceable(56) %0, double %.sroa.04.0.copyload, double %.sroa.5.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %12 = load ptr, ptr %6, align 8, !tbaa !16
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %36, label %13

13:                                               ; preds = %4
  %14 = load float, ptr %7, align 4, !tbaa !17
  %15 = fcmp ugt float %14, %3
  br i1 %15, label %22, label %16

16:                                               ; preds = %13
  %17 = call noundef float @_ZNK3JPH17ConvexHullBuilder19GetDistanceToEdgeSqENS_4Vec3EPKNS0_4FaceE(ptr noundef nonnull align 8 dereferenceable(56) %0, double %.sroa.04.0.copyload, double %.sroa.5.0.copyload, ptr noundef nonnull %12)
  %18 = fcmp ogt float %17, %3
  br i1 %18, label %19, label %36

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  store i32 %1, ptr %8, align 4, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %8, i64 4
  store float %17, ptr %21, align 4, !tbaa !21
  call void @_ZN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %36

22:                                               ; preds = %13
  %23 = getelementptr inbounds i8, ptr %12, i64 64
  %24 = load float, ptr %23, align 16, !tbaa !22
  %25 = fcmp ogt float %14, %24
  br i1 %25, label %26, label %28

26:                                               ; preds = %22
  store float %14, ptr %23, align 16, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %12, i64 32
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(4) %5)
  br label %36

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %12, i64 32
  %30 = call noundef ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
  %31 = load ptr, ptr %6, align 8, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %31, i64 32
  %33 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  %34 = getelementptr inbounds i32, ptr %30, i64 %33
  %35 = getelementptr inbounds i8, ptr %34, i64 -4
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6insertEPKiRS4_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull %35, ptr noundef nonnull align 4 dereferenceable(4) %5)
  br label %36

36:                                               ; preds = %4, %19, %16, %26, %28
  %.0 = phi i1 [ true, %28 ], [ true, %26 ], [ false, %16 ], [ false, %19 ], [ false, %4 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret i1 %.0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3JPH17ConvexHullBuilderE", !11, i64 0, !12, i64 8, !14, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSN3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEEE", !13, i64 0, !13, i64 8, !11, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEEE", !13, i64 0, !13, i64 8, !11, i64 16}
!15 = !{!7, !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSN3JPH17ConvexHullBuilder8CoplanarE", !6, i64 0, !18, i64 4}
!21 = !{!20, !18, i64 4}
!22 = !{!23, !18, i64 64}
!23 = !{!"_ZTSN3JPH17ConvexHullBuilder4FaceE", !24, i64 0, !24, i64 16, !25, i64 32, !11, i64 56, !18, i64 64, !26, i64 68}
!24 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!25 = !{!"_ZTSN3JPH5ArrayIiNS_12STLAllocatorIiEEEE", !13, i64 0, !13, i64 8, !11, i64 16}
!26 = !{!"bool", !7, i64 0}


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