; 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::HalfedgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"struct.OpenMesh::EdgeHandle" = 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: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

; 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
define dso_local noundef zeroext i1 @_ZN8OpenMesh15TriConnectivity14is_collapse_okENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca %"struct.OpenMesh::HalfedgeHandle", 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::HalfedgeHandle", align 4
  %9 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %10 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %11 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %12 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %13 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %14 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %15 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %18 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %19 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %20 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %21 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %22 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %23 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %24 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %25 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %26 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %27 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %28 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %29 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %30 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %31 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %32 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %33 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %34 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %35 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %36 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %37 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %38 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %39 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %40 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %41 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %42 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %43 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %44 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %45 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %46 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %47 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %48 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %49 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %50 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %51 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %52 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %53 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %54 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %55 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %56 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %57 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %58 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %59 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %4, i32 0, i32 0
  %60 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %59, i32 0, i32 0
  store i32 %1, ptr %60, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %4, i64 4, i1 false)
  %62 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %7, i32 0, i32 0
  %63 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4
  %65 = call i32 @_ZNK8OpenMesh11ArrayKernel11edge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %64)
  %66 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %6, i32 0, i32 0
  %67 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %66, i32 0, i32 0
  store i32 %65, ptr %67, align 4
  %68 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %6, i32 0, i32 0
  %69 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 4
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %70)
  %72 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %71)
  br i1 %72, label %73, label %74

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

74:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %4, i64 4, i1 false)
  %75 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %9, i32 0, i32 0
  %76 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4
  %78 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %77)
  %79 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %8, i32 0, i32 0
  %80 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %79, i32 0, i32 0
  store i32 %78, ptr %80, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %8, i64 4, i1 false)
  %81 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %11, i32 0, i32 0
  %82 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 4
  %84 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %83)
  %85 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %10, i32 0, i32 0
  %86 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %85, i32 0, i32 0
  store i32 %84, ptr %86, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %4, i64 4, i1 false)
  %87 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %13, i32 0, i32 0
  %88 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 4
  %90 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %89)
  %91 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %12, i32 0, i32 0
  %92 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %91, i32 0, i32 0
  store i32 %90, ptr %92, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %10, i64 4, i1 false)
  %93 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %14, i32 0, i32 0
  %94 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 4
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %95)
  %97 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %96)
  br i1 %97, label %104, label %98

98:                                               ; preds = %74
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %12, i64 4, i1 false)
  %99 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %15, i32 0, i32 0
  %100 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 4
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %101)
  %103 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %102)
  br i1 %103, label %104, label %105

104:                                              ; preds = %98, %74
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %292

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef -1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %4, i64 4, i1 false)
  %106 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %21, i32 0, i32 0
  %107 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4
  %109 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %108)
  br i1 %109, label %152, label %110

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %4, i64 4, i1 false)
  %111 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %23, i32 0, i32 0
  %112 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 4
  %114 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %113)
  %115 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %22, i32 0, i32 0
  %116 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %115, i32 0, i32 0
  store i32 %114, ptr %116, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %22, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %19, i64 4, i1 false)
  %117 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %25, i32 0, i32 0
  %118 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 4
  %120 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %119)
  %121 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %24, i32 0, i32 0
  %122 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %121, i32 0, i32 0
  store i32 %120, ptr %122, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %24, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %19, i64 4, i1 false)
  %123 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %27, i32 0, i32 0
  %124 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  %126 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %125)
  %127 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %26, i32 0, i32 0
  %128 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %127, i32 0, i32 0
  store i32 %126, ptr %128, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %26, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %19, i64 4, i1 false)
  %129 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %29, i32 0, i32 0
  %130 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 4
  %132 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %131)
  %133 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %28, i32 0, i32 0
  %134 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %133, i32 0, i32 0
  store i32 %132, ptr %134, align 4
  %135 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %28, i32 0, i32 0
  %136 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %135, i32 0, i32 0
  %137 = load i32, ptr %136, align 4
  %138 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %137)
  br i1 %138, label %139, label %151

139:                                              ; preds = %110
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %20, i64 4, i1 false)
  %140 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %31, i32 0, i32 0
  %141 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 4
  %143 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %142)
  %144 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %30, i32 0, i32 0
  %145 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %144, i32 0, i32 0
  store i32 %143, ptr %145, align 4
  %146 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %30, i32 0, i32 0
  %147 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 4
  %149 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %148)
  br i1 %149, label %150, label %151

150:                                              ; preds = %139
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %291

151:                                              ; preds = %139, %110
  br label %152

152:                                              ; preds = %151, %105
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %8, i64 4, i1 false)
  %153 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %32, i32 0, i32 0
  %154 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 4
  %156 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %155)
  br i1 %156, label %199, label %157

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %8, i64 4, i1 false)
  %158 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %34, i32 0, i32 0
  %159 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 4
  %161 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %160)
  %162 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %33, i32 0, i32 0
  %163 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %162, i32 0, i32 0
  store i32 %161, ptr %163, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %33, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %19, i64 4, i1 false)
  %164 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %36, i32 0, i32 0
  %165 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %164, i32 0, i32 0
  %166 = load i32, ptr %165, align 4
  %167 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %166)
  %168 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %35, i32 0, i32 0
  %169 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %168, i32 0, i32 0
  store i32 %167, ptr %169, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %35, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %19, i64 4, i1 false)
  %170 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %38, i32 0, i32 0
  %171 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4
  %173 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %172)
  %174 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %37, i32 0, i32 0
  %175 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %174, i32 0, i32 0
  store i32 %173, ptr %175, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %37, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %19, i64 4, i1 false)
  %176 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %40, i32 0, i32 0
  %177 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 4
  %179 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %178)
  %180 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %181 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %180, i32 0, i32 0
  store i32 %179, ptr %181, align 4
  %182 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %183 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 4
  %185 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %184)
  br i1 %185, label %186, label %198

186:                                              ; preds = %157
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %20, i64 4, i1 false)
  %187 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %42, i32 0, i32 0
  %188 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %187, i32 0, i32 0
  %189 = load i32, ptr %188, align 4
  %190 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %189)
  %191 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %41, i32 0, i32 0
  %192 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %191, i32 0, i32 0
  store i32 %190, ptr %192, align 4
  %193 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %41, i32 0, i32 0
  %194 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 4
  %196 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %195)
  br i1 %196, label %197, label %198

197:                                              ; preds = %186
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %291

198:                                              ; preds = %186, %157
  br label %199

199:                                              ; preds = %198, %152
  %200 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br i1 %200, label %201, label %202

201:                                              ; preds = %199
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %291

202:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #4
  call void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43)
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %10, i64 4, i1 false)
  %203 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %45, i32 0, i32 0
  %204 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED") align 8 %44, ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %205)
  %206 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %44)
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #4
  br label %207

207:                                              ; preds = %217, %202
  %208 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  br i1 %208, label %209, label %219

209:                                              ; preds = %207
  %210 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %211 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %46, i32 0, i32 0
  %212 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %211, i32 0, i32 0
  store i32 %210, ptr %212, align 4
  %213 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %46, i32 0, i32 0
  %214 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %215)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %216, i1 noundef zeroext false)
  br label %217

217:                                              ; preds = %209
  %218 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  br label %207, !llvm.loop !9

219:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %12, i64 4, i1 false)
  %220 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %48, i32 0, i32 0
  %221 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED") align 8 %47, ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %222)
  %223 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %47)
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #4
  br label %224

224:                                              ; preds = %234, %219
  %225 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  br i1 %225, label %226, label %236

226:                                              ; preds = %224
  %227 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %228 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %49, i32 0, i32 0
  %229 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %228, i32 0, i32 0
  store i32 %227, ptr %229, align 4
  %230 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %49, i32 0, i32 0
  %231 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %230, i32 0, i32 0
  %232 = load i32, ptr %231, align 4
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %232)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %233, i1 noundef zeroext true)
  br label %234

234:                                              ; preds = %226
  %235 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  br label %224, !llvm.loop !11

236:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %10, i64 4, i1 false)
  %237 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %51, i32 0, i32 0
  %238 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %237, i32 0, i32 0
  %239 = load i32, ptr %238, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED") align 8 %50, ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %239)
  %240 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %50)
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #4
  br label %241

241:                                              ; preds = %266, %236
  %242 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  br i1 %242, label %243, label %268

243:                                              ; preds = %241
  %244 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %245 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %52, i32 0, i32 0
  %246 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %245, i32 0, i32 0
  store i32 %244, ptr %246, align 4
  %247 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %52, i32 0, i32 0
  %248 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %247, i32 0, i32 0
  %249 = load i32, ptr %248, align 4
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %249)
  %251 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4) %250)
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #4
  br i1 %251, label %252, label %262

252:                                              ; preds = %243
  %253 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %254 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %53, i32 0, i32 0
  %255 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %254, i32 0, i32 0
  store i32 %253, ptr %255, align 4
  %256 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(4) %17)
  br i1 %256, label %257, label %262

257:                                              ; preds = %252
  %258 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %259 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %54, i32 0, i32 0
  %260 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %259, i32 0, i32 0
  store i32 %258, ptr %260, align 4
  %261 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %54, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br label %262

262:                                              ; preds = %257, %252, %243
  %263 = phi i1 [ false, %252 ], [ false, %243 ], [ %261, %257 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #4
  br i1 %263, label %264, label %265

264:                                              ; preds = %262
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %290

265:                                              ; preds = %262
  br label %266

266:                                              ; preds = %265
  %267 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  br label %241, !llvm.loop !12

268:                                              ; preds = %241
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %10, i64 4, i1 false)
  %269 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %55, i32 0, i32 0
  %270 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %269, i32 0, i32 0
  %271 = load i32, ptr %270, align 4
  %272 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %271)
  br i1 %272, label %273, label %289

273:                                              ; preds = %268
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %12, i64 4, i1 false)
  %274 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %56, i32 0, i32 0
  %275 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %274, i32 0, i32 0
  %276 = load i32, ptr %275, align 4
  %277 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %276)
  br i1 %277, label %278, label %289

278:                                              ; preds = %273
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %4, i64 4, i1 false)
  %279 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %57, i32 0, i32 0
  %280 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %279, i32 0, i32 0
  %281 = load i32, ptr %280, align 4
  %282 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %281)
  br i1 %282, label %289, label %283

283:                                              ; preds = %278
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %8, i64 4, i1 false)
  %284 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %58, i32 0, i32 0
  %285 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %284, i32 0, i32 0
  %286 = load i32, ptr %285, align 4
  %287 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %286)
  br i1 %287, label %289, label %288

288:                                              ; preds = %283
  store i1 false, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %290

289:                                              ; preds = %283, %278, %273, %268
  store i1 true, ptr %3, align 1
  store i32 1, ptr %16, align 4
  br label %290

290:                                              ; preds = %289, %288, %264
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #4
  br label %291

291:                                              ; preds = %290, %201, %197, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %292

292:                                              ; preds = %291, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %293

293:                                              ; preds = %292, %73
  %294 = load i1, ptr %3, align 1
  ret i1 %294
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416), 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 void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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)) #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 void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(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 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416), i32) #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"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; 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 }
%"struct.OpenMesh::HalfedgeHandle" = 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) 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
define dso_local noundef zeroext i1 @_ZN8OpenMesh15TriConnectivity14is_collapse_okENS_14HalfedgeHandleE(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 %"struct.OpenMesh::HalfedgeHandle", align 4
  %6 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %7 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %8 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %9 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %10 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED", align 8
  %11 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %12 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %13 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11edge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %13)
  %15 = tail call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %15, label %85, label %16

16:                                               ; preds = %2
  %17 = tail call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %18 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %17)
  %19 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %18)
  %21 = tail call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %21, label %85, label %22

22:                                               ; preds = %16
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %19)
  %24 = tail call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %23)
  br i1 %24, label %85, label %25

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef -1)
  %26 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  br i1 %26, label %36, label %27

27:                                               ; preds = %25
  %28 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  store i32 %28, ptr %5, align 4
  %29 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %28)
  store i32 %29, ptr %6, align 4
  %.sroa.025.0.copyload = load i32, ptr %5, align 4
  %30 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.025.0.copyload)
  store i32 %30, ptr %3, align 4
  %.sroa.023.0.copyload = load i32, ptr %5, align 4
  %31 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.023.0.copyload)
  %32 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %31)
  br i1 %32, label %33, label %36

33:                                               ; preds = %27
  %.sroa.021.0.copyload = load i32, ptr %6, align 4
  %34 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.021.0.copyload)
  %35 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %34)
  br i1 %35, label %84, label %36

36:                                               ; preds = %27, %33, %25
  %37 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %17)
  br i1 %37, label %47, label %38

38:                                               ; preds = %36
  %39 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %17)
  store i32 %39, ptr %5, align 4
  %40 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %39)
  store i32 %40, ptr %6, align 4
  %.sroa.014.0.copyload = load i32, ptr %5, align 4
  %41 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.014.0.copyload)
  store i32 %41, ptr %4, align 4
  %.sroa.012.0.copyload = load i32, ptr %5, align 4
  %42 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.012.0.copyload)
  %43 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %42)
  br i1 %43, label %44, label %47

44:                                               ; preds = %38
  %.sroa.010.0.copyload = load i32, ptr %6, align 4
  %45 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.010.0.copyload)
  %46 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %45)
  br i1 %46, label %84, label %47

47:                                               ; preds = %38, %44, %36
  %48 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br i1 %48, label %84, label %49

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  call void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #3
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED") align 8 %8, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %18)
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  %51 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %51, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %49, %.lr.ph
  %52 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %52)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %53, i1 noundef zeroext false)
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %55 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %55, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %49
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #3
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED") align 8 %9, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %19)
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  %57 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %57, label %.lr.ph58, label %._crit_edge59

.lr.ph58:                                         ; preds = %._crit_edge, %.lr.ph58
  %58 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %58)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %59, i1 noundef zeroext true)
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %61 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %61, label %.lr.ph58, label %._crit_edge59, !llvm.loop !7

._crit_edge59:                                    ; preds = %.lr.ph58, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #3
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED") align 8 %10, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %18)
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #3
  %63 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %63, label %.lr.ph61, label %._crit_edge62

.lr.ph61:                                         ; preds = %._crit_edge59, %73
  %64 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %64)
  %66 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4) %65)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  br i1 %66, label %67, label %.critedge

67:                                               ; preds = %.lr.ph61
  %68 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  store i32 %68, ptr %11, align 4
  %69 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %69, label %70, label %.critedge

70:                                               ; preds = %67
  %71 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  store i32 %71, ptr %12, align 4
  %72 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  br i1 %72, label %.loopexit, label %73

.critedge:                                        ; preds = %.lr.ph61, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  br label %73

73:                                               ; preds = %70, %.critedge
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %75 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %75, label %.lr.ph61, label %._crit_edge62, !llvm.loop !8

._crit_edge62:                                    ; preds = %73, %._crit_edge59
  %76 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %18)
  br i1 %76, label %77, label %83

77:                                               ; preds = %._crit_edge62
  %78 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %19)
  br i1 %78, label %79, label %83

79:                                               ; preds = %77
  %80 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  br i1 %80, label %83, label %81

81:                                               ; preds = %79
  %82 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %17)
  br i1 %82, label %83, label %.loopexit

83:                                               ; preds = %81, %79, %77, %._crit_edge62
  br label %.loopexit

.loopexit:                                        ; preds = %70, %81, %83
  %.0 = phi i1 [ true, %83 ], [ false, %81 ], [ false, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  br label %84

84:                                               ; preds = %47, %44, %33, %.loopexit
  %.1 = phi i1 [ %.0, %.loopexit ], [ false, %33 ], [ false, %44 ], [ false, %47 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  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 %85

85:                                               ; preds = %84, %22, %16, %2
  %.3 = phi i1 [ false, %2 ], [ %.1, %84 ], [ false, %22 ], [ false, %16 ]
  ret i1 %.3
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416), 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 void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind noalias writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED") align 8, ptr noundef nonnull align 8 dereferenceable(416), i32) 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_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 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 void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(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 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416), i32) 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 = { 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"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}


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