; 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::Clipper" = type <{ ptr, %"class.std::vector.33", %"class.std::vector.33", %"class.std::vector.38", i32, [4 x i8], %"class.std::__cxx11::list", ptr, i8, [3 x i8], i32, i32, i8, i8, i8, i8, %"class.ClipperLib::ClipperBase" }>
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<long long, std::allocator<long long>>::_List_impl" }
%"struct.std::__cxx11::_List_base<long long, std::allocator<long long>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"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 @_ZN10ClipperLib7Clipper18SwapPositionsInSELEPNS_5TEdgeES2_(ptr noundef nonnull align 8 dereferenceable(135) %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 15
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = icmp ne ptr %16, null
  br i1 %17, label %24, label %18

18:                                               ; preds = %3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %19, i32 0, i32 16
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = icmp ne ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %18
  br label %198

24:                                               ; preds = %18, %3
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %25, i32 0, i32 15
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = icmp ne ptr %27, null
  br i1 %28, label %35, label %29

29:                                               ; preds = %24
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %30, i32 0, i32 16
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = icmp ne ptr %32, null
  br i1 %33, label %35, label %34

34:                                               ; preds = %29
  br label %198

35:                                               ; preds = %29, %24
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %36, i32 0, i32 15
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = icmp eq ptr %38, %39
  br i1 %40, label %41, label %74

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %42, i32 0, i32 15
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  store ptr %44, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %51

47:                                               ; preds = %41
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %49, i32 0, i32 16
  store ptr %48, ptr %50, align 8, !tbaa !17
  br label %51

51:                                               ; preds = %47, %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %52, i32 0, i32 16
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  store ptr %54, ptr %8, align 8, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %61

57:                                               ; preds = %51
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %59, i32 0, i32 15
  store ptr %58, ptr %60, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %57, %51
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %63, i32 0, i32 16
  store ptr %62, ptr %64, align 8, !tbaa !17
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %66, i32 0, i32 15
  store ptr %65, ptr %67, align 8, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %69, i32 0, i32 16
  store ptr %68, ptr %70, align 8, !tbaa !17
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %72, i32 0, i32 15
  store ptr %71, ptr %73, 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 %181

74:                                               ; preds = %35
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %75, i32 0, i32 15
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = icmp eq ptr %77, %78
  br i1 %79, label %80, label %113

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %81, i32 0, i32 15
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  store ptr %83, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %90

86:                                               ; preds = %80
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %88, i32 0, i32 16
  store ptr %87, ptr %89, align 8, !tbaa !17
  br label %90

90:                                               ; preds = %86, %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %91, i32 0, i32 16
  %93 = load ptr, ptr %92, align 8, !tbaa !17
  store ptr %93, ptr %10, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %100

96:                                               ; preds = %90
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %98, i32 0, i32 15
  store ptr %97, ptr %99, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %96, %90
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %102, i32 0, i32 16
  store ptr %101, ptr %103, align 8, !tbaa !17
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %105, i32 0, i32 15
  store ptr %104, ptr %106, align 8, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %108, i32 0, i32 16
  store ptr %107, ptr %109, align 8, !tbaa !17
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %111, i32 0, i32 15
  store ptr %110, ptr %112, 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 %180

113:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %114, i32 0, i32 15
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  store ptr %116, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %117, i32 0, i32 16
  %119 = load ptr, ptr %118, align 8, !tbaa !17
  store ptr %119, ptr %12, align 8, !tbaa !5
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %120, i32 0, i32 15
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %123, i32 0, i32 15
  store ptr %122, ptr %124, align 8, !tbaa !9
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %125, i32 0, i32 15
  %127 = load ptr, ptr %126, align 8, !tbaa !9
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %135

129:                                              ; preds = %113
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %131, i32 0, i32 15
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %133, i32 0, i32 16
  store ptr %130, ptr %134, align 8, !tbaa !17
  br label %135

135:                                              ; preds = %129, %113
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %136, i32 0, i32 16
  %138 = load ptr, ptr %137, align 8, !tbaa !17
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %139, i32 0, i32 16
  store ptr %138, ptr %140, align 8, !tbaa !17
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %141, i32 0, i32 16
  %143 = load ptr, ptr %142, align 8, !tbaa !17
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %151

145:                                              ; preds = %135
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %147, i32 0, i32 16
  %149 = load ptr, ptr %148, align 8, !tbaa !17
  %150 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %149, i32 0, i32 15
  store ptr %146, ptr %150, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %145, %135
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %153, i32 0, i32 15
  store ptr %152, ptr %154, align 8, !tbaa !9
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %155, i32 0, i32 15
  %157 = load ptr, ptr %156, align 8, !tbaa !9
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %165

159:                                              ; preds = %151
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %161, i32 0, i32 15
  %163 = load ptr, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %163, i32 0, i32 16
  store ptr %160, ptr %164, align 8, !tbaa !17
  br label %165

165:                                              ; preds = %159, %151
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %167, i32 0, i32 16
  store ptr %166, ptr %168, align 8, !tbaa !17
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %169, i32 0, i32 16
  %171 = load ptr, ptr %170, align 8, !tbaa !17
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %179

173:                                              ; preds = %165
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %175, i32 0, i32 16
  %177 = load ptr, ptr %176, align 8, !tbaa !17
  %178 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %177, i32 0, i32 15
  store ptr %174, ptr %178, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %173, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %180

180:                                              ; preds = %179, %100
  br label %181

181:                                              ; preds = %180, %61
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %182, i32 0, i32 16
  %184 = load ptr, ptr %183, align 8, !tbaa !17
  %185 = icmp ne ptr %184, null
  br i1 %185, label %189, label %186

186:                                              ; preds = %181
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %"class.ClipperLib::Clipper", ptr %13, i32 0, i32 7
  store ptr %187, ptr %188, align 8, !tbaa !18
  br label %198

189:                                              ; preds = %181
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %190, i32 0, i32 16
  %192 = load ptr, ptr %191, align 8, !tbaa !17
  %193 = icmp ne ptr %192, null
  br i1 %193, label %197, label %194

194:                                              ; preds = %189
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %"class.ClipperLib::Clipper", ptr %13, i32 0, i32 7
  store ptr %195, ptr %196, align 8, !tbaa !18
  br label %197

197:                                              ; preds = %194, %189
  br label %198

198:                                              ; preds = %197, %186, %34, %23
  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 120}
!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 128}
!18 = !{!19, !6, i64 112}
!19 = !{!"_ZTSN10ClipperLib7ClipperE", !20, i64 8, !20, i64 32, !24, i64 56, !28, i64 80, !29, i64 88, !6, i64 112, !35, i64 120, !36, i64 124, !36, i64 128, !35, i64 132, !35, i64 133, !35, i64 134}
!20 = !{!"_ZTSSt6vectorIPN10ClipperLib4JoinESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIPN10ClipperLib13IntersectNodeESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSN10ClipperLib8ClipTypeE", !7, i64 0}
!29 = !{!"_ZTSNSt7__cxx114listIxSaIxEEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEEE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEE10_List_implE", !32, i64 0}
!32 = !{!"_ZTSNSt8__detail17_List_node_headerE", !33, i64 0, !34, i64 16}
!33 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!34 = !{!"long", !7, i64 0}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTSN10ClipperLib12PolyFillTypeE", !7, i64 0}


; 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 @_ZN10ClipperLib7Clipper18SwapPositionsInSELEPNS_5TEdgeES2_(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(135) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %1, i64 120
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %9

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %1, i64 128
  %8 = load ptr, ptr %7, align 8, !tbaa !16
  %.not76 = icmp eq ptr %8, null
  br i1 %.not76, label %66, label %9

9:                                                ; preds = %6, %3
  %10 = getelementptr inbounds i8, ptr %2, i64 120
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %.not77 = icmp eq ptr %11, null
  br i1 %.not77, label %12, label %.thread

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %2, i64 128
  %14 = load ptr, ptr %13, align 8, !tbaa !16
  %.not78 = icmp eq ptr %14, null
  br i1 %.not78, label %66, label %15

15:                                               ; preds = %12
  %16 = icmp eq ptr %5, %2
  br i1 %16, label %20, label %.thread92

.thread:                                          ; preds = %9
  %17 = icmp eq ptr %5, %2
  br i1 %17, label %18, label %.thread90

18:                                               ; preds = %.thread
  %19 = getelementptr inbounds i8, ptr %11, i64 128
  store ptr %1, ptr %19, align 8, !tbaa !16
  br label %20

20:                                               ; preds = %15, %18
  %21 = getelementptr inbounds i8, ptr %1, i64 128
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %.not86 = icmp eq ptr %22, null
  br i1 %.not86, label %25, label %23

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %22, i64 120
  store ptr %2, ptr %24, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %23, %20
  %26 = getelementptr inbounds i8, ptr %2, i64 128
  store ptr %22, ptr %26, align 8, !tbaa !16
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %21, align 8, !tbaa !16
  store ptr %11, ptr %4, align 8, !tbaa !5
  br label %59

.thread90:                                        ; preds = %.thread
  %27 = icmp eq ptr %11, %1
  br i1 %27, label %28, label %41

28:                                               ; preds = %.thread90
  br i1 %.not, label %31, label %29

29:                                               ; preds = %28
  %30 = getelementptr inbounds i8, ptr %5, i64 128
  store ptr %2, ptr %30, align 8, !tbaa !16
  br label %31

31:                                               ; preds = %29, %28
  %32 = getelementptr inbounds i8, ptr %2, i64 128
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %.not84 = icmp eq ptr %33, null
  br i1 %.not84, label %36, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %33, i64 120
  store ptr %1, ptr %35, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %34, %31
  %37 = getelementptr inbounds i8, ptr %1, i64 128
  store ptr %33, ptr %37, align 8, !tbaa !16
  store ptr %2, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %32, align 8, !tbaa !16
  store ptr %5, ptr %10, align 8, !tbaa !5
  br label %59

.thread92:                                        ; preds = %15
  %38 = getelementptr inbounds i8, ptr %1, i64 128
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  store ptr null, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %2, i64 128
  store ptr %14, ptr %38, align 8, !tbaa !16
  br label %46

41:                                               ; preds = %.thread90
  %42 = getelementptr inbounds i8, ptr %1, i64 128
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  store ptr %11, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %11, i64 128
  store ptr %1, ptr %44, align 8, !tbaa !16
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 128
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %2, i64 128
  store ptr %.pre, ptr %42, align 8, !tbaa !16
  %.not80 = icmp eq ptr %.pre, null
  br i1 %.not80, label %51, label %46

46:                                               ; preds = %.thread92, %41
  %47 = phi ptr [ %40, %.thread92 ], [ %45, %41 ]
  %48 = phi ptr [ %39, %.thread92 ], [ %43, %41 ]
  %49 = phi ptr [ %14, %.thread92 ], [ %.pre, %41 ]
  %50 = getelementptr inbounds i8, ptr %49, i64 120
  store ptr %1, ptr %50, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %46, %41
  %52 = phi ptr [ %47, %46 ], [ %45, %41 ]
  %53 = phi ptr [ %48, %46 ], [ %43, %41 ]
  store ptr %5, ptr %10, align 8, !tbaa !5
  br i1 %.not, label %56, label %54

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %5, i64 128
  store ptr %2, ptr %55, align 8, !tbaa !16
  br label %56

56:                                               ; preds = %54, %51
  store ptr %53, ptr %52, align 8, !tbaa !16
  %.not82 = icmp eq ptr %53, null
  br i1 %.not82, label %59, label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds i8, ptr %53, i64 120
  store ptr %2, ptr %58, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %56, %57, %36, %25
  %60 = getelementptr inbounds i8, ptr %1, i64 128
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %.not87 = icmp eq ptr %61, null
  br i1 %.not87, label %.sink.split, label %62

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %2, i64 128
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  %.not88 = icmp eq ptr %64, null
  br i1 %.not88, label %.sink.split, label %66

.sink.split:                                      ; preds = %62, %59
  %.sink = phi ptr [ %1, %59 ], [ %2, %62 ]
  %65 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %.sink, ptr %65, align 8, !tbaa !17
  br label %66

66:                                               ; preds = %.sink.split, %62, %12, %6
  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 120}
!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 128}
!17 = !{!18, !15, i64 112}
!18 = !{!"_ZTSN10ClipperLib7ClipperE", !19, i64 8, !19, i64 32, !23, i64 56, !27, i64 80, !28, i64 88, !15, i64 112, !34, i64 120, !35, i64 124, !35, i64 128, !34, i64 132, !34, i64 133, !34, i64 134}
!19 = !{!"_ZTSSt6vectorIPN10ClipperLib4JoinESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!23 = !{!"_ZTSSt6vectorIPN10ClipperLib13IntersectNodeESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!27 = !{!"_ZTSN10ClipperLib8ClipTypeE", !9, i64 0}
!28 = !{!"_ZTSNSt7__cxx114listIxSaIxEEE", !29, i64 0}
!29 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEE10_List_implE", !31, i64 0}
!31 = !{!"_ZTSNSt8__detail17_List_node_headerE", !32, i64 0, !33, i64 16}
!32 = !{!"_ZTSNSt8__detail15_List_node_baseE", !15, i64 0, !15, i64 8}
!33 = !{!"long", !9, i64 0}
!34 = !{!"bool", !9, i64 0}
!35 = !{!"_ZTSN10ClipperLib12PolyFillTypeE", !9, i64 0}


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