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

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_ = external hidden unnamed_addr constant [128 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 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 nounwind uwtable
declare dso_local void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i32 %2, i32 %3, i32 %4) #3 align 2 {
  %6 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %7 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %8 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %9 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %10 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %13 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %14 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %15 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %16 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %17 = alloca %"struct.OpenMesh::VertexHandle", 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::VertexHandle", align 4
  %22 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %23 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %24 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %25 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %26 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %27 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %28 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %29 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %30 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %31 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %32 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %33 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %34 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %35 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %7, i32 0, i32 0
  %36 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %35, i32 0, i32 0
  store i32 %1, ptr %36, align 4
  %37 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %8, i32 0, i32 0
  %38 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %37, i32 0, i32 0
  store i32 %2, ptr %38, align 4
  %39 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %9, i32 0, i32 0
  %40 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %39, i32 0, i32 0
  store i32 %3, ptr %40, align 4
  %41 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %10, i32 0, i32 0
  %42 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %41, i32 0, i32 0
  store i32 %4, ptr %42, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  %43 = load ptr, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef -1)
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef -1)
  %44 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  br i1 %44, label %45, label %66

45:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %8, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %9, i64 4, i1 false)
  %46 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %16, i32 0, i32 0
  %47 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 4
  %49 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %17, i32 0, i32 0
  %50 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 4
  %52 = call i32 @_ZNK8OpenMesh16PolyConnectivity13find_halfedgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(416) %43, i32 %48, i32 %51)
  %53 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %15, i32 0, i32 0
  %54 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %53, i32 0, i32 0
  store i32 %52, ptr %54, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %15, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %55 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %55, label %56, label %57

56:                                               ; preds = %45
  br label %59

57:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 193, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_) #7
  unreachable

58:                                               ; No predecessors!
  br label %59

59:                                               ; preds = %58, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %12, i64 4, i1 false)
  %60 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %19, i32 0, i32 0
  %61 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 4
  %63 = call i32 @_ZN8OpenMesh15TriConnectivity11insert_loopENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %43, i32 %62)
  %64 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %18, i32 0, i32 0
  %65 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %64, i32 0, i32 0
  store i32 %63, ptr %65, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %18, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %66

66:                                               ; preds = %59, %5
  %67 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %10)
  br i1 %67, label %68, label %89

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %10, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %8, i64 4, i1 false)
  %69 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %21, i32 0, i32 0
  %70 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 4
  %72 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %22, i32 0, i32 0
  %73 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 4
  %75 = call i32 @_ZNK8OpenMesh16PolyConnectivity13find_halfedgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(416) %43, i32 %71, i32 %74)
  %76 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %20, i32 0, i32 0
  %77 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %76, i32 0, i32 0
  store i32 %75, ptr %77, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %20, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  %78 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  br i1 %78, label %79, label %80

79:                                               ; preds = %68
  br label %82

80:                                               ; preds = %68
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 201, ptr noundef @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_) #7
  unreachable

81:                                               ; No predecessors!
  br label %82

82:                                               ; preds = %81, %79
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %14, i64 4, i1 false)
  %83 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %23, 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 @_ZN8OpenMesh15TriConnectivity11insert_loopENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %43, i32 %85)
  %87 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %24, i32 0, i32 0
  %88 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %87, i32 0, i32 0
  store i32 %86, ptr %88, align 4
  br label %89

89:                                               ; preds = %82, %66
  %90 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  br i1 %90, label %104, label %91

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %8, i64 4, i1 false)
  %92 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %27, 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 i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %43, i32 %94)
  %96 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %26, i32 0, i32 0
  %97 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %96, i32 0, i32 0
  store i32 %95, ptr %97, align 4
  %98 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %26, i32 0, i32 0
  %99 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 4
  %101 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %43, i32 %100)
  %102 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %25, i32 0, i32 0
  %103 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %102, i32 0, i32 0
  store i32 %101, ptr %103, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %25, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %104

104:                                              ; preds = %91, %89
  %105 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %10)
  br i1 %105, label %119, label %106

106:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %8, i64 4, i1 false)
  %107 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %30, i32 0, i32 0
  %108 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 4
  %110 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %43, i32 %109)
  %111 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %29, i32 0, i32 0
  %112 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %111, i32 0, i32 0
  store i32 %110, ptr %112, align 4
  %113 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %29, i32 0, i32 0
  %114 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 4
  %116 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %43, i32 %115)
  %117 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %28, i32 0, i32 0
  %118 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %117, i32 0, i32 0
  store i32 %116, ptr %118, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %28, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %119

119:                                              ; preds = %106, %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %7, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %13, i64 4, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %14, i64 4, i1 false)
  %120 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %32, i32 0, i32 0
  %121 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 4
  %123 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %33, i32 0, i32 0
  %124 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  %126 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %34, i32 0, i32 0
  %127 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 4
  %129 = call i32 @_ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_(ptr noundef nonnull align 8 dereferenceable(416) %43, i32 %122, i32 %125, i32 %128)
  %130 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %31, i32 0, i32 0
  %131 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %130, i32 0, i32 0
  store i32 %129, ptr %131, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %31, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %132 = getelementptr inbounds %"struct.OpenMesh::HalfedgeHandle", ptr %6, i32 0, i32 0
  %133 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 4
  ret i32 %134
}

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

declare i32 @_ZNK8OpenMesh16PolyConnectivity13find_halfedgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(416), i32, i32) #4

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

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

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

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

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

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

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

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


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

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_ = external hidden unnamed_addr constant [128 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 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 nounwind uwtable
declare dso_local void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i32 %2, i32 %3, i32 %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %7 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %8 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %9 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %10 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  %11 = alloca %"struct.OpenMesh::HalfedgeHandle", align 4
  store i32 %3, ptr %7, align 4
  store i32 %4, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef -1)
  call void @_ZN8OpenMesh14HalfedgeHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef -1)
  %12 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
  br i1 %12, label %13, label %19

13:                                               ; preds = %5
  %.sroa.017.0.copyload = load i32, ptr %7, align 4
  %14 = call i32 @_ZNK8OpenMesh16PolyConnectivity13find_halfedgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %2, i32 %.sroa.017.0.copyload)
  store i32 %14, ptr %9, align 4
  %15 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 193, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_) #6
  unreachable

17:                                               ; preds = %13
  %.sroa.015.0.copyload = load i32, ptr %9, align 4
  %18 = call i32 @_ZN8OpenMesh15TriConnectivity11insert_loopENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %.sroa.015.0.copyload)
  store i32 %18, ptr %10, align 4
  br label %19

19:                                               ; preds = %17, %5
  %20 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %20, label %21, label %27

21:                                               ; preds = %19
  %.sroa.013.0.copyload = load i32, ptr %8, align 4
  %22 = call i32 @_ZNK8OpenMesh16PolyConnectivity13find_halfedgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %.sroa.013.0.copyload, i32 %2)
  store i32 %22, ptr %11, align 4
  %23 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 201, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8OpenMesh15TriConnectivity12vertex_splitENS_12VertexHandleES1_S1_S1_) #6
  unreachable

25:                                               ; preds = %21
  %.sroa.011.0.copyload = load i32, ptr %11, align 4
  %26 = call i32 @_ZN8OpenMesh15TriConnectivity11insert_loopENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %.sroa.011.0.copyload)
  br label %27

27:                                               ; preds = %25, %19
  %28 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
  br i1 %28, label %32, label %29

29:                                               ; preds = %27
  %30 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %2)
  %31 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %30)
  store i32 %31, ptr %10, align 4
  br label %32

32:                                               ; preds = %29, %27
  %33 = call noundef zeroext i1 @_ZNK8OpenMesh10BaseHandle8is_validEv(ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %33, label %._crit_edge, label %34

._crit_edge:                                      ; preds = %32
  %.sroa.0.0.copyload.pre = load i32, ptr %11, align 4
  br label %37

34:                                               ; preds = %32
  %35 = call i32 @_ZNK8OpenMesh11ArrayKernel15halfedge_handleENS_12VertexHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %2)
  %36 = call i32 @_ZNK8OpenMesh11ArrayKernel20prev_halfedge_handleENS_14HalfedgeHandleE(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 %35)
  store i32 %36, ptr %11, align 4
  br label %37

37:                                               ; preds = %._crit_edge, %34
  %.sroa.0.0.copyload = phi i32 [ %.sroa.0.0.copyload.pre, %._crit_edge ], [ %36, %34 ]
  %.sroa.01.0.copyload = load i32, ptr %10, align 4
  %38 = call i32 @_ZN8OpenMesh15TriConnectivity11insert_edgeENS_12VertexHandleENS_14HalfedgeHandleES2_(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 %1, i32 %.sroa.01.0.copyload, i32 %.sroa.0.0.copyload)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  ret i32 %38
}

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

declare i32 @_ZNK8OpenMesh16PolyConnectivity13find_halfedgeENS_12VertexHandleES1_(ptr noundef nonnull align 8 dereferenceable(416), i32, i32) local_unnamed_addr #3

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { nounwind }
attributes #6 = { noreturn nounwind }

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

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass