; LLVM IR from bldeng/AASolver :: AndersonOpt/external/OpenMesh/Core/Mesh (PolyConnectivity)

; 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"

%"struct.OpenMesh::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30" = type { %"class.OpenMesh::Iterators::GenericCirculatorBaseT.base", %"struct.OpenMesh::EdgeHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorBaseT.base" = type <{ ptr, %"struct.OpenMesh::HalfedgeHandle", %"struct.OpenMesh::HalfedgeHandle", i32 }>
%"struct.OpenMesh::HalfedgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"struct.OpenMesh::EdgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31" = type { %"class.OpenMesh::Iterators::GenericCirculatorBaseT.base", %"struct.OpenMesh::VertexHandle" }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }

; 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 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: 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 zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_10FaceHandleEb(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i1 noundef zeroext %2) #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30", align 8
  %9 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %12 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31", align 8
  %13 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %14 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %15 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %5, i32 0, i32 0
  %16 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %15, i32 0, i32 0
  store i32 %1, ptr %16, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %7, align 1, !tbaa !9
  %18 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %5, i64 4, i1 false)
  %19 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %9, i32 0, i32 0
  %20 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 4
  call void @_ZNK8OpenMesh16PolyConnectivity8cfe_iterENS_10FaceHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30") align 8 %8, ptr noundef nonnull align 8 dereferenceable(416) %18, i32 %21)
  br label %22

22:                                               ; preds = %35, %3
  %23 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  br i1 %23, label %25, label %24

24:                                               ; preds = %22
  store i32 2, ptr %10, align 4
  br label %37

25:                                               ; preds = %22
  %26 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %27 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %11, i32 0, i32 0
  %28 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %27, i32 0, i32 0
  store i32 %26, ptr %28, align 4
  %29 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %11, i32 0, i32 0
  %30 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 4
  %32 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %18, i32 %31)
  br i1 %32, label %33, label %34

33:                                               ; preds = %25
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %37

34:                                               ; preds = %25
  br label %35

35:                                               ; preds = %34
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  br label %22, !llvm.loop !11

37:                                               ; preds = %33, %24
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  %38 = load i32, ptr %10, align 4
  switch i32 %38, label %67 [
    i32 2, label %39
    i32 1, label %65
  ]

39:                                               ; preds = %37
  %40 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %64

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %5, i64 4, i1 false)
  %43 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %13, i32 0, i32 0
  %44 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 4
  call void @_ZNK8OpenMesh16PolyConnectivity8cfv_iterENS_10FaceHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31") align 8 %12, ptr noundef nonnull align 8 dereferenceable(416) %18, i32 %45)
  br label %46

46:                                               ; preds = %59, %42
  %47 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  store i32 5, ptr %10, align 4
  br label %61

49:                                               ; preds = %46
  %50 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %51 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %14, i32 0, i32 0
  %52 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %51, i32 0, i32 0
  store i32 %50, ptr %52, align 4
  %53 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %14, i32 0, i32 0
  %54 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 4
  %56 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %18, i32 %55)
  br i1 %56, label %57, label %58

57:                                               ; preds = %49
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %61

58:                                               ; preds = %49
  br label %59

59:                                               ; preds = %58
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  br label %46, !llvm.loop !15

61:                                               ; preds = %57, %48
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  %62 = load i32, ptr %10, align 4
  switch i32 %62, label %67 [
    i32 5, label %63
    i32 1, label %65
  ]

63:                                               ; preds = %61
  br label %64

64:                                               ; preds = %63, %39
  store i1 false, ptr %4, align 1
  br label %65

65:                                               ; preds = %64, %61, %37
  %66 = load i1, ptr %4, align 1
  ret i1 %66

67:                                               ; preds = %61, %37
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh16PolyConnectivity8cfe_iterENS_10FaceHandleE(ptr dead_on_unwind noalias writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30") align 8, ptr noundef nonnull align 8 dereferenceable(416), i32) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh16PolyConnectivity8cfv_iterENS_10FaceHandleE(ptr dead_on_unwind noalias writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31") align 8, ptr noundef nonnull align 8 dereferenceable(416), i32) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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 = { 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 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !12}


; 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.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30" = type { %"class.OpenMesh::Iterators::GenericCirculatorBaseT.base", %"struct.OpenMesh::EdgeHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorBaseT.base" = type <{ ptr, %"struct.OpenMesh::HalfedgeHandle", %"struct.OpenMesh::HalfedgeHandle", i32 }>
%"struct.OpenMesh::HalfedgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"struct.OpenMesh::EdgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31" = type { %"class.OpenMesh::Iterators::GenericCirculatorBaseT.base", %"struct.OpenMesh::VertexHandle" }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }

; 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
define dso_local noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_10FaceHandleEb(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i1 noundef zeroext %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30", align 8
  %5 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #2
  call void @_ZNK8OpenMesh16PolyConnectivity8cfe_iterENS_10FaceHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30") align 8 %4, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  %6 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %9
  %7 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %8 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %7)
  br i1 %8, label %12, label %9

9:                                                ; preds = %.lr.ph
  %10 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %11 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_10EdgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E12toEdgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  br i1 %11, label %.lr.ph, label %._crit_edge, !llvm.loop !5

12:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #2
  br label %21

._crit_edge:                                      ; preds = %9, %3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #2
  br i1 %2, label %13, label %21

13:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #2
  call void @_ZNK8OpenMesh16PolyConnectivity8cfv_iterENS_10FaceHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31") align 8 %5, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  %14 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %14, label %.lr.ph21, label %.thread16

.thread16:                                        ; preds = %17, %13
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #2
  br label %21

.lr.ph21:                                         ; preds = %13, %17
  %15 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %16 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %15)
  br i1 %16, label %20, label %17

17:                                               ; preds = %.lr.ph21
  %18 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %19 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %19, label %.lr.ph21, label %.thread16, !llvm.loop !7

20:                                               ; preds = %.lr.ph21
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #2
  br label %21

21:                                               ; preds = %._crit_edge, %.thread16, %20, %12
  %.2 = phi i1 [ true, %12 ], [ true, %20 ], [ false, %.thread16 ], [ false, %._crit_edge ]
  ret i1 %.2
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh16PolyConnectivity8cfe_iterENS_10FaceHandleE(ptr dead_on_unwind noalias writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.30") align 8, ptr noundef nonnull align 8 dereferenceable(416), i32) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh16PolyConnectivity8cfv_iterENS_10FaceHandleE(ptr dead_on_unwind noalias writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.31") align 8, ptr noundef nonnull align 8 dereferenceable(416), i32) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_12VertexHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


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