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

%"class.ClipperLib::PolyTree" = type { %"class.ClipperLib::PolyNode", %"class.std::vector.0" }
%"class.ClipperLib::PolyNode" = type { ptr, %"class.std::vector", %"class.std::vector.0", ptr, i32, i8, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_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<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl_data" = type { ptr, 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 }
%"struct.ClipperLib::OutRec" = type { i32, i8, i8, ptr, ptr, ptr, ptr }
%"struct.ClipperLib::OutPt" = type { i32, %"struct.ClipperLib::IntPoint", ptr, ptr }
%"struct.ClipperLib::IntPoint" = type { i64, i64 }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ClipperLib8PolyTree5ClearEv(ptr noundef nonnull align 8 dereferenceable(104)) #0 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib7Clipper12BuildResult2ERNS_8PolyTreeE(ptr noundef nonnull align 8 dereferenceable(135) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN10ClipperLib8PolyTree5ClearEv(ptr noundef nonnull align 8 dereferenceable(104) %17)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.ClipperLib::PolyTree", ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %16, align 8, !tbaa !9
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %16, i64 %22
  %24 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %23, i32 0, i32 7
  %25 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @_ZNSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !11
  br label %26

26:                                               ; preds = %111, %2
  %27 = load i64, ptr %5, align 8, !tbaa !11
  %28 = load ptr, ptr %16, align 8, !tbaa !9
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr %16, i64 %30
  %32 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %31, i32 0, i32 7
  %33 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  %34 = icmp ult i64 %27, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %26
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %114

36:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %37 = load ptr, ptr %16, align 8, !tbaa !9
  %38 = getelementptr i8, ptr %37, i64 -24
  %39 = load i64, ptr %38, align 8
  %40 = getelementptr inbounds i8, ptr %16, i64 %39
  %41 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %40, i32 0, i32 7
  %42 = load i64, ptr %5, align 8, !tbaa !11
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10ClipperLib6OutRecESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #5
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %45, i32 0, i32 5
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = call noundef i32 @_ZN10ClipperLib10PointCountEPNS_5OutPtE(ptr noundef %47)
  store i32 %48, ptr %8, align 4, !tbaa !17
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %49, i32 0, i32 2
  %51 = load i8, ptr %50, align 1, !tbaa !18, !range !19, !noundef !20
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %56

53:                                               ; preds = %36
  %54 = load i32, ptr %8, align 4, !tbaa !17
  %55 = icmp slt i32 %54, 2
  br i1 %55, label %64, label %56

56:                                               ; preds = %53, %36
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %57, i32 0, i32 2
  %59 = load i8, ptr %58, align 1, !tbaa !18, !range !19, !noundef !20
  %60 = trunc i8 %59 to i1
  br i1 %60, label %65, label %61

61:                                               ; preds = %56
  %62 = load i32, ptr %8, align 4, !tbaa !17
  %63 = icmp slt i32 %62, 3
  br i1 %63, label %64, label %65

64:                                               ; preds = %61, %53
  store i32 4, ptr %6, align 4
  br label %108

65:                                               ; preds = %61, %56
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10ClipperLib7Clipper14FixHoleLinkageERNS_6OutRecE(ptr noundef nonnull align 8 dereferenceable(135) %16, ptr noundef nonnull align 8 dereferenceable(40) %66)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %67 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN10ClipperLib8PolyNodeC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %67)
          to label %68 unwind label %92

68:                                               ; preds = %65
  store ptr %67, ptr %9, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.ClipperLib::PolyTree", ptr %69, i32 0, i32 1
  call void @_ZNSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %72, i32 0, i32 4
  store ptr %71, ptr %73, align 8, !tbaa !21
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.ClipperLib::PolyNode", ptr %74, i32 0, i32 3
  store ptr null, ptr %75, align 8, !tbaa !22
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.ClipperLib::PolyNode", ptr %76, i32 0, i32 4
  store i32 0, ptr %77, align 8, !tbaa !34
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.ClipperLib::PolyNode", ptr %78, i32 0, i32 1
  %80 = load i32, ptr %8, align 4, !tbaa !17
  %81 = sext i32 %80 to i64
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %82, i32 0, i32 5
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds %"struct.ClipperLib::OutPt", ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !35
  store ptr %86, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !17
  br label %87

87:                                               ; preds = %104, %68
  %88 = load i32, ptr %13, align 4, !tbaa !17
  %89 = load i32, ptr %8, align 4, !tbaa !17
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %96, label %91

91:                                               ; preds = %87
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %107

92:                                               ; preds = %65
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %10, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %67, i64 noundef 80) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %196

96:                                               ; preds = %87
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.ClipperLib::PolyNode", ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.ClipperLib::OutPt", ptr %99, i32 0, i32 1
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 8 dereferenceable(16) %100)
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.ClipperLib::OutPt", ptr %101, i32 0, i32 3
  %103 = load ptr, ptr %102, align 8, !tbaa !35
  store ptr %103, ptr %12, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %96
  %105 = load i32, ptr %13, align 4, !tbaa !17
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %13, align 4, !tbaa !17
  br label %87, !llvm.loop !39

107:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  store i32 0, ptr %6, align 4
  br label %108

108:                                              ; preds = %107, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %109 = load i32, ptr %6, align 4
  switch i32 %109, label %201 [
    i32 0, label %110
    i32 4, label %111
  ]

110:                                              ; preds = %108
  br label %111

111:                                              ; preds = %110, %108
  %112 = load i64, ptr %5, align 8, !tbaa !11
  %113 = add i64 %112, 1
  store i64 %113, ptr %5, align 8, !tbaa !11
  br label %26, !llvm.loop !41

114:                                              ; preds = %35
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.ClipperLib::PolyNode", ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %16, align 8, !tbaa !9
  %118 = getelementptr i8, ptr %117, i64 -24
  %119 = load i64, ptr %118, align 8
  %120 = getelementptr inbounds i8, ptr %16, i64 %119
  %121 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %120, i32 0, i32 7
  %122 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #5
  call void @_ZNSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %122)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %192, %114
  %124 = load i64, ptr %14, align 8, !tbaa !11
  %125 = load ptr, ptr %16, align 8, !tbaa !9
  %126 = getelementptr i8, ptr %125, i64 -24
  %127 = load i64, ptr %126, align 8
  %128 = getelementptr inbounds i8, ptr %16, i64 %127
  %129 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %128, i32 0, i32 7
  %130 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %129) #5
  %131 = icmp ult i64 %124, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %123
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %195

133:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %134 = load ptr, ptr %16, align 8, !tbaa !9
  %135 = getelementptr i8, ptr %134, i64 -24
  %136 = load i64, ptr %135, align 8
  %137 = getelementptr inbounds i8, ptr %16, i64 %136
  %138 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %137, i32 0, i32 7
  %139 = load i64, ptr %14, align 8, !tbaa !11
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10ClipperLib6OutRecESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %139) #5
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  store ptr %141, ptr %15, align 8, !tbaa !5
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %142, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !21
  %145 = icmp ne ptr %144, null
  br i1 %145, label %147, label %146

146:                                              ; preds = %133
  store i32 10, ptr %6, align 4
  br label %189

147:                                              ; preds = %133
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %148, i32 0, i32 2
  %150 = load i8, ptr %149, align 1, !tbaa !18, !range !19, !noundef !20
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %161

152:                                              ; preds = %147
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %153, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !21
  %156 = getelementptr inbounds %"class.ClipperLib::PolyNode", ptr %155, i32 0, i32 5
  store i8 1, ptr %156, align 4, !tbaa !42
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !21
  call void @_ZN10ClipperLib8PolyNode8AddChildERS0_(ptr noundef nonnull align 8 dereferenceable(80) %157, ptr noundef nonnull align 8 dereferenceable(80) %160)
  br label %188

161:                                              ; preds = %147
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %162, i32 0, i32 3
  %164 = load ptr, ptr %163, align 8, !tbaa !43
  %165 = icmp ne ptr %164, null
  br i1 %165, label %166, label %182

166:                                              ; preds = %161
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %167, i32 0, i32 3
  %169 = load ptr, ptr %168, align 8, !tbaa !43
  %170 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !21
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %182

173:                                              ; preds = %166
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %174, i32 0, i32 3
  %176 = load ptr, ptr %175, align 8, !tbaa !43
  %177 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %179, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !21
  call void @_ZN10ClipperLib8PolyNode8AddChildERS0_(ptr noundef nonnull align 8 dereferenceable(80) %178, ptr noundef nonnull align 8 dereferenceable(80) %181)
  br label %187

182:                                              ; preds = %166, %161
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.ClipperLib::OutRec", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !21
  call void @_ZN10ClipperLib8PolyNode8AddChildERS0_(ptr noundef nonnull align 8 dereferenceable(80) %183, ptr noundef nonnull align 8 dereferenceable(80) %186)
  br label %187

187:                                              ; preds = %182, %173
  br label %188

188:                                              ; preds = %187, %152
  store i32 0, ptr %6, align 4
  br label %189

189:                                              ; preds = %188, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %190 = load i32, ptr %6, align 4
  switch i32 %190, label %201 [
    i32 0, label %191
    i32 10, label %192
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %189
  %193 = load i64, ptr %14, align 8, !tbaa !11
  %194 = add i64 %193, 1
  store i64 %194, ptr %14, align 8, !tbaa !11
  br label %123, !llvm.loop !44

195:                                              ; preds = %132
  ret void

196:                                              ; preds = %92
  %197 = load ptr, ptr %10, align 8
  %198 = load i32, ptr %11, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200

201:                                              ; preds = %189, %108
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ClipperLib7Clipper14FixHoleLinkageERNS_6OutRecE(ptr noundef nonnull align 8 dereferenceable(135), ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN10ClipperLib10PointCountEPNS_5OutPtE(ptr noundef) #3

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

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

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

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

declare void @_ZN10ClipperLib8PolyNodeC1Ev(ptr)

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"_ZTSN10ClipperLib6OutRecE", !15, i64 0, !16, i64 4, !16, i64 5, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!"int", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!15, !15, i64 0}
!18 = !{!14, !16, i64 5}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!14, !6, i64 16}
!22 = !{!23, !6, i64 56}
!23 = !{!"_ZTSN10ClipperLib8PolyNodeE", !24, i64 8, !28, i64 32, !6, i64 56, !15, i64 64, !16, i64 68, !32, i64 72, !33, i64 76}
!24 = !{!"_ZTSSt6vectorIN10ClipperLib8IntPointESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSN10ClipperLib8JoinTypeE", !7, i64 0}
!33 = !{!"_ZTSN10ClipperLib7EndTypeE", !7, i64 0}
!34 = !{!23, !15, i64 64}
!35 = !{!36, !6, i64 32}
!36 = !{!"_ZTSN10ClipperLib5OutPtE", !15, i64 0, !37, i64 8, !6, i64 24, !6, i64 32}
!37 = !{!"_ZTSN10ClipperLib8IntPointE", !38, i64 0, !38, i64 8}
!38 = !{!"long long", !7, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = !{!23, !16, i64 68}
!43 = !{!14, !6, i64 8}
!44 = distinct !{!44, !40}


; 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 uwtable
declare dso_local void @_ZN10ClipperLib8PolyTree5ClearEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #0 align 2

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib7Clipper12BuildResult2ERNS_8PolyTreeE(ptr noundef nonnull align 8 dereferenceable(135) %0, ptr noundef nonnull align 8 dereferenceable(104) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  tail call void @_ZN10ClipperLib8PolyTree5ClearEv(ptr noundef nonnull align 8 dereferenceable(104) %1)
  %4 = getelementptr inbounds i8, ptr %1, i64 80
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 %7
  %9 = getelementptr inbounds i8, ptr %8, i64 80
  %10 = tail call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  tail call void @_ZNSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %10)
  %invariant.gep = getelementptr inbounds i8, ptr %0, i64 80
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %gep55 = getelementptr i8, ptr %invariant.gep, i64 %13
  %14 = tail call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %gep55) #5
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %._crit_edge59, label %.lr.ph58

._crit_edge59:                                    ; preds = %52, %2
  %15 = getelementptr inbounds i8, ptr %1, i64 32
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 %18
  %20 = getelementptr inbounds i8, ptr %19, i64 80
  %21 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @_ZNSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %21)
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %gep6164 = getelementptr i8, ptr %invariant.gep, i64 %24
  %25 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %gep6164) #5
  %.not69 = icmp eq i64 %25, 0
  br i1 %.not69, label %._crit_edge68, label %.lr.ph67

.lr.ph58:                                         ; preds = %2, %52
  %.056 = phi i64 [ %53, %52 ], [ 0, %2 ]
  %26 = load ptr, ptr %0, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %gep54 = getelementptr i8, ptr %invariant.gep, i64 %28
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10ClipperLib6OutRecESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %gep54, i64 noundef %.056) #5
  %30 = load ptr, ptr %29, align 8, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %30, i64 24
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = call noundef i32 @_ZN10ClipperLib10PointCountEPNS_5OutPtE(ptr noundef %32)
  %34 = getelementptr inbounds i8, ptr %30, i64 5
  %35 = load i8, ptr %34, align 1, !tbaa !15, !range !16, !noundef !17
  %36 = trunc nuw i8 %35 to i1
  %or.cond50.v = select i1 %36, i32 1, i32 2
  %or.cond50 = icmp sgt i32 %33, %or.cond50.v
  br i1 %or.cond50, label %37, label %52

37:                                               ; preds = %.lr.ph58
  call void @_ZN10ClipperLib7Clipper14FixHoleLinkageERNS_6OutRecE(ptr noundef nonnull align 8 dereferenceable(135) %0, ptr noundef nonnull align 8 dereferenceable(40) %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %38 = call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN10ClipperLib8PolyNodeC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %.lr.ph.preheader unwind label %46

.lr.ph.preheader:                                 ; preds = %37
  store ptr %38, ptr %3, align 8, !tbaa !8
  call void @_ZNSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %39 = load ptr, ptr %3, align 8, !tbaa !8
  %40 = getelementptr inbounds i8, ptr %30, i64 16
  store ptr %39, ptr %40, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %39, i64 56
  store ptr null, ptr %41, align 8, !tbaa !19
  %42 = getelementptr inbounds i8, ptr %39, i64 64
  store i32 0, ptr %42, align 8, !tbaa !31
  %43 = getelementptr inbounds i8, ptr %39, i64 8
  %44 = zext nneg i32 %33 to i64
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %44)
  %45 = load ptr, ptr %31, align 8, !tbaa !11
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %52

46:                                               ; preds = %37
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %38, i64 noundef 80) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %47

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.04152 = phi i32 [ %51, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.pn51 = phi ptr [ %.042, %.lr.ph ], [ %45, %.lr.ph.preheader ]
  %.042.in = getelementptr inbounds i8, ptr %.pn51, i64 32
  %.042 = load ptr, ptr %.042.in, align 8, !tbaa !32
  %48 = load ptr, ptr %3, align 8, !tbaa !8
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = getelementptr inbounds i8, ptr %.042, i64 8
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(16) %50)
  %51 = add nuw nsw i32 %.04152, 1
  %exitcond.not = icmp eq i32 %51, %33
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !36

52:                                               ; preds = %.lr.ph58, %._crit_edge
  %53 = add nuw i64 %.056, 1
  %54 = load ptr, ptr %0, align 8, !tbaa !5
  %55 = getelementptr i8, ptr %54, i64 -24
  %56 = load i64, ptr %55, align 8
  %gep = getelementptr i8, ptr %invariant.gep, i64 %56
  %57 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %gep) #5
  %58 = icmp ult i64 %53, %57
  br i1 %58, label %.lr.ph58, label %._crit_edge59, !llvm.loop !38

._crit_edge68:                                    ; preds = %79, %._crit_edge59
  ret void

.lr.ph67:                                         ; preds = %._crit_edge59, %79
  %.04065 = phi i64 [ %80, %79 ], [ 0, %._crit_edge59 ]
  %59 = load ptr, ptr %0, align 8, !tbaa !5
  %60 = getelementptr i8, ptr %59, i64 -24
  %61 = load i64, ptr %60, align 8
  %gep63 = getelementptr i8, ptr %invariant.gep, i64 %61
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN10ClipperLib6OutRecESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %gep63, i64 noundef %.04065) #5
  %63 = load ptr, ptr %62, align 8, !tbaa !8
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  %.not46 = icmp eq ptr %65, null
  br i1 %.not46, label %79, label %66

66:                                               ; preds = %.lr.ph67
  %67 = getelementptr inbounds i8, ptr %63, i64 5
  %68 = load i8, ptr %67, align 1, !tbaa !15, !range !16, !noundef !17
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %70, label %72

70:                                               ; preds = %66
  %71 = getelementptr inbounds i8, ptr %65, i64 68
  store i8 1, ptr %71, align 4, !tbaa !39
  br label %.sink.split

72:                                               ; preds = %66
  %73 = getelementptr inbounds i8, ptr %63, i64 8
  %74 = load ptr, ptr %73, align 8, !tbaa !40
  %.not47 = icmp eq ptr %74, null
  br i1 %.not47, label %78, label %75

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %74, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !18
  %.not48 = icmp eq ptr %77, null
  br i1 %.not48, label %78, label %.sink.split

78:                                               ; preds = %75, %72
  br label %.sink.split

.sink.split:                                      ; preds = %75, %78, %70
  %.sink = phi ptr [ %1, %70 ], [ %1, %78 ], [ %77, %75 ]
  call void @_ZN10ClipperLib8PolyNode8AddChildERS0_(ptr noundef nonnull align 8 dereferenceable(80) %.sink, ptr noundef nonnull align 8 dereferenceable(80) %65)
  br label %79

79:                                               ; preds = %.sink.split, %.lr.ph67
  %80 = add nuw i64 %.04065, 1
  %81 = load ptr, ptr %0, align 8, !tbaa !5
  %82 = getelementptr i8, ptr %81, i64 -24
  %83 = load i64, ptr %82, align 8
  %gep61 = getelementptr i8, ptr %invariant.gep, i64 %83
  %84 = call noundef i64 @_ZNKSt6vectorIPN10ClipperLib6OutRecESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %gep61) #5
  %85 = icmp ult i64 %80, %84
  br i1 %85, label %.lr.ph67, label %._crit_edge68, !llvm.loop !41
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ClipperLib7Clipper14FixHoleLinkageERNS_6OutRecE(ptr noundef nonnull align 8 dereferenceable(135), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN10ClipperLib10PointCountEPNS_5OutPtE(ptr noundef) local_unnamed_addr #3

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

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

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

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

declare void @_ZN10ClipperLib8PolyNodeC1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 24}
!12 = !{!"_ZTSN10ClipperLib6OutRecE", !13, i64 0, !14, i64 4, !14, i64 5, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32}
!13 = !{!"int", !10, i64 0}
!14 = !{!"bool", !10, i64 0}
!15 = !{!12, !14, i64 5}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!12, !9, i64 16}
!19 = !{!20, !9, i64 56}
!20 = !{!"_ZTSN10ClipperLib8PolyNodeE", !21, i64 8, !25, i64 32, !9, i64 56, !13, i64 64, !14, i64 68, !29, i64 72, !30, i64 76}
!21 = !{!"_ZTSSt6vectorIN10ClipperLib8IntPointESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!25 = !{!"_ZTSSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!29 = !{!"_ZTSN10ClipperLib8JoinTypeE", !10, i64 0}
!30 = !{!"_ZTSN10ClipperLib7EndTypeE", !10, i64 0}
!31 = !{!20, !13, i64 64}
!32 = !{!33, !9, i64 32}
!33 = !{!"_ZTSN10ClipperLib5OutPtE", !13, i64 0, !34, i64 8, !9, i64 24, !9, i64 32}
!34 = !{!"_ZTSN10ClipperLib8IntPointE", !35, i64 0, !35, i64 8}
!35 = !{!"long long", !10, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = !{!20, !14, i64 68}
!40 = !{!12, !9, i64 8}
!41 = distinct !{!41, !37}


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