; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhullcpp/QhullPoints.ll (ZlsRSoRKN8orgQhull11QhullPoints11PrintPointsE)

; 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::QhullPoints" = type <{ ptr, ptr, ptr, i32, [4 x i8] }>
%"class.orgQhull::QhullPoints::iterator" = type { %"class.orgQhull::QhullPoint.base", [4 x i8] }
%"class.orgQhull::QhullPoint.base" = type <{ ptr, ptr, i32 }>
%"class.orgQhull::QhullPoint" = type <{ ptr, ptr, i32, [4 x i8] }>
%"struct.orgQhull::QhullPoint::PrintPoint" = type <{ ptr, ptr, i8, [7 x i8] }>
%"struct.orgQhull::QhullPoints::PrintPoints" = type <{ ptr, ptr, i8, [7 x i8] }>

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

; 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: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull11QhullPoints11PrintPointsE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(17) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.orgQhull::QhullPoints", align 8
  %6 = alloca %"class.orgQhull::QhullPoints::iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.orgQhull::QhullPoints::iterator", align 8
  %10 = alloca %"class.orgQhull::QhullPoint", align 8
  %11 = alloca %"struct.orgQhull::QhullPoint::PrintPoint", align 8
  %12 = alloca %"struct.orgQhull::QhullPoint::PrintPoint", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.orgQhull::QhullPoints::PrintPoints", ptr %14, i32 0, i32 1
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.orgQhull::QhullPoints::PrintPoints", ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  call void @_ZN8orgQhull11QhullPointsC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(28) %5, ptr noundef nonnull align 8 dereferenceable(28) %20)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  invoke void @_ZN8orgQhull11QhullPoints5beginEv(ptr dead_on_unwind writable sret(%"class.orgQhull::QhullPoints::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %5)
          to label %21 unwind label %27

21:                                               ; preds = %2
  br label %22

22:                                               ; preds = %73, %21
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  invoke void @_ZN8orgQhull11QhullPoints3endEv(ptr dead_on_unwind writable sret(%"class.orgQhull::QhullPoints::iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(28) %5)
          to label %23 unwind label %31

23:                                               ; preds = %22
  %24 = invoke noundef zeroext i1 @_ZNK8orgQhull11QhullPoints8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull align 8 dereferenceable(20) %9)
          to label %25 unwind label %35

25:                                               ; preds = %23
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  br i1 %24, label %40, label %26

26:                                               ; preds = %25
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  br label %82

27:                                               ; preds = %2
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  br label %81

31:                                               ; preds = %22
  %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 %39

35:                                               ; preds = %23
  %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 @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #5
  br label %39

39:                                               ; preds = %35, %31
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  br label %80

40:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %41 = invoke noundef nonnull align 8 dereferenceable(20) ptr @_ZN8orgQhull11QhullPoints8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(20) %6)
          to label %42 unwind label %53

42:                                               ; preds = %40
  invoke void @_ZN8orgQhull10QhullPointC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull align 8 dereferenceable(20) %41)
          to label %43 unwind label %53

43:                                               ; preds = %42
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.orgQhull::QhullPoints::PrintPoints", ptr %44, i32 0, i32 2
  %46 = load i8, ptr %45, align 8, !tbaa !13, !range !14, !noundef !15
  %47 = trunc i8 %46 to i1
  br i1 %47, label %48, label %61

48:                                               ; preds = %43
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  invoke void @_ZNK8orgQhull10QhullPoint19printWithIdentifierEPKc(ptr dead_on_unwind writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8 %11, ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef @.str.5)
          to label %50 unwind label %57

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull10QhullPoint10PrintPointE(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(17) %11)
          to label %52 unwind label %57

52:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  br label %70

53:                                               ; preds = %42, %40
  %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 %75

57:                                               ; preds = %50, %48
  %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 24, ptr %11) #5
  br label %74

61:                                               ; preds = %43
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  invoke void @_ZNK8orgQhull10QhullPoint5printEPKc(ptr dead_on_unwind writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8 %12, ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef @.str.5)
          to label %63 unwind label %66

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull10QhullPoint10PrintPointE(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(17) %12)
          to label %65 unwind label %66

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %70

66:                                               ; preds = %63, %61
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %7, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %74

70:                                               ; preds = %65, %52
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  br label %71

71:                                               ; preds = %70
  %72 = invoke noundef nonnull align 8 dereferenceable(20) ptr @_ZN8orgQhull11QhullPoints8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(20) %6)
          to label %73 unwind label %76

73:                                               ; preds = %71
  br label %22, !llvm.loop !16

74:                                               ; preds = %66, %57
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #5
  br label %75

75:                                               ; preds = %74, %53
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  br label %80

76:                                               ; preds = %71
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  br label %80

80:                                               ; preds = %76, %75, %39
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #5
  br label %81

81:                                               ; preds = %80, %27
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @_ZN8orgQhull11QhullPointsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  br label %84

82:                                               ; preds = %26
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN8orgQhull11QhullPointsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret ptr %83

84:                                               ; preds = %81
  %85 = load ptr, ptr %7, align 8
  %86 = load i32, ptr %8, align 4
  %87 = insertvalue { ptr, i32 } poison, ptr %85, 0
  %88 = insertvalue { ptr, i32 } %87, i32 %86, 1
  resume { ptr, i32 } %88
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull11QhullPoints5beginEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullPoints::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull11QhullPoints3endEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullPoints::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull10QhullPoint10PrintPointE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(17)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull10QhullPoint19printWithIdentifierEPKc(ptr dead_on_unwind noalias writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8, ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull10QhullPoint5printEPKc(ptr dead_on_unwind noalias writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8, ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) #1 align 2

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

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

attributes #0 = { 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 = { 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 = { "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 8}
!10 = !{!"_ZTSN8orgQhull11QhullPoints11PrintPointsE", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"bool", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !11, i64 16}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !17}
!17 = !{!"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::QhullPoints" = type <{ ptr, ptr, ptr, i32, [4 x i8] }>
%"class.orgQhull::QhullPoints::iterator" = type { %"class.orgQhull::QhullPoint.base", [4 x i8] }
%"class.orgQhull::QhullPoint.base" = type <{ ptr, ptr, i32 }>
%"class.orgQhull::QhullPoint" = type <{ ptr, ptr, i32, [4 x i8] }>
%"struct.orgQhull::QhullPoint::PrintPoint" = type <{ ptr, ptr, i8, [7 x i8] }>

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

; 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: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull11QhullPoints11PrintPointsE(ptr noundef nonnull returned align 8 dereferenceable(8) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(17) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.orgQhull::QhullPoints", align 8
  %4 = alloca %"class.orgQhull::QhullPoints::iterator", align 8
  %5 = alloca %"class.orgQhull::QhullPoints::iterator", align 8
  %6 = alloca %"class.orgQhull::QhullPoint", align 8
  %7 = alloca %"struct.orgQhull::QhullPoint::PrintPoint", align 8
  %8 = alloca %"struct.orgQhull::QhullPoint::PrintPoint", align 8
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  %12 = load ptr, ptr %1, align 8, !tbaa !11
  call void @_ZN8orgQhull11QhullPointsC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 8 dereferenceable(28) %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  invoke void @_ZN8orgQhull11QhullPoints5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.orgQhull::QhullPoints::iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %.preheader unwind label %19

.preheader:                                       ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  br label %14

14:                                               ; preds = %.preheader, %42
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_ZN8orgQhull11QhullPoints3endEv(ptr dead_on_unwind nonnull writable sret(%"class.orgQhull::QhullPoints::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %15 unwind label %21

15:                                               ; preds = %14
  %16 = invoke noundef zeroext i1 @_ZNK8orgQhull11QhullPoints8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef nonnull align 8 dereferenceable(20) %5)
          to label %17 unwind label %23

17:                                               ; preds = %15
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br i1 %16, label %26, label %18

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

19:                                               ; preds = %2
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %46

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

23:                                               ; preds = %15
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #5
  br label %25

25:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %45

26:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %27 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZN8orgQhull11QhullPoints8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(20) %4)
  call void @_ZN8orgQhull10QhullPointC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull align 8 dereferenceable(20) %27)
  %28 = load i8, ptr %13, align 8, !tbaa !12, !range !13, !noundef !14
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %30, label %36

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  invoke void @_ZNK8orgQhull10QhullPoint19printWithIdentifierEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8 %7, ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull @.str.5)
          to label %31 unwind label %34

31:                                               ; preds = %30
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull10QhullPoint10PrintPointE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(17) %7)
          to label %33 unwind label %34

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %42

34:                                               ; preds = %31, %30
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %44

36:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  invoke void @_ZNK8orgQhull10QhullPoint5printEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8 %8, ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef nonnull @.str.5)
          to label %37 unwind label %40

37:                                               ; preds = %36
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull10QhullPoint10PrintPointE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(17) %8)
          to label %39 unwind label %40

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %42

40:                                               ; preds = %37, %36
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %44

42:                                               ; preds = %39, %33
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %43 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZN8orgQhull11QhullPoints8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(20) %4)
  br label %14, !llvm.loop !15

44:                                               ; preds = %40, %34
  %.pn13 = phi { ptr, i32 } [ %35, %34 ], [ %41, %40 ]
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %45

45:                                               ; preds = %44, %25
  %.pn13.pn = phi { ptr, i32 } [ %.pn13, %44 ], [ %.pn, %25 ]
  call void @_ZN8orgQhull10QhullPointD2Ev(ptr noundef nonnull align 8 dereferenceable(20) %4) #5
  br label %46

46:                                               ; preds = %45, %19
  %.pn13.pn.pn = phi { ptr, i32 } [ %.pn13.pn, %45 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @_ZN8orgQhull11QhullPointsD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn13.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull11QhullPoints5beginEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullPoints::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull11QhullPoints3endEv(ptr dead_on_unwind noalias writable sret(%"class.orgQhull::QhullPoints::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRKN8orgQhull10QhullPoint10PrintPointE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull10QhullPoint19printWithIdentifierEPKc(ptr dead_on_unwind noalias writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8, ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8orgQhull10QhullPoint5printEPKc(ptr dead_on_unwind noalias writable sret(%"struct.orgQhull::QhullPoint::PrintPoint") align 8, ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8orgQhull11QhullPointsD2Ev(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 = { 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 = { 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 = { "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 8}
!6 = !{!"_ZTSN8orgQhull11QhullPoints11PrintPointsE", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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