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

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

%struct.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.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%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 }

; 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 void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef) #1

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP5SFaceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9edgeSplitP5SMeshP9SHalfEdge(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %14 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #5
  store ptr %14, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.SMesh, ptr %15, i32 0, i32 0
  %17 = call noundef i64 @_ZNKSt6vectorIP7SVertexSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  %18 = trunc i64 %17 to i32
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SVertex, ptr %19, i32 0, i32 2
  store i32 %18, ptr %20, align 4, !tbaa !9
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.SVertex, ptr %21, i32 0, i32 3
  store i8 1, ptr %22, align 8, !tbaa !13
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.SHalfEdge, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.SHalfEdge, ptr %26, i32 0, i32 4
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = getelementptr inbounds %struct.SFace, ptr %28, i32 0, i32 0
  store ptr %25, ptr %29, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %30 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #5
  store ptr %30, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SMesh, ptr %31, i32 0, i32 2
  %33 = call noundef i64 @_ZNKSt6vectorIP5SFaceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #4
  %34 = trunc i64 %33 to i32
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SFace, ptr %35, i32 0, i32 1
  store i32 %34, ptr %36, align 8, !tbaa !19
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.SHalfEdge, ptr %37, i32 0, i32 3
  %39 = load ptr, ptr %38, align 8, !tbaa !20
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.SFace, ptr %40, i32 0, i32 0
  store ptr %39, ptr %41, align 8, !tbaa !17
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.SFace, ptr %42, i32 0, i32 2
  store i8 1, ptr %43, align 4, !tbaa !21
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SHalfEdge, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  %48 = getelementptr inbounds %struct.SHalfEdge, ptr %47, i32 0, i32 4
  store ptr %44, ptr %48, align 8, !tbaa !16
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.SHalfEdge, ptr %49, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.SHalfEdge, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = getelementptr inbounds %struct.SVertex, ptr %54, i32 0, i32 0
  store ptr %51, ptr %55, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %56 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #5
  store ptr %56, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.SHalfEdge, ptr %57, i32 0, i32 7
  store i8 1, ptr %58, align 8, !tbaa !24
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.SHalfEdge, ptr %59, i32 0, i32 0
  store ptr null, ptr %60, align 8, !tbaa !25
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SHalfEdge, ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SHalfEdge, ptr %64, i32 0, i32 1
  store ptr %63, ptr %65, align 8, !tbaa !22
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.SHalfEdge, ptr %67, i32 0, i32 1
  store ptr %66, ptr %68, align 8, !tbaa !22
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.SVertex, ptr %70, i32 0, i32 0
  store ptr %69, ptr %71, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %72 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #5
  store ptr %72, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %73 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #5
  store ptr %73, ptr %9, align 8, !tbaa !5
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.SHalfEdge, ptr %74, i32 0, i32 7
  store i8 1, ptr %75, align 8, !tbaa !24
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SHalfEdge, ptr %76, i32 0, i32 7
  store i8 1, ptr %77, align 8, !tbaa !24
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.SHalfEdge, ptr %79, i32 0, i32 0
  store ptr %78, ptr %80, align 8, !tbaa !25
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.SHalfEdge, ptr %82, i32 0, i32 0
  store ptr %81, ptr %83, align 8, !tbaa !25
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.SHalfEdge, ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = getelementptr inbounds %struct.SHalfEdge, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SHalfEdge, ptr %89, i32 0, i32 1
  store ptr %88, ptr %90, align 8, !tbaa !22
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.SHalfEdge, ptr %92, i32 0, i32 1
  store ptr %91, ptr %93, align 8, !tbaa !22
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.SHalfEdge, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !16
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.SHalfEdge, ptr %97, i32 0, i32 4
  store ptr %96, ptr %98, align 8, !tbaa !16
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.SHalfEdge, ptr %100, i32 0, i32 4
  store ptr %99, ptr %101, align 8, !tbaa !16
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.SHalfEdge, ptr %103, i32 0, i32 2
  store ptr %102, ptr %104, align 8, !tbaa !14
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.SHalfEdge, ptr %105, i32 0, i32 2
  %107 = load ptr, ptr %106, align 8, !tbaa !14
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.SHalfEdge, ptr %108, i32 0, i32 3
  store ptr %107, ptr %109, align 8, !tbaa !20
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.SHalfEdge, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !20
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.SHalfEdge, ptr %113, i32 0, i32 2
  store ptr %112, ptr %114, align 8, !tbaa !14
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.SHalfEdge, ptr %116, i32 0, i32 3
  store ptr %115, ptr %117, align 8, !tbaa !20
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.SHalfEdge, ptr %119, i32 0, i32 3
  %121 = load ptr, ptr %120, align 8, !tbaa !20
  %122 = getelementptr inbounds %struct.SHalfEdge, ptr %121, i32 0, i32 3
  store ptr %118, ptr %122, align 8, !tbaa !20
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.SHalfEdge, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !14
  %127 = getelementptr inbounds %struct.SHalfEdge, ptr %126, i32 0, i32 2
  store ptr %123, ptr %127, align 8, !tbaa !14
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.SHalfEdge, ptr %129, i32 0, i32 2
  store ptr %128, ptr %130, align 8, !tbaa !14
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SHalfEdge, ptr %131, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !20
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.SHalfEdge, ptr %134, i32 0, i32 3
  store ptr %133, ptr %135, align 8, !tbaa !20
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.SHalfEdge, ptr %137, i32 0, i32 4
  store ptr %136, ptr %138, align 8, !tbaa !16
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.SHalfEdge, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !20
  %142 = getelementptr inbounds %struct.SHalfEdge, ptr %141, i32 0, i32 1
  %143 = load ptr, ptr %142, align 8, !tbaa !22
  %144 = getelementptr inbounds %struct.SVertex, ptr %143, i32 0, i32 1
  store i8 1, ptr %144, align 8, !tbaa !26
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.SHalfEdge, ptr %145, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !20
  %148 = getelementptr inbounds %struct.SHalfEdge, ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8, !tbaa !22
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %149)
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.SHalfEdge, ptr %151, i32 0, i32 3
  %153 = load ptr, ptr %152, align 8, !tbaa !20
  %154 = getelementptr inbounds %struct.SHalfEdge, ptr %153, i32 0, i32 2
  store ptr %150, ptr %154, align 8, !tbaa !14
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.SHalfEdge, ptr %156, i32 0, i32 3
  store ptr %155, ptr %157, align 8, !tbaa !20
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.SMesh, ptr %158, i32 0, i32 0
  call void @_ZNSt6vectorIP7SVertexSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %159, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.SMesh, ptr %160, i32 0, i32 2
  call void @_ZNSt6vectorIP5SFaceSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %161, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.SMesh, ptr %162, i32 0, i32 1
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.SMesh, ptr %164, i32 0, i32 1
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.SMesh, ptr %166, i32 0, i32 1
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %167, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.SHalfEdge, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !25
  %171 = icmp ne ptr %170, null
  br i1 %171, label %172, label %337

172:                                              ; preds = %2
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.SHalfEdge, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  %176 = getelementptr inbounds %struct.SHalfEdge, ptr %175, i32 0, i32 3
  %177 = load ptr, ptr %176, align 8, !tbaa !20
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.SHalfEdge, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !25
  %181 = getelementptr inbounds %struct.SHalfEdge, ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !16
  %183 = getelementptr inbounds %struct.SFace, ptr %182, i32 0, i32 0
  store ptr %177, ptr %183, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %184 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #5
  store ptr %184, ptr %10, align 8, !tbaa !5
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.SMesh, ptr %185, i32 0, i32 2
  %187 = call noundef i64 @_ZNKSt6vectorIP5SFaceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #4
  %188 = trunc i64 %187 to i32
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.SFace, ptr %189, i32 0, i32 1
  store i32 %188, ptr %190, align 8, !tbaa !19
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.SHalfEdge, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !25
  %194 = getelementptr inbounds %struct.SHalfEdge, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !14
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.SFace, ptr %196, i32 0, i32 0
  store ptr %195, ptr %197, align 8, !tbaa !17
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.SFace, ptr %198, i32 0, i32 2
  store i8 1, ptr %199, align 4, !tbaa !21
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.SHalfEdge, ptr %201, i32 0, i32 0
  %203 = load ptr, ptr %202, align 8, !tbaa !25
  %204 = getelementptr inbounds %struct.SHalfEdge, ptr %203, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !14
  %206 = getelementptr inbounds %struct.SHalfEdge, ptr %205, i32 0, i32 4
  store ptr %200, ptr %206, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %207 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #5
  store ptr %207, ptr %11, align 8, !tbaa !5
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.SHalfEdge, ptr %208, i32 0, i32 7
  store i8 1, ptr %209, align 8, !tbaa !24
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.SHalfEdge, ptr %211, i32 0, i32 1
  store ptr %210, ptr %212, align 8, !tbaa !22
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.SHalfEdge, ptr %214, i32 0, i32 0
  store ptr %213, ptr %215, align 8, !tbaa !25
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.SHalfEdge, ptr %217, i32 0, i32 0
  store ptr %216, ptr %218, align 8, !tbaa !25
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.SHalfEdge, ptr %220, i32 0, i32 4
  store ptr %219, ptr %221, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %222 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #5
  store ptr %222, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %223 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #5
  store ptr %223, ptr %13, align 8, !tbaa !5
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.SHalfEdge, ptr %224, i32 0, i32 7
  store i8 1, ptr %225, align 8, !tbaa !24
  %226 = load ptr, ptr %13, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.SHalfEdge, ptr %226, i32 0, i32 7
  store i8 1, ptr %227, align 8, !tbaa !24
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = load ptr, ptr %12, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.SHalfEdge, ptr %229, i32 0, i32 0
  store ptr %228, ptr %230, align 8, !tbaa !25
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.SHalfEdge, ptr %232, i32 0, i32 0
  store ptr %231, ptr %233, align 8, !tbaa !25
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = load ptr, ptr %12, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.SHalfEdge, ptr %235, i32 0, i32 1
  store ptr %234, ptr %236, align 8, !tbaa !22
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.SHalfEdge, ptr %237, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8, !tbaa !25
  %240 = getelementptr inbounds %struct.SHalfEdge, ptr %239, i32 0, i32 3
  %241 = load ptr, ptr %240, align 8, !tbaa !20
  %242 = getelementptr inbounds %struct.SHalfEdge, ptr %241, i32 0, i32 1
  %243 = load ptr, ptr %242, align 8, !tbaa !22
  %244 = load ptr, ptr %13, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.SHalfEdge, ptr %244, i32 0, i32 1
  store ptr %243, ptr %245, align 8, !tbaa !22
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.SHalfEdge, ptr %246, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8, !tbaa !25
  %249 = getelementptr inbounds %struct.SHalfEdge, ptr %248, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !16
  %251 = load ptr, ptr %12, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.SHalfEdge, ptr %251, i32 0, i32 4
  store ptr %250, ptr %252, align 8, !tbaa !16
  %253 = load ptr, ptr %10, align 8, !tbaa !5
  %254 = load ptr, ptr %13, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.SHalfEdge, ptr %254, i32 0, i32 4
  store ptr %253, ptr %255, align 8, !tbaa !16
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.SHalfEdge, ptr %256, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8, !tbaa !25
  %259 = getelementptr inbounds %struct.SHalfEdge, ptr %258, i32 0, i32 3
  %260 = load ptr, ptr %259, align 8, !tbaa !20
  %261 = load ptr, ptr %12, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.SHalfEdge, ptr %261, i32 0, i32 2
  store ptr %260, ptr %262, align 8, !tbaa !14
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.SHalfEdge, ptr %263, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !25
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.SHalfEdge, ptr %266, i32 0, i32 3
  store ptr %265, ptr %267, align 8, !tbaa !20
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = load ptr, ptr %13, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.SHalfEdge, ptr %269, i32 0, i32 2
  store ptr %268, ptr %270, align 8, !tbaa !14
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.SHalfEdge, ptr %271, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8, !tbaa !25
  %274 = getelementptr inbounds %struct.SHalfEdge, ptr %273, i32 0, i32 2
  %275 = load ptr, ptr %274, align 8, !tbaa !14
  %276 = load ptr, ptr %13, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.SHalfEdge, ptr %276, i32 0, i32 3
  store ptr %275, ptr %277, align 8, !tbaa !20
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.SHalfEdge, ptr %278, i32 0, i32 0
  %280 = load ptr, ptr %279, align 8, !tbaa !25
  %281 = getelementptr inbounds %struct.SHalfEdge, ptr %280, i32 0, i32 2
  %282 = load ptr, ptr %281, align 8, !tbaa !14
  %283 = load ptr, ptr %11, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.SHalfEdge, ptr %283, i32 0, i32 2
  store ptr %282, ptr %284, align 8, !tbaa !14
  %285 = load ptr, ptr %13, align 8, !tbaa !5
  %286 = load ptr, ptr %11, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.SHalfEdge, ptr %286, i32 0, i32 3
  store ptr %285, ptr %287, align 8, !tbaa !20
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.SHalfEdge, ptr %289, i32 0, i32 0
  %291 = load ptr, ptr %290, align 8, !tbaa !25
  %292 = getelementptr inbounds %struct.SHalfEdge, ptr %291, i32 0, i32 2
  %293 = load ptr, ptr %292, align 8, !tbaa !14
  %294 = getelementptr inbounds %struct.SHalfEdge, ptr %293, i32 0, i32 2
  store ptr %288, ptr %294, align 8, !tbaa !14
  %295 = load ptr, ptr %12, align 8, !tbaa !5
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.SHalfEdge, ptr %296, i32 0, i32 0
  %298 = load ptr, ptr %297, align 8, !tbaa !25
  %299 = getelementptr inbounds %struct.SHalfEdge, ptr %298, i32 0, i32 3
  %300 = load ptr, ptr %299, align 8, !tbaa !20
  %301 = getelementptr inbounds %struct.SHalfEdge, ptr %300, i32 0, i32 3
  store ptr %295, ptr %301, align 8, !tbaa !20
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.SHalfEdge, ptr %302, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8, !tbaa !25
  %305 = getelementptr inbounds %struct.SHalfEdge, ptr %304, i32 0, i32 3
  %306 = load ptr, ptr %305, align 8, !tbaa !20
  %307 = getelementptr inbounds %struct.SHalfEdge, ptr %306, i32 0, i32 1
  %308 = load ptr, ptr %307, align 8, !tbaa !22
  %309 = getelementptr inbounds %struct.SVertex, ptr %308, i32 0, i32 1
  store i8 1, ptr %309, align 8, !tbaa !26
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.SHalfEdge, ptr %310, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !25
  %313 = getelementptr inbounds %struct.SHalfEdge, ptr %312, i32 0, i32 3
  %314 = load ptr, ptr %313, align 8, !tbaa !20
  %315 = getelementptr inbounds %struct.SHalfEdge, ptr %314, i32 0, i32 1
  %316 = load ptr, ptr %315, align 8, !tbaa !22
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %316)
  %317 = load ptr, ptr %11, align 8, !tbaa !5
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.SHalfEdge, ptr %318, i32 0, i32 0
  %320 = load ptr, ptr %319, align 8, !tbaa !25
  %321 = getelementptr inbounds %struct.SHalfEdge, ptr %320, i32 0, i32 2
  %322 = load ptr, ptr %321, align 8, !tbaa !14
  %323 = getelementptr inbounds %struct.SHalfEdge, ptr %322, i32 0, i32 3
  store ptr %317, ptr %323, align 8, !tbaa !20
  %324 = load ptr, ptr %12, align 8, !tbaa !5
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.SHalfEdge, ptr %325, i32 0, i32 0
  %327 = load ptr, ptr %326, align 8, !tbaa !25
  %328 = getelementptr inbounds %struct.SHalfEdge, ptr %327, i32 0, i32 2
  store ptr %324, ptr %328, align 8, !tbaa !14
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.SMesh, ptr %329, i32 0, i32 2
  call void @_ZNSt6vectorIP5SFaceSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %330, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.SMesh, ptr %331, i32 0, i32 1
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %332, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %333 = load ptr, ptr %3, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.SMesh, ptr %333, i32 0, i32 1
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %334, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %335 = load ptr, ptr %3, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.SMesh, ptr %335, i32 0, i32 1
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %336, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %337

337:                                              ; preds = %172, %2
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.SHalfEdge, ptr %338, i32 0, i32 2
  %340 = load ptr, ptr %339, align 8, !tbaa !14
  %341 = getelementptr inbounds %struct.SHalfEdge, ptr %340, i32 0, i32 1
  %342 = load ptr, ptr %341, align 8, !tbaa !22
  %343 = getelementptr inbounds %struct.SVertex, ptr %342, i32 0, i32 1
  store i8 1, ptr %343, align 8, !tbaa !26
  %344 = load ptr, ptr %4, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.SHalfEdge, ptr %344, i32 0, i32 2
  %346 = load ptr, ptr %345, align 8, !tbaa !14
  %347 = getelementptr inbounds %struct.SHalfEdge, ptr %346, i32 0, i32 1
  %348 = load ptr, ptr %347, align 8, !tbaa !22
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %348)
  %349 = load ptr, ptr %7, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.SHalfEdge, ptr %349, i32 0, i32 1
  %351 = load ptr, ptr %350, align 8, !tbaa !22
  %352 = getelementptr inbounds %struct.SVertex, ptr %351, i32 0, i32 1
  store i8 1, ptr %352, align 8, !tbaa !26
  %353 = load ptr, ptr %7, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.SHalfEdge, ptr %353, i32 0, i32 1
  %355 = load ptr, ptr %354, align 8, !tbaa !22
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %355)
  %356 = load ptr, ptr %5, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.SVertex, ptr %356, i32 0, i32 1
  store i8 1, ptr %357, align 8, !tbaa !26
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %358)
  %359 = load ptr, ptr %5, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.SVertex, ptr %359, i32 0, i32 2
  %361 = load i32, ptr %360, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i32 %361
}

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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { builtin allocsize(0) }

!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, !12, i64 12}
!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 = !{!10, !11, i64 16}
!14 = !{!15, !6, i64 16}
!15 = !{!"_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}
!16 = !{!15, !6, i64 32}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS5SFace", !6, i64 0, !12, i64 8, !11, i64 12, !11, i64 13}
!19 = !{!18, !12, i64 8}
!20 = !{!15, !6, i64 24}
!21 = !{!18, !11, i64 12}
!22 = !{!15, !6, i64 8}
!23 = !{!10, !6, i64 0}
!24 = !{!15, !11, i64 48}
!25 = !{!15, !6, i64 0}
!26 = !{!10, !11, i64 8}


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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef) local_unnamed_addr #1

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP5SFaceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9edgeSplitP5SMeshP9SHalfEdge(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %12 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #5
  store ptr %12, ptr %3, align 8, !tbaa !5
  %13 = tail call noundef i64 @_ZNKSt6vectorIP7SVertexSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %14 = trunc i64 %13 to i32
  %15 = getelementptr inbounds i8, ptr %12, i64 12
  store i32 %14, ptr %15, align 4, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %12, i64 16
  store i8 1, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  store ptr %18, ptr %20, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %21 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #5
  store ptr %21, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %23 = tail call noundef i64 @_ZNKSt6vectorIP5SFaceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  %24 = trunc i64 %23 to i32
  %25 = getelementptr inbounds i8, ptr %21, i64 8
  store i32 %24, ptr %25, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !20
  store ptr %27, ptr %21, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %21, i64 12
  store i8 1, ptr %28, align 4, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %27, i64 32
  store ptr %21, ptr %29, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  store ptr %27, ptr %31, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %32 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #5
  store ptr %32, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 48
  store i8 1, ptr %33, align 8, !tbaa !24
  store ptr null, ptr %32, align 8, !tbaa !25
  %34 = getelementptr inbounds i8, ptr %32, i64 8
  store ptr %31, ptr %34, align 8, !tbaa !22
  store ptr %12, ptr %30, align 8, !tbaa !22
  store ptr %32, ptr %12, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %35 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #5
  store ptr %35, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %36 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #5
  store ptr %36, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %35, i64 48
  store i8 1, ptr %37, align 8, !tbaa !24
  %38 = getelementptr inbounds i8, ptr %36, i64 48
  store i8 1, ptr %38, align 8, !tbaa !24
  store ptr %36, ptr %35, align 8, !tbaa !25
  store ptr %35, ptr %36, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %27, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %35, i64 8
  store ptr %40, ptr %41, align 8, !tbaa !22
  %42 = getelementptr inbounds i8, ptr %36, i64 8
  store ptr %12, ptr %42, align 8, !tbaa !22
  %43 = load ptr, ptr %19, align 8, !tbaa !16
  %44 = getelementptr inbounds i8, ptr %35, i64 32
  store ptr %43, ptr %44, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %36, i64 32
  store ptr %21, ptr %45, align 8, !tbaa !16
  %46 = getelementptr inbounds i8, ptr %35, i64 16
  store ptr %1, ptr %46, align 8, !tbaa !14
  %47 = load ptr, ptr %17, align 8, !tbaa !14
  %48 = getelementptr inbounds i8, ptr %35, i64 24
  store ptr %47, ptr %48, align 8, !tbaa !20
  %49 = getelementptr inbounds i8, ptr %36, i64 16
  store ptr %27, ptr %49, align 8, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %36, i64 24
  store ptr %32, ptr %50, align 8, !tbaa !20
  %51 = getelementptr inbounds i8, ptr %27, i64 24
  store ptr %36, ptr %51, align 8, !tbaa !20
  %52 = getelementptr inbounds i8, ptr %47, i64 16
  store ptr %35, ptr %52, align 8, !tbaa !14
  %53 = getelementptr inbounds i8, ptr %32, i64 16
  store ptr %36, ptr %53, align 8, !tbaa !14
  %54 = load ptr, ptr %26, align 8, !tbaa !20
  %55 = getelementptr inbounds i8, ptr %32, i64 24
  store ptr %54, ptr %55, align 8, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %32, i64 32
  store ptr %21, ptr %56, align 8, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %54, i64 8
  %58 = load ptr, ptr %57, align 8, !tbaa !22
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  store i8 1, ptr %59, align 8, !tbaa !26
  tail call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %58)
  %60 = load ptr, ptr %26, align 8, !tbaa !20
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  store ptr %32, ptr %61, align 8, !tbaa !14
  store ptr %35, ptr %26, align 8, !tbaa !20
  call void @_ZNSt6vectorIP7SVertexSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @_ZNSt6vectorIP5SFaceSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %62 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %63 = load ptr, ptr %1, align 8, !tbaa !25
  %.not = icmp eq ptr %63, null
  br i1 %.not, label %120, label %64

64:                                               ; preds = %2
  %65 = getelementptr inbounds i8, ptr %63, i64 24
  %66 = load ptr, ptr %65, align 8, !tbaa !20
  %67 = getelementptr inbounds i8, ptr %63, i64 32
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  store ptr %66, ptr %68, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %69 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #5
  store ptr %69, ptr %8, align 8, !tbaa !5
  %70 = call noundef i64 @_ZNKSt6vectorIP5SFaceSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  %71 = trunc i64 %70 to i32
  %72 = getelementptr inbounds i8, ptr %69, i64 8
  store i32 %71, ptr %72, align 8, !tbaa !19
  %73 = load ptr, ptr %1, align 8, !tbaa !25
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load ptr, ptr %74, align 8, !tbaa !14
  store ptr %75, ptr %69, align 8, !tbaa !17
  %76 = getelementptr inbounds i8, ptr %69, i64 12
  store i8 1, ptr %76, align 4, !tbaa !21
  %77 = getelementptr inbounds i8, ptr %75, i64 32
  store ptr %69, ptr %77, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %78 = call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #5
  store ptr %78, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 48
  store i8 1, ptr %79, align 8, !tbaa !24
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %78, i64 8
  store ptr %80, ptr %81, align 8, !tbaa !22
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %78, ptr %82, align 8, !tbaa !25
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %83, ptr %78, align 8, !tbaa !25
  %84 = getelementptr inbounds i8, ptr %78, i64 32
  store ptr %69, ptr %84, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %85 = call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #5
  store ptr %85, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %86 = call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #5
  store ptr %86, ptr %11, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %85, i64 48
  store i8 1, ptr %87, align 8, !tbaa !24
  %88 = getelementptr inbounds i8, ptr %86, i64 48
  store i8 1, ptr %88, align 8, !tbaa !24
  store ptr %86, ptr %85, align 8, !tbaa !25
  store ptr %85, ptr %86, align 8, !tbaa !25
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %85, i64 8
  store ptr %89, ptr %90, align 8, !tbaa !22
  %91 = load ptr, ptr %1, align 8, !tbaa !25
  %92 = getelementptr inbounds i8, ptr %91, i64 24
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = getelementptr inbounds i8, ptr %86, i64 8
  store ptr %95, ptr %96, align 8, !tbaa !22
  %97 = getelementptr inbounds i8, ptr %91, i64 32
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = getelementptr inbounds i8, ptr %85, i64 32
  store ptr %98, ptr %99, align 8, !tbaa !16
  %100 = getelementptr inbounds i8, ptr %86, i64 32
  store ptr %69, ptr %100, align 8, !tbaa !16
  %101 = getelementptr inbounds i8, ptr %85, i64 16
  store ptr %93, ptr %101, align 8, !tbaa !14
  %102 = getelementptr inbounds i8, ptr %85, i64 24
  store ptr %91, ptr %102, align 8, !tbaa !20
  %103 = getelementptr inbounds i8, ptr %86, i64 16
  store ptr %78, ptr %103, align 8, !tbaa !14
  %104 = getelementptr inbounds i8, ptr %91, i64 16
  %105 = load ptr, ptr %104, align 8, !tbaa !14
  %106 = getelementptr inbounds i8, ptr %86, i64 24
  store ptr %105, ptr %106, align 8, !tbaa !20
  %107 = getelementptr inbounds i8, ptr %78, i64 16
  store ptr %105, ptr %107, align 8, !tbaa !14
  %108 = getelementptr inbounds i8, ptr %78, i64 24
  store ptr %86, ptr %108, align 8, !tbaa !20
  %109 = getelementptr inbounds i8, ptr %105, i64 16
  store ptr %86, ptr %109, align 8, !tbaa !14
  %110 = load ptr, ptr %92, align 8, !tbaa !20
  %111 = getelementptr inbounds i8, ptr %110, i64 24
  store ptr %85, ptr %111, align 8, !tbaa !20
  %112 = load ptr, ptr %92, align 8, !tbaa !20
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  store i8 1, ptr %115, align 8, !tbaa !26
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %114)
  %116 = load ptr, ptr %1, align 8, !tbaa !25
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %118 = load ptr, ptr %117, align 8, !tbaa !14
  %119 = getelementptr inbounds i8, ptr %118, i64 24
  store ptr %78, ptr %119, align 8, !tbaa !20
  store ptr %85, ptr %117, align 8, !tbaa !14
  call void @_ZNSt6vectorIP5SFaceSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @_ZNSt6vectorIP9SHalfEdgeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %120

120:                                              ; preds = %64, %2
  %121 = load ptr, ptr %17, align 8, !tbaa !14
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  %123 = load ptr, ptr %122, align 8, !tbaa !22
  %124 = getelementptr inbounds i8, ptr %123, i64 8
  store i8 1, ptr %124, align 8, !tbaa !26
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %123)
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  %127 = load ptr, ptr %126, align 8, !tbaa !22
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  store i8 1, ptr %128, align 8, !tbaa !26
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %127)
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 8
  store i8 1, ptr %130, align 8, !tbaa !26
  call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %129)
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 12
  %133 = load i32, ptr %132, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i32 %133
}

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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { builtin allocsize(0) }

!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, !12, i64 12}
!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 = !{!10, !11, i64 16}
!14 = !{!15, !6, i64 16}
!15 = !{!"_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}
!16 = !{!15, !6, i64 32}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS5SFace", !6, i64 0, !12, i64 8, !11, i64 12, !11, i64 13}
!19 = !{!18, !12, i64 8}
!20 = !{!15, !6, i64 24}
!21 = !{!18, !11, i64 12}
!22 = !{!15, !6, i64 8}
!23 = !{!10, !6, i64 0}
!24 = !{!15, !11, i64 48}
!25 = !{!15, !6, i64 0}
!26 = !{!10, !11, i64 8}


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