; LLVM IR from PaddlePaddle/Serving :: core/predictor/tools/ocrtools (clipper)

; 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.ClipperLib::TEdge" = type { %"struct.ClipperLib::IntPoint", %"struct.ClipperLib::IntPoint", %"struct.ClipperLib::IntPoint", double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.ClipperLib::IntPoint" = type { i64, i64 }
%"class.ClipperLib::ClipperBase" = type { ptr, %"class.__gnu_cxx::__normal_iterator", %"class.std::vector.5", i8, %"class.std::vector.10", i8, i8, %"class.std::vector.15", ptr, %"class.std::priority_queue" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.20", [8 x i8] }>
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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
define dso_local void @_ZN10ClipperLib11ClipperBase18SwapPositionsInAELEPNS_5TEdgeES2_(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2) #1 align 2 {
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %14, i32 0, i32 13
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %17, i32 0, i32 14
  %19 = load ptr, ptr %18, align 8, !tbaa !17
  %20 = icmp eq ptr %16, %19
  br i1 %20, label %29, label %21

21:                                               ; preds = %3
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %22, i32 0, i32 13
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %25, i32 0, i32 14
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = icmp eq ptr %24, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %21, %3
  br label %193

30:                                               ; preds = %21
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %31, i32 0, i32 13
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = icmp eq ptr %33, %34
  br i1 %35, label %36, label %69

36:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %37, i32 0, i32 13
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  store ptr %39, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %46

42:                                               ; preds = %36
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %44, i32 0, i32 14
  store ptr %43, ptr %45, align 8, !tbaa !17
  br label %46

46:                                               ; preds = %42, %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %47, i32 0, i32 14
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  store ptr %49, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %56

52:                                               ; preds = %46
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %54, i32 0, i32 13
  store ptr %53, ptr %55, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %52, %46
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %58, i32 0, i32 14
  store ptr %57, ptr %59, align 8, !tbaa !17
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %61, i32 0, i32 13
  store ptr %60, ptr %62, align 8, !tbaa !9
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %64, i32 0, i32 14
  store ptr %63, ptr %65, align 8, !tbaa !17
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %67, i32 0, i32 13
  store ptr %66, ptr %68, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  br label %176

69:                                               ; preds = %30
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %70, i32 0, i32 13
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = icmp eq ptr %72, %73
  br i1 %74, label %75, label %108

75:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %76, i32 0, i32 13
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  store ptr %78, ptr %9, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %85

81:                                               ; preds = %75
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %83, i32 0, i32 14
  store ptr %82, ptr %84, align 8, !tbaa !17
  br label %85

85:                                               ; preds = %81, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %86, i32 0, i32 14
  %88 = load ptr, ptr %87, align 8, !tbaa !17
  store ptr %88, ptr %10, align 8, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %95

91:                                               ; preds = %85
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %93, i32 0, i32 13
  store ptr %92, ptr %94, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %91, %85
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %97, i32 0, i32 14
  store ptr %96, ptr %98, align 8, !tbaa !17
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %100, i32 0, i32 13
  store ptr %99, ptr %101, align 8, !tbaa !9
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %103, i32 0, i32 14
  store ptr %102, ptr %104, align 8, !tbaa !17
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %106, i32 0, i32 13
  store ptr %105, ptr %107, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  br label %175

108:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %109, i32 0, i32 13
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  store ptr %111, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %112, i32 0, i32 14
  %114 = load ptr, ptr %113, align 8, !tbaa !17
  store ptr %114, ptr %12, align 8, !tbaa !5
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %115, i32 0, i32 13
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %118, i32 0, i32 13
  store ptr %117, ptr %119, align 8, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %120, i32 0, i32 13
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %130

124:                                              ; preds = %108
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %126, i32 0, i32 13
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %128, i32 0, i32 14
  store ptr %125, ptr %129, align 8, !tbaa !17
  br label %130

130:                                              ; preds = %124, %108
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %131, i32 0, i32 14
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %134, i32 0, i32 14
  store ptr %133, ptr %135, align 8, !tbaa !17
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %136, i32 0, i32 14
  %138 = load ptr, ptr %137, align 8, !tbaa !17
  %139 = icmp ne ptr %138, null
  br i1 %139, label %140, label %146

140:                                              ; preds = %130
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %142, i32 0, i32 14
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %144, i32 0, i32 13
  store ptr %141, ptr %145, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %140, %130
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %148, i32 0, i32 13
  store ptr %147, ptr %149, align 8, !tbaa !9
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %150, i32 0, i32 13
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %160

154:                                              ; preds = %146
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %156, i32 0, i32 13
  %158 = load ptr, ptr %157, align 8, !tbaa !9
  %159 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %158, i32 0, i32 14
  store ptr %155, ptr %159, align 8, !tbaa !17
  br label %160

160:                                              ; preds = %154, %146
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %162, i32 0, i32 14
  store ptr %161, ptr %163, align 8, !tbaa !17
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %164, i32 0, i32 14
  %166 = load ptr, ptr %165, align 8, !tbaa !17
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %174

168:                                              ; preds = %160
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %170, i32 0, i32 14
  %172 = load ptr, ptr %171, align 8, !tbaa !17
  %173 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %172, i32 0, i32 13
  store ptr %169, ptr %173, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %168, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %175

175:                                              ; preds = %174, %95
  br label %176

176:                                              ; preds = %175, %56
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %177, i32 0, i32 14
  %179 = load ptr, ptr %178, align 8, !tbaa !17
  %180 = icmp ne ptr %179, null
  br i1 %180, label %184, label %181

181:                                              ; preds = %176
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %13, i32 0, i32 8
  store ptr %182, ptr %183, align 8, !tbaa !18
  br label %193

184:                                              ; preds = %176
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %185, i32 0, i32 14
  %187 = load ptr, ptr %186, align 8, !tbaa !17
  %188 = icmp ne ptr %187, null
  br i1 %188, label %192, label %189

189:                                              ; preds = %184
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %13, i32 0, i32 8
  store ptr %190, ptr %191, align 8, !tbaa !18
  br label %192

192:                                              ; preds = %189, %184
  br label %193

193:                                              ; preds = %192, %181, %29
  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 104}
!10 = !{!"_ZTSN10ClipperLib5TEdgeE", !11, i64 0, !11, i64 16, !11, i64 32, !13, i64 48, !14, i64 56, !15, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!11 = !{!"_ZTSN10ClipperLib8IntPointE", !12, i64 0, !12, i64 8}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN10ClipperLib8PolyTypeE", !7, i64 0}
!15 = !{!"_ZTSN10ClipperLib8EdgeSideE", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!10, !6, i64 112}
!18 = !{!19, !6, i64 104}
!19 = !{!"_ZTSN10ClipperLib11ClipperBaseE", !20, i64 8, !21, i64 16, !25, i64 40, !26, i64 48, !25, i64 72, !25, i64 73, !30, i64 80, !6, i64 104, !34, i64 112}
!20 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPN10ClipperLib12LocalMinimumESt6vectorIS2_SaIS2_EEEE", !6, i64 0}
!21 = !{!"_ZTSSt6vectorIN10ClipperLib12LocalMinimumESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIPN10ClipperLib5TEdgeESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIPN10ClipperLib6OutRecESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE", !35, i64 0, !39, i64 24}
!35 = !{!"_ZTSSt6vectorIxSaIxEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt4lessIxE"}


; 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 nofree norecurse nosync nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local void @_ZN10ClipperLib11ClipperBase18SwapPositionsInAELEPNS_5TEdgeES2_(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %1, i64 104
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 112
  %7 = load ptr, ptr %6, align 8, !tbaa !16
  %8 = icmp eq ptr %5, %7
  br i1 %8, label %52, label %9

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %2, i64 104
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %2, i64 112
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = icmp eq ptr %11, %13
  br i1 %14, label %52, label %15

15:                                               ; preds = %9
  %16 = icmp eq ptr %5, %2
  br i1 %16, label %17, label %24

17:                                               ; preds = %15
  %.not80 = icmp eq ptr %11, null
  br i1 %.not80, label %20, label %18

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %11, i64 112
  store ptr %1, ptr %19, align 8, !tbaa !16
  %.pre86 = load ptr, ptr %6, align 8, !tbaa !16
  br label %20

20:                                               ; preds = %18, %17
  %21 = phi ptr [ %.pre86, %18 ], [ %7, %17 ]
  %.not81 = icmp eq ptr %21, null
  br i1 %.not81, label %.thread, label %22

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %21, i64 104
  store ptr %2, ptr %23, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %20, %22
  store ptr %21, ptr %12, align 8, !tbaa !16
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !16
  store ptr %11, ptr %4, align 8, !tbaa !5
  %.pre87 = load ptr, ptr %12, align 8, !tbaa !16
  br label %49

24:                                               ; preds = %15
  %25 = icmp eq ptr %11, %1
  br i1 %25, label %26, label %34

26:                                               ; preds = %24
  %.not78 = icmp eq ptr %5, null
  br i1 %.not78, label %29, label %27

27:                                               ; preds = %26
  %28 = getelementptr inbounds i8, ptr %5, i64 112
  store ptr %2, ptr %28, align 8, !tbaa !16
  %.pre85 = load ptr, ptr %12, align 8, !tbaa !16
  br label %29

29:                                               ; preds = %27, %26
  %30 = phi ptr [ %.pre85, %27 ], [ %13, %26 ]
  %.not79 = icmp eq ptr %30, null
  br i1 %.not79, label %33, label %31

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %30, i64 104
  store ptr %1, ptr %32, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %31, %29
  store ptr %30, ptr %6, align 8, !tbaa !16
  store ptr %2, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !16
  store ptr %5, ptr %10, align 8, !tbaa !5
  br label %47

34:                                               ; preds = %24
  store ptr %11, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %37, label %35

35:                                               ; preds = %34
  %36 = getelementptr inbounds i8, ptr %11, i64 112
  store ptr %1, ptr %36, align 8, !tbaa !16
  %.pre = load ptr, ptr %12, align 8, !tbaa !16
  br label %37

37:                                               ; preds = %35, %34
  %38 = phi ptr [ %.pre, %35 ], [ %13, %34 ]
  store ptr %38, ptr %6, align 8, !tbaa !16
  %.not75 = icmp eq ptr %38, null
  br i1 %.not75, label %41, label %39

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %38, i64 104
  store ptr %1, ptr %40, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %39, %37
  store ptr %5, ptr %10, align 8, !tbaa !5
  %.not76 = icmp eq ptr %5, null
  br i1 %.not76, label %44, label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %5, i64 112
  store ptr %2, ptr %43, align 8, !tbaa !16
  br label %44

44:                                               ; preds = %42, %41
  store ptr %7, ptr %12, align 8, !tbaa !16
  %.not77 = icmp eq ptr %7, null
  br i1 %.not77, label %47, label %45

45:                                               ; preds = %44
  %46 = getelementptr inbounds i8, ptr %7, i64 104
  store ptr %2, ptr %46, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %44, %45, %33
  %48 = phi ptr [ null, %44 ], [ %7, %45 ], [ %1, %33 ]
  %.pr = load ptr, ptr %6, align 8, !tbaa !16
  %.not82 = icmp eq ptr %.pr, null
  br i1 %.not82, label %.sink.split, label %49

49:                                               ; preds = %.thread, %47
  %50 = phi ptr [ %.pre87, %.thread ], [ %48, %47 ]
  %.not83 = icmp eq ptr %50, null
  br i1 %.not83, label %.sink.split, label %52

.sink.split:                                      ; preds = %49, %47
  %.sink = phi ptr [ %1, %47 ], [ %2, %49 ]
  %51 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %.sink, ptr %51, align 8, !tbaa !17
  br label %52

52:                                               ; preds = %.sink.split, %49, %3, %9
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) 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, !15, i64 104}
!6 = !{!"_ZTSN10ClipperLib5TEdgeE", !7, i64 0, !7, i64 16, !7, i64 32, !11, i64 48, !12, i64 56, !13, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128}
!7 = !{!"_ZTSN10ClipperLib8IntPointE", !8, i64 0, !8, i64 8}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"_ZTSN10ClipperLib8PolyTypeE", !9, i64 0}
!13 = !{!"_ZTSN10ClipperLib8EdgeSideE", !9, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!6, !15, i64 112}
!17 = !{!18, !15, i64 104}
!18 = !{!"_ZTSN10ClipperLib11ClipperBaseE", !19, i64 8, !20, i64 16, !24, i64 40, !25, i64 48, !24, i64 72, !24, i64 73, !29, i64 80, !15, i64 104, !33, i64 112}
!19 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPN10ClipperLib12LocalMinimumESt6vectorIS2_SaIS2_EEEE", !15, i64 0}
!20 = !{!"_ZTSSt6vectorIN10ClipperLib12LocalMinimumESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!24 = !{!"bool", !9, i64 0}
!25 = !{!"_ZTSSt6vectorIPN10ClipperLib5TEdgeESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!29 = !{!"_ZTSSt6vectorIPN10ClipperLib6OutRecESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!33 = !{!"_ZTSSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE", !34, i64 0, !38, i64 24}
!34 = !{!"_ZTSSt6vectorIxSaIxEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!38 = !{!"_ZTSSt4lessIxE"}


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