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

; 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::UnorderedSet" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair" = type { %"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::iterator" = type { %"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"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::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::ConvexHullBuilder::Edge" = type <{ ptr, ptr, ptr, i32, [4 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3JPH17ConvexHullBuilder18GetNumVerticesUsedEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::UnorderedSet", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @_ZN3JPH12UnorderedSetIiNS_4HashIiEESt8equal_toIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #4
  %13 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = invoke noundef i64 @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %16 unwind label %31

16:                                               ; preds = %1
  %17 = trunc i64 %15 to i32
  invoke void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %3, i32 noundef %17)
          to label %18 unwind label %31

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %19 = getelementptr inbounds %"class.JPH::ConvexHullBuilder", ptr %12, i32 0, i32 1
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = invoke noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %22 unwind label %35

22:                                               ; preds = %18
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = invoke noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %25 unwind label %39

25:                                               ; preds = %22
  store ptr %24, ptr %8, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %63, %25
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = icmp ne ptr %27, %28
  br i1 %29, label %43, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %72

31:                                               ; preds = %72, %16, %1
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %4, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %5, align 4
  br label %75

35:                                               ; preds = %18
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %4, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %5, align 4
  br label %71

39:                                               ; preds = %22
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %4, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %5, align 4
  br label %70

43:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %45, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !14
  store ptr %48, ptr %10, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %56, %43
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %50, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  invoke void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE6insertERKi(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %11, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %52 unwind label %66

52:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Edge", ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  store ptr %55, ptr %10, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %52
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.JPH::ConvexHullBuilder::Face", ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = icmp ne ptr %57, %60
  br i1 %61, label %49, label %62, !llvm.loop !23

62:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds ptr, ptr %64, i32 1
  store ptr %65, ptr %7, align 8, !tbaa !5
  br label %26

66:                                               ; preds = %49
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %4, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %70

70:                                               ; preds = %66, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %71

71:                                               ; preds = %70, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %75

72:                                               ; preds = %30
  %73 = invoke noundef i32 @_ZNK3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %74 unwind label %31

74:                                               ; preds = %72
  call void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  ret i32 %73

75:                                               ; preds = %71, %31
  call void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  br label %76

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12UnorderedSetIiNS_4HashIiEESt8equal_toIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE6insertERKi(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN3JPH17ConvexHullBuilderE", !6, i64 0, !11, i64 8, !13, i64 32}
!11 = !{!"_ZTSN3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEEE", !12, i64 0, !12, i64 8, !6, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEEE", !12, i64 0, !12, i64 8, !6, i64 16}
!14 = !{!15, !6, i64 56}
!15 = !{!"_ZTSN3JPH17ConvexHullBuilder4FaceE", !16, i64 0, !16, i64 16, !17, i64 32, !6, i64 56, !18, i64 64, !19, i64 68}
!16 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!17 = !{!"_ZTSN3JPH5ArrayIiNS_12STLAllocatorIiEEEE", !12, i64 0, !12, i64 8, !6, i64 16}
!18 = !{!"float", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!21, !6, i64 8}
!21 = !{!"_ZTSN3JPH17ConvexHullBuilder4EdgeE", !6, i64 0, !6, i64 8, !6, i64 16, !22, i64 24}
!22 = !{!"int", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

%"class.JPH::UnorderedSet" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair" = type { %"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::iterator" = type { %"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<int, int, JPH::UnorderedSetDetail<int>, JPH::Hash<int>, std::equal_to<int>>::IteratorBase.base" = type <{ ptr, i32 }>

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3JPH17ConvexHullBuilder18GetNumVerticesUsedEv(ptr noundef nonnull align 8 dereferenceable(56) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::UnorderedSet", align 8
  %3 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @_ZN3JPH12UnorderedSetIiNS_4HashIiEESt8equal_toIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #4
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = call noundef i64 @_ZNK3JPH5ArrayINS_4Vec3ENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %6 = trunc i64 %5 to i32
  invoke void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %2, i32 noundef %6)
          to label %7 unwind label %12

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %10 = call noundef ptr @_ZNK3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not19 = icmp eq ptr %9, %10
  br i1 %.not19, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %23, %7
  %11 = call noundef i32 @_ZNK3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28) %2)
  call void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret i32 %11

12:                                               ; preds = %1
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %27

.lr.ph:                                           ; preds = %7, %23
  %.01520 = phi ptr [ %24, %23 ], [ %9, %7 ]
  %14 = load ptr, ptr %.01520, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %14, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  br label %17

17:                                               ; preds = %19, %.lr.ph
  %.0 = phi ptr [ %16, %.lr.ph ], [ %21, %19 ]
  %18 = getelementptr inbounds i8, ptr %.0, i64 24
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  invoke void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE6insertERKi(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %3, ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %19 unwind label %25

19:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  %20 = getelementptr inbounds i8, ptr %.0, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !20
  %22 = load ptr, ptr %15, align 8, !tbaa !14
  %.not18 = icmp eq ptr %21, %22
  br i1 %.not18, label %23, label %17, !llvm.loop !23

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %.01520, i64 8
  %.not = icmp eq ptr %24, %10
  br i1 %.not, label %._crit_edge, label %.lr.ph

25:                                               ; preds = %17
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %27

27:                                               ; preds = %25, %12
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %13, %12 ]
  call void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12UnorderedSetIiNS_4HashIiEESt8equal_toIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE6insertERKi(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIiiNS_18UnorderedSetDetailIiEENS_4HashIiEESt8equal_toIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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, !7, i64 0}
!6 = !{!"_ZTSN3JPH17ConvexHullBuilderE", !7, i64 0, !10, i64 8, !12, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH5ArrayIPNS_17ConvexHullBuilder4FaceENS_12STLAllocatorIS3_EEEE", !11, i64 0, !11, i64 8, !7, i64 16}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSN3JPH5ArrayINS_17ConvexHullBuilder8CoplanarENS_12STLAllocatorIS2_EEEE", !11, i64 0, !11, i64 8, !7, i64 16}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 56}
!15 = !{!"_ZTSN3JPH17ConvexHullBuilder4FaceE", !16, i64 0, !16, i64 16, !17, i64 32, !7, i64 56, !18, i64 64, !19, i64 68}
!16 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!17 = !{!"_ZTSN3JPH5ArrayIiNS_12STLAllocatorIiEEEE", !11, i64 0, !11, i64 8, !7, i64 16}
!18 = !{!"float", !8, i64 0}
!19 = !{!"bool", !8, i64 0}
!20 = !{!21, !7, i64 8}
!21 = !{!"_ZTSN3JPH17ConvexHullBuilder4EdgeE", !7, i64 0, !7, i64 8, !7, i64 16, !22, i64 24}
!22 = !{!"int", !8, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass