; LLVM IR from Yinxiaoli/iros2015_folding :: src/folding_planner_cmake/project/2dregistration_v2/mesh2d.ll (Z16meshValidityTestPK5SMesh)

; 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.__gnu_cxx::__normal_iterator.32" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.33" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.34" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.30" = type { ptr }
%"class.std::set.35" = type { %"class.std::_Rb_tree.36" }
%"class.std::_Rb_tree.36" = type { %"struct.std::_Rb_tree<SVertexPair, SVertexPair, std::_Identity<SVertexPair>, std::less<SVertexPair>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<SVertexPair, SVertexPair, std::_Identity<SVertexPair>, std::less<SVertexPair>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.SVertexPair = type { ptr, ptr }
%"struct.std::pair.40" = type <{ %"struct.std::_Rb_tree_const_iterator.42", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.42" = type { ptr }
%struct.SMesh = type <{ %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::map", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<SVertex *, std::allocator<SVertex *>>::_Vector_impl" }
%"struct.std::_Vector_base<SVertex *, std::allocator<SVertex *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SVertex *, std::allocator<SVertex *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SVertex *, std::allocator<SVertex *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl" }
%"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SFace *, std::allocator<SFace *>>::_Vector_impl" }
%"struct.std::_Vector_base<SFace *, std::allocator<SFace *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SFace *, std::allocator<SFace *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SFace *, std::allocator<SFace *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<SVertexPair, std::pair<const SVertexPair, SHalfEdge *>, std::_Select1st<std::pair<const SVertexPair, SHalfEdge *>>, std::less<SVertexPair>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<SVertexPair, std::pair<const SVertexPair, SHalfEdge *>, std::_Select1st<std::pair<const SVertexPair, SHalfEdge *>>, std::less<SVertexPair>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%struct.SVertex = type { ptr, i8, i32, i8, i8 }
%struct.SHalfEdge = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i8, i8 }
%struct.SFace = type { ptr, i32, i8, i8 }

@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 x i8], align 1

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

; Function Attrs: 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 noundef i64 @_ZNKSt6vectorIP7SVertexSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

declare i32 @printf(ptr noundef, ...) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 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) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z16meshValidityTestPK5SMesh(ptr noundef %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %38 = alloca i32, align 4
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %44 = alloca %"class.std::set.35", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %47 = alloca %struct.SVertexPair, align 8
  %48 = alloca %"struct.std::pair.40", align 8
  %49 = alloca ptr, align 8
  %50 = alloca i32, align 4
  %51 = alloca { ptr, i8 }, align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.SMesh, ptr %54, i32 0, i32 0
  %56 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #9
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %4, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  br label %58

58:                                               ; preds = %82, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.SMesh, ptr %59, i32 0, i32 0
  %61 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #9
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %5, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br i1 %63, label %64, label %85

64:                                               ; preds = %58
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.SVertex, ptr %66, i32 0, i32 3
  %68 = load i8, ptr %67, align 8, !tbaa !9, !range !13, !noundef !14
  %69 = trunc i8 %68 to i1
  br i1 %69, label %71, label %70

70:                                               ; preds = %64
  br label %82

71:                                               ; preds = %64
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.SVertex, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = getelementptr inbounds %struct.SHalfEdge, ptr %75, i32 0, i32 7
  %77 = load i8, ptr %76, align 8, !tbaa !16, !range !13, !noundef !14
  %78 = trunc i8 %77 to i1
  br i1 %78, label %81, label %79

79:                                               ; preds = %71
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %685

81:                                               ; preds = %71
  br label %82

82:                                               ; preds = %81, %70
  %83 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #9
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %7, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  br label %58, !llvm.loop !18

85:                                               ; preds = %58
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.SMesh, ptr %88, i32 0, i32 2
  %90 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #9
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %8, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  br label %92

92:                                               ; preds = %116, %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.SMesh, ptr %93, i32 0, i32 2
  %95 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #9
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %9, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  %97 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP5SFaceSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br i1 %97, label %98, label %119

98:                                               ; preds = %92
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.SFace, ptr %100, i32 0, i32 2
  %102 = load i8, ptr %101, align 4, !tbaa !20, !range !13, !noundef !14
  %103 = trunc i8 %102 to i1
  br i1 %103, label %105, label %104

104:                                              ; preds = %98
  br label %116

105:                                              ; preds = %98
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.SFace, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = getelementptr inbounds %struct.SHalfEdge, ptr %109, i32 0, i32 7
  %111 = load i8, ptr %110, align 8, !tbaa !16, !range !13, !noundef !14
  %112 = trunc i8 %111 to i1
  br i1 %112, label %115, label %113

113:                                              ; preds = %105
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %684

115:                                              ; preds = %105
  br label %116

116:                                              ; preds = %115, %104
  %117 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #9
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %10, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  br label %92, !llvm.loop !23

119:                                              ; preds = %92
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SMesh, ptr %122, i32 0, i32 1
  %124 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %123) #9
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %11, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  br label %126

126:                                              ; preds = %188, %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.SMesh, ptr %127, i32 0, i32 1
  %129 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #9
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %12, i32 0, i32 0
  store ptr %129, ptr %130, align 8
  %131 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br i1 %131, label %132, label %191

132:                                              ; preds = %126
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.SHalfEdge, ptr %134, i32 0, i32 7
  %136 = load i8, ptr %135, align 8, !tbaa !16, !range !13, !noundef !14
  %137 = trunc i8 %136 to i1
  br i1 %137, label %139, label %138

138:                                              ; preds = %132
  br label %188

139:                                              ; preds = %132
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.SHalfEdge, ptr %141, i32 0, i32 1
  %143 = load ptr, ptr %142, align 8, !tbaa !24
  %144 = getelementptr inbounds %struct.SVertex, ptr %143, i32 0, i32 3
  %145 = load i8, ptr %144, align 8, !tbaa !9, !range !13, !noundef !14
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %185

147:                                              ; preds = %139
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.SHalfEdge, ptr %149, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !25
  %152 = getelementptr inbounds %struct.SFace, ptr %151, i32 0, i32 2
  %153 = load i8, ptr %152, align 4, !tbaa !20, !range !13, !noundef !14
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %185

155:                                              ; preds = %147
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.SHalfEdge, ptr %157, i32 0, i32 2
  %159 = load ptr, ptr %158, align 8, !tbaa !26
  %160 = getelementptr inbounds %struct.SHalfEdge, ptr %159, i32 0, i32 7
  %161 = load i8, ptr %160, align 8, !tbaa !16, !range !13, !noundef !14
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %185

163:                                              ; preds = %155
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.SHalfEdge, ptr %165, i32 0, i32 3
  %167 = load ptr, ptr %166, align 8, !tbaa !27
  %168 = getelementptr inbounds %struct.SHalfEdge, ptr %167, i32 0, i32 7
  %169 = load i8, ptr %168, align 8, !tbaa !16, !range !13, !noundef !14
  %170 = trunc i8 %169 to i1
  br i1 %170, label %171, label %185

171:                                              ; preds = %163
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.SHalfEdge, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !28
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %187

177:                                              ; preds = %171
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.SHalfEdge, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !28
  %182 = getelementptr inbounds %struct.SHalfEdge, ptr %181, i32 0, i32 7
  %183 = load i8, ptr %182, align 8, !tbaa !16, !range !13, !noundef !14
  %184 = trunc i8 %183 to i1
  br i1 %184, label %187, label %185

185:                                              ; preds = %177, %163, %155, %147, %139
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %683

187:                                              ; preds = %177, %171
  br label %188

188:                                              ; preds = %187, %138
  %189 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %13, i32 0, i32 0
  store ptr %189, ptr %190, align 8
  br label %126, !llvm.loop !29

191:                                              ; preds = %126
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.SMesh, ptr %194, i32 0, i32 0
  %196 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %195) #9
  %197 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %14, i32 0, i32 0
  store ptr %196, ptr %197, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %198

198:                                              ; preds = %226, %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.SMesh, ptr %199, i32 0, i32 0
  %201 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %200) #9
  %202 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %15, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  %203 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br i1 %203, label %204, label %229

204:                                              ; preds = %198
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.SVertex, ptr %206, i32 0, i32 3
  %208 = load i8, ptr %207, align 8, !tbaa !9, !range !13, !noundef !14
  %209 = trunc i8 %208 to i1
  br i1 %209, label %211, label %210

210:                                              ; preds = %204
  br label %226

211:                                              ; preds = %204
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.SVertex, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !15
  %216 = getelementptr inbounds %struct.SHalfEdge, ptr %215, i32 0, i32 2
  %217 = load ptr, ptr %216, align 8, !tbaa !26
  %218 = getelementptr inbounds %struct.SHalfEdge, ptr %217, i32 0, i32 1
  %219 = load ptr, ptr %218, align 8, !tbaa !24
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = icmp ne ptr %219, %221
  br i1 %222, label %223, label %225

223:                                              ; preds = %211
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %683

225:                                              ; preds = %211
  br label %226

226:                                              ; preds = %225, %210
  %227 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #9
  %228 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %16, i32 0, i32 0
  store ptr %227, ptr %228, align 8
  br label %198, !llvm.loop !31

229:                                              ; preds = %198
  %230 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.SMesh, ptr %232, i32 0, i32 1
  %234 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %233) #9
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %17, i32 0, i32 0
  store ptr %234, ptr %235, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %236

236:                                              ; preds = %269, %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.SMesh, ptr %237, i32 0, i32 1
  %239 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %238) #9
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %18, i32 0, i32 0
  store ptr %239, ptr %240, align 8
  %241 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br i1 %241, label %242, label %272

242:                                              ; preds = %236
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.SHalfEdge, ptr %244, i32 0, i32 7
  %246 = load i8, ptr %245, align 8, !tbaa !16, !range !13, !noundef !14
  %247 = trunc i8 %246 to i1
  br i1 %247, label %249, label %248

248:                                              ; preds = %242
  br label %269

249:                                              ; preds = %242
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %251 = load ptr, ptr %250, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.SHalfEdge, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !28
  %254 = icmp ne ptr %253, null
  br i1 %254, label %256, label %255

255:                                              ; preds = %249
  br label %269

256:                                              ; preds = %249
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.SHalfEdge, ptr %258, i32 0, i32 0
  %260 = load ptr, ptr %259, align 8, !tbaa !28
  %261 = getelementptr inbounds %struct.SHalfEdge, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !28
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = icmp ne ptr %262, %264
  br i1 %265, label %266, label %268

266:                                              ; preds = %256
  %267 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %683

268:                                              ; preds = %256
  br label %269

269:                                              ; preds = %268, %255, %248
  %270 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  %271 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %19, i32 0, i32 0
  store ptr %270, ptr %271, align 8
  br label %236, !llvm.loop !32

272:                                              ; preds = %236
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %274 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %275 = load ptr, ptr %3, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.SMesh, ptr %275, i32 0, i32 1
  %277 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %276) #9
  %278 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %20, i32 0, i32 0
  store ptr %277, ptr %278, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %279

279:                                              ; preds = %316, %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %280 = load ptr, ptr %3, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.SMesh, ptr %280, i32 0, i32 1
  %282 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %281) #9
  %283 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %21, i32 0, i32 0
  store ptr %282, ptr %283, align 8
  %284 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br i1 %284, label %285, label %319

285:                                              ; preds = %279
  %286 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.SHalfEdge, ptr %287, i32 0, i32 7
  %289 = load i8, ptr %288, align 8, !tbaa !16, !range !13, !noundef !14
  %290 = trunc i8 %289 to i1
  br i1 %290, label %292, label %291

291:                                              ; preds = %285
  br label %316

292:                                              ; preds = %285
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.SHalfEdge, ptr %294, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !28
  %297 = icmp ne ptr %296, null
  br i1 %297, label %299, label %298

298:                                              ; preds = %292
  br label %316

299:                                              ; preds = %292
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %301 = load ptr, ptr %300, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.SHalfEdge, ptr %301, i32 0, i32 1
  %303 = load ptr, ptr %302, align 8, !tbaa !24
  %304 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %305 = load ptr, ptr %304, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.SHalfEdge, ptr %305, i32 0, i32 0
  %307 = load ptr, ptr %306, align 8, !tbaa !28
  %308 = getelementptr inbounds %struct.SHalfEdge, ptr %307, i32 0, i32 2
  %309 = load ptr, ptr %308, align 8, !tbaa !26
  %310 = getelementptr inbounds %struct.SHalfEdge, ptr %309, i32 0, i32 1
  %311 = load ptr, ptr %310, align 8, !tbaa !24
  %312 = icmp ne ptr %303, %311
  br i1 %312, label %313, label %315

313:                                              ; preds = %299
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %683

315:                                              ; preds = %299
  br label %316

316:                                              ; preds = %315, %298, %291
  %317 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  %318 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %22, i32 0, i32 0
  store ptr %317, ptr %318, align 8
  br label %279, !llvm.loop !33

319:                                              ; preds = %279
  %320 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %321 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.SMesh, ptr %322, i32 0, i32 1
  %324 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %323) #9
  %325 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %23, i32 0, i32 0
  store ptr %324, ptr %325, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %23, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %326

326:                                              ; preds = %363, %319
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.SMesh, ptr %327, i32 0, i32 1
  %329 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %328) #9
  %330 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %24, i32 0, i32 0
  store ptr %329, ptr %330, align 8
  %331 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br i1 %331, label %332, label %366

332:                                              ; preds = %326
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %334 = load ptr, ptr %333, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.SHalfEdge, ptr %334, i32 0, i32 7
  %336 = load i8, ptr %335, align 8, !tbaa !16, !range !13, !noundef !14
  %337 = trunc i8 %336 to i1
  br i1 %337, label %339, label %338

338:                                              ; preds = %332
  br label %363

339:                                              ; preds = %332
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.SHalfEdge, ptr %341, i32 0, i32 0
  %343 = load ptr, ptr %342, align 8, !tbaa !28
  %344 = icmp ne ptr %343, null
  br i1 %344, label %346, label %345

345:                                              ; preds = %339
  br label %363

346:                                              ; preds = %339
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %348 = load ptr, ptr %347, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.SHalfEdge, ptr %348, i32 0, i32 2
  %350 = load ptr, ptr %349, align 8, !tbaa !26
  %351 = getelementptr inbounds %struct.SHalfEdge, ptr %350, i32 0, i32 1
  %352 = load ptr, ptr %351, align 8, !tbaa !24
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %354 = load ptr, ptr %353, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.SHalfEdge, ptr %354, i32 0, i32 0
  %356 = load ptr, ptr %355, align 8, !tbaa !28
  %357 = getelementptr inbounds %struct.SHalfEdge, ptr %356, i32 0, i32 1
  %358 = load ptr, ptr %357, align 8, !tbaa !24
  %359 = icmp ne ptr %352, %358
  br i1 %359, label %360, label %362

360:                                              ; preds = %346
  %361 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %683

362:                                              ; preds = %346
  br label %363

363:                                              ; preds = %362, %345, %338
  %364 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  %365 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %25, i32 0, i32 0
  store ptr %364, ptr %365, align 8
  br label %326, !llvm.loop !34

366:                                              ; preds = %326
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %368 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.SMesh, ptr %369, i32 0, i32 2
  %371 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %370) #9
  %372 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %26, i32 0, i32 0
  store ptr %371, ptr %372, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %26, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %373

373:                                              ; preds = %405, %366
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %374 = load ptr, ptr %3, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.SMesh, ptr %374, i32 0, i32 2
  %376 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %375) #9
  %377 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %27, i32 0, i32 0
  store ptr %376, ptr %377, align 8
  %378 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP5SFaceSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br i1 %378, label %379, label %408

379:                                              ; preds = %373
  %380 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  %381 = load ptr, ptr %380, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.SFace, ptr %381, i32 0, i32 2
  %383 = load i8, ptr %382, align 4, !tbaa !20, !range !13, !noundef !14
  %384 = trunc i8 %383 to i1
  br i1 %384, label %386, label %385

385:                                              ; preds = %379
  br label %405

386:                                              ; preds = %379
  %387 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  %388 = load ptr, ptr %387, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.SFace, ptr %388, i32 0, i32 0
  %390 = load ptr, ptr %389, align 8, !tbaa !22
  %391 = getelementptr inbounds %struct.SHalfEdge, ptr %390, i32 0, i32 3
  %392 = load ptr, ptr %391, align 8, !tbaa !27
  %393 = getelementptr inbounds %struct.SHalfEdge, ptr %392, i32 0, i32 3
  %394 = load ptr, ptr %393, align 8, !tbaa !27
  %395 = getelementptr inbounds %struct.SHalfEdge, ptr %394, i32 0, i32 3
  %396 = load ptr, ptr %395, align 8, !tbaa !27
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  %398 = load ptr, ptr %397, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.SFace, ptr %398, i32 0, i32 0
  %400 = load ptr, ptr %399, align 8, !tbaa !22
  %401 = icmp ne ptr %396, %400
  br i1 %401, label %402, label %404

402:                                              ; preds = %386
  %403 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %683

404:                                              ; preds = %386
  br label %405

405:                                              ; preds = %404, %385
  %406 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #9
  %407 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.33", ptr %28, i32 0, i32 0
  store ptr %406, ptr %407, align 8
  br label %373, !llvm.loop !35

408:                                              ; preds = %373
  %409 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %410 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %411 = load ptr, ptr %3, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.SMesh, ptr %411, i32 0, i32 1
  %413 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %412) #9
  %414 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %29, i32 0, i32 0
  store ptr %413, ptr %414, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %29, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %415

415:                                              ; preds = %467, %408
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %416 = load ptr, ptr %3, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.SMesh, ptr %416, i32 0, i32 1
  %418 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %417) #9
  %419 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %30, i32 0, i32 0
  store ptr %418, ptr %419, align 8
  %420 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br i1 %420, label %421, label %470

421:                                              ; preds = %415
  %422 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %423 = load ptr, ptr %422, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.SHalfEdge, ptr %423, i32 0, i32 7
  %425 = load i8, ptr %424, align 8, !tbaa !16, !range !13, !noundef !14
  %426 = trunc i8 %425 to i1
  br i1 %426, label %428, label %427

427:                                              ; preds = %421
  br label %467

428:                                              ; preds = %421
  %429 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %430 = load ptr, ptr %429, align 8, !tbaa !5
  %431 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %432 = load ptr, ptr %431, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.SHalfEdge, ptr %432, i32 0, i32 4
  %434 = load ptr, ptr %433, align 8, !tbaa !25
  %435 = getelementptr inbounds %struct.SFace, ptr %434, i32 0, i32 0
  %436 = load ptr, ptr %435, align 8, !tbaa !22
  %437 = icmp ne ptr %430, %436
  br i1 %437, label %438, label %466

438:                                              ; preds = %428
  %439 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %440 = load ptr, ptr %439, align 8, !tbaa !5
  %441 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %442 = load ptr, ptr %441, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.SHalfEdge, ptr %442, i32 0, i32 4
  %444 = load ptr, ptr %443, align 8, !tbaa !25
  %445 = getelementptr inbounds %struct.SFace, ptr %444, i32 0, i32 0
  %446 = load ptr, ptr %445, align 8, !tbaa !22
  %447 = getelementptr inbounds %struct.SHalfEdge, ptr %446, i32 0, i32 3
  %448 = load ptr, ptr %447, align 8, !tbaa !27
  %449 = icmp ne ptr %440, %448
  br i1 %449, label %450, label %466

450:                                              ; preds = %438
  %451 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %452 = load ptr, ptr %451, align 8, !tbaa !5
  %453 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %454 = load ptr, ptr %453, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.SHalfEdge, ptr %454, i32 0, i32 4
  %456 = load ptr, ptr %455, align 8, !tbaa !25
  %457 = getelementptr inbounds %struct.SFace, ptr %456, i32 0, i32 0
  %458 = load ptr, ptr %457, align 8, !tbaa !22
  %459 = getelementptr inbounds %struct.SHalfEdge, ptr %458, i32 0, i32 3
  %460 = load ptr, ptr %459, align 8, !tbaa !27
  %461 = getelementptr inbounds %struct.SHalfEdge, ptr %460, i32 0, i32 3
  %462 = load ptr, ptr %461, align 8, !tbaa !27
  %463 = icmp ne ptr %452, %462
  br i1 %463, label %464, label %466

464:                                              ; preds = %450
  %465 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %683

466:                                              ; preds = %450, %438, %428
  br label %467

467:                                              ; preds = %466, %427
  %468 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  %469 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %31, i32 0, i32 0
  store ptr %468, ptr %469, align 8
  br label %415, !llvm.loop !36

470:                                              ; preds = %415
  %471 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %472 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %473 = load ptr, ptr %3, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.SMesh, ptr %473, i32 0, i32 0
  %475 = call noundef i64 @_ZNKSt6vectorIP7SVertexSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %474) #9
  %476 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %475, i64 24)
  %477 = extractvalue { i64, i1 } %476, 1
  %478 = extractvalue { i64, i1 } %476, 0
  %479 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %478, i64 8)
  %480 = extractvalue { i64, i1 } %479, 1
  %481 = or i1 %477, %480
  %482 = extractvalue { i64, i1 } %479, 0
  %483 = select i1 %481, i64 -1, i64 %482
  %484 = call noalias noundef nonnull ptr @_Znam(i64 noundef %483) #10
  store i64 %475, ptr %484, align 16
  %485 = getelementptr inbounds i8, ptr %484, i64 8
  %486 = icmp eq i64 %475, 0
  br i1 %486, label %493, label %487

487:                                              ; preds = %470
  %488 = getelementptr inbounds %"class.std::vector.0", ptr %485, i64 %475
  br label %489

489:                                              ; preds = %489, %487
  %490 = phi ptr [ %485, %487 ], [ %491, %489 ]
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %490) #9
  %491 = getelementptr inbounds %"class.std::vector.0", ptr %490, i64 1
  %492 = icmp eq ptr %491, %488
  br i1 %492, label %493, label %489

493:                                              ; preds = %489, %470
  store ptr %485, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %494 = load ptr, ptr %3, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.SMesh, ptr %494, i32 0, i32 1
  %496 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %495) #9
  %497 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %33, i32 0, i32 0
  store ptr %496, ptr %497, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %33, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %498

498:                                              ; preds = %534, %493
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %499 = load ptr, ptr %3, align 8, !tbaa !5
  %500 = getelementptr inbounds %struct.SMesh, ptr %499, i32 0, i32 1
  %501 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %500) #9
  %502 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %34, i32 0, i32 0
  store ptr %501, ptr %502, align 8
  %503 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br i1 %503, label %504, label %537

504:                                              ; preds = %498
  %505 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %506 = load ptr, ptr %505, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.SHalfEdge, ptr %506, i32 0, i32 7
  %508 = load i8, ptr %507, align 8, !tbaa !16, !range !13, !noundef !14
  %509 = trunc i8 %508 to i1
  br i1 %509, label %511, label %510

510:                                              ; preds = %504
  br label %534

511:                                              ; preds = %504
  %512 = load ptr, ptr %32, align 8, !tbaa !5
  %513 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %514 = load ptr, ptr %513, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.SHalfEdge, ptr %514, i32 0, i32 2
  %516 = load ptr, ptr %515, align 8, !tbaa !26
  %517 = getelementptr inbounds %struct.SHalfEdge, ptr %516, i32 0, i32 1
  %518 = load ptr, ptr %517, align 8, !tbaa !24
  %519 = getelementptr inbounds %struct.SVertex, ptr %518, i32 0, i32 2
  %520 = load i32, ptr %519, align 4, !tbaa !37
  %521 = sext i32 %520 to i64
  %522 = getelementptr inbounds %"class.std::vector.0", ptr %512, i64 %521
  %523 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %522, ptr noundef nonnull align 8 dereferenceable(8) %523)
  %524 = load ptr, ptr %32, align 8, !tbaa !5
  %525 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %526 = load ptr, ptr %525, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.SHalfEdge, ptr %526, i32 0, i32 1
  %528 = load ptr, ptr %527, align 8, !tbaa !24
  %529 = getelementptr inbounds %struct.SVertex, ptr %528, i32 0, i32 2
  %530 = load i32, ptr %529, align 4, !tbaa !37
  %531 = sext i32 %530 to i64
  %532 = getelementptr inbounds %"class.std::vector.0", ptr %524, i64 %531
  %533 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %532, ptr noundef nonnull align 8 dereferenceable(8) %533)
  br label %534

534:                                              ; preds = %511, %510
  %535 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  %536 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %35, i32 0, i32 0
  store ptr %535, ptr %536, align 8
  br label %498, !llvm.loop !38

537:                                              ; preds = %498
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %538 = load ptr, ptr %3, align 8, !tbaa !5
  %539 = getelementptr inbounds %struct.SMesh, ptr %538, i32 0, i32 0
  %540 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %539) #9
  %541 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %36, i32 0, i32 0
  store ptr %540, ptr %541, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %36, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %542

542:                                              ; preds = %601, %537
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %543 = load ptr, ptr %3, align 8, !tbaa !5
  %544 = getelementptr inbounds %struct.SMesh, ptr %543, i32 0, i32 0
  %545 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %544) #9
  %546 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %37, i32 0, i32 0
  store ptr %545, ptr %546, align 8
  %547 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br i1 %547, label %548, label %604

548:                                              ; preds = %542
  %549 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %550 = load ptr, ptr %549, align 8, !tbaa !5
  %551 = getelementptr inbounds %struct.SVertex, ptr %550, i32 0, i32 3
  %552 = load i8, ptr %551, align 8, !tbaa !9, !range !13, !noundef !14
  %553 = trunc i8 %552 to i1
  br i1 %553, label %555, label %554

554:                                              ; preds = %548
  br label %601

555:                                              ; preds = %548
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %556 = load ptr, ptr %32, align 8, !tbaa !5
  %557 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %558 = load ptr, ptr %557, align 8, !tbaa !5
  %559 = getelementptr inbounds %struct.SVertex, ptr %558, i32 0, i32 2
  %560 = load i32, ptr %559, align 4, !tbaa !37
  %561 = sext i32 %560 to i64
  %562 = getelementptr inbounds %"class.std::vector.0", ptr %556, i64 %561
  %563 = call ptr @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %562) #9
  %564 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %40, i32 0, i32 0
  store ptr %563, ptr %564, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %565

565:                                              ; preds = %586, %555
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %566 = load ptr, ptr %32, align 8, !tbaa !5
  %567 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %568 = load ptr, ptr %567, align 8, !tbaa !5
  %569 = getelementptr inbounds %struct.SVertex, ptr %568, i32 0, i32 2
  %570 = load i32, ptr %569, align 4, !tbaa !37
  %571 = sext i32 %570 to i64
  %572 = getelementptr inbounds %"class.std::vector.0", ptr %566, i64 %571
  %573 = call ptr @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %572) #9
  %574 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.30", ptr %41, i32 0, i32 0
  store ptr %573, ptr %574, align 8
  %575 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgePS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  br i1 %575, label %576, label %589

576:                                              ; preds = %565
  %577 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #9
  %578 = load ptr, ptr %577, align 8, !tbaa !5
  %579 = getelementptr inbounds %struct.SHalfEdge, ptr %578, i32 0, i32 0
  %580 = load ptr, ptr %579, align 8, !tbaa !28
  %581 = icmp ne ptr %580, null
  br i1 %581, label %585, label %582

582:                                              ; preds = %576
  %583 = load i32, ptr %38, align 4, !tbaa !39
  %584 = add nsw i32 %583, 1
  store i32 %584, ptr %38, align 4, !tbaa !39
  br label %585

585:                                              ; preds = %582, %576
  br label %586

586:                                              ; preds = %585
  %587 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %39, i32 noundef 0) #9
  %588 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %42, i32 0, i32 0
  store ptr %587, ptr %588, align 8
  br label %565, !llvm.loop !40

589:                                              ; preds = %565
  %590 = load i32, ptr %38, align 4, !tbaa !39
  %591 = icmp ne i32 %590, 0
  br i1 %591, label %592, label %597

592:                                              ; preds = %589
  %593 = load i32, ptr %38, align 4, !tbaa !39
  %594 = icmp ne i32 %593, 2
  br i1 %594, label %595, label %597

595:                                              ; preds = %592
  %596 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %598

597:                                              ; preds = %592, %589
  store i32 0, ptr %6, align 4
  br label %598

598:                                              ; preds = %597, %595
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  %599 = load i32, ptr %6, align 4
  switch i32 %599, label %682 [
    i32 0, label %600
  ]

600:                                              ; preds = %598
  br label %601

601:                                              ; preds = %600, %554
  %602 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #9
  %603 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %43, i32 0, i32 0
  store ptr %602, ptr %603, align 8
  br label %542, !llvm.loop !41

604:                                              ; preds = %542
  %605 = load ptr, ptr %32, align 8, !tbaa !5
  %606 = icmp eq ptr %605, null
  br i1 %606, label %619, label %607

607:                                              ; preds = %604
  %608 = getelementptr inbounds i8, ptr %605, i64 -8
  %609 = load i64, ptr %608, align 8
  %610 = getelementptr inbounds %"class.std::vector.0", ptr %605, i64 %609
  %611 = icmp eq ptr %605, %610
  br i1 %611, label %616, label %612

612:                                              ; preds = %612, %607
  %613 = phi ptr [ %610, %607 ], [ %614, %612 ]
  %614 = getelementptr inbounds %"class.std::vector.0", ptr %613, i64 -1
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %614) #9
  %615 = icmp eq ptr %614, %605
  br i1 %615, label %616, label %612

616:                                              ; preds = %612, %607
  %617 = mul i64 24, %609
  %618 = add i64 %617, 8
  call void @_ZdaPvm(ptr noundef %608, i64 noundef %618) #11
  br label %619

619:                                              ; preds = %616, %604
  %620 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %621 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @llvm.lifetime.start.p0(i64 48, ptr %44) #9
  call void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %622 = load ptr, ptr %3, align 8, !tbaa !5
  %623 = getelementptr inbounds %struct.SMesh, ptr %622, i32 0, i32 1
  %624 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %623) #9
  %625 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %45, i32 0, i32 0
  store ptr %624, ptr %625, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %45, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %626

626:                                              ; preds = %670, %619
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %627 = load ptr, ptr %3, align 8, !tbaa !5
  %628 = getelementptr inbounds %struct.SMesh, ptr %627, i32 0, i32 1
  %629 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %628) #9
  %630 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %46, i32 0, i32 0
  store ptr %629, ptr %630, align 8
  %631 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br i1 %631, label %632, label %673

632:                                              ; preds = %626
  %633 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %634 = load ptr, ptr %633, align 8, !tbaa !5
  %635 = getelementptr inbounds %struct.SHalfEdge, ptr %634, i32 0, i32 7
  %636 = load i8, ptr %635, align 8, !tbaa !16, !range !13, !noundef !14
  %637 = trunc i8 %636 to i1
  br i1 %637, label %639, label %638

638:                                              ; preds = %632
  br label %670

639:                                              ; preds = %632
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #9
  %640 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %641 = load ptr, ptr %640, align 8, !tbaa !5
  %642 = getelementptr inbounds %struct.SHalfEdge, ptr %641, i32 0, i32 2
  %643 = load ptr, ptr %642, align 8, !tbaa !26
  %644 = getelementptr inbounds %struct.SHalfEdge, ptr %643, i32 0, i32 1
  %645 = load ptr, ptr %644, align 8, !tbaa !24
  %646 = getelementptr inbounds %struct.SVertexPair, ptr %47, i32 0, i32 0
  store ptr %645, ptr %646, align 8, !tbaa !42
  %647 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %648 = load ptr, ptr %647, align 8, !tbaa !5
  %649 = getelementptr inbounds %struct.SHalfEdge, ptr %648, i32 0, i32 1
  %650 = load ptr, ptr %649, align 8, !tbaa !24
  %651 = getelementptr inbounds %struct.SVertexPair, ptr %47, i32 0, i32 1
  store ptr %650, ptr %651, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #9
  %652 = invoke { ptr, i8 } @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %653 unwind label %662

653:                                              ; preds = %639
  store { ptr, i8 } %652, ptr %51, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %51, i64 9, i1 false)
  %654 = getelementptr inbounds %"struct.std::pair.40", ptr %48, i32 0, i32 1
  %655 = load i8, ptr %654, align 8, !tbaa !45, !range !13, !noundef !14
  %656 = trunc i8 %655 to i1
  %657 = zext i1 %656 to i32
  %658 = icmp eq i32 %657, 0
  br i1 %658, label %659, label %666

659:                                              ; preds = %653
  %660 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %661 unwind label %662

661:                                              ; preds = %659
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %667

662:                                              ; preds = %659, %639
  %663 = landingpad { ptr, i32 }
          cleanup
  %664 = extractvalue { ptr, i32 } %663, 0
  store ptr %664, ptr %49, align 8
  %665 = extractvalue { ptr, i32 } %663, 1
  store i32 %665, ptr %50, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #9
  br label %681

666:                                              ; preds = %653
  store i32 0, ptr %6, align 4
  br label %667

667:                                              ; preds = %666, %661
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #9
  %668 = load i32, ptr %6, align 4
  switch i32 %668, label %680 [
    i32 0, label %669
  ]

669:                                              ; preds = %667
  br label %670

670:                                              ; preds = %669, %638
  %671 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #9
  %672 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.34", ptr %52, i32 0, i32 0
  store ptr %671, ptr %672, align 8
  br label %626, !llvm.loop !48

673:                                              ; preds = %626
  %674 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5)
          to label %675 unwind label %676

675:                                              ; preds = %673
  store i1 true, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %680

676:                                              ; preds = %673
  %677 = landingpad { ptr, i32 }
          cleanup
  %678 = extractvalue { ptr, i32 } %677, 0
  store ptr %678, ptr %49, align 8
  %679 = extractvalue { ptr, i32 } %677, 1
  store i32 %679, ptr %50, align 4
  br label %681

680:                                              ; preds = %675, %667
  call void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %44) #9
  br label %682

681:                                              ; preds = %676, %662
  call void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %44) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %687

682:                                              ; preds = %680, %598
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %683

683:                                              ; preds = %682, %464, %402, %360, %313, %266, %223, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %684

684:                                              ; preds = %683, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %685

685:                                              ; preds = %684, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  %686 = load i1, ptr %2, align 1
  ret i1 %686

687:                                              ; preds = %681
  %688 = load ptr, ptr %49, align 8
  %689 = load i32, ptr %50, align 4
  %690 = insertvalue { ptr, i32 } poison, ptr %688, 0
  %691 = insertvalue { ptr, i32 } %690, i32 %689, 1
  resume { ptr, i32 } %691
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKP5SFaceSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #6

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgePS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

attributes #0 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nobuiltin allocsize(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 #8 = { nobuiltin 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"_ZTS7SVertex", !6, i64 0, !11, i64 8, !12, i64 12, !11, i64 16, !11, i64 17}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!10, !6, i64 0}
!16 = !{!17, !11, i64 48}
!17 = !{!"_ZTS9SHalfEdge", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !11, i64 48, !11, i64 49}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !11, i64 12}
!21 = !{!"_ZTS5SFace", !6, i64 0, !12, i64 8, !11, i64 12, !11, i64 13}
!22 = !{!21, !6, i64 0}
!23 = distinct !{!23, !19}
!24 = !{!17, !6, i64 8}
!25 = !{!17, !6, i64 32}
!26 = !{!17, !6, i64 16}
!27 = !{!17, !6, i64 24}
!28 = !{!17, !6, i64 0}
!29 = distinct !{!29, !19}
!30 = !{i64 0, i64 8, !5}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}
!35 = distinct !{!35, !19}
!36 = distinct !{!36, !19}
!37 = !{!10, !12, i64 12}
!38 = distinct !{!38, !19}
!39 = !{!12, !12, i64 0}
!40 = distinct !{!40, !19}
!41 = distinct !{!41, !19}
!42 = !{!43, !6, i64 0}
!43 = !{!"_ZTS11SVertexPair", !6, i64 0, !6, i64 8}
!44 = !{!43, !6, i64 8}
!45 = !{!46, !11, i64 8}
!46 = !{!"_ZTSSt4pairISt23_Rb_tree_const_iteratorI11SVertexPairEbE", !47, i64 0, !11, i64 8}
!47 = !{!"_ZTSSt23_Rb_tree_const_iteratorI11SVertexPairE", !6, i64 0}
!48 = distinct !{!48, !19}


; 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.__gnu_cxx::__normal_iterator.32" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.33" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.34" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.30" = type { ptr }
%"class.std::set.35" = type { %"class.std::_Rb_tree.36" }
%"class.std::_Rb_tree.36" = type { %"struct.std::_Rb_tree<SVertexPair, SVertexPair, std::_Identity<SVertexPair>, std::less<SVertexPair>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<SVertexPair, SVertexPair, std::_Identity<SVertexPair>, std::less<SVertexPair>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.SVertexPair = type { ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl" }
%"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SHalfEdge *, std::allocator<SHalfEdge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 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 noundef i64 @_ZNKSt6vectorIP7SVertexSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z16meshValidityTestPK5SMesh(ptr noundef %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.33", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.30", align 8
  %19 = alloca %"class.std::set.35", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.34", align 8
  %21 = alloca %struct.SVertexPair, align 8
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %23 = tail call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %23, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %24 = tail call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %24, ptr %3, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1, %40
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = load i8, ptr %28, align 8, !tbaa !9, !range !13, !noundef !14
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %40

31:                                               ; preds = %.lr.ph
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %34, i64 48
  %36 = load i8, ptr %35, align 8, !tbaa !16, !range !13, !noundef !14
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %40, label %38

38:                                               ; preds = %31
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %461

40:                                               ; preds = %31, %.lr.ph
  %41 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %42 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %42, ptr %3, align 8
  %43 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br i1 %43, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %40, %1
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %46 = getelementptr inbounds i8, ptr %0, i64 48
  %47 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  store ptr %47, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %48 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  store ptr %48, ptr %5, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP5SFaceSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br i1 %49, label %.lr.ph88, label %._crit_edge89

.lr.ph88:                                         ; preds = %._crit_edge, %64
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 12
  %53 = load i8, ptr %52, align 4, !tbaa !20, !range !13, !noundef !14
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %55, label %64

55:                                               ; preds = %.lr.ph88
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !22
  %59 = getelementptr inbounds i8, ptr %58, i64 48
  %60 = load i8, ptr %59, align 8, !tbaa !16, !range !13, !noundef !14
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %64, label %62

62:                                               ; preds = %55
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %460

64:                                               ; preds = %55, %.lr.ph88
  %65 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %66 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  store ptr %66, ptr %5, align 8
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP5SFaceSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br i1 %67, label %.lr.ph88, label %._crit_edge89, !llvm.loop !23

._crit_edge89:                                    ; preds = %64, %._crit_edge
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %70 = getelementptr inbounds i8, ptr %0, i64 24
  %71 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %71, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %72 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %72, ptr %7, align 8
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %73, label %.lr.ph91, label %._crit_edge92

.lr.ph91:                                         ; preds = %._crit_edge89, %124
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 48
  %77 = load i8, ptr %76, align 8, !tbaa !16, !range !13, !noundef !14
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %79, label %124

79:                                               ; preds = %.lr.ph91
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %85 = load i8, ptr %84, align 8, !tbaa !9, !range !13, !noundef !14
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %122

87:                                               ; preds = %79
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 32
  %91 = load ptr, ptr %90, align 8, !tbaa !25
  %92 = getelementptr inbounds i8, ptr %91, i64 12
  %93 = load i8, ptr %92, align 4, !tbaa !20, !range !13, !noundef !14
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %95, label %122

95:                                               ; preds = %87
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %99 = load ptr, ptr %98, align 8, !tbaa !26
  %100 = getelementptr inbounds i8, ptr %99, i64 48
  %101 = load i8, ptr %100, align 8, !tbaa !16, !range !13, !noundef !14
  %102 = trunc nuw i8 %101 to i1
  br i1 %102, label %103, label %122

103:                                              ; preds = %95
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 24
  %107 = load ptr, ptr %106, align 8, !tbaa !27
  %108 = getelementptr inbounds i8, ptr %107, i64 48
  %109 = load i8, ptr %108, align 8, !tbaa !16, !range !13, !noundef !14
  %110 = trunc nuw i8 %109 to i1
  br i1 %110, label %111, label %122

111:                                              ; preds = %103
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = load ptr, ptr %113, align 8, !tbaa !28
  %.not81 = icmp eq ptr %114, null
  br i1 %.not81, label %124, label %115

115:                                              ; preds = %111
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load ptr, ptr %117, align 8, !tbaa !28
  %119 = getelementptr inbounds i8, ptr %118, i64 48
  %120 = load i8, ptr %119, align 8, !tbaa !16, !range !13, !noundef !14
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %124, label %122

122:                                              ; preds = %115, %103, %95, %87, %79
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %459

124:                                              ; preds = %111, %115, %.lr.ph91
  %125 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %126 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %126, ptr %7, align 8
  %127 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %127, label %.lr.ph91, label %._crit_edge92, !llvm.loop !29

._crit_edge92:                                    ; preds = %124, %._crit_edge89
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %130 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %130, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %131 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %131, ptr %8, align 8
  %132 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br i1 %132, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %._crit_edge92, %150
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 16
  %136 = load i8, ptr %135, align 8, !tbaa !9, !range !13, !noundef !14
  %137 = trunc nuw i8 %136 to i1
  br i1 %137, label %138, label %150

138:                                              ; preds = %.lr.ph94
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load ptr, ptr %140, align 8, !tbaa !15
  %142 = getelementptr inbounds i8, ptr %141, i64 16
  %143 = load ptr, ptr %142, align 8, !tbaa !26
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %145 = load ptr, ptr %144, align 8, !tbaa !24
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  %.not80 = icmp eq ptr %145, %147
  br i1 %.not80, label %150, label %148

148:                                              ; preds = %138
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %459

150:                                              ; preds = %138, %.lr.ph94
  %151 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %152 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %152, ptr %8, align 8
  %153 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br i1 %153, label %.lr.ph94, label %._crit_edge95, !llvm.loop !30

._crit_edge95:                                    ; preds = %150, %._crit_edge92
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %156 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %156, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %157 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %157, ptr %9, align 8
  %158 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br i1 %158, label %.lr.ph97, label %._crit_edge98

.lr.ph97:                                         ; preds = %._crit_edge95, %177
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 48
  %162 = load i8, ptr %161, align 8, !tbaa !16, !range !13, !noundef !14
  %163 = trunc nuw i8 %162 to i1
  br i1 %163, label %164, label %177

164:                                              ; preds = %.lr.ph97
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = load ptr, ptr %166, align 8, !tbaa !28
  %.not78 = icmp eq ptr %167, null
  br i1 %.not78, label %177, label %168

168:                                              ; preds = %164
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = load ptr, ptr %170, align 8, !tbaa !28
  %172 = load ptr, ptr %171, align 8, !tbaa !28
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %.not79 = icmp eq ptr %172, %174
  br i1 %.not79, label %177, label %175

175:                                              ; preds = %168
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %459

177:                                              ; preds = %168, %164, %.lr.ph97
  %178 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %179 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %179, ptr %9, align 8
  %180 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br i1 %180, label %.lr.ph97, label %._crit_edge98, !llvm.loop !31

._crit_edge98:                                    ; preds = %177, %._crit_edge95
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %183 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %183, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %184 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %184, ptr %10, align 8
  %185 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br i1 %185, label %.lr.ph100, label %._crit_edge101

.lr.ph100:                                        ; preds = %._crit_edge98, %209
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %187, i64 48
  %189 = load i8, ptr %188, align 8, !tbaa !16, !range !13, !noundef !14
  %190 = trunc nuw i8 %189 to i1
  br i1 %190, label %191, label %209

191:                                              ; preds = %.lr.ph100
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load ptr, ptr %193, align 8, !tbaa !28
  %.not76 = icmp eq ptr %194, null
  br i1 %.not76, label %209, label %195

195:                                              ; preds = %191
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 8
  %199 = load ptr, ptr %198, align 8, !tbaa !24
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = load ptr, ptr %201, align 8, !tbaa !28
  %203 = getelementptr inbounds i8, ptr %202, i64 16
  %204 = load ptr, ptr %203, align 8, !tbaa !26
  %205 = getelementptr inbounds i8, ptr %204, i64 8
  %206 = load ptr, ptr %205, align 8, !tbaa !24
  %.not77 = icmp eq ptr %199, %206
  br i1 %.not77, label %209, label %207

207:                                              ; preds = %195
  %208 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %459

209:                                              ; preds = %195, %191, %.lr.ph100
  %210 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %211 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %211, ptr %10, align 8
  %212 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br i1 %212, label %.lr.ph100, label %._crit_edge101, !llvm.loop !32

._crit_edge101:                                   ; preds = %209, %._crit_edge98
  %213 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %214 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %215 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %215, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %216 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %216, ptr %11, align 8
  %217 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br i1 %217, label %.lr.ph103, label %._crit_edge104

.lr.ph103:                                        ; preds = %._crit_edge101, %241
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = getelementptr inbounds i8, ptr %219, i64 48
  %221 = load i8, ptr %220, align 8, !tbaa !16, !range !13, !noundef !14
  %222 = trunc nuw i8 %221 to i1
  br i1 %222, label %223, label %241

223:                                              ; preds = %.lr.ph103
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %225 = load ptr, ptr %224, align 8, !tbaa !5
  %226 = load ptr, ptr %225, align 8, !tbaa !28
  %.not74 = icmp eq ptr %226, null
  br i1 %.not74, label %241, label %227

227:                                              ; preds = %223
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %229, i64 16
  %231 = load ptr, ptr %230, align 8, !tbaa !26
  %232 = getelementptr inbounds i8, ptr %231, i64 8
  %233 = load ptr, ptr %232, align 8, !tbaa !24
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  %236 = load ptr, ptr %235, align 8, !tbaa !28
  %237 = getelementptr inbounds i8, ptr %236, i64 8
  %238 = load ptr, ptr %237, align 8, !tbaa !24
  %.not75 = icmp eq ptr %233, %238
  br i1 %.not75, label %241, label %239

239:                                              ; preds = %227
  %240 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %459

241:                                              ; preds = %227, %223, %.lr.ph103
  %242 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %243 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %243, ptr %11, align 8
  %244 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br i1 %244, label %.lr.ph103, label %._crit_edge104, !llvm.loop !33

._crit_edge104:                                   ; preds = %241, %._crit_edge101
  %245 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %246 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %247 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  store ptr %247, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %248 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  store ptr %248, ptr %12, align 8
  %249 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP5SFaceSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %249, label %.lr.ph106, label %._crit_edge107

.lr.ph106:                                        ; preds = %._crit_edge104, %270
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %251 = load ptr, ptr %250, align 8, !tbaa !5
  %252 = getelementptr inbounds i8, ptr %251, i64 12
  %253 = load i8, ptr %252, align 4, !tbaa !20, !range !13, !noundef !14
  %254 = trunc nuw i8 %253 to i1
  br i1 %254, label %255, label %270

255:                                              ; preds = %.lr.ph106
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = load ptr, ptr %257, align 8, !tbaa !22
  %259 = getelementptr inbounds i8, ptr %258, i64 24
  %260 = load ptr, ptr %259, align 8, !tbaa !27
  %261 = getelementptr inbounds i8, ptr %260, i64 24
  %262 = load ptr, ptr %261, align 8, !tbaa !27
  %263 = getelementptr inbounds i8, ptr %262, i64 24
  %264 = load ptr, ptr %263, align 8, !tbaa !27
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %266 = load ptr, ptr %265, align 8, !tbaa !5
  %267 = load ptr, ptr %266, align 8, !tbaa !22
  %.not73 = icmp eq ptr %264, %267
  br i1 %.not73, label %270, label %268

268:                                              ; preds = %255
  %269 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %459

270:                                              ; preds = %255, %.lr.ph106
  %271 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP5SFaceSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %272 = call ptr @_ZNKSt6vectorIP5SFaceSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  store ptr %272, ptr %12, align 8
  %273 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP5SFaceSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %273, label %.lr.ph106, label %._crit_edge107, !llvm.loop !34

._crit_edge107:                                   ; preds = %270, %._crit_edge104
  %274 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %275 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %276 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %276, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %277 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %277, ptr %13, align 8
  %278 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br i1 %278, label %.lr.ph109, label %._crit_edge110

.lr.ph109:                                        ; preds = %._crit_edge107, %316
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %280 = load ptr, ptr %279, align 8, !tbaa !5
  %281 = getelementptr inbounds i8, ptr %280, i64 48
  %282 = load i8, ptr %281, align 8, !tbaa !16, !range !13, !noundef !14
  %283 = trunc nuw i8 %282 to i1
  br i1 %283, label %284, label %316

284:                                              ; preds = %.lr.ph109
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %286 = load ptr, ptr %285, align 8, !tbaa !5
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = getelementptr inbounds i8, ptr %288, i64 32
  %290 = load ptr, ptr %289, align 8, !tbaa !25
  %291 = load ptr, ptr %290, align 8, !tbaa !22
  %.not70 = icmp eq ptr %286, %291
  br i1 %.not70, label %316, label %292

292:                                              ; preds = %284
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %296 = load ptr, ptr %295, align 8, !tbaa !5
  %297 = getelementptr inbounds i8, ptr %296, i64 32
  %298 = load ptr, ptr %297, align 8, !tbaa !25
  %299 = load ptr, ptr %298, align 8, !tbaa !22
  %300 = getelementptr inbounds i8, ptr %299, i64 24
  %301 = load ptr, ptr %300, align 8, !tbaa !27
  %.not71 = icmp eq ptr %294, %301
  br i1 %.not71, label %316, label %302

302:                                              ; preds = %292
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %304 = load ptr, ptr %303, align 8, !tbaa !5
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %306 = load ptr, ptr %305, align 8, !tbaa !5
  %307 = getelementptr inbounds i8, ptr %306, i64 32
  %308 = load ptr, ptr %307, align 8, !tbaa !25
  %309 = load ptr, ptr %308, align 8, !tbaa !22
  %310 = getelementptr inbounds i8, ptr %309, i64 24
  %311 = load ptr, ptr %310, align 8, !tbaa !27
  %312 = getelementptr inbounds i8, ptr %311, i64 24
  %313 = load ptr, ptr %312, align 8, !tbaa !27
  %.not72 = icmp eq ptr %304, %313
  br i1 %.not72, label %316, label %314

314:                                              ; preds = %302
  %315 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %459

316:                                              ; preds = %284, %292, %302, %.lr.ph109
  %317 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %318 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %318, ptr %13, align 8
  %319 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br i1 %319, label %.lr.ph109, label %._crit_edge110, !llvm.loop !35

._crit_edge110:                                   ; preds = %316, %._crit_edge107
  %320 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %321 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %322 = call noundef i64 @_ZNKSt6vectorIP7SVertexSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %323 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %322, i64 24)
  %324 = extractvalue { i64, i1 } %323, 1
  %325 = extractvalue { i64, i1 } %323, 0
  %326 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %325, i64 8)
  %327 = extractvalue { i64, i1 } %326, 1
  %328 = or i1 %324, %327
  %329 = extractvalue { i64, i1 } %326, 0
  %330 = select i1 %328, i64 -1, i64 %329
  %331 = call noalias noundef nonnull ptr @_Znam(i64 noundef %330) #9
  store i64 %322, ptr %331, align 16
  %.ptr = getelementptr inbounds i8, ptr %331, i64 8
  %332 = icmp eq i64 %322, 0
  br i1 %332, label %.loopexit84, label %333

333:                                              ; preds = %._crit_edge110
  %334 = getelementptr inbounds %"class.std::vector.0", ptr %.ptr, i64 %322
  br label %335

335:                                              ; preds = %335, %333
  %336 = phi ptr [ %.ptr, %333 ], [ %337, %335 ]
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %336) #8
  %337 = getelementptr inbounds i8, ptr %336, i64 24
  %338 = icmp eq ptr %337, %334
  br i1 %338, label %.loopexit84, label %335

.loopexit84:                                      ; preds = %335, %._crit_edge110
  %339 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %339, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %340 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %340, ptr %14, align 8
  %341 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %341, label %.lr.ph112, label %._crit_edge113

.lr.ph112:                                        ; preds = %.loopexit84, %368
  %342 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %343 = load ptr, ptr %342, align 8, !tbaa !5
  %344 = getelementptr inbounds i8, ptr %343, i64 48
  %345 = load i8, ptr %344, align 8, !tbaa !16, !range !13, !noundef !14
  %346 = trunc nuw i8 %345 to i1
  br i1 %346, label %347, label %368

347:                                              ; preds = %.lr.ph112
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = getelementptr inbounds i8, ptr %349, i64 16
  %351 = load ptr, ptr %350, align 8, !tbaa !26
  %352 = getelementptr inbounds i8, ptr %351, i64 8
  %353 = load ptr, ptr %352, align 8, !tbaa !24
  %354 = getelementptr inbounds i8, ptr %353, i64 12
  %355 = load i32, ptr %354, align 4, !tbaa !36
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds %"class.std::vector.0", ptr %.ptr, i64 %356
  %358 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %357, ptr noundef nonnull align 8 dereferenceable(8) %358)
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %360 = load ptr, ptr %359, align 8, !tbaa !5
  %361 = getelementptr inbounds i8, ptr %360, i64 8
  %362 = load ptr, ptr %361, align 8, !tbaa !24
  %363 = getelementptr inbounds i8, ptr %362, i64 12
  %364 = load i32, ptr %363, align 4, !tbaa !36
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds %"class.std::vector.0", ptr %.ptr, i64 %365
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %366, ptr noundef nonnull align 8 dereferenceable(8) %367)
  br label %368

368:                                              ; preds = %.lr.ph112, %347
  %369 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %370 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %370, ptr %14, align 8
  %371 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %371, label %.lr.ph112, label %._crit_edge113, !llvm.loop !37

._crit_edge113:                                   ; preds = %368, %.loopexit84
  %372 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %372, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %373 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %373, ptr %15, align 8
  %374 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br i1 %374, label %.lr.ph119, label %._crit_edge120

.lr.ph119:                                        ; preds = %._crit_edge113, %412
  %375 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %376 = load ptr, ptr %375, align 8, !tbaa !5
  %377 = getelementptr inbounds i8, ptr %376, i64 16
  %378 = load i8, ptr %377, align 8, !tbaa !9, !range !13, !noundef !14
  %379 = trunc nuw i8 %378 to i1
  br i1 %379, label %380, label %412

380:                                              ; preds = %.lr.ph119
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %381 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %382 = load ptr, ptr %381, align 8, !tbaa !5
  %383 = getelementptr inbounds i8, ptr %382, i64 12
  %384 = load i32, ptr %383, align 4, !tbaa !36
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds %"class.std::vector.0", ptr %.ptr, i64 %385
  %387 = call ptr @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %386) #8
  store ptr %387, ptr %17, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %388 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %389 = load ptr, ptr %388, align 8, !tbaa !5
  %390 = getelementptr inbounds i8, ptr %389, i64 12
  %391 = load i32, ptr %390, align 4, !tbaa !36
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds %"class.std::vector.0", ptr %.ptr, i64 %392
  %394 = call ptr @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %393) #8
  store ptr %394, ptr %18, align 8
  %395 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgePS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br i1 %395, label %.lr.ph116, label %.critedge

.lr.ph116:                                        ; preds = %380, %.lr.ph116
  %.064114 = phi i32 [ %spec.select, %.lr.ph116 ], [ 0, %380 ]
  %396 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %397 = load ptr, ptr %396, align 8, !tbaa !5
  %398 = load ptr, ptr %397, align 8, !tbaa !28
  %.not69 = icmp eq ptr %398, null
  %399 = zext i1 %.not69 to i32
  %spec.select = add nuw nsw i32 %.064114, %399
  %400 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %401 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %402 = load ptr, ptr %401, align 8, !tbaa !5
  %403 = getelementptr inbounds i8, ptr %402, i64 12
  %404 = load i32, ptr %403, align 4, !tbaa !36
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds %"class.std::vector.0", ptr %.ptr, i64 %405
  %407 = call ptr @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %406) #8
  store ptr %407, ptr %18, align 8
  %408 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgePS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  br i1 %408, label %.lr.ph116, label %._crit_edge117, !llvm.loop !38

._crit_edge117:                                   ; preds = %.lr.ph116
  %409 = and i32 %spec.select, 2147483645
  %or.cond.not = icmp eq i32 %409, 0
  br i1 %or.cond.not, label %.critedge, label %410

410:                                              ; preds = %._crit_edge117
  %411 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br label %459

.critedge:                                        ; preds = %380, %._crit_edge117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br label %412

412:                                              ; preds = %.critedge, %.lr.ph119
  %413 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7SVertexSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %414 = call ptr @_ZNKSt6vectorIP7SVertexSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %414, ptr %15, align 8
  %415 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7SVertexSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br i1 %415, label %.lr.ph119, label %._crit_edge120, !llvm.loop !39

._crit_edge120:                                   ; preds = %412, %._crit_edge113
  %416 = load i64, ptr %331, align 8
  %.idx = mul i64 %416, 24
  %417 = icmp eq i64 %416, 0
  br i1 %417, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge120
  %418 = getelementptr i8, ptr %331, i64 %.idx
  %.ptr68 = getelementptr i8, ptr %418, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %419 = phi ptr [ %420, %.preheader ], [ %.ptr68, %.preheader.preheader ]
  %420 = getelementptr inbounds i8, ptr %419, i64 -24
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %420) #8
  %421 = icmp eq ptr %420, %.ptr
  br i1 %421, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %._crit_edge120
  %422 = add i64 %.idx, 8
  call void @_ZdaPvm(ptr noundef nonnull %331, i64 noundef %422) #10
  %423 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %424 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %19) #8
  call void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  %425 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %425, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %426 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %426, ptr %20, align 8
  %427 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  br i1 %427, label %.lr.ph122, label %._crit_edge123

.lr.ph122:                                        ; preds = %.loopexit
  %428 = getelementptr inbounds i8, ptr %21, i64 8
  br label %429

429:                                              ; preds = %.lr.ph122, %453
  %430 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %431 = load ptr, ptr %430, align 8, !tbaa !5
  %432 = getelementptr inbounds i8, ptr %431, i64 48
  %433 = load i8, ptr %432, align 8, !tbaa !16, !range !13, !noundef !14
  %434 = trunc nuw i8 %433 to i1
  br i1 %434, label %435, label %453

435:                                              ; preds = %429
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  %436 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %437 = load ptr, ptr %436, align 8, !tbaa !5
  %438 = getelementptr inbounds i8, ptr %437, i64 16
  %439 = load ptr, ptr %438, align 8, !tbaa !26
  %440 = getelementptr inbounds i8, ptr %439, i64 8
  %441 = load ptr, ptr %440, align 8, !tbaa !24
  store ptr %441, ptr %21, align 8, !tbaa !40
  %442 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %443 = load ptr, ptr %442, align 8, !tbaa !5
  %444 = getelementptr inbounds i8, ptr %443, i64 8
  %445 = load ptr, ptr %444, align 8, !tbaa !24
  store ptr %445, ptr %428, align 8, !tbaa !42
  %446 = invoke { ptr, i8 } @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %447 unwind label %451

447:                                              ; preds = %435
  %.fca.1.extract = extractvalue { ptr, i8 } %446, 1
  %448 = and i8 %.fca.1.extract, 1
  %.not = icmp eq i8 %448, 0
  br i1 %.not, label %449, label %.critedge83

449:                                              ; preds = %447
  %450 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  br label %458

451:                                              ; preds = %435
  %452 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %452

.critedge83:                                      ; preds = %447
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  br label %453

453:                                              ; preds = %.critedge83, %429
  %454 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %455 = call ptr @_ZNKSt6vectorIP9SHalfEdgeSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #8
  store ptr %455, ptr %20, align 8
  %456 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  br i1 %456, label %429, label %._crit_edge123, !llvm.loop !43

._crit_edge123:                                   ; preds = %453, %.loopexit
  %457 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %458

458:                                              ; preds = %449, %._crit_edge123
  %.6 = phi i1 [ false, %449 ], [ true, %._crit_edge123 ]
  call void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %19) #8
  br label %459

459:                                              ; preds = %410, %458, %314, %268, %239, %207, %175, %148, %122
  %.8 = phi i1 [ false, %122 ], [ false, %148 ], [ false, %175 ], [ false, %207 ], [ false, %239 ], [ false, %268 ], [ false, %314 ], [ false, %410 ], [ %.6, %458 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %460

460:                                              ; preds = %459, %62
  %.9 = phi i1 [ false, %62 ], [ %.8, %459 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %461

461:                                              ; preds = %460, %38
  %.10 = phi i1 [ false, %38 ], [ %.9, %460 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret i1 %.10
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKP9SHalfEdgeSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setI11SVertexPairSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 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 = { nofree 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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nobuiltin allocsize(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 #7 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"_ZTS7SVertex", !6, i64 0, !11, i64 8, !12, i64 12, !11, i64 16, !11, i64 17}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!10, !6, i64 0}
!16 = !{!17, !11, i64 48}
!17 = !{!"_ZTS9SHalfEdge", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !11, i64 48, !11, i64 49}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !11, i64 12}
!21 = !{!"_ZTS5SFace", !6, i64 0, !12, i64 8, !11, i64 12, !11, i64 13}
!22 = !{!21, !6, i64 0}
!23 = distinct !{!23, !19}
!24 = !{!17, !6, i64 8}
!25 = !{!17, !6, i64 32}
!26 = !{!17, !6, i64 16}
!27 = !{!17, !6, i64 24}
!28 = !{!17, !6, i64 0}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}
!35 = distinct !{!35, !19}
!36 = !{!10, !12, i64 12}
!37 = distinct !{!37, !19}
!38 = distinct !{!38, !19}
!39 = distinct !{!39, !19}
!40 = !{!41, !6, i64 0}
!41 = !{!"_ZTS11SVertexPair", !6, i64 0, !6, i64 8}
!42 = !{!41, !6, i64 8}
!43 = distinct !{!43, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass