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

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

@.str.4 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [49 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity11insert_edgeENS_14HalfedgeHandleES1_ = external hidden unnamed_addr constant [105 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

70:                                               ; preds = %3
  br label %73

71:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.4, i32 noundef 988, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity11insert_edgeENS_14HalfedgeHandleES1_) #7
  unreachable

72:                                               ; No predecessors!
  br label %73

73:                                               ; preds = %72, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %5, i64 4, i1 false)
  %74 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %13, i32 0, i32 0
  %75 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 4
  %77 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %76)
  %78 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %12, i32 0, i32 0
  %79 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %78, i32 0, i32 0
  store i32 %77, ptr %79, align 4
  %80 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %80, label %81, label %82

81:                                               ; preds = %73
  br label %84

82:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.27, ptr noundef @.str.4, i32 noundef 989, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity11insert_edgeENS_14HalfedgeHandleES1_) #7
  unreachable

83:                                               ; No predecessors!
  br label %84

84:                                               ; preds = %83, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %5, i64 4, i1 false)
  %85 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %15, i32 0, i32 0
  %86 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 4
  %88 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %87)
  %89 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %14, i32 0, i32 0
  %90 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %89, i32 0, i32 0
  store i32 %88, ptr %90, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %6, i64 4, i1 false)
  %91 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %17, i32 0, i32 0
  %92 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 4
  %94 = call i32 @_ZNK8OpenMesh11ArrayKernel18from_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %93)
  %95 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %16, i32 0, i32 0
  %96 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %95, i32 0, i32 0
  store i32 %94, ptr %96, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %14, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %16, i64 4, i1 false)
  %97 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %18, i32 0, i32 0
  %98 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 4
  %100 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %19, i32 0, i32 0
  %101 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 4
  %103 = call i32 @_ZN8OpenMesh11ArrayKernel8new_edgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %99, i32 %102)
  %104 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %4, i32 0, i32 0
  %105 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %104, i32 0, i32 0
  store i32 %103, ptr %105, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %4, i64 4, i1 false)
  %106 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %21, i32 0, i32 0
  %107 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4
  %109 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %108)
  %110 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %20, i32 0, i32 0
  %111 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %110, i32 0, i32 0
  store i32 %109, ptr %111, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %5, i64 4, i1 false)
  %112 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %23, i32 0, i32 0
  %113 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 4
  %115 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %114)
  %116 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %22, i32 0, i32 0
  %117 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %116, i32 0, i32 0
  store i32 %115, ptr %117, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %6, i64 4, i1 false)
  %118 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %25, i32 0, i32 0
  %119 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 4
  %121 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %120)
  %122 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %24, i32 0, i32 0
  %123 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %122, i32 0, i32 0
  store i32 %121, ptr %123, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %5, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %4, i64 4, i1 false)
  %124 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %26, i32 0, i32 0
  %125 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %124, i32 0, i32 0
  %126 = load i32, ptr %125, align 4
  %127 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %27, i32 0, i32 0
  %128 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %126, i32 %129)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %4, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %6, i64 4, i1 false)
  %130 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %28, i32 0, i32 0
  %131 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 4
  %133 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %29, i32 0, i32 0
  %134 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %132, i32 %135)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %24, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %20, i64 4, i1 false)
  %136 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %30, i32 0, i32 0
  %137 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 4
  %139 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %31, i32 0, i32 0
  %140 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %138, i32 %141)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %20, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %22, i64 4, i1 false)
  %142 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %32, i32 0, i32 0
  %143 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 4
  %145 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %33, i32 0, i32 0
  %146 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %144, i32 %147)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %148 = call i32 @_ZN8OpenMesh11ArrayKernel8new_faceEv(ptr noundef nonnull align 8 dereferenceable(368) %56)
  %149 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %34, i32 0, i32 0
  %150 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %149, i32 0, i32 0
  store i32 %148, ptr %150, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %34, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %4, i64 4, i1 false)
  %151 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %35, i32 0, i32 0
  %152 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %151, i32 0, i32 0
  %153 = load i32, ptr %152, align 4
  %154 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %36, i32 0, i32 0
  %155 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %154, i32 0, i32 0
  %156 = load i32, ptr %155, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %153, i32 %156)
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %34, i64 4, i1 false)
  %157 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %38, i32 0, i32 0
  %158 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7fh_iterENS_10FaceHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.60") align 8 %37, ptr noundef nonnull align 8 dereferenceable(416) %56, i32 %159)
  br label %160

160:                                              ; preds = %173, %84
  %161 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  br i1 %161, label %163, label %162

162:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  br label %175

163:                                              ; preds = %160
  %164 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  %165 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %166 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %165, i32 0, i32 0
  store i32 %164, ptr %166, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %34, i64 4, i1 false)
  %167 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %168 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 4
  %170 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %40, i32 0, i32 0
  %171 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %169, i32 %172)
  br label %173

173:                                              ; preds = %163
  %174 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  br label %160, !llvm.loop !9

175:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %22, i64 4, i1 false)
  %176 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %42, i32 0, i32 0
  %177 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 4
  %179 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %178)
  %180 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %41, i32 0, i32 0
  %181 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %180, i32 0, i32 0
  store i32 %179, ptr %181, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %20, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %41, i64 4, i1 false)
  %182 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %43, i32 0, i32 0
  %183 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 4
  %185 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %44, i32 0, i32 0
  %186 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 4
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %184, i32 %187)
  %188 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  br i1 %188, label %189, label %203

189:                                              ; preds = %175
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %41, i64 4, i1 false)
  %190 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %47, i32 0, i32 0
  %191 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %190, i32 0, i32 0
  %192 = load i32, ptr %191, align 4
  %193 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %192)
  %194 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %46, i32 0, i32 0
  %195 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %194, i32 0, i32 0
  store i32 %193, ptr %195, align 4
  %196 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %46, i32 0, i32 0
  %197 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 4
  %199 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %198)
  %200 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %45, i32 0, i32 0
  %201 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %200, i32 0, i32 0
  store i32 %199, ptr %201, align 4
  %202 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %203

203:                                              ; preds = %189, %175
  %204 = phi i1 [ false, %175 ], [ %202, %189 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br i1 %204, label %205, label %212

205:                                              ; preds = %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %41, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %20, i64 4, i1 false)
  %206 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %48, i32 0, i32 0
  %207 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 4
  %209 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %49, i32 0, i32 0
  %210 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %56, i32 %208, i32 %211)
  br label %212

212:                                              ; preds = %205, %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %14, i64 4, i1 false)
  %213 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %50, i32 0, i32 0
  %214 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %56, i32 %215)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %16, i64 4, i1 false)
  %216 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %51, i32 0, i32 0
  %217 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 4
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %56, i32 %218)
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %219 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %4, i32 0, i32 0
  %220 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %219, i32 0, i32 0
  %221 = load i32, ptr %220, align 4
  ret i32 %221
}

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh11ArrayKernel18from_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) #4 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.4 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [49 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity11insert_edgeENS_14HalfedgeHandleES1_ = external hidden unnamed_addr constant [105 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416), i32) local_unnamed_addr #3 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 #3 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN8OpenMesh16PolyConnectivity11insert_edgeENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i32 %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %5 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %6 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %7 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %8 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %9 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.60", align 8
  %10 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %11 = alloca %"struct.OpenMesh::FaceHandle", align 4
  store i32 %2, ptr %4, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %12 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  store i32 %12, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %13 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %2)
  store i32 %13, ptr %6, align 4
  %14 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %14, label %16, label %15

15:                                               ; preds = %3
  call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.4, i32 noundef 988, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity11insert_edgeENS_14HalfedgeHandleES1_) #6
  unreachable

16:                                               ; preds = %3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %17 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  store i32 %17, ptr %7, align 4
  %18 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleneERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @__assert_fail(ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.4, i32 noundef 989, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity11insert_edgeENS_14HalfedgeHandleES1_) #6
  unreachable

20:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  %21 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %.sroa.034.0.copyload = load i32, ptr %4, align 4
  %22 = call i32 @_ZNK8OpenMesh11ArrayKernel18from_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.034.0.copyload)
  %23 = call i32 @_ZN8OpenMesh11ArrayKernel8new_edgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %21, i32 %22)
  %24 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %23)
  %25 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  %.sroa.022.0.copyload = load i32, ptr %4, align 4
  %26 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.022.0.copyload)
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1, i32 %23)
  %.sroa.018.0.copyload = load i32, ptr %4, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %23, i32 %.sroa.018.0.copyload)
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %26, i32 %24)
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %24, i32 %25)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %27 = call i32 @_ZN8OpenMesh11ArrayKernel8new_faceEv(ptr noundef nonnull align 8 dereferenceable(368) %0)
  store i32 %27, ptr %8, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %27, i32 %23)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @_ZN8OpenMesh16PolyConnectivity7fh_iterENS_10FaceHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.60") align 8 %9, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %27)
  %28 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  br i1 %28, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %20
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %29 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %25)
  store i32 %29, ptr %10, align 4
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %24, i32 %29)
  %30 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  br i1 %30, label %34, label %.critedge

.lr.ph:                                           ; preds = %20, %.lr.ph
  %31 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %31, i32 %27)
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %33 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !5

34:                                               ; preds = %._crit_edge
  %.sroa.04.0.copyload = load i32, ptr %10, align 4
  %35 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.04.0.copyload)
  %36 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %35)
  store i32 %36, ptr %11, align 4
  %37 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br i1 %37, label %38, label %39

38:                                               ; preds = %34
  %.sroa.03.0.copyload = load i32, ptr %10, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.03.0.copyload, i32 %24)
  br label %39

.critedge:                                        ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %39

39:                                               ; preds = %.critedge, %38, %34
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %21)
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  ret i32 %23
}

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK8OpenMesh11ArrayKernel18from_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) local_unnamed_addr #3 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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