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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.OpenMesh::HalfedgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"struct.OpenMesh::EdgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"struct.OpenMesh::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48" = 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 nounwind uwtable
declare dso_local void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #0 align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) #3 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)) #0 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
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416), i32) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8OpenMesh16PolyConnectivity14is_collapse_okENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1) #3 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 i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %17 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %18 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %19 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %20 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %21 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %22 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %23 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %24 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %25 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %26 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %27 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %28 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %29 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %30 = alloca i32, 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::HalfedgeHandle", 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 %"struct.OpenMesh::HalfedgeHandle", align 4
  %44 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %45 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %46 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %47 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %48 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %49 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %50 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %51 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %52 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %53 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %54 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %55 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %56 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %57 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %58 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %59 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %60 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %61 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %62 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %63 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %64 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %65 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %66 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %67 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %68 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %69 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %70 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %71 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %72 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %73 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %74 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %75 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %76 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %77 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %78 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %79 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %80 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %81 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %82 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %83 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %84 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %85 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %86 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %87 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %88 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %89 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %90 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %91 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %92 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %93 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %94 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %95 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %96 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %97 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %98 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %4, i32 0, i32 0
  %99 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %98, i32 0, i32 0
  store i32 %1, ptr %99, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %100 = 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)
  %101 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %7, i32 0, i32 0
  %102 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 4
  %104 = call i32 @_ZNK8OpenMesh11ArrayKernel11edge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %103)
  %105 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %6, i32 0, i32 0
  %106 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %105, i32 0, i32 0
  store i32 %104, ptr %106, align 4
  %107 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %6, i32 0, i32 0
  %108 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 4
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %109)
  %111 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %110)
  br i1 %111, label %112, label %113

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

113:                                              ; 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)
  %114 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %9, i32 0, i32 0
  %115 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4
  %117 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %116)
  %118 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %8, i32 0, i32 0
  %119 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %118, i32 0, i32 0
  store i32 %117, ptr %119, 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)
  %120 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %11, i32 0, i32 0
  %121 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 4
  %123 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %122)
  %124 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %10, i32 0, i32 0
  %125 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %124, i32 0, i32 0
  store i32 %123, ptr %125, 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)
  %126 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %13, i32 0, i32 0
  %127 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 4
  %129 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %128)
  %130 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %12, i32 0, i32 0
  %131 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %130, i32 0, i32 0
  store i32 %129, ptr %131, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  store i8 0, ptr %14, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  store i8 0, ptr %15, align 1, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %4, i64 4, i1 false)
  %132 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %16, i32 0, i32 0
  %133 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 4
  %135 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %134)
  br i1 %135, label %149, label %136

136:                                              ; preds = %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %4, i64 4, i1 false)
  %137 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %18, i32 0, i32 0
  %138 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 4
  %140 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %139)
  %141 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %17, i32 0, i32 0
  %142 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %141, i32 0, i32 0
  store i32 %140, ptr %142, align 4
  %143 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %17, i32 0, i32 0
  %144 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 4
  %146 = call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %145)
  %147 = icmp eq i32 %146, 3
  %148 = zext i1 %147 to i8
  store i8 %148, ptr %14, align 1, !tbaa !9
  br label %149

149:                                              ; preds = %136, %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %8, i64 4, i1 false)
  %150 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %19, i32 0, i32 0
  %151 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 4
  %153 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %152)
  br i1 %153, label %167, label %154

154:                                              ; preds = %149
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %8, i64 4, i1 false)
  %155 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %21, i32 0, i32 0
  %156 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 4
  %158 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %157)
  %159 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %20, i32 0, i32 0
  %160 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %159, i32 0, i32 0
  store i32 %158, ptr %160, align 4
  %161 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %20, i32 0, i32 0
  %162 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 4
  %164 = call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %163)
  %165 = icmp eq i32 %164, 3
  %166 = zext i1 %165 to i8
  store i8 %166, ptr %15, align 1, !tbaa !9
  br label %167

167:                                              ; preds = %154, %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %4, i64 4, i1 false)
  %168 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %24, i32 0, i32 0
  %169 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %168, i32 0, i32 0
  %170 = load i32, ptr %169, align 4
  %171 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %170)
  %172 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %23, i32 0, i32 0
  %173 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %172, i32 0, i32 0
  store i32 %171, ptr %173, align 4
  %174 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %23, i32 0, i32 0
  %175 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %174, i32 0, i32 0
  %176 = load i32, ptr %175, align 4
  %177 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %176)
  %178 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %22, i32 0, i32 0
  %179 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %178, i32 0, i32 0
  store i32 %177, ptr %179, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %8, i64 4, i1 false)
  %180 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %27, i32 0, i32 0
  %181 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 4
  %183 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %182)
  %184 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %26, i32 0, i32 0
  %185 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %184, i32 0, i32 0
  store i32 %183, ptr %185, align 4
  %186 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %26, i32 0, i32 0
  %187 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 4
  %189 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %188)
  %190 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %25, i32 0, i32 0
  %191 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %190, i32 0, i32 0
  store i32 %189, ptr %191, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %10, i64 4, i1 false)
  %192 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %28, i32 0, i32 0
  %193 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %192, i32 0, i32 0
  %194 = load i32, ptr %193, align 4
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %194)
  %196 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %195)
  br i1 %196, label %203, label %197

197:                                              ; preds = %167
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %12, i64 4, i1 false)
  %198 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %29, i32 0, i32 0
  %199 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %198, i32 0, i32 0
  %200 = load i32, ptr %199, align 4
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %200)
  %202 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %201)
  br i1 %202, label %203, label %204

203:                                              ; preds = %197, %167
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %536

204:                                              ; preds = %197
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %4, i64 4, i1 false)
  %205 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %31, i32 0, i32 0
  %206 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %205, i32 0, i32 0
  %207 = load i32, ptr %206, align 4
  %208 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %207)
  br i1 %208, label %252, label %209

209:                                              ; preds = %204
  %210 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %211 = trunc i8 %210 to i1
  br i1 %211, label %212, label %251

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %4, i64 4, i1 false)
  %213 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %33, 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 i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %215)
  %217 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %32, i32 0, i32 0
  %218 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %217, i32 0, i32 0
  store i32 %216, ptr %218, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %32, i64 4, i1 false)
  %219 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %35, i32 0, i32 0
  %220 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %219, i32 0, i32 0
  %221 = load i32, ptr %220, align 4
  %222 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %221)
  %223 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %34, i32 0, i32 0
  %224 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %223, i32 0, i32 0
  store i32 %222, ptr %224, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %32, i64 4, i1 false)
  %225 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %37, i32 0, i32 0
  %226 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %225, i32 0, i32 0
  %227 = load i32, ptr %226, align 4
  %228 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %227)
  %229 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %36, i32 0, i32 0
  %230 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %229, i32 0, i32 0
  store i32 %228, ptr %230, align 4
  %231 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %36, i32 0, i32 0
  %232 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 4
  %234 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %233)
  br i1 %234, label %235, label %247

235:                                              ; preds = %212
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %34, i64 4, i1 false)
  %236 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %237 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %236, i32 0, i32 0
  %238 = load i32, ptr %237, align 4
  %239 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %238)
  %240 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %38, i32 0, i32 0
  %241 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %240, i32 0, i32 0
  store i32 %239, ptr %241, align 4
  %242 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %38, i32 0, i32 0
  %243 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 4
  %245 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %244)
  br i1 %245, label %246, label %247

246:                                              ; preds = %235
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %248

247:                                              ; preds = %235, %212
  store i32 0, ptr %30, align 4
  br label %248

248:                                              ; preds = %247, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  %249 = load i32, ptr %30, align 4
  switch i32 %249, label %536 [
    i32 0, label %250
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %209
  br label %252

252:                                              ; preds = %251, %204
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %8, i64 4, i1 false)
  %253 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %40, i32 0, i32 0
  %254 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %253, i32 0, i32 0
  %255 = load i32, ptr %254, align 4
  %256 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %255)
  br i1 %256, label %300, label %257

257:                                              ; preds = %252
  %258 = load i8, ptr %15, align 1, !tbaa !9, !range !11, !noundef !12
  %259 = trunc i8 %258 to i1
  br i1 %259, label %260, label %299

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %8, i64 4, i1 false)
  %261 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %42, i32 0, i32 0
  %262 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %261, i32 0, i32 0
  %263 = load i32, ptr %262, align 4
  %264 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %263)
  %265 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %41, i32 0, i32 0
  %266 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %265, i32 0, i32 0
  store i32 %264, ptr %266, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %41, i64 4, i1 false)
  %267 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %44, i32 0, i32 0
  %268 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %267, i32 0, i32 0
  %269 = load i32, ptr %268, align 4
  %270 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %269)
  %271 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %43, i32 0, i32 0
  %272 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %271, i32 0, i32 0
  store i32 %270, ptr %272, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %41, i64 4, i1 false)
  %273 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %46, i32 0, i32 0
  %274 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %273, i32 0, i32 0
  %275 = load i32, ptr %274, align 4
  %276 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %275)
  %277 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %45, i32 0, i32 0
  %278 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %277, i32 0, i32 0
  store i32 %276, ptr %278, align 4
  %279 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %45, 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) %100, i32 %281)
  br i1 %282, label %283, label %295

283:                                              ; preds = %260
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %43, i64 4, i1 false)
  %284 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %48, 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 i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %286)
  %288 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %47, i32 0, i32 0
  %289 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %288, i32 0, i32 0
  store i32 %287, ptr %289, align 4
  %290 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %47, i32 0, i32 0
  %291 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %290, i32 0, i32 0
  %292 = load i32, ptr %291, align 4
  %293 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %292)
  br i1 %293, label %294, label %295

294:                                              ; preds = %283
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %296

295:                                              ; preds = %283, %260
  store i32 0, ptr %30, align 4
  br label %296

296:                                              ; preds = %295, %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  %297 = load i32, ptr %30, align 4
  switch i32 %297, label %536 [
    i32 0, label %298
  ]

298:                                              ; preds = %296
  br label %299

299:                                              ; preds = %298, %257
  br label %300

300:                                              ; preds = %299, %252
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %10, i64 4, i1 false)
  %301 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %49, i32 0, i32 0
  %302 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %301, i32 0, i32 0
  %303 = load i32, ptr %302, align 4
  %304 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %303)
  br i1 %304, label %305, label %321

305:                                              ; preds = %300
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %12, i64 4, i1 false)
  %306 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %50, i32 0, i32 0
  %307 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %306, i32 0, i32 0
  %308 = load i32, ptr %307, align 4
  %309 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %308)
  br i1 %309, label %310, label %321

310:                                              ; preds = %305
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %4, i64 4, i1 false)
  %311 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %51, i32 0, i32 0
  %312 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %311, i32 0, i32 0
  %313 = load i32, ptr %312, align 4
  %314 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %313)
  br i1 %314, label %321, label %315

315:                                              ; preds = %310
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %8, i64 4, i1 false)
  %316 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %52, i32 0, i32 0
  %317 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %316, i32 0, i32 0
  %318 = load i32, ptr %317, align 4
  %319 = call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %318)
  br i1 %319, label %321, label %320

320:                                              ; preds = %315
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %536

321:                                              ; preds = %315, %310, %305, %300
  call void @llvm.lifetime.start.p0(i64 24, ptr %53) #4
  call void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53)
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %10, i64 4, i1 false)
  %322 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %55, i32 0, i32 0
  %323 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %322, i32 0, i32 0
  %324 = load i32, ptr %323, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48") align 8 %54, ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %324)
  %325 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %54)
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #4
  br label %326

326:                                              ; preds = %336, %321
  %327 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  br i1 %327, label %328, label %338

328:                                              ; preds = %326
  %329 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  %330 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %56, i32 0, i32 0
  %331 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %330, i32 0, i32 0
  store i32 %329, ptr %331, align 4
  %332 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %56, i32 0, i32 0
  %333 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %332, i32 0, i32 0
  %334 = load i32, ptr %333, align 4
  %335 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %334)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %335, i1 noundef zeroext false)
  br label %336

336:                                              ; preds = %328
  %337 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  br label %326, !llvm.loop !13

338:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 24, ptr %57) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %12, i64 4, i1 false)
  %339 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %58, i32 0, i32 0
  %340 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %339, i32 0, i32 0
  %341 = load i32, ptr %340, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48") align 8 %57, ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %341)
  %342 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %57)
  call void @llvm.lifetime.end.p0(i64 24, ptr %57) #4
  br label %343

343:                                              ; preds = %353, %338
  %344 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  br i1 %344, label %345, label %355

345:                                              ; preds = %343
  %346 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  %347 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %59, i32 0, i32 0
  %348 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %347, i32 0, i32 0
  store i32 %346, ptr %348, align 4
  %349 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %59, i32 0, i32 0
  %350 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %349, i32 0, i32 0
  %351 = load i32, ptr %350, align 4
  %352 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %351)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %352, i1 noundef zeroext true)
  br label %353

353:                                              ; preds = %345
  %354 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  br label %343, !llvm.loop !15

355:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 24, ptr %60) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %10, i64 4, i1 false)
  %356 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %61, i32 0, i32 0
  %357 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %356, i32 0, i32 0
  %358 = load i32, ptr %357, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48") align 8 %60, ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %358)
  %359 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %60)
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #4
  br label %360

360:                                              ; preds = %394, %355
  %361 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  br i1 %361, label %362, label %396

362:                                              ; preds = %360
  %363 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  %364 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %62, i32 0, i32 0
  %365 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %364, i32 0, i32 0
  store i32 %363, ptr %365, align 4
  %366 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %62, i32 0, i32 0
  %367 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %366, i32 0, i32 0
  %368 = load i32, ptr %367, align 4
  %369 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %368)
  %370 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4) %369)
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #4
  br i1 %370, label %371, label %390

371:                                              ; preds = %362
  %372 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  %373 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %63, i32 0, i32 0
  %374 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %373, i32 0, i32 0
  store i32 %372, ptr %374, align 4
  %375 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %22)
  br i1 %375, label %376, label %379

376:                                              ; preds = %371
  %377 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %378 = trunc i8 %377 to i1
  br i1 %378, label %390, label %379

379:                                              ; preds = %376, %371
  %380 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  %381 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %64, i32 0, i32 0
  %382 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %381, i32 0, i32 0
  store i32 %380, ptr %382, align 4
  %383 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %25)
  br i1 %383, label %384, label %387

384:                                              ; preds = %379
  %385 = load i8, ptr %15, align 1, !tbaa !9, !range !11, !noundef !12
  %386 = trunc i8 %385 to i1
  br label %387

387:                                              ; preds = %384, %379
  %388 = phi i1 [ false, %379 ], [ %386, %384 ]
  %389 = xor i1 %388, true
  br label %390

390:                                              ; preds = %387, %376, %362
  %391 = phi i1 [ false, %376 ], [ false, %362 ], [ %389, %387 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #4
  br i1 %391, label %392, label %393

392:                                              ; preds = %390
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %535

393:                                              ; preds = %390
  br label %394

394:                                              ; preds = %393
  %395 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  br label %360, !llvm.loop !16

396:                                              ; preds = %360
  %397 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %398 = trunc i8 %397 to i1
  br i1 %398, label %399, label %456

399:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #4
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %65, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #4
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %66, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %4, i64 4, i1 false)
  %400 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %68, i32 0, i32 0
  %401 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %400, i32 0, i32 0
  %402 = load i32, ptr %401, align 4
  %403 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %402)
  %404 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %67, i32 0, i32 0
  %405 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %404, i32 0, i32 0
  store i32 %403, ptr %405, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %67, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 4 %65, i64 4, i1 false)
  %406 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %70, i32 0, i32 0
  %407 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %406, i32 0, i32 0
  %408 = load i32, ptr %407, align 4
  %409 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %408)
  %410 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %69, i32 0, i32 0
  %411 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %410, i32 0, i32 0
  store i32 %409, ptr %411, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %69, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %65, i64 4, i1 false)
  %412 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %72, i32 0, i32 0
  %413 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %412, i32 0, i32 0
  %414 = load i32, ptr %413, align 4
  %415 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %414)
  %416 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %71, i32 0, i32 0
  %417 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %416, i32 0, i32 0
  store i32 %415, ptr %417, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %71, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %66, i64 4, i1 false)
  %418 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %74, i32 0, i32 0
  %419 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %418, i32 0, i32 0
  %420 = load i32, ptr %419, align 4
  %421 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %420)
  %422 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %73, i32 0, i32 0
  %423 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %422, i32 0, i32 0
  store i32 %421, ptr %423, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %73, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %65, i64 4, i1 false)
  %424 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %76, i32 0, i32 0
  %425 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %424, i32 0, i32 0
  %426 = load i32, ptr %425, align 4
  %427 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %426)
  %428 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %75, i32 0, i32 0
  %429 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %428, i32 0, i32 0
  store i32 %427, ptr %429, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %77) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %66, i64 4, i1 false)
  %430 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %78, i32 0, i32 0
  %431 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %430, i32 0, i32 0
  %432 = load i32, ptr %431, align 4
  %433 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %432)
  %434 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %77, i32 0, i32 0
  %435 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %434, i32 0, i32 0
  store i32 %433, ptr %435, align 4
  %436 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %75, ptr noundef nonnull align 4 dereferenceable(4) %77)
  br i1 %436, label %437, label %449

437:                                              ; preds = %399
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %65, i64 4, i1 false)
  %438 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %80, i32 0, i32 0
  %439 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %438, i32 0, i32 0
  %440 = load i32, ptr %439, align 4
  %441 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %440)
  %442 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %79, i32 0, i32 0
  %443 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %442, i32 0, i32 0
  store i32 %441, ptr %443, align 4
  %444 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %79, i32 0, i32 0
  %445 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %444, i32 0, i32 0
  %446 = load i32, ptr %445, align 4
  %447 = call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %446)
  %448 = icmp ne i32 %447, 3
  br label %449

449:                                              ; preds = %437, %399
  %450 = phi i1 [ false, %399 ], [ %448, %437 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %77) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #4
  br i1 %450, label %451, label %452

451:                                              ; preds = %449
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %453

452:                                              ; preds = %449
  store i32 0, ptr %30, align 4
  br label %453

453:                                              ; preds = %452, %451
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #4
  %454 = load i32, ptr %30, align 4
  switch i32 %454, label %535 [
    i32 0, label %455
  ]

455:                                              ; preds = %453
  br label %456

456:                                              ; preds = %455, %396
  %457 = load i8, ptr %15, align 1, !tbaa !9, !range !11, !noundef !12
  %458 = trunc i8 %457 to i1
  br i1 %458, label %459, label %516

459:                                              ; preds = %456
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #4
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %81, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %82) #4
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %82, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %8, i64 4, i1 false)
  %460 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %84, i32 0, i32 0
  %461 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %460, i32 0, i32 0
  %462 = load i32, ptr %461, align 4
  %463 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %462)
  %464 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %83, i32 0, i32 0
  %465 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %464, i32 0, i32 0
  store i32 %463, ptr %465, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %83, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %86, ptr align 4 %81, i64 4, i1 false)
  %466 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %86, i32 0, i32 0
  %467 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %466, i32 0, i32 0
  %468 = load i32, ptr %467, align 4
  %469 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %468)
  %470 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %85, i32 0, i32 0
  %471 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %470, i32 0, i32 0
  store i32 %469, ptr %471, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %85, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %87) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 4 %81, i64 4, i1 false)
  %472 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %88, i32 0, i32 0
  %473 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %472, i32 0, i32 0
  %474 = load i32, ptr %473, align 4
  %475 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %474)
  %476 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %87, i32 0, i32 0
  %477 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %476, i32 0, i32 0
  store i32 %475, ptr %477, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %87, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 4 %82, i64 4, i1 false)
  %478 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %90, i32 0, i32 0
  %479 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %478, i32 0, i32 0
  %480 = load i32, ptr %479, align 4
  %481 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %480)
  %482 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %89, i32 0, i32 0
  %483 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %482, i32 0, i32 0
  store i32 %481, ptr %483, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %89, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 4 %81, i64 4, i1 false)
  %484 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %92, i32 0, i32 0
  %485 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %484, i32 0, i32 0
  %486 = load i32, ptr %485, align 4
  %487 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %486)
  %488 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %91, i32 0, i32 0
  %489 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %488, i32 0, i32 0
  store i32 %487, ptr %489, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %93) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %82, i64 4, i1 false)
  %490 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %94, i32 0, i32 0
  %491 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %490, i32 0, i32 0
  %492 = load i32, ptr %491, align 4
  %493 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %492)
  %494 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %93, i32 0, i32 0
  %495 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %494, i32 0, i32 0
  store i32 %493, ptr %495, align 4
  %496 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %91, ptr noundef nonnull align 4 dereferenceable(4) %93)
  br i1 %496, label %497, label %509

497:                                              ; preds = %459
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %96, ptr align 4 %81, i64 4, i1 false)
  %498 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %96, i32 0, i32 0
  %499 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %498, i32 0, i32 0
  %500 = load i32, ptr %499, align 4
  %501 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %500)
  %502 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %95, i32 0, i32 0
  %503 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %502, i32 0, i32 0
  store i32 %501, ptr %503, align 4
  %504 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %95, i32 0, i32 0
  %505 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %504, i32 0, i32 0
  %506 = load i32, ptr %505, align 4
  %507 = call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %100, i32 %506)
  %508 = icmp ne i32 %507, 3
  br label %509

509:                                              ; preds = %497, %459
  %510 = phi i1 [ false, %459 ], [ %508, %497 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %93) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #4
  br i1 %510, label %511, label %512

511:                                              ; preds = %509
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %513

512:                                              ; preds = %509
  store i32 0, ptr %30, align 4
  br label %513

513:                                              ; preds = %512, %511
  call void @llvm.lifetime.end.p0(i64 4, ptr %82) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #4
  %514 = load i32, ptr %30, align 4
  switch i32 %514, label %535 [
    i32 0, label %515
  ]

515:                                              ; preds = %513
  br label %516

516:                                              ; preds = %515, %456
  %517 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  %518 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %97, i32 0, i32 0
  %519 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %518, i32 0, i32 0
  store i32 %517, ptr %519, align 4
  %520 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %97, i32 0, i32 0
  %521 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %520, i32 0, i32 0
  %522 = load i32, ptr %521, align 4
  %523 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %100, i32 %522)
  %524 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4) %523)
  br i1 %524, label %525, label %534

525:                                              ; preds = %516
  %526 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %25)
  br i1 %526, label %527, label %534

527:                                              ; preds = %525
  %528 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %529 = trunc i8 %528 to i1
  br i1 %529, label %530, label %534

530:                                              ; preds = %527
  %531 = load i8, ptr %15, align 1, !tbaa !9, !range !11, !noundef !12
  %532 = trunc i8 %531 to i1
  br i1 %532, label %533, label %534

533:                                              ; preds = %530
  store i1 false, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %535

534:                                              ; preds = %530, %527, %525, %516
  store i1 true, ptr %3, align 1
  store i32 1, ptr %30, align 4
  br label %535

535:                                              ; preds = %534, %533, %513, %453, %392
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #4
  br label %536

536:                                              ; preds = %535, %320, %296, %248, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  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 %537

537:                                              ; preds = %536, %112
  %538 = load i1, ptr %3, align 1
  ret i1 %538
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) #3 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) #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 #3 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.48") align 8, ptr noundef nonnull align 8 dereferenceable(416), i32) #3 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)) #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)) #3 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)) #3 align 2

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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.48" = 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" }
%"struct.OpenMesh::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }

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

; Function Attrs: mustprogress 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 i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) local_unnamed_addr #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)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress 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 noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416), i32) local_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 #2 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 #2 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8OpenMesh16PolyConnectivity14is_collapse_okENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %4 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %5 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %6 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %7 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %8 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48", align 8
  %9 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %10 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %11 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %12 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %13 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %14 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %15 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %16 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %17 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %18 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %19 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11edge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %19)
  %21 = tail call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %21, label %147, label %22

22:                                               ; preds = %2
  %23 = tail call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %24 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %23)
  %25 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %26 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  br i1 %26, label %31, label %27

27:                                               ; preds = %22
  %28 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %29 = tail call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %28)
  %30 = icmp eq i32 %29, 3
  br label %31

31:                                               ; preds = %27, %22
  %.0116 = phi i1 [ false, %22 ], [ %30, %27 ]
  %32 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %23)
  br i1 %32, label %37, label %33

33:                                               ; preds = %31
  %34 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %23)
  %35 = tail call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %34)
  %36 = icmp eq i32 %35, 3
  br label %37

37:                                               ; preds = %33, %31
  %.0117 = phi i1 [ false, %31 ], [ %36, %33 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %38 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %39 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %38)
  store i32 %39, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %40 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %23)
  %41 = tail call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %40)
  store i32 %41, ptr %4, align 4
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %24)
  %43 = tail call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %42)
  br i1 %43, label %146, label %44

44:                                               ; preds = %37
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %25)
  %46 = tail call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %45)
  br i1 %46, label %146, label %47

47:                                               ; preds = %44
  %48 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  %.0116.not = xor i1 %.0116, true
  %brmerge = or i1 %48, %.0116.not
  br i1 %brmerge, label %.critedge124, label %49

49:                                               ; preds = %47
  %50 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %51 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %50)
  %52 = tail call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %50)
  %53 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %52)
  br i1 %53, label %54, label %.critedge124

54:                                               ; preds = %49
  %55 = tail call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %51)
  %56 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %55)
  br i1 %56, label %146, label %.critedge124

.critedge124:                                     ; preds = %49, %54, %47
  %57 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %23)
  %.0117.not = xor i1 %.0117, true
  %brmerge125 = or i1 %57, %.0117.not
  br i1 %brmerge125, label %.critedge127, label %58

58:                                               ; preds = %.critedge124
  %59 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %23)
  %60 = tail call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %59)
  %61 = tail call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %59)
  %62 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %61)
  br i1 %62, label %63, label %.critedge127

63:                                               ; preds = %58
  %64 = tail call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %60)
  %65 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %64)
  br i1 %65, label %146, label %.critedge127

.critedge127:                                     ; preds = %58, %63, %.critedge124
  %66 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %24)
  br i1 %66, label %67, label %73

67:                                               ; preds = %.critedge127
  %68 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %25)
  br i1 %68, label %69, label %73

69:                                               ; preds = %67
  %70 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  br i1 %70, label %73, label %71

71:                                               ; preds = %69
  %72 = tail call noundef zeroext i1 @_ZNK8OpenMesh16PolyConnectivity11is_boundaryENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %23)
  br i1 %72, label %73, label %146

73:                                               ; preds = %71, %69, %67, %.critedge127
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
  call void @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48") align 8 %6, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %24)
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  %75 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %75, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %73, %.lr.ph
  %76 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %76)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %77, i1 noundef zeroext false)
  %78 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %79 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph, %73
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  call void @_ZN8OpenMesh16PolyConnectivity7vv_iterENS_12VertexHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.48") align 8 %7, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %25)
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  %81 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %81, label %.lr.ph141, label %._crit_edge142

.lr.ph141:                                        ; preds = %._crit_edge, %.lr.ph141
  %82 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %82)
  call void @_ZN8OpenMesh10Attributes10StatusInfo10set_taggedEb(ptr noundef nonnull align 4 dereferenceable(4) %83, i1 noundef zeroext true)
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %85 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %85, label %.lr.ph141, label %._crit_edge142, !llvm.loop !7

._crit_edge142:                                   ; preds = %.lr.ph141, %._crit_edge
  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.48") align 8 %8, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %24)
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  %87 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %87, label %.lr.ph144, label %._crit_edge145

.lr.ph144:                                        ; preds = %._crit_edge142
  br i1 %.0116, label %.lr.ph144.split, label %.lr.ph144.split.us

.lr.ph144.split.us:                               ; preds = %.lr.ph144, %97
  %88 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %88)
  %90 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4) %89)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  br i1 %90, label %91, label %.critedge.us

91:                                               ; preds = %.lr.ph144.split.us
  %92 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  store i32 %92, ptr %9, align 4
  %93 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %94 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  store i32 %94, ptr %10, align 4
  %95 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %96 = and i1 %.0117, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br i1 %96, label %97, label %.loopexit

.critedge.us:                                     ; preds = %.lr.ph144.split.us
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br label %97

97:                                               ; preds = %.critedge.us, %91
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %99 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %99, label %.lr.ph144.split.us, label %._crit_edge145, !llvm.loop !8

.lr.ph144.split:                                  ; preds = %.lr.ph144, %110
  %100 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %100)
  %102 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4) %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  br i1 %102, label %103, label %.critedge

103:                                              ; preds = %.lr.ph144.split
  %104 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  store i32 %104, ptr %9, align 4
  %105 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %105, label %.critedge, label %106

106:                                              ; preds = %103
  %107 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  store i32 %107, ptr %10, align 4
  %108 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %109 = and i1 %.0117, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br i1 %109, label %110, label %.loopexit

.critedge:                                        ; preds = %103, %.lr.ph144.split
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br label %110

110:                                              ; preds = %106, %.critedge
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %112 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %112, label %.lr.ph144.split, label %._crit_edge145, !llvm.loop !8

._crit_edge145:                                   ; preds = %97, %110, %._crit_edge142
  br i1 %.0116, label %113, label %125

113:                                              ; preds = %._crit_edge145
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef -1)
  %114 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  store i32 %114, ptr %11, align 4
  %115 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %114)
  store i32 %115, ptr %12, align 4
  %.sroa.026.0.copyload = load i32, ptr %11, align 4
  %116 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.026.0.copyload)
  store i32 %116, ptr %11, align 4
  %.sroa.024.0.copyload = load i32, ptr %12, align 4
  %117 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.024.0.copyload)
  store i32 %117, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  %.sroa.023.0.copyload = load i32, ptr %11, align 4
  %118 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.023.0.copyload)
  store i32 %118, ptr %13, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  %.sroa.022.0.copyload = load i32, ptr %12, align 4
  %119 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.022.0.copyload)
  store i32 %119, ptr %14, align 4
  %120 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %120, label %121, label %.critedge5

121:                                              ; preds = %113
  %.sroa.020.0.copyload = load i32, ptr %11, align 4
  %122 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.020.0.copyload)
  %123 = call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %122)
  %.not = icmp eq i32 %123, 3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  br i1 %.not, label %.critedge132, label %124

.critedge5:                                       ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  br label %.critedge132

.critedge132:                                     ; preds = %.critedge5, %121
  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 %125

124:                                              ; preds = %121
  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 %.loopexit

125:                                              ; preds = %.critedge132, %._crit_edge145
  br i1 %.0117, label %126, label %138

126:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef -1)
  %127 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %23)
  store i32 %127, ptr %15, align 4
  %128 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %127)
  store i32 %128, ptr %16, align 4
  %.sroa.014.0.copyload = load i32, ptr %15, align 4
  %129 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.014.0.copyload)
  store i32 %129, ptr %15, align 4
  %.sroa.012.0.copyload = load i32, ptr %16, align 4
  %130 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.012.0.copyload)
  store i32 %130, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  %.sroa.011.0.copyload = load i32, ptr %15, align 4
  %131 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.011.0.copyload)
  store i32 %131, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #3
  %.sroa.010.0.copyload = load i32, ptr %16, align 4
  %132 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.010.0.copyload)
  store i32 %132, ptr %18, align 4
  %133 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br i1 %133, label %134, label %.critedge7

134:                                              ; preds = %126
  %.sroa.08.0.copyload = load i32, ptr %15, align 4
  %135 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.08.0.copyload)
  %136 = call noundef i32 @_ZNK8OpenMesh16PolyConnectivity7valenceENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %135)
  %.not122 = icmp eq i32 %136, 3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  br i1 %.not122, label %.critedge134, label %137

.critedge7:                                       ; preds = %126
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  br label %.critedge134

.critedge134:                                     ; preds = %.critedge7, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  br label %138

137:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  br label %.loopexit

138:                                              ; preds = %.critedge134, %125
  %139 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleES3_XadL_ZNKS0_22GenericCirculatorBaseTIS2_E14toVertexHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %139)
  %141 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo6taggedEv(ptr noundef nonnull align 4 dereferenceable(4) %140)
  br i1 %141, label %142, label %145

142:                                              ; preds = %138
  %143 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %144 = and i1 %.0117, %143
  %brmerge139.demorgan = and i1 %.0116, %144
  br i1 %brmerge139.demorgan, label %.loopexit, label %145

145:                                              ; preds = %142, %138
  br label %.loopexit

.loopexit:                                        ; preds = %91, %106, %142, %137, %124, %145
  %.7 = phi i1 [ true, %145 ], [ false, %137 ], [ false, %124 ], [ false, %142 ], [ false, %106 ], [ false, %91 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
  br label %146

146:                                              ; preds = %71, %63, %54, %37, %44, %.loopexit
  %.8 = phi i1 [ %.7, %.loopexit ], [ false, %44 ], [ false, %37 ], [ false, %54 ], [ false, %63 ], [ false, %71 ]
  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 %147

147:                                              ; preds = %2, %146
  %.9 = phi i1 [ %.8, %146 ], [ false, %2 ]
  ret i1 %.9
}

; 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 #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) local_unnamed_addr #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) 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 #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.48") align 8, ptr noundef nonnull align 8 dereferenceable(416), i32) local_unnamed_addr #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)) 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 #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)) local_unnamed_addr #2 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 #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)) local_unnamed_addr #2 align 2

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

attributes #0 = { 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 #1 = { mustprogress 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 = { 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,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass