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

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

%"struct.OpenMesh::HalfedgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.35" = 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::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }

@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_ = external hidden unnamed_addr constant [117 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i32 %2, i32 %3) #2 align 2 {
  %5 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %6 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %7 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %8 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %11 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %12 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %13 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %14 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %15 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %16 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %17 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %18 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %19 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %20 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %21 = alloca %"struct.OpenMesh::VertexHandle", 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 %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.35", align 8
  %34 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %35 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %36 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %37 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %38 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %39 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %40 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %41 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %42 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %43 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %44 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %45 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %46 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %47 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %48 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %49 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %50 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %51 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %52 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %53 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %54 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %55 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %6, i32 0, i32 0
  %56 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %55, i32 0, i32 0
  store i32 %1, ptr %56, align 4
  %57 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %7, i32 0, i32 0
  %58 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %57, i32 0, i32 0
  store i32 %2, ptr %58, align 4
  %59 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %8, i32 0, i32 0
  %60 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %59, i32 0, i32 0
  store i32 %3, ptr %60, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  %61 = load ptr, ptr %9, align 8
  %62 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
  br i1 %62, label %63, label %65

63:                                               ; preds = %4
  %64 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %8)
  br label %65

65:                                               ; preds = %63, %4
  %66 = phi i1 [ false, %4 ], [ %64, %63 ]
  br i1 %66, label %67, label %68

67:                                               ; preds = %65
  br label %70

68:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 263, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_) #7
  unreachable

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %6, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %7, i64 4, i1 false)
  %71 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %12, 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 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %73)
  %75 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %11, 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 %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %8, i64 4, i1 false)
  %77 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %14, 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 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %79)
  %81 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %13, i32 0, i32 0
  %82 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %81, i32 0, i32 0
  store i32 %80, ptr %82, align 4
  %83 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
  br i1 %83, label %84, label %85

84:                                               ; preds = %70
  br label %87

85:                                               ; preds = %70
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 268, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_) #7
  unreachable

86:                                               ; No predecessors!
  br label %87

87:                                               ; preds = %86, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %10, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %11, i64 4, i1 false)
  %88 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %15, i32 0, i32 0
  %89 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 4
  %91 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %16, 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 @_ZN8OpenMesh11ArrayKernel8new_edgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %90, i32 %93)
  %95 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %5, 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.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %5, i64 4, i1 false)
  %97 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", 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 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %99)
  %101 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %17, i32 0, i32 0
  %102 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %101, i32 0, i32 0
  store i32 %100, ptr %102, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %10, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %5, i64 4, i1 false)
  %103 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %19, i32 0, i32 0
  %104 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 4
  %106 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %20, i32 0, i32 0
  %107 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_12VertexHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %105, i32 %108)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %11, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %17, i64 4, i1 false)
  %109 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %21, i32 0, i32 0
  %110 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 4
  %112 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %22, i32 0, i32 0
  %113 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_12VertexHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %111, i32 %114)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %5, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %7, i64 4, i1 false)
  %115 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %25, i32 0, i32 0
  %116 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 4
  %118 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %117)
  %119 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %24, i32 0, i32 0
  %120 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %119, i32 0, i32 0
  store i32 %118, ptr %120, align 4
  %121 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %23, i32 0, i32 0
  %122 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 4
  %124 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %24, i32 0, i32 0
  %125 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %124, i32 0, i32 0
  %126 = load i32, ptr %125, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %123, i32 %126)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %7, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %5, i64 4, i1 false)
  %127 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %26, i32 0, i32 0
  %128 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 4
  %130 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %27, i32 0, i32 0
  %131 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %129, i32 %132)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %17, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %8, i64 4, i1 false)
  %133 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %30, i32 0, i32 0
  %134 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 4
  %136 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %135)
  %137 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %29, i32 0, i32 0
  %138 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %137, i32 0, i32 0
  store i32 %136, ptr %138, align 4
  %139 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %28, i32 0, i32 0
  %140 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 4
  %142 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %29, i32 0, i32 0
  %143 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %141, i32 %144)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %8, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %17, i64 4, i1 false)
  %145 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %31, i32 0, i32 0
  %146 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 4
  %148 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %32, i32 0, i32 0
  %149 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %147, i32 %150)
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %10, i64 4, i1 false)
  %151 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %34, i32 0, i32 0
  %152 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %151, i32 0, i32 0
  %153 = load i32, ptr %152, align 4
  call void @_ZN8OpenMesh16PolyConnectivity8vih_iterENS_12VertexHandleE(ptr dead_on_unwind writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.35") align 8 %33, ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %153)
  br label %154

154:                                              ; preds = %167, %87
  %155 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E24toOppositeHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  br i1 %155, label %157, label %156

156:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  br label %169

157:                                              ; preds = %154
  %158 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E24toOppositeHalfedgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  %159 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %35, i32 0, i32 0
  %160 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %159, i32 0, i32 0
  store i32 %158, ptr %160, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %10, i64 4, i1 false)
  %161 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %35, i32 0, i32 0
  %162 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 4
  %164 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %36, i32 0, i32 0
  %165 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %164, i32 0, i32 0
  %166 = load i32, ptr %165, align 4
  call void @_ZN8OpenMesh11ArrayKernel17set_vertex_handleENS_14HalfedgeHandleENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %163, i32 %166)
  br label %167

167:                                              ; preds = %157
  %168 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E24toOppositeHalfedgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  br label %154, !llvm.loop !9

169:                                              ; preds = %156
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %5, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %7, i64 4, i1 false)
  %170 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %39, i32 0, i32 0
  %171 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4
  %173 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %172)
  %174 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %38, i32 0, i32 0
  %175 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %174, i32 0, i32 0
  store i32 %173, ptr %175, align 4
  %176 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %37, i32 0, i32 0
  %177 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 4
  %179 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %38, i32 0, i32 0
  %180 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %179, i32 0, i32 0
  %181 = load i32, ptr %180, align 4
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %178, i32 %181)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %17, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %8, i64 4, i1 false)
  %182 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %42, i32 0, i32 0
  %183 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 4
  %185 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %184)
  %186 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %41, i32 0, i32 0
  %187 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %186, i32 0, i32 0
  store i32 %185, ptr %187, align 4
  %188 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %40, i32 0, i32 0
  %189 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 4
  %191 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %41, i32 0, i32 0
  %192 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 4
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %190, i32 %193)
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %5, i64 4, i1 false)
  %194 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %44, i32 0, i32 0
  %195 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %194, i32 0, i32 0
  %196 = load i32, ptr %195, align 4
  %197 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %196)
  %198 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %43, i32 0, i32 0
  %199 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %198, i32 0, i32 0
  store i32 %197, ptr %199, align 4
  %200 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %43)
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br i1 %200, label %201, label %214

201:                                              ; preds = %169
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %5, i64 4, i1 false)
  %202 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %46, i32 0, i32 0
  %203 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %202, i32 0, i32 0
  %204 = load i32, ptr %203, align 4
  %205 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %204)
  %206 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %45, i32 0, i32 0
  %207 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %206, i32 0, i32 0
  store i32 %205, ptr %207, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %5, i64 4, i1 false)
  %208 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %45, i32 0, i32 0
  %209 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 4
  %211 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %47, i32 0, i32 0
  %212 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %211, i32 0, i32 0
  %213 = load i32, ptr %212, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %210, i32 %213)
  br label %214

214:                                              ; preds = %201, %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %17, i64 4, i1 false)
  %215 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %49, i32 0, i32 0
  %216 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 4
  %218 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %217)
  %219 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %48, i32 0, i32 0
  %220 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %219, i32 0, i32 0
  store i32 %218, ptr %220, align 4
  %221 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br i1 %221, label %222, label %235

222:                                              ; preds = %214
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %17, i64 4, i1 false)
  %223 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %51, i32 0, i32 0
  %224 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 4
  %226 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %225)
  %227 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %50, i32 0, i32 0
  %228 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %227, i32 0, i32 0
  store i32 %226, ptr %228, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %17, i64 4, i1 false)
  %229 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %50, i32 0, i32 0
  %230 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %229, i32 0, i32 0
  %231 = load i32, ptr %230, align 4
  %232 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %52, i32 0, i32 0
  %233 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %232, i32 0, i32 0
  %234 = load i32, ptr %233, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %61, i32 %231, i32 %234)
  br label %235

235:                                              ; preds = %222, %214
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %10, i64 4, i1 false)
  %236 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %53, i32 0, i32 0
  %237 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %236, i32 0, i32 0
  %238 = load i32, ptr %237, align 4
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %238)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %11, i64 4, i1 false)
  %239 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %54, i32 0, i32 0
  %240 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %239, i32 0, i32 0
  %241 = load i32, ptr %240, align 4
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %61, i32 %241)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %242 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %5, i32 0, i32 0
  %243 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 4
  ret i32 %244
}

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

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

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

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

declare void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416), i32) #6

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

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

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

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

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { "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 #7 = { noreturn nounwind }
attributes #8 = { nounwind }

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

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


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

%"struct.OpenMesh::HalfedgeHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.35" = 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::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }

@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_ = external hidden unnamed_addr constant [117 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i32 %2, i32 %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %6 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %7 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %8 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %9 = alloca %"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.35", align 8
  %10 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %11 = alloca %"struct.OpenMesh::FaceHandle", align 4
  store i32 %2, ptr %5, align 4
  store i32 %3, ptr %6, align 4
  %12 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  br i1 %12, label %13, label %.critedge

13:                                               ; preds = %4
  %14 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %14, label %15, label %.critedge

.critedge:                                        ; preds = %4, %13
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 263, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_) #6
  unreachable

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %.sroa.044.0.copyload = load i32, ptr %5, align 4
  %16 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.044.0.copyload)
  store i32 %16, ptr %7, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %.sroa.043.0.copyload = load i32, ptr %6, align 4
  %17 = call i32 @_ZNK8OpenMesh11ArrayKernel16to_vertex_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.043.0.copyload)
  store i32 %17, ptr %8, align 4
  %18 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandleeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 268, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_) #6
  unreachable

20:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %.sroa.041.0.copyload = load i32, ptr %7, align 4
  %21 = call i32 @_ZN8OpenMesh11ArrayKernel8new_edgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1, i32 %.sroa.041.0.copyload)
  %22 = call i32 @_ZNK8OpenMesh11ArrayKernel24opposite_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %21)
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_12VertexHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %1, i32 %21)
  %.sroa.030.0.copyload = load i32, ptr %7, align 4
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_12VertexHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.030.0.copyload, i32 %22)
  %.sroa.026.0.copyload = load i32, ptr %5, align 4
  %23 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.026.0.copyload)
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %21, i32 %23)
  %.sroa.025.0.copyload = load i32, ptr %5, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.025.0.copyload, i32 %21)
  %.sroa.021.0.copyload = load i32, ptr %6, align 4
  %24 = call i32 @_ZNK8OpenMesh11ArrayKernel20next_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.021.0.copyload)
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %22, i32 %24)
  %.sroa.020.0.copyload = load i32, ptr %6, align 4
  call void @_ZN8OpenMesh11ArrayKernel24set_next_halfedge_handleENS_14HalfedgeHandleES1_(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.020.0.copyload, i32 %22)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN8OpenMesh16PolyConnectivity8vih_iterENS_12VertexHandleE(ptr dead_on_unwind nonnull writable sret(%"class.OpenMesh::Iterators::GenericCirculatorT_DEPRECATED.35") align 8 %9, ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  %25 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E24toOppositeHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  br i1 %25, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %20
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  %.sroa.013.0.copyload = load i32, ptr %5, align 4
  %26 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.013.0.copyload)
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %21, i32 %26)
  %.sroa.010.0.copyload = load i32, ptr %6, align 4
  %27 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %.sroa.010.0.copyload)
  call void @_ZN8OpenMesh11ArrayKernel15set_face_handleENS_14HalfedgeHandleENS_10FaceHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %22, i32 %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %28 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %21)
  store i32 %28, ptr %10, align 4
  %29 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br i1 %29, label %33, label %35

.lr.ph:                                           ; preds = %20, %.lr.ph
  %30 = call i32 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E24toOppositeHalfedgeHandleEvEEEdeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @_ZN8OpenMesh11ArrayKernel17set_vertex_handleENS_14HalfedgeHandleENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %30, i32 %1)
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E24toOppositeHalfedgeHandleEvEEEppEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %32 = call noundef zeroext i1 @_ZNK8OpenMesh9Iterators29GenericCirculatorT_DEPRECATEDINS_16PolyConnectivityENS_12VertexHandleENS_14HalfedgeHandleEXadL_ZNKS0_22GenericCirculatorBaseTIS2_E24toOppositeHalfedgeHandleEvEEE8is_validEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !5

33:                                               ; preds = %._crit_edge
  %34 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %21)
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %34, i32 %21)
  br label %35

35:                                               ; preds = %33, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %36 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %22)
  store i32 %36, ptr %11, align 4
  %37 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = call i32 @_ZNK8OpenMesh11ArrayKernel11face_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %22)
  call void @_ZN8OpenMesh11ArrayKernel19set_halfedge_handleENS_10FaceHandleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %39, i32 %22)
  br label %40

40:                                               ; preds = %38, %35
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1)
  %.sroa.0.0.copyload = load i32, ptr %7, align 4
  call void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %.sroa.0.0.copyload)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  ret i32 %21
}

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

declare void @_ZN8OpenMesh16PolyConnectivity24adjust_outgoing_halfedgeENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(416), i32) local_unnamed_addr #5

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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