; LLVM IR from mackorone/mms :: old/v2/src/lib/polypartition (polypartition)

; 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::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<TPPLPoly, std::allocator<TPPLPoly>>::_List_impl" }
%"struct.std::__cxx11::_List_base<TPPLPoly, std::allocator<TPPLPoly>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_iterator" = type { ptr }
%struct.TPPLPoint = type { double, double }
%class.TPPLPoly = type <{ ptr, i64, i8, [7 x i8] }>
%"struct.std::_List_const_iterator" = type { ptr }

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN13TPPLPartition9NormalizeERK9TPPLPoint(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13TPPLPartition10IntersectsER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13TPPLPartition11RemoveHolesEPNSt7__cxx114listI8TPPLPolySaIS2_EEES5_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::__cxx11::list", align 8
  %9 = alloca %"struct.std::_List_iterator", align 8
  %10 = alloca %"struct.std::_List_iterator", align 8
  %11 = alloca %"struct.std::_List_iterator", align 8
  %12 = alloca %"struct.std::_List_iterator", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %struct.TPPLPoint, align 8
  %18 = alloca %struct.TPPLPoint, align 8
  %19 = alloca %struct.TPPLPoint, align 8
  %20 = alloca %struct.TPPLPoint, align 8
  %21 = alloca %struct.TPPLPoint, align 8
  %22 = alloca %struct.TPPLPoint, align 8
  %23 = alloca %struct.TPPLPoint, align 8
  %24 = alloca %class.TPPLPoly, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca %"struct.std::_List_iterator", align 8
  %31 = alloca %"struct.std::_List_iterator", align 8
  %32 = alloca %"struct.std::_List_iterator", align 8
  %33 = alloca %"struct.std::_List_iterator", align 8
  %34 = alloca %"struct.std::_List_iterator", align 8
  %35 = alloca %"struct.std::_List_iterator", align 8
  %36 = alloca i32, align 4
  %37 = alloca %"struct.std::_List_iterator", align 8
  %38 = alloca %"struct.std::_List_iterator", align 8
  %39 = alloca %"struct.std::_List_iterator", align 8
  %40 = alloca %"struct.std::_List_iterator", align 8
  %41 = alloca %"struct.std::_List_iterator", align 8
  %42 = alloca %struct.TPPLPoint, align 8
  %43 = alloca %struct.TPPLPoint, align 8
  %44 = alloca %struct.TPPLPoint, align 8
  %45 = alloca %struct.TPPLPoint, align 8
  %46 = alloca %"struct.std::_List_iterator", align 8
  %47 = alloca %"struct.std::_List_iterator", align 8
  %48 = alloca %"struct.std::_List_iterator", align 8
  %49 = alloca %"struct.std::_List_iterator", align 8
  %50 = alloca %"struct.std::_List_const_iterator", align 8
  %51 = alloca %"struct.std::_List_iterator", align 8
  %52 = alloca %"struct.std::_List_const_iterator", align 8
  %53 = alloca %"struct.std::_List_iterator", align 8
  %54 = alloca %"struct.std::_List_iterator", align 8
  %55 = alloca %"struct.std::_List_iterator", align 8
  %56 = alloca %"struct.std::_List_iterator", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #4
  invoke void @_ZN8TPPLPolyC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %24)
          to label %58 unwind label %72

58:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #4
  store i8 0, ptr %27, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #4
  %61 = getelementptr inbounds %"struct.std::_List_iterator", ptr %30, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %30, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %62

62:                                               ; preds = %81, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #4
  %65 = getelementptr inbounds %"struct.std::_List_iterator", ptr %31, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  %66 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  br i1 %66, label %67, label %84

67:                                               ; preds = %62
  %68 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %69 = invoke noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %68)
          to label %70 unwind label %76

70:                                               ; preds = %67
  br i1 %69, label %71, label %80

71:                                               ; preds = %70
  store i8 1, ptr %27, align 1, !tbaa !9
  br label %84

72:                                               ; preds = %3
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %25, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %26, align 4
  br label %442

76:                                               ; preds = %431, %414, %404, %400, %394, %382, %379, %372, %366, %355, %351, %343, %340, %337, %303, %300, %294, %290, %284, %278, %224, %220, %217, %211, %207, %204, %199, %194, %183, %177, %171, %160, %136, %132, %126, %116, %104, %96, %67
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %25, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %26, align 4
  br label %441

80:                                               ; preds = %70
  br label %81

81:                                               ; preds = %80
  %82 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #4
  %83 = getelementptr inbounds %"struct.std::_List_iterator", ptr %32, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  br label %62, !llvm.loop !12

84:                                               ; preds = %71, %62
  %85 = load i8, ptr %27, align 1, !tbaa !9, !range !14, !noundef !15
  %86 = trunc i8 %85 to i1
  br i1 %86, label %104, label %87

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #4
  %90 = getelementptr inbounds %"struct.std::_List_iterator", ptr %33, i32 0, i32 0
  store ptr %89, ptr %90, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %33, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  br label %91

91:                                               ; preds = %100, %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #4
  %94 = getelementptr inbounds %"struct.std::_List_iterator", ptr %34, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  %95 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  br i1 %95, label %96, label %103

96:                                               ; preds = %91
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 8 dereferenceable(17) %98)
          to label %99 unwind label %76

99:                                               ; preds = %96
  br label %100

100:                                              ; preds = %99
  %101 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #4
  %102 = getelementptr inbounds %"struct.std::_List_iterator", ptr %35, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  br label %91, !llvm.loop !16

103:                                              ; preds = %91
  store i32 1, ptr %4, align 4
  store i32 1, ptr %36, align 4
  br label %439

104:                                              ; preds = %84
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %105)
          to label %107 unwind label %76

107:                                              ; preds = %104
  br label %108

108:                                              ; preds = %423, %107
  br label %109

109:                                              ; preds = %108
  store i8 0, ptr %27, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %110 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %111 = getelementptr inbounds %"struct.std::_List_iterator", ptr %37, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %37, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  br label %112

112:                                              ; preds = %153, %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %113 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %114 = getelementptr inbounds %"struct.std::_List_iterator", ptr %38, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  br i1 %115, label %116, label %156

116:                                              ; preds = %112
  %117 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %118 = invoke noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %117)
          to label %119 unwind label %76

119:                                              ; preds = %116
  br i1 %118, label %121, label %120

120:                                              ; preds = %119
  br label %153

121:                                              ; preds = %119
  %122 = load i8, ptr %27, align 1, !tbaa !9, !range !14, !noundef !15
  %123 = trunc i8 %122 to i1
  br i1 %123, label %125, label %124

124:                                              ; preds = %121
  store i8 1, ptr %27, align 1, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !11
  store i64 0, ptr %15, align 8, !tbaa !17
  br label %125

125:                                              ; preds = %124, %121
  store i64 0, ptr %13, align 8, !tbaa !17
  br label %126

126:                                              ; preds = %149, %125
  %127 = load i64, ptr %13, align 8, !tbaa !17
  %128 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %129 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %128)
          to label %130 unwind label %76

130:                                              ; preds = %126
  %131 = icmp slt i64 %127, %129
  br i1 %131, label %132, label %152

132:                                              ; preds = %130
  %133 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %134 = load i64, ptr %13, align 8, !tbaa !17
  %135 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %133, i64 noundef %134)
          to label %136 unwind label %76

136:                                              ; preds = %132
  %137 = getelementptr inbounds %struct.TPPLPoint, ptr %135, i32 0, i32 0
  %138 = load double, ptr %137, align 8, !tbaa !19
  %139 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %140 = load i64, ptr %15, align 8, !tbaa !17
  %141 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %139, i64 noundef %140)
          to label %142 unwind label %76

142:                                              ; preds = %136
  %143 = getelementptr inbounds %struct.TPPLPoint, ptr %141, i32 0, i32 0
  %144 = load double, ptr %143, align 8, !tbaa !19
  %145 = fcmp ogt double %138, %144
  br i1 %145, label %146, label %148

146:                                              ; preds = %142
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !11
  %147 = load i64, ptr %13, align 8, !tbaa !17
  store i64 %147, ptr %15, align 8, !tbaa !17
  br label %148

148:                                              ; preds = %146, %142
  br label %149

149:                                              ; preds = %148
  %150 = load i64, ptr %13, align 8, !tbaa !17
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %13, align 8, !tbaa !17
  br label %126, !llvm.loop !22

152:                                              ; preds = %130
  br label %153

153:                                              ; preds = %152, %120
  %154 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #4
  %155 = getelementptr inbounds %"struct.std::_List_iterator", ptr %39, i32 0, i32 0
  store ptr %154, ptr %155, align 8
  br label %112, !llvm.loop !23

156:                                              ; preds = %112
  %157 = load i8, ptr %27, align 1, !tbaa !9, !range !14, !noundef !15
  %158 = trunc i8 %157 to i1
  br i1 %158, label %160, label %159

159:                                              ; preds = %156
  br label %424

160:                                              ; preds = %156
  %161 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %162 = load i64, ptr %15, align 8, !tbaa !17
  %163 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %161, i64 noundef %162)
          to label %164 unwind label %76

164:                                              ; preds = %160
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %163, i64 16, i1 false), !tbaa.struct !24
  store i8 0, ptr %29, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  %165 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %166 = getelementptr inbounds %"struct.std::_List_iterator", ptr %40, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %40, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  br label %167

167:                                              ; preds = %330, %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  %168 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %169 = getelementptr inbounds %"struct.std::_List_iterator", ptr %41, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  %170 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br i1 %170, label %171, label %333

171:                                              ; preds = %167
  %172 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %173 = invoke noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %172)
          to label %174 unwind label %76

174:                                              ; preds = %171
  br i1 %173, label %175, label %176

175:                                              ; preds = %174
  br label %330

176:                                              ; preds = %174
  store i64 0, ptr %13, align 8, !tbaa !17
  br label %177

177:                                              ; preds = %326, %176
  %178 = load i64, ptr %13, align 8, !tbaa !17
  %179 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %180 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %179)
          to label %181 unwind label %76

181:                                              ; preds = %177
  %182 = icmp slt i64 %178, %180
  br i1 %182, label %183, label %329

183:                                              ; preds = %181
  %184 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %185 = load i64, ptr %13, align 8, !tbaa !17
  %186 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %184, i64 noundef %185)
          to label %187 unwind label %76

187:                                              ; preds = %183
  %188 = getelementptr inbounds %struct.TPPLPoint, ptr %186, i32 0, i32 0
  %189 = load double, ptr %188, align 8, !tbaa !19
  %190 = getelementptr inbounds %struct.TPPLPoint, ptr %17, i32 0, i32 0
  %191 = load double, ptr %190, align 8, !tbaa !19
  %192 = fcmp ole double %189, %191
  br i1 %192, label %193, label %194

193:                                              ; preds = %187
  br label %326

194:                                              ; preds = %187
  %195 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %196 = load i64, ptr %13, align 8, !tbaa !17
  %197 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %198 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %197)
          to label %199 unwind label %76

199:                                              ; preds = %194
  %200 = add nsw i64 %196, %198
  %201 = sub nsw i64 %200, 1
  %202 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %203 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %202)
          to label %204 unwind label %76

204:                                              ; preds = %199
  %205 = srem i64 %201, %203
  %206 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %195, i64 noundef %205)
          to label %207 unwind label %76

207:                                              ; preds = %204
  %208 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %209 = load i64, ptr %13, align 8, !tbaa !17
  %210 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %208, i64 noundef %209)
          to label %211 unwind label %76

211:                                              ; preds = %207
  %212 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %213 = load i64, ptr %13, align 8, !tbaa !17
  %214 = add nsw i64 %213, 1
  %215 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %216 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %215)
          to label %217 unwind label %76

217:                                              ; preds = %211
  %218 = srem i64 %214, %216
  %219 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %212, i64 noundef %218)
          to label %220 unwind label %76

220:                                              ; preds = %217
  %221 = invoke noundef zeroext i1 @_ZN13TPPLPartition6InConeER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %57, ptr noundef nonnull align 8 dereferenceable(16) %206, ptr noundef nonnull align 8 dereferenceable(16) %210, ptr noundef nonnull align 8 dereferenceable(16) %219, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %222 unwind label %76

222:                                              ; preds = %220
  br i1 %221, label %224, label %223

223:                                              ; preds = %222
  br label %326

224:                                              ; preds = %222
  %225 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %226 = load i64, ptr %13, align 8, !tbaa !17
  %227 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %225, i64 noundef %226)
          to label %228 unwind label %76

228:                                              ; preds = %224
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %227, i64 16, i1 false), !tbaa.struct !24
  %229 = load i8, ptr %29, align 1, !tbaa !9, !range !14, !noundef !15
  %230 = trunc i8 %229 to i1
  br i1 %230, label %231, label %271

231:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #4
  %232 = invoke { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %233 unwind label %262

233:                                              ; preds = %231
  %234 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %235 = extractvalue { double, double } %232, 0
  store double %235, ptr %234, align 8
  %236 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %237 = extractvalue { double, double } %232, 1
  store double %237, ptr %236, align 8
  %238 = invoke { double, double } @_ZN13TPPLPartition9NormalizeERK9TPPLPoint(ptr noundef nonnull align 1 dereferenceable(1) %57, ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %239 unwind label %262

239:                                              ; preds = %233
  %240 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %241 = extractvalue { double, double } %238, 0
  store double %241, ptr %240, align 8
  %242 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %243 = extractvalue { double, double } %238, 1
  store double %243, ptr %242, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %42, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #4
  %244 = invoke { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %245 unwind label %266

245:                                              ; preds = %239
  %246 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %247 = extractvalue { double, double } %244, 0
  store double %247, ptr %246, align 8
  %248 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %249 = extractvalue { double, double } %244, 1
  store double %249, ptr %248, align 8
  %250 = invoke { double, double } @_ZN13TPPLPartition9NormalizeERK9TPPLPoint(ptr noundef nonnull align 1 dereferenceable(1) %57, ptr noundef nonnull align 8 dereferenceable(16) %45)
          to label %251 unwind label %266

251:                                              ; preds = %245
  %252 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %253 = extractvalue { double, double } %250, 0
  store double %253, ptr %252, align 8
  %254 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %255 = extractvalue { double, double } %250, 1
  store double %255, ptr %254, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %44, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #4
  %256 = getelementptr inbounds %struct.TPPLPoint, ptr %23, i32 0, i32 0
  %257 = load double, ptr %256, align 8, !tbaa !19
  %258 = getelementptr inbounds %struct.TPPLPoint, ptr %22, i32 0, i32 0
  %259 = load double, ptr %258, align 8, !tbaa !19
  %260 = fcmp ogt double %257, %259
  br i1 %260, label %261, label %270

261:                                              ; preds = %251
  br label %326

262:                                              ; preds = %233, %231
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %25, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #4
  br label %441

266:                                              ; preds = %245, %239
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %25, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #4
  br label %441

270:                                              ; preds = %251
  br label %271

271:                                              ; preds = %270, %228
  store i8 1, ptr %28, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %272 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %273 = getelementptr inbounds %"struct.std::_List_iterator", ptr %46, i32 0, i32 0
  store ptr %272, ptr %273, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %46, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  br label %274

274:                                              ; preds = %317, %271
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  %275 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %276 = getelementptr inbounds %"struct.std::_List_iterator", ptr %47, i32 0, i32 0
  store ptr %275, ptr %276, align 8
  %277 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  br i1 %277, label %278, label %320

278:                                              ; preds = %274
  %279 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %280 = invoke noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %279)
          to label %281 unwind label %76

281:                                              ; preds = %278
  br i1 %280, label %282, label %283

282:                                              ; preds = %281
  br label %317

283:                                              ; preds = %281
  store i64 0, ptr %14, align 8, !tbaa !17
  br label %284

284:                                              ; preds = %309, %283
  %285 = load i64, ptr %14, align 8, !tbaa !17
  %286 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %287 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %286)
          to label %288 unwind label %76

288:                                              ; preds = %284
  %289 = icmp slt i64 %285, %287
  br i1 %289, label %290, label %312

290:                                              ; preds = %288
  %291 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %292 = load i64, ptr %14, align 8, !tbaa !17
  %293 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %291, i64 noundef %292)
          to label %294 unwind label %76

294:                                              ; preds = %290
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %293, i64 16, i1 false), !tbaa.struct !24
  %295 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %296 = load i64, ptr %14, align 8, !tbaa !17
  %297 = add nsw i64 %296, 1
  %298 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  %299 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %298)
          to label %300 unwind label %76

300:                                              ; preds = %294
  %301 = srem i64 %297, %299
  %302 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %295, i64 noundef %301)
          to label %303 unwind label %76

303:                                              ; preds = %300
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %302, i64 16, i1 false), !tbaa.struct !24
  %304 = invoke noundef i32 @_ZN13TPPLPartition10IntersectsER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %57, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %305 unwind label %76

305:                                              ; preds = %303
  %306 = icmp ne i32 %304, 0
  br i1 %306, label %307, label %308

307:                                              ; preds = %305
  store i8 0, ptr %28, align 1, !tbaa !9
  br label %312

308:                                              ; preds = %305
  br label %309

309:                                              ; preds = %308
  %310 = load i64, ptr %14, align 8, !tbaa !17
  %311 = add nsw i64 %310, 1
  store i64 %311, ptr %14, align 8, !tbaa !17
  br label %284, !llvm.loop !26

312:                                              ; preds = %307, %288
  %313 = load i8, ptr %28, align 1, !tbaa !9, !range !14, !noundef !15
  %314 = trunc i8 %313 to i1
  br i1 %314, label %316, label %315

315:                                              ; preds = %312
  br label %320

316:                                              ; preds = %312
  br label %317

317:                                              ; preds = %316, %282
  %318 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #4
  %319 = getelementptr inbounds %"struct.std::_List_iterator", ptr %48, i32 0, i32 0
  store ptr %318, ptr %319, align 8
  br label %274, !llvm.loop !27

320:                                              ; preds = %315, %274
  %321 = load i8, ptr %28, align 1, !tbaa !9, !range !14, !noundef !15
  %322 = trunc i8 %321 to i1
  br i1 %322, label %323, label %325

323:                                              ; preds = %320
  store i8 1, ptr %29, align 1, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %11, i64 8, i1 false), !tbaa.struct !11
  %324 = load i64, ptr %13, align 8, !tbaa !17
  store i64 %324, ptr %16, align 8, !tbaa !17
  br label %325

325:                                              ; preds = %323, %320
  br label %326

326:                                              ; preds = %325, %261, %223, %193
  %327 = load i64, ptr %13, align 8, !tbaa !17
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %13, align 8, !tbaa !17
  br label %177, !llvm.loop !28

329:                                              ; preds = %181
  br label %330

330:                                              ; preds = %329, %175
  %331 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #4
  %332 = getelementptr inbounds %"struct.std::_List_iterator", ptr %49, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  br label %167, !llvm.loop !29

333:                                              ; preds = %167
  %334 = load i8, ptr %29, align 1, !tbaa !9, !range !14, !noundef !15
  %335 = trunc i8 %334 to i1
  br i1 %335, label %337, label %336

336:                                              ; preds = %333
  store i32 0, ptr %4, align 4
  store i32 1, ptr %36, align 4
  br label %439

337:                                              ; preds = %333
  %338 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %339 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %338)
          to label %340 unwind label %76

340:                                              ; preds = %337
  %341 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %342 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %341)
          to label %343 unwind label %76

343:                                              ; preds = %340
  %344 = add nsw i64 %339, %342
  %345 = add nsw i64 %344, 2
  invoke void @_ZN8TPPLPoly4InitEl(ptr noundef nonnull align 8 dereferenceable(17) %24, i64 noundef %345)
          to label %346 unwind label %76

346:                                              ; preds = %343
  store i64 0, ptr %14, align 8, !tbaa !17
  store i64 0, ptr %13, align 8, !tbaa !17
  br label %347

347:                                              ; preds = %362, %346
  %348 = load i64, ptr %13, align 8, !tbaa !17
  %349 = load i64, ptr %16, align 8, !tbaa !17
  %350 = icmp sle i64 %348, %349
  br i1 %350, label %351, label %365

351:                                              ; preds = %347
  %352 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %353 = load i64, ptr %13, align 8, !tbaa !17
  %354 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %352, i64 noundef %353)
          to label %355 unwind label %76

355:                                              ; preds = %351
  %356 = load i64, ptr %14, align 8, !tbaa !17
  %357 = trunc i64 %356 to i32
  %358 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %24, i32 noundef %357)
          to label %359 unwind label %76

359:                                              ; preds = %355
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %358, ptr align 8 %354, i64 16, i1 false), !tbaa.struct !24
  %360 = load i64, ptr %14, align 8, !tbaa !17
  %361 = add nsw i64 %360, 1
  store i64 %361, ptr %14, align 8, !tbaa !17
  br label %362

362:                                              ; preds = %359
  %363 = load i64, ptr %13, align 8, !tbaa !17
  %364 = add nsw i64 %363, 1
  store i64 %364, ptr %13, align 8, !tbaa !17
  br label %347, !llvm.loop !30

365:                                              ; preds = %347
  store i64 0, ptr %13, align 8, !tbaa !17
  br label %366

366:                                              ; preds = %389, %365
  %367 = load i64, ptr %13, align 8, !tbaa !17
  %368 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %369 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %368)
          to label %370 unwind label %76

370:                                              ; preds = %366
  %371 = icmp sle i64 %367, %369
  br i1 %371, label %372, label %392

372:                                              ; preds = %370
  %373 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %374 = load i64, ptr %13, align 8, !tbaa !17
  %375 = load i64, ptr %15, align 8, !tbaa !17
  %376 = add nsw i64 %374, %375
  %377 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %378 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %377)
          to label %379 unwind label %76

379:                                              ; preds = %372
  %380 = srem i64 %376, %378
  %381 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %373, i64 noundef %380)
          to label %382 unwind label %76

382:                                              ; preds = %379
  %383 = load i64, ptr %14, align 8, !tbaa !17
  %384 = trunc i64 %383 to i32
  %385 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %24, i32 noundef %384)
          to label %386 unwind label %76

386:                                              ; preds = %382
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %385, ptr align 8 %381, i64 16, i1 false), !tbaa.struct !24
  %387 = load i64, ptr %14, align 8, !tbaa !17
  %388 = add nsw i64 %387, 1
  store i64 %388, ptr %14, align 8, !tbaa !17
  br label %389

389:                                              ; preds = %386
  %390 = load i64, ptr %13, align 8, !tbaa !17
  %391 = add nsw i64 %390, 1
  store i64 %391, ptr %13, align 8, !tbaa !17
  br label %366, !llvm.loop !31

392:                                              ; preds = %370
  %393 = load i64, ptr %16, align 8, !tbaa !17
  store i64 %393, ptr %13, align 8, !tbaa !17
  br label %394

394:                                              ; preds = %411, %392
  %395 = load i64, ptr %13, align 8, !tbaa !17
  %396 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %397 = invoke noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %396)
          to label %398 unwind label %76

398:                                              ; preds = %394
  %399 = icmp slt i64 %395, %397
  br i1 %399, label %400, label %414

400:                                              ; preds = %398
  %401 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %402 = load i64, ptr %13, align 8, !tbaa !17
  %403 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %401, i64 noundef %402)
          to label %404 unwind label %76

404:                                              ; preds = %400
  %405 = load i64, ptr %14, align 8, !tbaa !17
  %406 = trunc i64 %405 to i32
  %407 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %24, i32 noundef %406)
          to label %408 unwind label %76

408:                                              ; preds = %404
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %407, ptr align 8 %403, i64 16, i1 false), !tbaa.struct !24
  %409 = load i64, ptr %14, align 8, !tbaa !17
  %410 = add nsw i64 %409, 1
  store i64 %410, ptr %14, align 8, !tbaa !17
  br label %411

411:                                              ; preds = %408
  %412 = load i64, ptr %13, align 8, !tbaa !17
  %413 = add nsw i64 %412, 1
  store i64 %413, ptr %13, align 8, !tbaa !17
  br label %394, !llvm.loop !32

414:                                              ; preds = %398
  call void @_ZNSt20_List_const_iteratorI8TPPLPolyEC2ERKSt14_List_iteratorIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %415 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %50, i32 0, i32 0
  %416 = load ptr, ptr %415, align 8
  %417 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5eraseESt20_List_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr %416) #4
  %418 = getelementptr inbounds %"struct.std::_List_iterator", ptr %51, i32 0, i32 0
  store ptr %417, ptr %418, align 8
  call void @_ZNSt20_List_const_iteratorI8TPPLPolyEC2ERKSt14_List_iteratorIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %419 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %52, i32 0, i32 0
  %420 = load ptr, ptr %419, align 8
  %421 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5eraseESt20_List_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr %420) #4
  %422 = getelementptr inbounds %"struct.std::_List_iterator", ptr %53, i32 0, i32 0
  store ptr %421, ptr %422, align 8
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(17) %24)
          to label %423 unwind label %76

423:                                              ; preds = %414
  br label %108, !llvm.loop !33

424:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  %425 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %426 = getelementptr inbounds %"struct.std::_List_iterator", ptr %54, i32 0, i32 0
  store ptr %425, ptr %426, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %54, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  br label %427

427:                                              ; preds = %435, %424
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #4
  %428 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %429 = getelementptr inbounds %"struct.std::_List_iterator", ptr %55, i32 0, i32 0
  store ptr %428, ptr %429, align 8
  %430 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #4
  br i1 %430, label %431, label %438

431:                                              ; preds = %427
  %432 = load ptr, ptr %7, align 8, !tbaa !5
  %433 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %432, ptr noundef nonnull align 8 dereferenceable(17) %433)
          to label %434 unwind label %76

434:                                              ; preds = %431
  br label %435

435:                                              ; preds = %434
  %436 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #4
  %437 = getelementptr inbounds %"struct.std::_List_iterator", ptr %56, i32 0, i32 0
  store ptr %436, ptr %437, align 8
  br label %427, !llvm.loop !34

438:                                              ; preds = %427
  store i32 1, ptr %4, align 4
  store i32 1, ptr %36, align 4
  br label %439

439:                                              ; preds = %438, %336, %103
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %24) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  %440 = load i32, ptr %4, align 4
  ret i32 %440

441:                                              ; preds = %266, %262, %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %24) #4
  br label %442

442:                                              ; preds = %441, %72
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  br label %443

443:                                              ; preds = %442
  %444 = load ptr, ptr %25, align 8
  %445 = load i32, ptr %26, align 4
  %446 = insertvalue { ptr, i32 } poison, ptr %444, 0
  %447 = insertvalue { ptr, i32 } %446, i32 %445, 1
  resume { ptr, i32 } %447
}

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13TPPLPartition6InConeER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef) #3 align 2

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

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

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

declare void @_ZN8TPPLPolyC1Ev(ptr)

declare void @_ZN8TPPLPolyD1Ev(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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{i64 0, i64 8, !5}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !13}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTS9TPPLPoint", !21, i64 0, !21, i64 8}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}
!24 = !{i64 0, i64 8, !25, i64 8, i64 8, !25}
!25 = !{!21, !21, i64 0}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}
!29 = distinct !{!29, !13}
!30 = distinct !{!30, !13}
!31 = distinct !{!31, !13}
!32 = distinct !{!32, !13}
!33 = distinct !{!33, !13}
!34 = distinct !{!34, !13}


; 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::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<TPPLPoly, std::allocator<TPPLPoly>>::_List_impl" }
%"struct.std::__cxx11::_List_base<TPPLPoly, std::allocator<TPPLPoly>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_iterator" = type { ptr }
%struct.TPPLPoint = type { double, double }
%class.TPPLPoly = type <{ ptr, i64, i8, [7 x i8] }>
%"struct.std::_List_const_iterator" = type { ptr }

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN13TPPLPartition9NormalizeERK9TPPLPoint(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13TPPLPartition10IntersectsER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN13TPPLPartition11RemoveHolesEPNSt7__cxx114listI8TPPLPolySaIS2_EEES5_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::list", align 8
  %5 = alloca %"struct.std::_List_iterator", align 8
  %6 = alloca %"struct.std::_List_iterator", align 8
  %7 = alloca %"struct.std::_List_iterator", align 8
  %8 = alloca %"struct.std::_List_iterator", align 8
  %9 = alloca %struct.TPPLPoint, align 8
  %10 = alloca %struct.TPPLPoint, align 8
  %11 = alloca %struct.TPPLPoint, align 8
  %12 = alloca %struct.TPPLPoint, align 8
  %13 = alloca %struct.TPPLPoint, align 8
  %14 = alloca %class.TPPLPoly, align 8
  %15 = alloca %"struct.std::_List_iterator", align 8
  %16 = alloca %"struct.std::_List_iterator", align 8
  %17 = alloca %"struct.std::_List_iterator", align 8
  %18 = alloca %"struct.std::_List_iterator", align 8
  %19 = alloca %struct.TPPLPoint, align 8
  %20 = alloca %struct.TPPLPoint, align 8
  %21 = alloca %"struct.std::_List_iterator", align 8
  %22 = alloca %"struct.std::_List_const_iterator", align 8
  %23 = alloca %"struct.std::_List_const_iterator", align 8
  %24 = alloca %"struct.std::_List_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  invoke void @_ZN8TPPLPolyC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %14)
          to label %25 unwind label %31

25:                                               ; preds = %3
  %26 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %26, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  %27 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %27, ptr %15, align 8
  %28 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br i1 %28, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %25, %33
  %29 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %30 = call noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %29)
  br i1 %30, label %45, label %33

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %220

.loopexit111:                                     ; preds = %.lr.ph182
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %147
  %lpad.loopexit113 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %169, %._crit_edge180
  %lpad.loopexit124 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph142
  %lpad.loopexit127 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %45
  %lpad.loopexit.split-lp128 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

33:                                               ; preds = %.lr.ph
  %34 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  %35 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %35, ptr %15, align 8
  %36 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  br i1 %36, label %.lr.ph, label %.critedge, !llvm.loop !9

.critedge:                                        ; preds = %33, %25
  %37 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %37, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %38 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %38, ptr %16, align 8
  %39 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br i1 %39, label %.lr.ph142, label %.loopexit

.lr.ph142:                                        ; preds = %.critedge, %41
  %40 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(17) %40)
          to label %41 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

41:                                               ; preds = %.lr.ph142
  %42 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %43 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  store ptr %43, ptr %16, align 8
  %44 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br i1 %44, label %.lr.ph142, label %.loopexit, !llvm.loop !11

45:                                               ; preds = %.lr.ph
  %46 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %.preheader122 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

.preheader122:                                    ; preds = %45
  %47 = getelementptr inbounds i8, ptr %19, i64 8
  %48 = getelementptr inbounds i8, ptr %20, i64 8
  br label %49

49:                                               ; preds = %.preheader122, %._crit_edge180
  %.083 = phi i64 [ %.487, %._crit_edge180 ], [ undef, %.preheader122 ]
  %.078 = phi i64 [ %.5, %._crit_edge180 ], [ undef, %.preheader122 ]
  %50 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %50, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %51 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %51, ptr %17, align 8
  %52 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  br i1 %52, label %.lr.ph148, label %._crit_edge.thread

.lr.ph148:                                        ; preds = %49, %.loopexit118
  %.179147 = phi i64 [ %.5, %.loopexit118 ], [ %.078, %49 ]
  %.193146 = phi i8 [ %.395, %.loopexit118 ], [ 0, %49 ]
  %53 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %54 = call noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %53)
  br i1 %54, label %55, label %.loopexit118

55:                                               ; preds = %.lr.ph148
  %56 = trunc nuw i8 %.193146 to i1
  br i1 %56, label %59, label %57

57:                                               ; preds = %55
  %58 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %58, ptr %5, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %57, %55
  %.294 = phi i8 [ %.193146, %55 ], [ 1, %57 ]
  %.280 = phi i64 [ %.179147, %55 ], [ 0, %57 ]
  %60 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %61 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %60)
  %62 = icmp sgt i64 %61, 0
  br i1 %62, label %.lr.ph145, label %.loopexit118

.lr.ph145:                                        ; preds = %59, %72
  %.073144 = phi i64 [ %73, %72 ], [ 0, %59 ]
  %.381143 = phi i64 [ %.482, %72 ], [ %.280, %59 ]
  %63 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %63, i64 noundef %.073144)
  %65 = load double, ptr %64, align 8, !tbaa !12
  %66 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %66, i64 noundef %.381143)
  %68 = load double, ptr %67, align 8, !tbaa !12
  %69 = fcmp ogt double %65, %68
  br i1 %69, label %70, label %72

70:                                               ; preds = %.lr.ph145
  %71 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %71, ptr %5, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %.lr.ph145, %70
  %.482 = phi i64 [ %.073144, %70 ], [ %.381143, %.lr.ph145 ]
  %73 = add nuw nsw i64 %.073144, 1
  %74 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %75 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %74)
  %76 = icmp slt i64 %73, %75
  br i1 %76, label %.lr.ph145, label %.loopexit118, !llvm.loop !15

.loopexit118:                                     ; preds = %72, %59, %.lr.ph148
  %.395 = phi i8 [ %.193146, %.lr.ph148 ], [ %.294, %59 ], [ %.294, %72 ]
  %.5 = phi i64 [ %.179147, %.lr.ph148 ], [ %.280, %59 ], [ %.482, %72 ]
  %77 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %78 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %78, ptr %17, align 8
  %79 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  br i1 %79, label %.lr.ph148, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %.loopexit118
  %80 = trunc nuw i8 %.395 to i1
  br i1 %80, label %81, label %._crit_edge.thread

81:                                               ; preds = %._crit_edge
  %82 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %82, i64 noundef %.5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %83, i64 16, i1 false), !tbaa.struct !17
  %84 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %84, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  %85 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %85, ptr %18, align 8
  %86 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br i1 %86, label %.lr.ph163, label %.loopexit

.lr.ph163:                                        ; preds = %81, %.loopexit117
  %.184161 = phi i64 [ %.487, %.loopexit117 ], [ %.083, %81 ]
  %.0100160 = phi i8 [ %.3103, %.loopexit117 ], [ 0, %81 ]
  %87 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %88 = call noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %87)
  br i1 %88, label %.loopexit117, label %.preheader116

.preheader116:                                    ; preds = %.lr.ph163
  %89 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %90 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %89)
  %91 = icmp sgt i64 %90, 0
  br i1 %91, label %.lr.ph157, label %.loopexit117

.lr.ph157:                                        ; preds = %.preheader116, %.thread109
  %.1156 = phi i64 [ %.pre-phi, %.thread109 ], [ 0, %.preheader116 ]
  %.285155 = phi i64 [ %.386, %.thread109 ], [ %.184161, %.preheader116 ]
  %.1101154 = phi i8 [ %.2102, %.thread109 ], [ %.0100160, %.preheader116 ]
  %92 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %92, i64 noundef %.1156)
  %94 = load double, ptr %93, align 8, !tbaa !12
  %95 = load double, ptr %9, align 8, !tbaa !12
  %96 = fcmp ugt double %94, %95
  br i1 %96, label %97, label %.lr.ph157..thread109_crit_edge

.lr.ph157..thread109_crit_edge:                   ; preds = %.lr.ph157
  %.pre = add nuw nsw i64 %.1156, 1
  br label %.thread109

97:                                               ; preds = %.lr.ph157
  %98 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %99 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %100 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %99)
  %101 = add nsw i64 %.1156, -1
  %102 = add i64 %101, %100
  %103 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %104 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %103)
  %105 = srem i64 %102, %104
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %98, i64 noundef %105)
  %107 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %107, i64 noundef %.1156)
  %109 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %110 = add nuw nsw i64 %.1156, 1
  %111 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %112 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %111)
  %113 = srem i64 %110, %112
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %109, i64 noundef %113)
  %115 = call noundef zeroext i1 @_ZN13TPPLPartition6InConeER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef nonnull align 8 dereferenceable(16) %9)
  br i1 %115, label %116, label %.thread109

116:                                              ; preds = %97
  %117 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %117, i64 noundef %.1156)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %118, i64 16, i1 false), !tbaa.struct !17
  %119 = trunc nuw i8 %.1101154 to i1
  br i1 %119, label %120, label %138

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #4
  %121 = call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %122 = extractvalue { double, double } %121, 0
  store double %122, ptr %19, align 8
  %123 = extractvalue { double, double } %121, 1
  store double %123, ptr %47, align 8
  %124 = invoke { double, double } @_ZN13TPPLPartition9NormalizeERK9TPPLPoint(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %125 unwind label %134

125:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #4
  %126 = call { double, double } @_ZNK9TPPLPointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %127 = extractvalue { double, double } %126, 0
  store double %127, ptr %20, align 8
  %128 = extractvalue { double, double } %126, 1
  store double %128, ptr %48, align 8
  %129 = invoke { double, double } @_ZN13TPPLPartition9NormalizeERK9TPPLPoint(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %130 unwind label %136

130:                                              ; preds = %125
  %131 = extractvalue { double, double } %124, 0
  %132 = extractvalue { double, double } %129, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #4
  %133 = fcmp ogt double %132, %131
  br i1 %133, label %.thread109, label %138

134:                                              ; preds = %120
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #4
  br label %.loopexit.split-lp

136:                                              ; preds = %125
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #4
  br label %.loopexit.split-lp

138:                                              ; preds = %130, %116
  %139 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %139, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #4
  %140 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %140, ptr %21, align 8
  %141 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #4
  br i1 %141, label %.lr.ph152, label %._crit_edge153

.lr.ph152:                                        ; preds = %138, %.loopexit112
  %142 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %143 = call noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17) %142)
  br i1 %143, label %.loopexit112, label %.preheader

.preheader:                                       ; preds = %.lr.ph152, %157
  %.074 = phi i64 [ %151, %157 ], [ 0, %.lr.ph152 ]
  %144 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %145 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %144)
  %146 = icmp slt i64 %.074, %145
  br i1 %146, label %147, label %.loopexit112

147:                                              ; preds = %.preheader
  %148 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %148, i64 noundef %.074)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %149, i64 16, i1 false), !tbaa.struct !17
  %150 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %151 = add nuw nsw i64 %.074, 1
  %152 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %153 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %152)
  %154 = srem i64 %151, %153
  %155 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %150, i64 noundef %154)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %155, i64 16, i1 false), !tbaa.struct !17
  %156 = invoke noundef i32 @_ZN13TPPLPartition10IntersectsER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %157 unwind label %.loopexit.split-lp.loopexit

157:                                              ; preds = %147
  %.not107 = icmp eq i32 %156, 0
  br i1 %.not107, label %.preheader, label %.thread109, !llvm.loop !19

.loopexit112:                                     ; preds = %.preheader, %.lr.ph152
  %158 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #4
  %159 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %159, ptr %21, align 8
  %160 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #4
  br i1 %160, label %.lr.ph152, label %._crit_edge153, !llvm.loop !20

._crit_edge153:                                   ; preds = %.loopexit112, %138
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %10, i64 16, i1 false), !tbaa.struct !17
  %161 = load i64, ptr %7, align 8, !tbaa !5
  store i64 %161, ptr %6, align 8, !tbaa !5
  br label %.thread109

.thread109:                                       ; preds = %157, %.lr.ph157..thread109_crit_edge, %._crit_edge153, %130, %97
  %.pre-phi = phi i64 [ %.pre, %.lr.ph157..thread109_crit_edge ], [ %110, %._crit_edge153 ], [ %110, %130 ], [ %110, %97 ], [ %110, %157 ]
  %.2102 = phi i8 [ %.1101154, %.lr.ph157..thread109_crit_edge ], [ 1, %._crit_edge153 ], [ %.1101154, %130 ], [ %.1101154, %97 ], [ %.1101154, %157 ]
  %.386 = phi i64 [ %.285155, %.lr.ph157..thread109_crit_edge ], [ %.1156, %._crit_edge153 ], [ %.285155, %130 ], [ %.285155, %97 ], [ %.285155, %157 ]
  %162 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %163 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %162)
  %164 = icmp slt i64 %.pre-phi, %163
  br i1 %164, label %.lr.ph157, label %.loopexit117, !llvm.loop !21

.loopexit117:                                     ; preds = %.thread109, %.preheader116, %.lr.ph163
  %.3103 = phi i8 [ %.0100160, %.lr.ph163 ], [ %.0100160, %.preheader116 ], [ %.2102, %.thread109 ]
  %.487 = phi i64 [ %.184161, %.lr.ph163 ], [ %.184161, %.preheader116 ], [ %.386, %.thread109 ]
  %165 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  %166 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %166, ptr %18, align 8
  %167 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br i1 %167, label %.lr.ph163, label %._crit_edge164, !llvm.loop !22

._crit_edge164:                                   ; preds = %.loopexit117
  %168 = trunc nuw i8 %.3103 to i1
  br i1 %168, label %169, label %.loopexit

169:                                              ; preds = %._crit_edge164
  %170 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %171 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %170)
  %172 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %173 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %172)
  %174 = add i64 %171, 2
  %175 = add i64 %174, %173
  invoke void @_ZN8TPPLPoly4InitEl(ptr noundef nonnull align 8 dereferenceable(17) %14, i64 noundef %175)
          to label %.preheader121 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader121:                                    ; preds = %169
  %.not167 = icmp slt i64 %.487, 0
  br i1 %.not167, label %.preheader120, label %.lr.ph170.preheader

.lr.ph170.preheader:                              ; preds = %.preheader121
  %176 = add nuw i64 %.487, 1
  br label %.lr.ph170

.preheader120:                                    ; preds = %.lr.ph170, %.preheader121
  %.175.lcssa = phi i64 [ 0, %.preheader121 ], [ %176, %.lr.ph170 ]
  %177 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %178 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %177)
  %.not104172 = icmp slt i64 %178, 0
  br i1 %.not104172, label %.preheader119, label %.lr.ph175

.lr.ph170:                                        ; preds = %.lr.ph170.preheader, %.lr.ph170
  %.2169 = phi i64 [ %183, %.lr.ph170 ], [ 0, %.lr.ph170.preheader ]
  %179 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %180 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %179, i64 noundef %.2169)
  %181 = trunc i64 %.2169 to i32
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %14, i32 noundef %181)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %182, ptr noundef nonnull align 8 dereferenceable(16) %180, i64 16, i1 false), !tbaa.struct !17
  %183 = add nuw i64 %.2169, 1
  %exitcond.not = icmp eq i64 %.2169, %.487
  br i1 %exitcond.not, label %.preheader120, label %.lr.ph170, !llvm.loop !23

.preheader119:                                    ; preds = %.lr.ph175, %.preheader120
  %.276.lcssa = phi i64 [ %.175.lcssa, %.preheader120 ], [ %195, %.lr.ph175 ]
  %184 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %185 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %184)
  %186 = icmp slt i64 %.487, %185
  br i1 %186, label %.lr.ph179, label %._crit_edge180

.lr.ph175:                                        ; preds = %.preheader120, %.lr.ph175
  %.3174 = phi i64 [ %196, %.lr.ph175 ], [ 0, %.preheader120 ]
  %.276173 = phi i64 [ %195, %.lr.ph175 ], [ %.175.lcssa, %.preheader120 ]
  %187 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %188 = add nsw i64 %.3174, %.5
  %189 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %190 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %189)
  %191 = srem i64 %188, %190
  %192 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %187, i64 noundef %191)
  %193 = trunc i64 %.276173 to i32
  %194 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %14, i32 noundef %193)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %194, ptr noundef nonnull align 8 dereferenceable(16) %192, i64 16, i1 false), !tbaa.struct !17
  %195 = add nuw nsw i64 %.276173, 1
  %196 = add nuw nsw i64 %.3174, 1
  %197 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %198 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %197)
  %.not104.not = icmp slt i64 %.3174, %198
  br i1 %.not104.not, label %.lr.ph175, label %.preheader119, !llvm.loop !24

.lr.ph179:                                        ; preds = %.preheader119, %.lr.ph179
  %.4178 = phi i64 [ %204, %.lr.ph179 ], [ %.487, %.preheader119 ]
  %.377177 = phi i64 [ %203, %.lr.ph179 ], [ %.276.lcssa, %.preheader119 ]
  %199 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %200 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %199, i64 noundef %.4178)
  %201 = trunc i64 %.377177 to i32
  %202 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %14, i32 noundef %201)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %202, ptr noundef nonnull align 8 dereferenceable(16) %200, i64 16, i1 false), !tbaa.struct !17
  %203 = add nuw nsw i64 %.377177, 1
  %204 = add nsw i64 %.4178, 1
  %205 = call noundef ptr @_ZNKSt14_List_iteratorI8TPPLPolyEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %206 = call noundef i64 @_ZN8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %205)
  %207 = icmp slt i64 %204, %206
  br i1 %207, label %.lr.ph179, label %._crit_edge180, !llvm.loop !25

._crit_edge180:                                   ; preds = %.lr.ph179, %.preheader119
  call void @_ZNSt20_List_const_iteratorI8TPPLPolyEC2ERKSt14_List_iteratorIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %208 = load ptr, ptr %22, align 8
  %209 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5eraseESt20_List_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %208) #4
  call void @_ZNSt20_List_const_iteratorI8TPPLPolyEC2ERKSt14_List_iteratorIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %210 = load ptr, ptr %23, align 8
  %211 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5eraseESt20_List_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %210) #4
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(17) %14)
          to label %49 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit, !llvm.loop !26

._crit_edge.thread:                               ; preds = %49, %._crit_edge
  %212 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %212, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #4
  %213 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %213, ptr %24, align 8
  %214 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
  br i1 %214, label %.lr.ph182, label %.loopexit

.lr.ph182:                                        ; preds = %._crit_edge.thread, %216
  %215 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(17) %215)
          to label %216 unwind label %.loopexit111

216:                                              ; preds = %.lr.ph182
  %217 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #4
  %218 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  store ptr %218, ptr %24, align 8
  %219 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
  br i1 %219, label %.lr.ph182, label %.loopexit, !llvm.loop !27

.loopexit:                                        ; preds = %41, %81, %._crit_edge164, %216, %.critedge, %._crit_edge.thread
  %.0 = phi i32 [ 1, %._crit_edge.thread ], [ 1, %.critedge ], [ 1, %216 ], [ 0, %._crit_edge164 ], [ 0, %81 ], [ 1, %41 ]
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret i32 %.0

.loopexit.split-lp:                               ; preds = %.loopexit111, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit, %136, %134
  %.pn = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ], [ %lpad.loopexit, %.loopexit111 ], [ %lpad.loopexit113, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit124, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit127, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp128, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %14) #4
  br label %220

220:                                              ; preds = %.loopexit.split-lp, %31
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.split-lp ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8TPPLPoly6IsHoleEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13TPPLPartition6InConeER9TPPLPointS1_S1_S1_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

declare void @_ZN8TPPLPolyC1Ev(ptr) local_unnamed_addr

declare void @_ZN8TPPLPolyD1Ev(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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS9TPPLPoint", !14, i64 0, !14, i64 8}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{i64 0, i64 8, !18, i64 8, i64 8, !18}
!18 = !{!14, !14, i64 0}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}


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