; 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.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"struct.ClipperLib::IntPoint" = type { i64, i64 }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10ClipperLib11OrientationERKSt6vectorINS_8IntPointESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib9MinkowskiERKSt6vectorINS_8IntPointESaIS1_EES5_RS0_IS3_SaIS3_EEbb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::vector.28", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca i64, align 8
  %21 = alloca %"struct.ClipperLib::IntPoint", align 8
  %22 = alloca i64, align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.ClipperLib::IntPoint", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %29 = zext i1 %3 to i8
  store i8 %29, ptr %9, align 1, !tbaa !9
  %30 = zext i1 %4 to i8
  store i8 %30, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %31 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %32 = trunc i8 %31 to i1
  %33 = zext i1 %32 to i64
  %34 = select i1 %32, i32 1, i32 0
  store i32 %34, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #3
  store i64 %36, ptr %12, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #3
  store i64 %38, ptr %13, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #3
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  %39 = load i64, ptr %13, align 8, !tbaa !15
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %39)
          to label %40 unwind label %49

40:                                               ; preds = %5
  %41 = load i8, ptr %9, align 1, !tbaa !9, !range !11, !noundef !12
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %105

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store i64 0, ptr %17, align 8, !tbaa !15
  br label %44

44:                                               ; preds = %100, %43
  %45 = load i64, ptr %17, align 8, !tbaa !15
  %46 = load i64, ptr %13, align 8, !tbaa !15
  %47 = icmp ult i64 %45, %46
  br i1 %47, label %53, label %48

48:                                               ; preds = %44
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %104

49:                                               ; preds = %163, %5
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %15, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %16, align 4
  br label %250

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #3
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %54 = load i64, ptr %12, align 8, !tbaa !15
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %54)
          to label %55 unwind label %62

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store i64 0, ptr %20, align 8, !tbaa !15
  br label %56

56:                                               ; preds = %91, %55
  %57 = load i64, ptr %20, align 8, !tbaa !15
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #3
  %60 = icmp ult i64 %57, %59
  br i1 %60, label %66, label %61

61:                                               ; preds = %56
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %98

62:                                               ; preds = %98, %53
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %15, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %16, align 4
  br label %103

66:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load i64, ptr %17, align 8, !tbaa !15
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68) #3
  %70 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !17
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i64, ptr %20, align 8, !tbaa !15
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %73) #3
  %75 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %74, i32 0, i32 0
  %76 = load i64, ptr %75, align 8, !tbaa !17
  %77 = add nsw i64 %71, %76
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i64, ptr %17, align 8, !tbaa !15
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %79) #3
  %81 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %80, i32 0, i32 1
  %82 = load i64, ptr %81, align 8, !tbaa !20
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load i64, ptr %20, align 8, !tbaa !15
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %84) #3
  %86 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %85, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !20
  %88 = add nsw i64 %82, %87
  invoke void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %21, i64 noundef %77, i64 noundef %88)
          to label %89 unwind label %94

89:                                               ; preds = %66
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %90 unwind label %94

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  br label %91

91:                                               ; preds = %90
  %92 = load i64, ptr %20, align 8, !tbaa !15
  %93 = add i64 %92, 1
  store i64 %93, ptr %20, align 8, !tbaa !15
  br label %56, !llvm.loop !21

94:                                               ; preds = %89, %66
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %15, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %103

98:                                               ; preds = %61
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %99 unwind label %62

99:                                               ; preds = %98
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #3
  br label %100

100:                                              ; preds = %99
  %101 = load i64, ptr %17, align 8, !tbaa !15
  %102 = add i64 %101, 1
  store i64 %102, ptr %17, align 8, !tbaa !15
  br label %44, !llvm.loop !23

103:                                              ; preds = %94, %62
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %250

104:                                              ; preds = %48
  br label %163

105:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store i64 0, ptr %22, align 8, !tbaa !15
  br label %106

106:                                              ; preds = %158, %105
  %107 = load i64, ptr %22, align 8, !tbaa !15
  %108 = load i64, ptr %13, align 8, !tbaa !15
  %109 = icmp ult i64 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  br label %162

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #3
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #3
  %112 = load i64, ptr %12, align 8, !tbaa !15
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %112)
          to label %113 unwind label %120

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  store i64 0, ptr %24, align 8, !tbaa !15
  br label %114

114:                                              ; preds = %149, %113
  %115 = load i64, ptr %24, align 8, !tbaa !15
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #3
  %118 = icmp ult i64 %115, %117
  br i1 %118, label %124, label %119

119:                                              ; preds = %114
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %156

120:                                              ; preds = %156, %111
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %15, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %16, align 4
  br label %161

124:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load i64, ptr %22, align 8, !tbaa !15
  %127 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %126) #3
  %128 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %127, i32 0, i32 0
  %129 = load i64, ptr %128, align 8, !tbaa !17
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load i64, ptr %24, align 8, !tbaa !15
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #3
  %133 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %132, i32 0, i32 0
  %134 = load i64, ptr %133, align 8, !tbaa !17
  %135 = sub nsw i64 %129, %134
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load i64, ptr %22, align 8, !tbaa !15
  %138 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %137) #3
  %139 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %138, i32 0, i32 1
  %140 = load i64, ptr %139, align 8, !tbaa !20
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load i64, ptr %24, align 8, !tbaa !15
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %142) #3
  %144 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !20
  %146 = sub nsw i64 %140, %145
  invoke void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %135, i64 noundef %146)
          to label %147 unwind label %152

147:                                              ; preds = %124
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %148 unwind label %152

148:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  br label %149

149:                                              ; preds = %148
  %150 = load i64, ptr %24, align 8, !tbaa !15
  %151 = add i64 %150, 1
  store i64 %151, ptr %24, align 8, !tbaa !15
  br label %114, !llvm.loop !24

152:                                              ; preds = %147, %124
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %15, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %161

156:                                              ; preds = %119
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %157 unwind label %120

157:                                              ; preds = %156
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #3
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %22, align 8, !tbaa !15
  %160 = add i64 %159, 1
  store i64 %160, ptr %22, align 8, !tbaa !15
  br label %106, !llvm.loop !25

161:                                              ; preds = %152, %120
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  br label %250

162:                                              ; preds = %110
  br label %163

163:                                              ; preds = %162, %104
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #3
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = load i64, ptr %13, align 8, !tbaa !15
  %167 = load i32, ptr %11, align 4, !tbaa !13
  %168 = sext i32 %167 to i64
  %169 = add i64 %166, %168
  %170 = load i64, ptr %12, align 8, !tbaa !15
  %171 = add i64 %170, 1
  %172 = mul i64 %169, %171
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %172)
          to label %173 unwind label %49

173:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  store i64 0, ptr %26, align 8, !tbaa !15
  br label %174

174:                                              ; preds = %246, %173
  %175 = load i64, ptr %26, align 8, !tbaa !15
  %176 = load i64, ptr %13, align 8, !tbaa !15
  %177 = sub i64 %176, 1
  %178 = load i32, ptr %11, align 4, !tbaa !13
  %179 = sext i32 %178 to i64
  %180 = add i64 %177, %179
  %181 = icmp ult i64 %175, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %174
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  br label %249

183:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  store i64 0, ptr %27, align 8, !tbaa !15
  br label %184

184:                                              ; preds = %242, %183
  %185 = load i64, ptr %27, align 8, !tbaa !15
  %186 = load i64, ptr %12, align 8, !tbaa !15
  %187 = icmp ult i64 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 17, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  br label %245

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #3
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 4)
          to label %190 unwind label %235

190:                                              ; preds = %189
  %191 = load i64, ptr %26, align 8, !tbaa !15
  %192 = load i64, ptr %13, align 8, !tbaa !15
  %193 = urem i64 %191, %192
  %194 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %193) #3
  %195 = load i64, ptr %27, align 8, !tbaa !15
  %196 = load i64, ptr %12, align 8, !tbaa !15
  %197 = urem i64 %195, %196
  %198 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %197) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(16) %198)
          to label %199 unwind label %235

199:                                              ; preds = %190
  %200 = load i64, ptr %26, align 8, !tbaa !15
  %201 = add i64 %200, 1
  %202 = load i64, ptr %13, align 8, !tbaa !15
  %203 = urem i64 %201, %202
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %203) #3
  %205 = load i64, ptr %27, align 8, !tbaa !15
  %206 = load i64, ptr %12, align 8, !tbaa !15
  %207 = urem i64 %205, %206
  %208 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %207) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(16) %208)
          to label %209 unwind label %235

209:                                              ; preds = %199
  %210 = load i64, ptr %26, align 8, !tbaa !15
  %211 = add i64 %210, 1
  %212 = load i64, ptr %13, align 8, !tbaa !15
  %213 = urem i64 %211, %212
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %213) #3
  %215 = load i64, ptr %27, align 8, !tbaa !15
  %216 = add i64 %215, 1
  %217 = load i64, ptr %12, align 8, !tbaa !15
  %218 = urem i64 %216, %217
  %219 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %218) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(16) %219)
          to label %220 unwind label %235

220:                                              ; preds = %209
  %221 = load i64, ptr %26, align 8, !tbaa !15
  %222 = load i64, ptr %13, align 8, !tbaa !15
  %223 = urem i64 %221, %222
  %224 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %223) #3
  %225 = load i64, ptr %27, align 8, !tbaa !15
  %226 = add i64 %225, 1
  %227 = load i64, ptr %12, align 8, !tbaa !15
  %228 = urem i64 %226, %227
  %229 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %228) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(16) %229)
          to label %230 unwind label %235

230:                                              ; preds = %220
  %231 = invoke noundef zeroext i1 @_ZN10ClipperLib11OrientationERKSt6vectorINS_8IntPointESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %232 unwind label %235

232:                                              ; preds = %230
  br i1 %231, label %239, label %233

233:                                              ; preds = %232
  invoke void @_ZN10ClipperLib11ReversePathERSt6vectorINS_8IntPointESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %234 unwind label %235

234:                                              ; preds = %233
  br label %239

235:                                              ; preds = %239, %233, %230, %220, %209, %199, %190, %189
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %15, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %16, align 4
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  br label %250

239:                                              ; preds = %234, %232
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %240, ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %241 unwind label %235

241:                                              ; preds = %239
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #3
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %27, align 8, !tbaa !15
  %244 = add i64 %243, 1
  store i64 %244, ptr %27, align 8, !tbaa !15
  br label %184, !llvm.loop !26

245:                                              ; preds = %188
  br label %246

246:                                              ; preds = %245
  %247 = load i64, ptr %26, align 8, !tbaa !15
  %248 = add i64 %247, 1
  store i64 %248, ptr %26, align 8, !tbaa !15
  br label %174, !llvm.loop !27

249:                                              ; preds = %182
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  ret void

250:                                              ; preds = %235, %161, %103, %49
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %15, align 8
  %253 = load i32, ptr %16, align 4
  %254 = insertvalue { ptr, i32 } poison, ptr %252, 0
  %255 = insertvalue { ptr, i32 } %254, i32 %253, 1
  resume { ptr, i32 } %255
}

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 = { 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 #3 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN10ClipperLib8IntPointE", !19, i64 0, !19, i64 8}
!19 = !{!"long long", !7, i64 0}
!20 = !{!18, !19, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}


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

%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"struct.ClipperLib::IntPoint" = type { i64, i64 }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10ClipperLib11OrientationERKSt6vectorINS_8IntPointESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib9MinkowskiERKSt6vectorINS_8IntPointESaIS1_EES5_RS0_IS3_SaIS3_EEbb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector.28", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"struct.ClipperLib::IntPoint", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"struct.ClipperLib::IntPoint", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = tail call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %13 = tail call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13)
          to label %14 unwind label %15

14:                                               ; preds = %5
  %.not99 = icmp eq i64 %13, 0
  br i1 %3, label %.preheader81, label %.preheader83

.preheader83:                                     ; preds = %14
  br i1 %.not99, label %.loopexit, label %.lr.ph87

.preheader81:                                     ; preds = %14
  br i1 %.not99, label %.loopexit, label %.lr.ph92

15:                                               ; preds = %.loopexit, %5
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %96

.lr.ph92:                                         ; preds = %.preheader81, %38
  %.06991 = phi i64 [ %39, %38 ], [ 0, %.preheader81 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %12)
          to label %.preheader80 unwind label %18

.preheader80:                                     ; preds = %.lr.ph92
  %17 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %.not100 = icmp eq i64 %17, 0
  br i1 %.not100, label %._crit_edge90, label %.lr.ph89

._crit_edge90:                                    ; preds = %32, %.preheader80
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %38 unwind label %18

18:                                               ; preds = %._crit_edge90, %.lr.ph92
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %40

.lr.ph89:                                         ; preds = %.preheader80, %32
  %.06888 = phi i64 [ %33, %32 ], [ 0, %.preheader80 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06991) #3
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06888) #3
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = add nsw i64 %23, %21
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06991) #3
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i64, ptr %26, align 8, !tbaa !10
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06888) #3
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !10
  %31 = add nsw i64 %30, %27
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %24, i64 noundef %31)
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %32 unwind label %36

32:                                               ; preds = %.lr.ph89
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  %33 = add nuw i64 %.06888, 1
  %34 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %.lr.ph89, label %._crit_edge90, !llvm.loop !11

36:                                               ; preds = %.lr.ph89
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  br label %40

38:                                               ; preds = %._crit_edge90
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  %39 = add nuw i64 %.06991, 1
  %exitcond105.not = icmp eq i64 %39, %13
  br i1 %exitcond105.not, label %.loopexit, label %.lr.ph92, !llvm.loop !13

40:                                               ; preds = %36, %18
  %.pn76 = phi { ptr, i32 } [ %37, %36 ], [ %19, %18 ]
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  br label %96

.lr.ph87:                                         ; preds = %.preheader83, %62
  %.06786 = phi i64 [ %63, %62 ], [ 0, %.preheader83 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #3
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %12)
          to label %.preheader82 unwind label %42

.preheader82:                                     ; preds = %.lr.ph87
  %41 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %.not98 = icmp eq i64 %41, 0
  br i1 %.not98, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %56, %.preheader82
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %62 unwind label %42

42:                                               ; preds = %._crit_edge, %.lr.ph87
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %64

.lr.ph:                                           ; preds = %.preheader82, %56
  %.06685 = phi i64 [ %57, %56 ], [ 0, %.preheader82 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06786) #3
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06685) #3
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = sub nsw i64 %45, %47
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06786) #3
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load i64, ptr %50, align 8, !tbaa !10
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.06685) #3
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load i64, ptr %53, align 8, !tbaa !10
  %55 = sub nsw i64 %51, %54
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %48, i64 noundef %55)
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %56 unwind label %60

56:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  %57 = add nuw i64 %.06685, 1
  %58 = call noundef i64 @_ZNKSt6vectorIN10ClipperLib8IntPointESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %.lr.ph, label %._crit_edge, !llvm.loop !14

60:                                               ; preds = %.lr.ph
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  br label %64

62:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  %63 = add nuw i64 %.06786, 1
  %exitcond.not = icmp eq i64 %63, %13
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph87, !llvm.loop !15

64:                                               ; preds = %60, %42
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %43, %42 ]
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #3
  br label %96

.loopexit:                                        ; preds = %62, %38, %.preheader83, %.preheader81
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %65 = zext i1 %4 to i64
  %66 = add i64 %13, %65
  %67 = add i64 %12, 1
  %68 = mul i64 %66, %67
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %68)
          to label %.preheader79 unwind label %15

.preheader79:                                     ; preds = %.loopexit
  %not. = xor i1 %4, true
  %69 = sext i1 %not. to i64
  %70 = add i64 %13, %69
  %.not101 = icmp eq i64 %70, 0
  %.not102 = icmp eq i64 %12, 0
  %or.cond = or i1 %.not101, %.not102
  br i1 %or.cond, label %._crit_edge97, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader79, %._crit_edge95.us
  %.06596.us = phi i64 [ %71, %._crit_edge95.us ], [ 0, %.preheader79 ]
  %71 = add nuw i64 %.06596.us, 1
  br label %72

72:                                               ; preds = %.preheader.us, %94
  %.093.us = phi i64 [ 0, %.preheader.us ], [ %83, %94 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #3
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 4)
          to label %73 unwind label %.split.us

73:                                               ; preds = %72
  %74 = urem i64 %.06596.us, %13
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %74) #3
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %.093.us) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(16) %76)
          to label %77 unwind label %.split.us

77:                                               ; preds = %73
  %78 = urem i64 %71, %13
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %78) #3
  %80 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %.093.us) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(16) %80)
          to label %81 unwind label %.split.us

81:                                               ; preds = %77
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %78) #3
  %83 = add nuw i64 %.093.us, 1
  %84 = icmp eq i64 %83, %12
  %iv.rem = select i1 %84, i64 0, i64 %83
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %iv.rem) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(16) %85)
          to label %86 unwind label %.split.us

86:                                               ; preds = %81
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %74) #3
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %iv.rem) #3
  invoke void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(16) %88)
          to label %89 unwind label %.split.us

89:                                               ; preds = %86
  %90 = invoke noundef zeroext i1 @_ZN10ClipperLib11OrientationERKSt6vectorINS_8IntPointESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %91 unwind label %.split.us

91:                                               ; preds = %89
  br i1 %90, label %93, label %92

92:                                               ; preds = %91
  invoke void @_ZN10ClipperLib11ReversePathERSt6vectorINS_8IntPointESaIS1_EE(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %93 unwind label %.split.us

93:                                               ; preds = %92, %91
  invoke void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %94 unwind label %.split.us

94:                                               ; preds = %93
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #3
  %exitcond106.not = icmp eq i64 %83, %12
  br i1 %exitcond106.not, label %._crit_edge95.us, label %72, !llvm.loop !16

._crit_edge95.us:                                 ; preds = %94
  %exitcond107.not = icmp eq i64 %71, %70
  br i1 %exitcond107.not, label %._crit_edge97, label %.preheader.us, !llvm.loop !17

.split.us:                                        ; preds = %93, %92, %89, %86, %81, %77, %73, %72
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #3
  br label %96

._crit_edge97:                                    ; preds = %._crit_edge95.us, %.preheader79
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  ret void

96:                                               ; preds = %.split.us, %64, %40, %15
  %.pn76.pn = phi { ptr, i32 } [ %.pn76, %40 ], [ %95, %.split.us ], [ %16, %15 ], [ %.pn, %64 ]
  call void @_ZNSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  resume { ptr, i32 } %.pn76.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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, !7, i64 0}
!6 = !{!"_ZTSN10ClipperLib8IntPointE", !7, i64 0, !7, i64 8}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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