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

@.str.4 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE = external hidden unnamed_addr constant [59 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [37 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 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 i32 @_ZNK8OpenMesh11ArrayKernel20next_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: 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 noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10FaceHandleE(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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIN8OpenMesh10FaceHandleEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1) #4 align 2 {
  %3 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.OpenMesh::GenProg::AssertCompile", align 1
  %6 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %7 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %8 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %9 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %10 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %11 = alloca %"struct.OpenMesh::EdgeHandle", align 4
  %12 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %13 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %14 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %15 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %16 = alloca %"struct.OpenMesh::FaceHandle", 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::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 %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.60", align 8
  %35 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %36 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %37 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %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::HalfedgeHandle", align 4
  %42 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %43 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %44 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %45 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %46 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %47 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %48 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %49 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %3, i32 0, i32 0
  %50 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %49, i32 0, i32 0
  store i32 %1, ptr %50, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %3, i64 4, i1 false)
  %52 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %6, i32 0, i32 0
  %53 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 4
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %54)
  %56 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %55)
  br i1 %56, label %57, label %58

57:                                               ; preds = %2
  br label %60

58:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.4, i32 noundef 939, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE) #6
  unreachable

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59, %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %3, i64 4, i1 false)
  %61 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %7, i32 0, i32 0
  %62 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 4
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %63)
  call void @_ZN8OpenMesh10Attributes10StatusInfo11set_deletedEb(ptr noundef nonnull align 4 dereferenceable(4) %64, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %3, i64 4, i1 false)
  %65 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %9, i32 0, i32 0
  %66 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 4
  %68 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %67, i32 noundef 0)
  %69 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %8, i32 0, i32 0
  %70 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %69, i32 0, i32 0
  store i32 %68, ptr %70, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %3, i64 4, i1 false)
  %71 = getelementptr inbounds %"struct.OpenMesh::EdgeHandle", ptr %11, i32 0, i32 0
  %72 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 4
  %74 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %73, i32 noundef 1)
  %75 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %10, i32 0, i32 0
  %76 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %75, i32 0, i32 0
  store i32 %74, ptr %76, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %8, i64 4, i1 false)
  %77 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %13, i32 0, i32 0
  %78 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 4
  %80 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %79)
  %81 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %12, i32 0, i32 0
  %82 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %81, i32 0, i32 0
  store i32 %80, ptr %82, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %10, i64 4, i1 false)
  %83 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %15, i32 0, i32 0
  %84 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 4
  %86 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %85)
  %87 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %14, i32 0, i32 0
  %88 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %87, i32 0, i32 0
  store i32 %86, ptr %88, align 4
  %89 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %89, label %91, label %90

90:                                               ; preds = %60
  call void @_ZSt4swapIN8OpenMesh10FaceHandleEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %12) #7
  br label %91

91:                                               ; preds = %90, %60
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %14, i64 4, i1 false)
  %92 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %16, i32 0, i32 0
  %93 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 4
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %94)
  %96 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %95)
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  br label %100

98:                                               ; preds = %91
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 949, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE) #6
  unreachable

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99, %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %14, i64 4, i1 false)
  %101 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %17, 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 noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %103)
  call void @_ZN8OpenMesh10Attributes10StatusInfo11set_deletedEb(ptr noundef nonnull align 4 dereferenceable(4) %104, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %8, i64 4, i1 false)
  %105 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %19, i32 0, i32 0
  %106 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 4
  %108 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %107)
  %109 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %18, i32 0, i32 0
  %110 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %109, i32 0, i32 0
  store i32 %108, ptr %110, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %10, i64 4, i1 false)
  %111 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %21, i32 0, i32 0
  %112 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 4
  %114 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %113)
  %115 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %20, i32 0, i32 0
  %116 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %115, i32 0, i32 0
  store i32 %114, ptr %116, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %8, i64 4, i1 false)
  %117 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %23, i32 0, i32 0
  %118 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 4
  %120 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %119)
  %121 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %22, i32 0, i32 0
  %122 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %121, i32 0, i32 0
  store i32 %120, ptr %122, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %10, i64 4, i1 false)
  %123 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %25, i32 0, i32 0
  %124 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  %126 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %125)
  %127 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %24, i32 0, i32 0
  %128 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %127, i32 0, i32 0
  store i32 %126, ptr %128, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %18, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %8, i64 4, i1 false)
  %129 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %26, i32 0, i32 0
  %130 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 4
  %132 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %27, i32 0, i32 0
  %133 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %131, i32 %134)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %22, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %8, i64 4, i1 false)
  %135 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %28, i32 0, i32 0
  %136 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %135, i32 0, i32 0
  %137 = load i32, ptr %136, align 4
  %138 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %29, i32 0, i32 0
  %139 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_prev_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %137, i32 %140)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %20, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %10, i64 4, i1 false)
  %141 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %30, i32 0, i32 0
  %142 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 4
  %144 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %31, i32 0, i32 0
  %145 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %143, i32 %146)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %24, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %10, i64 4, i1 false)
  %147 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %32, i32 0, i32 0
  %148 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %147, i32 0, i32 0
  %149 = load i32, ptr %148, align 4
  %150 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %33, i32 0, i32 0
  %151 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_prev_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %149, i32 %152)
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %14, i64 4, i1 false)
  %153 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %35, i32 0, i32 0
  %154 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7fh_iterENS_10FaceHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.60") align 8 %34, ptr noundef nonnull align 8 dereferenceable(416) %51, i32 %155)
  br label %156

156:                                              ; preds = %169, %100
  %157 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  br i1 %157, label %159, label %158

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  br label %171

159:                                              ; preds = %156
  %160 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %161 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %36, i32 0, i32 0
  %162 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %161, i32 0, i32 0
  store i32 %160, ptr %162, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %14, i64 4, i1 false)
  %163 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %36, i32 0, i32 0
  %164 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 4
  %166 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %37, i32 0, i32 0
  %167 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %166, i32 0, i32 0
  %168 = load i32, ptr %167, align 4
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %165, i32 %168)
  br label %169

169:                                              ; preds = %159
  %170 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  br label %156, !llvm.loop !9

171:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %12, i64 4, i1 false)
  %172 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %40, i32 0, i32 0
  %173 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 4
  %175 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %174)
  %176 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %177 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %176, i32 0, i32 0
  store i32 %175, ptr %177, align 4
  %178 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %179 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 4
  %181 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %180)
  %182 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %38, i32 0, i32 0
  %183 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %182, i32 0, i32 0
  store i32 %181, ptr %183, align 4
  %184 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br i1 %184, label %185, label %219

185:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %12, i64 4, i1 false)
  %186 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %42, 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 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %188)
  %190 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %41, i32 0, i32 0
  %191 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %190, i32 0, i32 0
  store i32 %189, ptr %191, align 4
  %192 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br i1 %192, label %193, label %200

193:                                              ; preds = %185
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %12, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %10, i64 4, i1 false)
  %194 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %43, i32 0, i32 0
  %195 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %194, i32 0, i32 0
  %196 = load i32, ptr %195, align 4
  %197 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %44, i32 0, i32 0
  %198 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %196, i32 %199)
  br label %218

200:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %12, i64 4, i1 false)
  %201 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %46, i32 0, i32 0
  %202 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 4
  %204 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %203)
  %205 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %45, i32 0, i32 0
  %206 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %205, i32 0, i32 0
  store i32 %204, ptr %206, align 4
  %207 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br i1 %207, label %208, label %209

208:                                              ; preds = %200
  br label %211

209:                                              ; preds = %200
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.4, i32 noundef 978, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE) #6
  unreachable

210:                                              ; No predecessors!
  br label %211

211:                                              ; preds = %210, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %12, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %8, i64 4, i1 false)
  %212 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %47, i32 0, i32 0
  %213 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %212, i32 0, i32 0
  %214 = load i32, ptr %213, align 4
  %215 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %48, i32 0, i32 0
  %216 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %51, i32 %214, i32 %217)
  br label %218

218:                                              ; preds = %211, %193
  br label %219

219:                                              ; preds = %218, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh11ArrayKernel24set_prev_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368), i32, 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 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 #6 = { noreturn nounwind }
attributes #7 = { 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.23 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE = external hidden unnamed_addr constant [59 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [37 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 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 i32 @_ZNK8OpenMesh11ArrayKernel20next_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: 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 noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368), i32) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10FaceHandleE(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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIN8OpenMesh10FaceHandleEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

13:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.4, i32 noundef 939, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE) #5
  unreachable

14:                                               ; preds = %2
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10EdgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1)
  tail call void @_ZN8OpenMesh10Attributes10StatusInfo11set_deletedEb(ptr noundef nonnull align 4 dereferenceable(4) %15, i1 noundef zeroext false)
  %16 = tail call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1, i32 noundef 0)
  %17 = tail call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10EdgeHandleEj(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %18 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %16)
  store i32 %18, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %19 = tail call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %17)
  store i32 %19, ptr %4, align 4
  %20 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  br i1 %20, label %22, label %21

21:                                               ; preds = %14
  call void @_ZSt4swapIN8OpenMesh10FaceHandleEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3) #6
  br label %22

22:                                               ; preds = %21, %14
  %.sroa.026.0.copyload = load i32, ptr %4, align 4
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.026.0.copyload)
  %24 = call noundef zeroext i1 @_ZNK8OpenMesh10Attributes10StatusInfo7deletedEv(ptr noundef nonnull align 4 dereferenceable(4) %23)
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 949, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE) #5
  unreachable

26:                                               ; preds = %22
  %.sroa.025.0.copyload = load i32, ptr %4, align 4
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh11ArrayKernel6statusENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.025.0.copyload)
  call void @_ZN8OpenMesh10Attributes10StatusInfo11set_deletedEb(ptr noundef nonnull align 4 dereferenceable(4) %27, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %28 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %16)
  store i32 %28, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %29 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %17)
  store i32 %29, ptr %6, align 4
  %30 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %16)
  %31 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %17)
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %28, i32 %16)
  call void @_ZN8OpenMesh11ArrayKernel24set_prev_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %30, i32 %16)
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %29, i32 %17)
  call void @_ZN8OpenMesh11ArrayKernel24set_prev_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %31, i32 %17)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %.sroa.010.0.copyload = load i32, ptr %4, align 4
  call void @_ZN8OpenMesh16PolyConnectivity7fh_iterENS_10FaceHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.60") align 8 %7, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %.sroa.010.0.copyload)
  %32 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %32, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %26
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %.sroa.06.0.copyload = load i32, ptr %3, align 4
  %33 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.06.0.copyload)
  %34 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %33)
  store i32 %34, ptr %8, align 4
  %35 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br i1 %35, label %39, label %48

.lr.ph:                                           ; preds = %26, %.lr.ph
  %36 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %.sroa.08.0.copyload = load i32, ptr %4, align 4
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %36, i32 %.sroa.08.0.copyload)
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %38 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_10FaceHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E16toHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !5

39:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %.sroa.05.0.copyload = load i32, ptr %3, align 4
  %40 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.05.0.copyload)
  store i32 %40, ptr %9, align 4
  %41 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  %.sroa.04.0.copyload = load i32, ptr %3, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.04.0.copyload, i32 %17)
  br label %48

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %.sroa.02.0.copyload = load i32, ptr %3, align 4
  %44 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.02.0.copyload)
  store i32 %44, ptr %10, align 4
  %45 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.4, i32 noundef 978, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh16PolyConnectivity13reinsert_edgeENS_10EdgeHandleE) #5
  unreachable

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %.sroa.01.0.copyload = load i32, ptr %3, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.01.0.copyload, i32 %16)
  br label %48

48:                                               ; preds = %42, %47, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh11ArrayKernel24set_prev_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368), i32, 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 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 #5 = { noreturn nounwind }
attributes #6 = { 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