; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhullcpp (QhullFacetList)

; 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.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator" = type { ptr, ptr }
%"class.orgQhull::QhullVertex" = type { ptr, ptr }
%"class.orgQhull::QhullVertexSet" = type <{ %"class.orgQhull::QhullSet", i8, [7 x i8] }>
%"class.orgQhull::QhullSet" = type { %"class.orgQhull::QhullSetBase" }
%"class.orgQhull::QhullSetBase" = type { ptr, ptr }
%"struct.orgQhull::QhullVertex::PrintVertex" = type { ptr, ptr }
%"struct.orgQhull::QhullFacetList::PrintVertices" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8orgQhull14QhullFacetList11isSelectAllEv(ptr noundef nonnull align 8 dereferenceable(33)) #1 align 2

; Function Attrs: 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 noundef ptr @_ZNK8orgQhull14QhullFacetList2qhEv(ptr noundef nonnull align 8 dereferenceable(33)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK8orgQhull15QhullLinkedListINS_10QhullFacetEE5firstEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

declare void @_ZN8orgQhull14QhullVertexSetC1EPNS_7QhullQhEP6facetTP4setTb(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratordeEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullVertex") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN8orgQhull14QhullVertexSetD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull14QhullFacetList13PrintVerticesE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.orgQhull::QhullVertexSet", align 8
  %6 = alloca %"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator", align 8
  %10 = alloca %"class.orgQhull::QhullVertex", align 8
  %11 = alloca %"struct.orgQhull::QhullVertex::PrintVertex", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.orgQhull::QhullFacetList::PrintVertices", ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = call noundef ptr @_ZNK8orgQhull14QhullFacetList2qhEv(ptr noundef nonnull align 8 dereferenceable(33) %14)
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.orgQhull::QhullFacetList::PrintVertices", ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK8orgQhull15QhullLinkedListINS_10QhullFacetEE5firstEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
  %20 = call noundef ptr @_ZNK8orgQhull10QhullFacet9getFacetTEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.orgQhull::QhullFacetList::PrintVertices", ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call noundef zeroext i1 @_ZNK8orgQhull14QhullFacetList11isSelectAllEv(ptr noundef nonnull align 8 dereferenceable(33) %23)
  call void @_ZN8orgQhull14QhullVertexSetC1EPNS_7QhullQhEP6facetTP4setTb(ptr noundef nonnull align 8 dereferenceable(17) %5, ptr noundef %15, ptr noundef %20, ptr noundef null, i1 noundef zeroext %24)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  invoke void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE5beginEv(ptr dead_on_unwind writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %25 unwind label %31

25:                                               ; preds = %2
  br label %26

26:                                               ; preds = %52, %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  invoke void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE3endEv(ptr dead_on_unwind writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %27 unwind label %35

27:                                               ; preds = %26
  %28 = invoke noundef zeroext i1 @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %29 unwind label %35

29:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br i1 %28, label %39, label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %63

31:                                               ; preds = %50, %2
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  br label %62

35:                                               ; preds = %27, %26
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %62

39:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  invoke void @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratordeEv(ptr dead_on_unwind writable sret(%"class.orgQhull::QhullVertex") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %40 unwind label %53

40:                                               ; preds = %39
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %42 = invoke { ptr, ptr } @_ZNK8orgQhull11QhullVertex5printEPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.2)
          to label %43 unwind label %57

43:                                               ; preds = %40
  %44 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %45 = extractvalue { ptr, ptr } %42, 0
  store ptr %45, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %47 = extractvalue { ptr, ptr } %42, 1
  store ptr %47, ptr %46, align 8
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull11QhullVertex11PrintVertexE(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %49 unwind label %57

49:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @_ZN8orgQhull11QhullVertexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %50

50:                                               ; preds = %49
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8orgQhull8QhullSetINS_11QhullVertexEE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %52 unwind label %31

52:                                               ; preds = %50
  br label %26, !llvm.loop !11

53:                                               ; preds = %39
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  br label %61

57:                                               ; preds = %43, %40
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @_ZN8orgQhull11QhullVertexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %61

61:                                               ; preds = %57, %53
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %62

62:                                               ; preds = %61, %35, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @_ZN8orgQhull14QhullVertexSetD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %65

63:                                               ; preds = %30
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN8orgQhull14QhullVertexSetD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  ret ptr %64

65:                                               ; preds = %62
  %66 = load ptr, ptr %7, align 8
  %67 = load i32, ptr %8, align 4
  %68 = insertvalue { ptr, i32 } poison, ptr %66, 0
  %69 = insertvalue { ptr, i32 } %68, i32 %67, 1
  resume { ptr, i32 } %69
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull11QhullVertex11PrintVertexE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK8orgQhull11QhullVertex5printEPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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, !6, i64 0}
!10 = !{!"_ZTSN8orgQhull14QhullFacetList13PrintVerticesE", !6, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"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.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator" = type { ptr, ptr }
%"class.orgQhull::QhullVertex" = type { ptr, ptr }
%"class.orgQhull::QhullVertexSet" = type <{ %"class.orgQhull::QhullSet", i8, [7 x i8] }>
%"class.orgQhull::QhullSet" = type { %"class.orgQhull::QhullSetBase" }
%"class.orgQhull::QhullSetBase" = type { ptr, ptr }
%"struct.orgQhull::QhullVertex::PrintVertex" = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8orgQhull14QhullFacetList11isSelectAllEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #1 align 2

; 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 noundef ptr @_ZNK8orgQhull14QhullFacetList2qhEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK8orgQhull15QhullLinkedListINS_10QhullFacetEE5firstEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

declare void @_ZN8orgQhull14QhullVertexSetC1EPNS_7QhullQhEP6facetTP4setTb(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratordeEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullVertex") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN8orgQhull14QhullVertexSetD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull14QhullFacetList13PrintVerticesE(ptr noundef nonnull returned align 8 dereferenceable(8) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.orgQhull::QhullVertexSet", align 8
  %4 = alloca %"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator", align 8
  %5 = alloca %"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator", align 8
  %6 = alloca %"class.orgQhull::QhullVertex", align 8
  %7 = alloca %"struct.orgQhull::QhullVertex::PrintVertex", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  %9 = tail call noundef ptr @_ZNK8orgQhull14QhullFacetList2qhEv(ptr noundef nonnull align 8 dereferenceable(33) %8)
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK8orgQhull15QhullLinkedListINS_10QhullFacetEE5firstEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %12 = tail call noundef ptr @_ZNK8orgQhull10QhullFacet9getFacetTEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = tail call noundef zeroext i1 @_ZNK8orgQhull14QhullFacetList11isSelectAllEv(ptr noundef nonnull align 8 dereferenceable(33) %13)
  call void @_ZN8orgQhull14QhullVertexSetC1EPNS_7QhullQhEP6facetTP4setTb(ptr noundef nonnull align 8 dereferenceable(17) %3, ptr noundef %9, ptr noundef %12, ptr noundef null, i1 noundef zeroext %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  invoke void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %.preheader unwind label %21

.preheader:                                       ; preds = %2
  %15 = getelementptr inbounds i8, ptr %7, i64 8
  br label %16

16:                                               ; preds = %.preheader, %32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  invoke void @_ZN8orgQhull8QhullSetINS_11QhullVertexEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.orgQhull::QhullSet<orgQhull::QhullVertex>::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %17 unwind label %23

17:                                               ; preds = %16
  %18 = invoke noundef zeroext i1 @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratorneERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %19 unwind label %23

19:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br i1 %18, label %25, label %20

20:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN8orgQhull14QhullVertexSetD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret ptr %0

21:                                               ; preds = %2
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %39

23:                                               ; preds = %17, %16
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %39

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZNK8orgQhull8QhullSetINS_11QhullVertexEE8iteratordeEv(ptr dead_on_unwind nonnull writable sret(%"class.orgQhull::QhullVertex") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %26 unwind label %34

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %27 = invoke { ptr, ptr } @_ZNK8orgQhull11QhullVertex5printEPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull @.str.2)
          to label %28 unwind label %36

28:                                               ; preds = %26
  %29 = extractvalue { ptr, ptr } %27, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, ptr } %27, 1
  store ptr %30, ptr %15, align 8
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull11QhullVertex11PrintVertexE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %32 unwind label %36

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN8orgQhull11QhullVertexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8orgQhull8QhullSetINS_11QhullVertexEE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  br label %16, !llvm.loop !10

34:                                               ; preds = %25
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %28, %26
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN8orgQhull11QhullVertexD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %38

38:                                               ; preds = %36, %34
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %39

39:                                               ; preds = %38, %23, %21
  %.pn.pn = phi { ptr, i32 } [ %.pn, %38 ], [ %24, %23 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN8orgQhull14QhullVertexSetD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull11QhullVertex11PrintVertexE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNK8orgQhull11QhullVertex5printEPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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, !7, i64 0}
!6 = !{!"_ZTSN8orgQhull14QhullFacetList13PrintVerticesE", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass