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

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

; 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) #0

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_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_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh15TriConnectivity10is_flip_okENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %7 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %8 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %9 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %10 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %11 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %12 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %13 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %14 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %15 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %16 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %19 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %20 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %21 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %4, i32 0, i32 0
  %22 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %21, i32 0, i32 0
  store i32 %1, ptr %22, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %4, i64 4, i1 false)
  %24 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %6, i32 0, i32 0
  %25 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 4
  %27 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %23, i32 %26)
  br i1 %27, label %28, label %29

28:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %88

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %4, i64 4, i1 false)
  %30 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %8, i32 0, i32 0
  %31 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 4
  %33 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %23, i32 %32, i32 noundef 0)
  %34 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %7, i32 0, i32 0
  %35 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %34, i32 0, i32 0
  store i32 %33, ptr %35, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %4, i64 4, i1 false)
  %36 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %10, i32 0, i32 0
  %37 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 4
  %39 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %23, i32 %38, i32 noundef 1)
  %40 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %9, i32 0, i32 0
  %41 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %40, i32 0, i32 0
  store i32 %39, ptr %41, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %7, i64 4, i1 false)
  %42 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %13, i32 0, i32 0
  %43 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 4
  %45 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %23, i32 %44)
  %46 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %12, i32 0, i32 0
  %47 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %46, i32 0, i32 0
  store i32 %45, ptr %47, align 4
  %48 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %12, i32 0, i32 0
  %49 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 4
  %51 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %23, i32 %50)
  %52 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %11, i32 0, i32 0
  %53 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %52, i32 0, i32 0
  store i32 %51, ptr %53, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %9, i64 4, i1 false)
  %54 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %16, i32 0, i32 0
  %55 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 4
  %57 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %23, i32 %56)
  %58 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %15, i32 0, i32 0
  %59 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %58, i32 0, i32 0
  store i32 %57, ptr %59, align 4
  %60 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %15, i32 0, i32 0
  %61 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 4
  %63 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %23, i32 %62)
  %64 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %14, i32 0, i32 0
  %65 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %64, i32 0, i32 0
  store i32 %63, ptr %65, align 4
  %66 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %66, label %67, label %68

67:                                               ; preds = %29
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %87

68:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %11, i64 4, i1 false)
  %69 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %19, i32 0, i32 0
  %70 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 4
  call void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2ERKS2_S3_b(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(416) %23, i32 %71, i1 noundef zeroext false)
  br label %72

72:                                               ; preds = %82, %68
  %73 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  br i1 %73, label %75, label %74

74:                                               ; preds = %72
  store i32 2, ptr %17, align 4
  br label %84

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %76 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %77 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %20, i32 0, i32 0
  %78 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %77, i32 0, i32 0
  store i32 %76, ptr %78, align 4
  %79 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br i1 %79, label %80, label %81

80:                                               ; preds = %75
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %84

81:                                               ; preds = %75
  br label %82

82:                                               ; preds = %81
  %83 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  br label %72, !llvm.loop !9

84:                                               ; preds = %80, %74
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  %85 = load i32, ptr %17, align 4
  switch i32 %85, label %87 [
    i32 2, label %86
  ]

86:                                               ; preds = %84
  store i1 true, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %87

87:                                               ; preds = %86, %84, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %88

88:                                               ; preds = %87, %28
  %89 = load i1, ptr %3, align 1
  ret i1 %89
}

; 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 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368), i32, i32 noundef) #2 align 2

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync 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 = { 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 = distinct !{!9, !10}
!10 = !{!"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"

%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED" = type { %"class.OpenMesh::Iterators::GenericCirculatorBaseT.base", %"struct.OpenMesh::VertexHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorBaseT.base" = type <{ ptr, %"struct.OpenMesh::HalfedgeHandle", %"struct.OpenMesh::HalfedgeHandle", i32 }>
%"struct.OpenMesh::HalfedgeHandle" = 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
declare dso_local i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_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_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh15TriConnectivity10is_flip_okENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %4 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %5 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %6 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %7 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  br i1 %7, label %25, label %8

8:                                                ; preds = %2
  %9 = tail call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1, i32 noundef 0)
  %10 = tail call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %11 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %9)
  %12 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %11)
  store i32 %12, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %13 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %10)
  %14 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %13)
  store i32 %14, ptr %4, align 4
  %15 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br i1 %15, label %24, label %16

16:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  %.sroa.0.0.copyload = load i32, ptr %3, align 4
  call void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2ERKS2_S3_b(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %.sroa.0.0.copyload, i1 noundef zeroext false)
  %17 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %18 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  store i32 %18, ptr %6, align 4
  %19 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  br i1 %19, label %._crit_edge.loopexit, label %20

20:                                               ; preds = %.lr.ph
  %21 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %22 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %22, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !5

._crit_edge.loopexit:                             ; preds = %.lr.ph, %20
  %23 = xor i1 %19, true
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %16
  %.lcssa = phi i1 [ true, %16 ], [ %23, %._crit_edge.loopexit ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  br label %24

24:                                               ; preds = %._crit_edge, %8
  %.1 = phi i1 [ false, %8 ], [ %.lcssa, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %25

25:                                               ; preds = %2, %24
  %.2 = phi i1 [ %.1, %24 ], [ false, %2 ]
  ret i1 %.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 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368), i32, i32 noundef) local_unnamed_addr #1 align 2

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass