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

; 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.SHalfEdge = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i8, i8 }
%struct.SFace = type { ptr, i32, i8, i8 }
%struct.SVertex = type { ptr, i8, 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
define dso_local void @_Z8edgeFlipP9SHalfEdge(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %18, label %13

13:                                               ; preds = %1
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.SHalfEdge, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %13, %1
  br label %164

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

164:                                              ; preds = %19, %18
  ret void
}

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 = { 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, !6, i64 0}
!10 = !{!"_ZTS9SHalfEdge", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 49}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 16}
!15 = !{!10, !6, i64 8}
!16 = !{!10, !6, i64 32}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS5SFace", !6, i64 0, !11, i64 8, !12, i64 12, !12, i64 13}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTS7SVertex", !6, i64 0, !12, i64 8, !11, i64 12, !12, i64 16, !12, i64 17}
!21 = !{!20, !12, 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 nounwind uwtable
declare dso_local void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z8edgeFlipP9SHalfEdge(ptr noundef %0) local_unnamed_addr #0 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %45, label %3

3:                                                ; preds = %1
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  br i1 %5, label %45, label %6

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %4, i64 24
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %4, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %8, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %12, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %4, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  store ptr %16, ptr %19, align 8, !tbaa !14
  store ptr %18, ptr %21, align 8, !tbaa !14
  store ptr %10, ptr %7, align 8, !tbaa !12
  store ptr %12, ptr %9, align 8, !tbaa !13
  store ptr %14, ptr %11, align 8, !tbaa !12
  store ptr %8, ptr %13, align 8, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  store ptr %0, ptr %24, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %4, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  store ptr %4, ptr %26, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %4, ptr %27, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %14, ptr %28, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %8, i64 32
  store ptr %26, ptr %29, align 8, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %12, ptr %30, align 8, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %0, ptr %31, align 8, !tbaa !13
  %32 = load ptr, ptr %23, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %10, i64 32
  store ptr %32, ptr %33, align 8, !tbaa !15
  %34 = getelementptr inbounds i8, ptr %12, i64 24
  store ptr %0, ptr %34, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %10, ptr %35, align 8, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %12, i64 32
  store ptr %32, ptr %36, align 8, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %14, i64 24
  store ptr %8, ptr %37, align 8, !tbaa !12
  %38 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr %4, ptr %38, align 8, !tbaa !13
  %39 = load ptr, ptr %25, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %14, i64 32
  store ptr %39, ptr %40, align 8, !tbaa !15
  store ptr %8, ptr %20, align 8, !tbaa !18
  store ptr %12, ptr %22, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %16, i64 8
  store i8 1, ptr %41, align 8, !tbaa !20
  tail call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %16)
  %42 = getelementptr inbounds i8, ptr %18, i64 8
  store i8 1, ptr %42, align 8, !tbaa !20
  tail call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef %18)
  %43 = getelementptr inbounds i8, ptr %20, i64 8
  store i8 1, ptr %43, align 8, !tbaa !20
  tail call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef nonnull %20)
  %44 = getelementptr inbounds i8, ptr %22, i64 8
  store i8 1, ptr %44, align 8, !tbaa !20
  tail call void @_Z21resetHalfEdgeofVertexP7SVertex(ptr noundef nonnull %22)
  br label %45

45:                                               ; preds = %1, %3, %6
  ret void
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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, !7, i64 0}
!6 = !{!"_ZTS9SHalfEdge", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !11, i64 48, !11, i64 49}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !7, i64 32}
!16 = !{!17, !7, i64 0}
!17 = !{!"_ZTS5SFace", !7, i64 0, !10, i64 8, !11, i64 12, !11, i64 13}
!18 = !{!19, !7, i64 0}
!19 = !{!"_ZTS7SVertex", !7, i64 0, !11, i64 8, !10, i64 12, !11, i64 16, !11, i64 17}
!20 = !{!19, !11, i64 8}


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