; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/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 }
%class.TPPLPoly = type <{ ptr, i64, i8, [7 x i8] }>
%struct.TPPLPoint = type { double, double, i32 }
%"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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN13TPPLPartition18ConvexPartition_HMEP8TPPLPolyPNSt7__cxx114listIS0_SaIS0_EEE(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 ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %class.TPPLPoly, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.TPPLPoint, 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 i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i8, align 1
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %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 %"struct.std::_List_const_iterator", align 8
  %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
  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
  %42 = load ptr, ptr %5, align 8
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZNK8TPPLPoly5ValidEv(ptr noundef nonnull align 8 dereferenceable(17) %43)
  br i1 %44, label %46, label %45

45:                                               ; preds = %3
  store i32 0, ptr %4, align 4
  br label %389

46:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  call void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  invoke void @_ZN8TPPLPolyC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %13)
          to label %47 unwind label %62

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  store i64 0, ptr %30, align 8, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %48

48:                                               ; preds = %100, %47
  %49 = load i64, ptr %21, align 8, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %50)
          to label %52 unwind label %66

52:                                               ; preds = %48
  %53 = icmp slt i64 %49, %51
  br i1 %53, label %54, label %103

54:                                               ; preds = %52
  %55 = load i64, ptr %21, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %57, label %70

57:                                               ; preds = %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %58)
          to label %60 unwind label %66

60:                                               ; preds = %57
  %61 = sub nsw i64 %59, 1
  store i64 %61, ptr %22, align 8, !tbaa !9
  br label %73

62:                                               ; preds = %46
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %14, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %15, align 4
  br label %388

66:                                               ; preds = %379, %356, %349, %342, %338, %325, %318, %314, %305, %302, %299, %292, %284, %277, %266, %262, %255, %244, %240, %232, %225, %198, %187, %182, %171, %161, %155, %140, %135, %131, %125, %110, %106, %92, %88, %84, %73, %57, %48
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %14, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %13) #5
  br label %388

70:                                               ; preds = %54
  %71 = load i64, ptr %21, align 8, !tbaa !9
  %72 = sub nsw i64 %71, 1
  store i64 %72, ptr %22, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %70, %60
  %74 = load i64, ptr %21, align 8, !tbaa !9
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %75)
          to label %77 unwind label %66

77:                                               ; preds = %73
  %78 = sub nsw i64 %76, 1
  %79 = icmp eq i64 %74, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %84

81:                                               ; preds = %77
  %82 = load i64, ptr %21, align 8, !tbaa !9
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %25, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %81, %80
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load i64, ptr %22, align 8, !tbaa !9
  %87 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %85, i64 noundef %86)
          to label %88 unwind label %66

88:                                               ; preds = %84
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i64, ptr %21, align 8, !tbaa !9
  %91 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %89, i64 noundef %90)
          to label %92 unwind label %66

92:                                               ; preds = %88
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load i64, ptr %25, align 8, !tbaa !9
  %95 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %93, i64 noundef %94)
          to label %96 unwind label %66

96:                                               ; preds = %92
  %97 = call noundef zeroext i1 @_ZN13TPPLPartition8IsReflexER9TPPLPointS1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %42, ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 8 dereferenceable(24) %95)
  br i1 %97, label %98, label %99

98:                                               ; preds = %96
  store i64 1, ptr %30, align 8, !tbaa !9
  br label %103

99:                                               ; preds = %96
  br label %100

100:                                              ; preds = %99
  %101 = load i64, ptr %21, align 8, !tbaa !9
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %21, align 8, !tbaa !9
  br label %48, !llvm.loop !11

103:                                              ; preds = %98, %52
  %104 = load i64, ptr %30, align 8, !tbaa !9
  %105 = icmp eq i64 %104, 0
  br i1 %105, label %106, label %110

106:                                              ; preds = %103
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(17) %108)
          to label %109 unwind label %66

109:                                              ; preds = %106
  store i32 1, ptr %4, align 4
  store i32 1, ptr %31, align 4
  br label %387

110:                                              ; preds = %103
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = invoke noundef i32 @_ZN13TPPLPartition14Triangulate_ECEP8TPPLPolyPNSt7__cxx114listIS0_SaIS0_EEE(ptr noundef nonnull align 1 dereferenceable(1) %42, ptr noundef %111, ptr noundef %8)
          to label %113 unwind label %66

113:                                              ; preds = %110
  %114 = icmp ne i32 %112, 0
  br i1 %114, label %116, label %115

115:                                              ; preds = %113
  store i32 0, ptr %4, align 4
  store i32 1, ptr %31, align 4
  br label %387

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %117 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %118 = getelementptr inbounds %"struct.std::_List_iterator", ptr %32, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %32, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %119

119:                                              ; preds = %369, %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %120 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %121 = getelementptr inbounds %"struct.std::_List_iterator", ptr %33, i32 0, i32 0
  store ptr %120, ptr %121, align 8
  %122 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br i1 %122, label %123, label %372

123:                                              ; preds = %119
  %124 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  store ptr %124, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %365, %123
  %126 = load i64, ptr %21, align 8, !tbaa !9
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %127)
          to label %129 unwind label %66

129:                                              ; preds = %125
  %130 = icmp slt i64 %126, %128
  br i1 %130, label %131, label %368

131:                                              ; preds = %129
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load i64, ptr %21, align 8, !tbaa !9
  %134 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %132, i64 noundef %133)
          to label %135 unwind label %66

135:                                              ; preds = %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %134, i64 24, i1 false), !tbaa.struct !14
  %136 = load i64, ptr %21, align 8, !tbaa !9
  %137 = add nsw i64 %136, 1
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %138)
          to label %140 unwind label %66

140:                                              ; preds = %135
  %141 = srem i64 %137, %139
  store i64 %141, ptr %22, align 8, !tbaa !9
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load i64, ptr %22, align 8, !tbaa !9
  %144 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %142, i64 noundef %143)
          to label %145 unwind label %66

145:                                              ; preds = %140
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %144, i64 24, i1 false), !tbaa.struct !14
  store i8 0, ptr %29, align 1, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %9, i64 8, i1 false), !tbaa.struct !13
  br label %146

146:                                              ; preds = %218, %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %147 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %148 = getelementptr inbounds %"struct.std::_List_iterator", ptr %34, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  %149 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br i1 %149, label %150, label %221

150:                                              ; preds = %146
  %151 = call noundef zeroext i1 @_ZSteqRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %151, label %152, label %153

152:                                              ; preds = %150
  br label %218

153:                                              ; preds = %150
  %154 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr %154, ptr %12, align 8, !tbaa !5
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %210, %153
  %156 = load i64, ptr %23, align 8, !tbaa !9
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %157)
          to label %159 unwind label %66

159:                                              ; preds = %155
  %160 = icmp slt i64 %156, %158
  br i1 %160, label %161, label %213

161:                                              ; preds = %159
  %162 = getelementptr inbounds %struct.TPPLPoint, ptr %17, i32 0, i32 0
  %163 = load double, ptr %162, align 8, !tbaa !21
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = load i64, ptr %23, align 8, !tbaa !9
  %166 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %164, i64 noundef %165)
          to label %167 unwind label %66

167:                                              ; preds = %161
  %168 = getelementptr inbounds %struct.TPPLPoint, ptr %166, i32 0, i32 0
  %169 = load double, ptr %168, align 8, !tbaa !21
  %170 = fcmp une double %163, %169
  br i1 %170, label %181, label %171

171:                                              ; preds = %167
  %172 = getelementptr inbounds %struct.TPPLPoint, ptr %17, i32 0, i32 1
  %173 = load double, ptr %172, align 8, !tbaa !23
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = load i64, ptr %23, align 8, !tbaa !9
  %176 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %174, i64 noundef %175)
          to label %177 unwind label %66

177:                                              ; preds = %171
  %178 = getelementptr inbounds %struct.TPPLPoint, ptr %176, i32 0, i32 1
  %179 = load double, ptr %178, align 8, !tbaa !23
  %180 = fcmp une double %173, %179
  br i1 %180, label %181, label %182

181:                                              ; preds = %177, %167
  br label %210

182:                                              ; preds = %177
  %183 = load i64, ptr %23, align 8, !tbaa !9
  %184 = add nsw i64 %183, 1
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %185)
          to label %187 unwind label %66

187:                                              ; preds = %182
  %188 = srem i64 %184, %186
  store i64 %188, ptr %24, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.TPPLPoint, ptr %16, i32 0, i32 0
  %190 = load double, ptr %189, align 8, !tbaa !21
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = load i64, ptr %24, align 8, !tbaa !9
  %193 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %191, i64 noundef %192)
          to label %194 unwind label %66

194:                                              ; preds = %187
  %195 = getelementptr inbounds %struct.TPPLPoint, ptr %193, i32 0, i32 0
  %196 = load double, ptr %195, align 8, !tbaa !21
  %197 = fcmp une double %190, %196
  br i1 %197, label %208, label %198

198:                                              ; preds = %194
  %199 = getelementptr inbounds %struct.TPPLPoint, ptr %16, i32 0, i32 1
  %200 = load double, ptr %199, align 8, !tbaa !23
  %201 = load ptr, ptr %12, align 8, !tbaa !5
  %202 = load i64, ptr %24, align 8, !tbaa !9
  %203 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %201, i64 noundef %202)
          to label %204 unwind label %66

204:                                              ; preds = %198
  %205 = getelementptr inbounds %struct.TPPLPoint, ptr %203, i32 0, i32 1
  %206 = load double, ptr %205, align 8, !tbaa !23
  %207 = fcmp une double %200, %206
  br i1 %207, label %208, label %209

208:                                              ; preds = %204, %194
  br label %210

209:                                              ; preds = %204
  store i8 1, ptr %29, align 1, !tbaa !19
  br label %213

210:                                              ; preds = %208, %181
  %211 = load i64, ptr %23, align 8, !tbaa !9
  %212 = add nsw i64 %211, 1
  store i64 %212, ptr %23, align 8, !tbaa !9
  br label %155, !llvm.loop !24

213:                                              ; preds = %209, %159
  %214 = load i8, ptr %29, align 1, !tbaa !19, !range !25, !noundef !26
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %217

216:                                              ; preds = %213
  br label %221

217:                                              ; preds = %213
  br label %218

218:                                              ; preds = %217, %152
  %219 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #5
  %220 = getelementptr inbounds %"struct.std::_List_iterator", ptr %35, i32 0, i32 0
  store ptr %219, ptr %220, align 8
  br label %146, !llvm.loop !27

221:                                              ; preds = %216, %146
  %222 = load i8, ptr %29, align 1, !tbaa !19, !range !25, !noundef !26
  %223 = trunc i8 %222 to i1
  br i1 %223, label %225, label %224

224:                                              ; preds = %221
  br label %365

225:                                              ; preds = %221
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = load i64, ptr %21, align 8, !tbaa !9
  %228 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %226, i64 noundef %227)
          to label %229 unwind label %66

229:                                              ; preds = %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %228, i64 24, i1 false), !tbaa.struct !14
  %230 = load i64, ptr %21, align 8, !tbaa !9
  %231 = icmp eq i64 %230, 0
  br i1 %231, label %232, label %237

232:                                              ; preds = %229
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %233)
          to label %235 unwind label %66

235:                                              ; preds = %232
  %236 = sub nsw i64 %234, 1
  store i64 %236, ptr %25, align 8, !tbaa !9
  br label %240

237:                                              ; preds = %229
  %238 = load i64, ptr %21, align 8, !tbaa !9
  %239 = sub nsw i64 %238, 1
  store i64 %239, ptr %25, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %237, %235
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = load i64, ptr %25, align 8, !tbaa !9
  %243 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %241, i64 noundef %242)
          to label %244 unwind label %66

244:                                              ; preds = %240
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %243, i64 24, i1 false), !tbaa.struct !14
  %245 = load i64, ptr %24, align 8, !tbaa !9
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  %247 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %246)
          to label %248 unwind label %66

248:                                              ; preds = %244
  %249 = sub nsw i64 %247, 1
  %250 = icmp eq i64 %245, %249
  br i1 %250, label %251, label %252

251:                                              ; preds = %248
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %255

252:                                              ; preds = %248
  %253 = load i64, ptr %24, align 8, !tbaa !9
  %254 = add nsw i64 %253, 1
  store i64 %254, ptr %26, align 8, !tbaa !9
  br label %255

255:                                              ; preds = %252, %251
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = load i64, ptr %26, align 8, !tbaa !9
  %258 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %256, i64 noundef %257)
          to label %259 unwind label %66

259:                                              ; preds = %255
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %258, i64 24, i1 false), !tbaa.struct !14
  %260 = call noundef zeroext i1 @_ZN13TPPLPartition8IsConvexER9TPPLPointS1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %42, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  br i1 %260, label %262, label %261

261:                                              ; preds = %259
  br label %365

262:                                              ; preds = %259
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = load i64, ptr %22, align 8, !tbaa !9
  %265 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %263, i64 noundef %264)
          to label %266 unwind label %66

266:                                              ; preds = %262
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %265, i64 24, i1 false), !tbaa.struct !14
  %267 = load i64, ptr %22, align 8, !tbaa !9
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %268)
          to label %270 unwind label %66

270:                                              ; preds = %266
  %271 = sub nsw i64 %269, 1
  %272 = icmp eq i64 %267, %271
  br i1 %272, label %273, label %274

273:                                              ; preds = %270
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %277

274:                                              ; preds = %270
  %275 = load i64, ptr %22, align 8, !tbaa !9
  %276 = add nsw i64 %275, 1
  store i64 %276, ptr %25, align 8, !tbaa !9
  br label %277

277:                                              ; preds = %274, %273
  %278 = load ptr, ptr %11, align 8, !tbaa !5
  %279 = load i64, ptr %25, align 8, !tbaa !9
  %280 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %278, i64 noundef %279)
          to label %281 unwind label %66

281:                                              ; preds = %277
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %280, i64 24, i1 false), !tbaa.struct !14
  %282 = load i64, ptr %23, align 8, !tbaa !9
  %283 = icmp eq i64 %282, 0
  br i1 %283, label %284, label %289

284:                                              ; preds = %281
  %285 = load ptr, ptr %12, align 8, !tbaa !5
  %286 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %285)
          to label %287 unwind label %66

287:                                              ; preds = %284
  %288 = sub nsw i64 %286, 1
  store i64 %288, ptr %26, align 8, !tbaa !9
  br label %292

289:                                              ; preds = %281
  %290 = load i64, ptr %23, align 8, !tbaa !9
  %291 = sub nsw i64 %290, 1
  store i64 %291, ptr %26, align 8, !tbaa !9
  br label %292

292:                                              ; preds = %289, %287
  %293 = load ptr, ptr %12, align 8, !tbaa !5
  %294 = load i64, ptr %26, align 8, !tbaa !9
  %295 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %293, i64 noundef %294)
          to label %296 unwind label %66

296:                                              ; preds = %292
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %295, i64 24, i1 false), !tbaa.struct !14
  %297 = call noundef zeroext i1 @_ZN13TPPLPartition8IsConvexER9TPPLPointS1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %42, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
  br i1 %297, label %299, label %298

298:                                              ; preds = %296
  br label %365

299:                                              ; preds = %296
  %300 = load ptr, ptr %11, align 8, !tbaa !5
  %301 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %300)
          to label %302 unwind label %66

302:                                              ; preds = %299
  %303 = load ptr, ptr %12, align 8, !tbaa !5
  %304 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %303)
          to label %305 unwind label %66

305:                                              ; preds = %302
  %306 = add nsw i64 %301, %304
  %307 = sub nsw i64 %306, 2
  invoke void @_ZN8TPPLPoly4InitEl(ptr noundef nonnull align 8 dereferenceable(17) %13, i64 noundef %307)
          to label %308 unwind label %66

308:                                              ; preds = %305
  store i64 0, ptr %28, align 8, !tbaa !9
  %309 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %309, ptr %27, align 8, !tbaa !9
  br label %310

310:                                              ; preds = %330, %308
  %311 = load i64, ptr %27, align 8, !tbaa !9
  %312 = load i64, ptr %21, align 8, !tbaa !9
  %313 = icmp ne i64 %311, %312
  br i1 %313, label %314, label %332

314:                                              ; preds = %310
  %315 = load ptr, ptr %11, align 8, !tbaa !5
  %316 = load i64, ptr %27, align 8, !tbaa !9
  %317 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %315, i64 noundef %316)
          to label %318 unwind label %66

318:                                              ; preds = %314
  %319 = load i64, ptr %28, align 8, !tbaa !9
  %320 = trunc i64 %319 to i32
  %321 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %13, i32 noundef %320)
          to label %322 unwind label %66

322:                                              ; preds = %318
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %321, ptr align 8 %317, i64 24, i1 false), !tbaa.struct !14
  %323 = load i64, ptr %28, align 8, !tbaa !9
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %28, align 8, !tbaa !9
  br label %325

325:                                              ; preds = %322
  %326 = load i64, ptr %27, align 8, !tbaa !9
  %327 = add nsw i64 %326, 1
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %328)
          to label %330 unwind label %66

330:                                              ; preds = %325
  %331 = srem i64 %327, %329
  store i64 %331, ptr %27, align 8, !tbaa !9
  br label %310, !llvm.loop !28

332:                                              ; preds = %310
  %333 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %333, ptr %27, align 8, !tbaa !9
  br label %334

334:                                              ; preds = %354, %332
  %335 = load i64, ptr %27, align 8, !tbaa !9
  %336 = load i64, ptr %23, align 8, !tbaa !9
  %337 = icmp ne i64 %335, %336
  br i1 %337, label %338, label %356

338:                                              ; preds = %334
  %339 = load ptr, ptr %12, align 8, !tbaa !5
  %340 = load i64, ptr %27, align 8, !tbaa !9
  %341 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %339, i64 noundef %340)
          to label %342 unwind label %66

342:                                              ; preds = %338
  %343 = load i64, ptr %28, align 8, !tbaa !9
  %344 = trunc i64 %343 to i32
  %345 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %13, i32 noundef %344)
          to label %346 unwind label %66

346:                                              ; preds = %342
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %345, ptr align 8 %341, i64 24, i1 false), !tbaa.struct !14
  %347 = load i64, ptr %28, align 8, !tbaa !9
  %348 = add nsw i64 %347, 1
  store i64 %348, ptr %28, align 8, !tbaa !9
  br label %349

349:                                              ; preds = %346
  %350 = load i64, ptr %27, align 8, !tbaa !9
  %351 = add nsw i64 %350, 1
  %352 = load ptr, ptr %12, align 8, !tbaa !5
  %353 = invoke noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %352)
          to label %354 unwind label %66

354:                                              ; preds = %349
  %355 = srem i64 %351, %353
  store i64 %355, ptr %27, align 8, !tbaa !9
  br label %334, !llvm.loop !29

356:                                              ; preds = %334
  call void @_ZNSt20_List_const_iteratorI8TPPLPolyEC2ERKSt14_List_iteratorIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %357 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %36, i32 0, i32 0
  %358 = load ptr, ptr %357, align 8
  %359 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5eraseESt20_List_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr %358) #5
  %360 = getelementptr inbounds %"struct.std::_List_iterator", ptr %37, i32 0, i32 0
  store ptr %359, ptr %360, align 8
  %361 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %362 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZN8TPPLPolyaSERKS_(ptr noundef nonnull align 8 dereferenceable(17) %361, ptr noundef nonnull align 8 dereferenceable(17) %13)
          to label %363 unwind label %66

363:                                              ; preds = %356
  %364 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  store ptr %364, ptr %11, align 8, !tbaa !5
  store i64 -1, ptr %21, align 8, !tbaa !9
  br label %365

365:                                              ; preds = %363, %298, %261, %224
  %366 = load i64, ptr %21, align 8, !tbaa !9
  %367 = add nsw i64 %366, 1
  store i64 %367, ptr %21, align 8, !tbaa !9
  br label %125, !llvm.loop !30

368:                                              ; preds = %129
  br label %369

369:                                              ; preds = %368
  %370 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #5
  %371 = getelementptr inbounds %"struct.std::_List_iterator", ptr %38, i32 0, i32 0
  store ptr %370, ptr %371, align 8
  br label %119, !llvm.loop !31

372:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  %373 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %374 = getelementptr inbounds %"struct.std::_List_iterator", ptr %39, i32 0, i32 0
  store ptr %373, ptr %374, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %39, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  br label %375

375:                                              ; preds = %383, %372
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %376 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %377 = getelementptr inbounds %"struct.std::_List_iterator", ptr %40, i32 0, i32 0
  store ptr %376, ptr %377, align 8
  %378 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br i1 %378, label %379, label %386

379:                                              ; preds = %375
  %380 = load ptr, ptr %7, align 8, !tbaa !5
  %381 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %380, ptr noundef nonnull align 8 dereferenceable(17) %381)
          to label %382 unwind label %66

382:                                              ; preds = %379
  br label %383

383:                                              ; preds = %382
  %384 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #5
  %385 = getelementptr inbounds %"struct.std::_List_iterator", ptr %41, i32 0, i32 0
  store ptr %384, ptr %385, align 8
  br label %375, !llvm.loop !32

386:                                              ; preds = %375
  store i32 1, ptr %4, align 4
  store i32 1, ptr %31, align 4
  br label %387

387:                                              ; preds = %386, %115, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  br label %389

388:                                              ; preds = %66, %62
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  br label %391

389:                                              ; preds = %387, %45
  %390 = load i32, ptr %4, align 4
  ret i32 %390

391:                                              ; preds = %388
  %392 = load ptr, ptr %14, align 8
  %393 = load i32, ptr %15, align 4
  %394 = insertvalue { ptr, i32 } poison, ptr %392, 0
  %395 = insertvalue { ptr, i32 } %394, i32 %393, 1
  resume { ptr, i32 } %395
}

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

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 = { inlinehint 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 #5 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i64 0, i64 8, !5}
!14 = !{i64 0, i64 8, !15, i64 8, i64 8, !15, i64 16, i64 4, !17}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!22, !16, i64 0}
!22 = !{!"_ZTS9TPPLPoint", !16, i64 0, !16, i64 8, !18, i64 16}
!23 = !{!22, !16, i64 8}
!24 = distinct !{!24, !12}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}


; 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 }
%class.TPPLPoly = type <{ ptr, i64, i8, [7 x i8] }>
%struct.TPPLPoint = type { double, double, i32 }
%"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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 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

; 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 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 nounwind uwtable
declare dso_local noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(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(24) 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 nonnull align 8 dereferenceable(24) 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN13TPPLPartition18ConvexPartition_HMEP8TPPLPolyPNSt7__cxx114listIS0_SaIS0_EEE(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %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 %class.TPPLPoly, align 8
  %8 = alloca %struct.TPPLPoint, align 8
  %9 = alloca %struct.TPPLPoint, align 8
  %10 = alloca %struct.TPPLPoint, align 8
  %11 = alloca %"struct.std::_List_iterator", align 8
  %12 = alloca %"struct.std::_List_iterator", align 8
  %13 = alloca %"struct.std::_List_const_iterator", align 8
  %14 = alloca %"struct.std::_List_iterator", align 8
  %15 = tail call noundef zeroext i1 @_ZNK8TPPLPoly5ValidEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  br i1 %15, label %16, label %152

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt14_List_iteratorI8TPPLPolyEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  invoke void @_ZN8TPPLPolyC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %7)
          to label %.peel.begin unwind label %27

.peel.begin:                                      ; preds = %16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %17 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %.not.peel = icmp sgt i64 %17, 0
  br i1 %.not.peel, label %18, label %.critedge

18:                                               ; preds = %.peel.begin
  %19 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %.0135.peel = add nsw i64 %19, -1
  %20 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %21 = icmp ne i64 %20, 1
  %.0121.peel = zext i1 %21 to i64
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %.0135.peel)
  %23 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef 0)
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %.0121.peel)
  %25 = call noundef zeroext i1 @_ZN13TPPLPartition8IsReflexER9TPPLPointS1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %24)
  br i1 %25, label %.loopexit213, label %.peel.next

.peel.next:                                       ; preds = %18, %29
  %.0107 = phi i64 [ %33, %29 ], [ 1, %18 ]
  %26 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %.not = icmp slt i64 %.0107, %26
  br i1 %.not, label %29, label %.critedge

27:                                               ; preds = %16
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %151

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

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

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

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit154
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit154 ], [ %lpad.loopexit158, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp159, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %7) #5
  br label %151

29:                                               ; preds = %.peel.next
  %.0135 = add nsw i64 %.0107, -1
  %30 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %1)
  %31 = add nsw i64 %30, -1
  %32 = icmp eq i64 %.0107, %31
  %33 = add nuw nsw i64 %.0107, 1
  %.0121 = select i1 %32, i64 0, i64 %33
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %.0135)
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %.0107)
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %1, i64 noundef %.0121)
  %37 = call noundef zeroext i1 @_ZN13TPPLPartition8IsReflexER9TPPLPointS1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %36)
  br i1 %37, label %.loopexit213, label %.peel.next, !llvm.loop !5

.critedge:                                        ; preds = %.peel.next, %.peel.begin
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(17) %1)
          to label %.loopexit unwind label %.loopexit.split-lp.loopexit.split-lp

.loopexit213:                                     ; preds = %29, %18
  %38 = invoke noundef i32 @_ZN13TPPLPartition14Triangulate_ECEP8TPPLPolyPNSt7__cxx114listIS0_SaIS0_EEE(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %1, ptr noundef nonnull %4)
          to label %39 unwind label %.loopexit.split-lp.loopexit.split-lp

39:                                               ; preds = %.loopexit213
  %.not137 = icmp eq i32 %38, 0
  br i1 %.not137, label %.loopexit, label %40

40:                                               ; preds = %39
  %41 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %41, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %42 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %42, ptr %11, align 8
  %43 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br i1 %43, label %.lr.ph204, label %._crit_edge205

.lr.ph204:                                        ; preds = %40, %._crit_edge196
  %44 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %45 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %44)
  %46 = icmp sgt i64 %45, 0
  br i1 %46, label %.lr.ph195, label %._crit_edge196

.lr.ph195:                                        ; preds = %.lr.ph204, %.loopexit157
  %.0101193 = phi ptr [ %.1102, %.loopexit157 ], [ %44, %.lr.ph204 ]
  %.1108191 = phi i64 [ %137, %.loopexit157 ], [ 0, %.lr.ph204 ]
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %.0101193, i64 noundef %.1108191)
  %.sroa.058.0.copyload = load double, ptr %47, align 8, !tbaa !12
  %.sroa.559.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.559.0.copyload = load double, ptr %.sroa.559.0..sroa_idx, align 8, !tbaa !12
  %48 = add nsw i64 %.1108191, 1
  %49 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %.0101193)
  %50 = srem i64 %48, %49
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %.0101193, i64 noundef %50)
  %.sroa.057.0.copyload = load double, ptr %51, align 8, !tbaa !12
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 8
  %.sroa.5.0.copyload = load double, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !12
  %52 = load i64, ptr %5, align 8, !tbaa !8
  store i64 %52, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %53 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %53, ptr %12, align 8
  %54 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br i1 %54, label %.lr.ph176, label %.loopexit157

.lr.ph176:                                        ; preds = %.lr.ph195, %.loopexit155
  %55 = call noundef zeroext i1 @_ZSteqRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %55, label %.loopexit155, label %56

56:                                               ; preds = %.lr.ph176
  %57 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %58 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %57)
  %59 = icmp sgt i64 %58, 0
  br i1 %59, label %.lr.ph, label %.loopexit155

.lr.ph:                                           ; preds = %56, %80
  %.3132170 = phi i64 [ %81, %80 ], [ 0, %56 ]
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef %.3132170)
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = fcmp une double %.sroa.057.0.copyload, %61
  br i1 %62, label %80, label %63

63:                                               ; preds = %.lr.ph
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef %.3132170)
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load double, ptr %65, align 8, !tbaa !17
  %67 = fcmp une double %.sroa.5.0.copyload, %66
  br i1 %67, label %80, label %68

68:                                               ; preds = %63
  %69 = add nuw nsw i64 %.3132170, 1
  %70 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %57)
  %71 = srem i64 %69, %70
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef %71)
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = fcmp une double %.sroa.058.0.copyload, %73
  br i1 %74, label %80, label %75

75:                                               ; preds = %68
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef %71)
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load double, ptr %77, align 8, !tbaa !17
  %79 = fcmp une double %.sroa.559.0.copyload, %78
  br i1 %79, label %80, label %.thread143

80:                                               ; preds = %68, %75, %.lr.ph, %63
  %81 = add nuw nsw i64 %.3132170, 1
  %82 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %57)
  %83 = icmp slt i64 %81, %82
  br i1 %83, label %.lr.ph, label %.loopexit155, !llvm.loop !18

.loopexit155:                                     ; preds = %80, %56, %.lr.ph176
  %84 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %85 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %85, ptr %12, align 8
  %86 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br i1 %86, label %.lr.ph176, label %.loopexit157, !llvm.loop !19

.thread143:                                       ; preds = %75
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %.0101193, i64 noundef %.1108191)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %87, i64 24, i1 false), !tbaa.struct !20
  %88 = icmp eq i64 %.1108191, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %.thread143
  %90 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %.0101193)
  br label %91

91:                                               ; preds = %.thread143, %89
  %.1122.in = phi i64 [ %90, %89 ], [ %.1108191, %.thread143 ]
  %.1122 = add nsw i64 %.1122.in, -1
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %.0101193, i64 noundef %.1122)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %92, i64 24, i1 false), !tbaa.struct !20
  %93 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %57)
  %94 = add nsw i64 %93, -1
  %95 = icmp eq i64 %71, %94
  %96 = add nuw nsw i64 %71, 1
  %.0119 = select i1 %95, i64 0, i64 %96
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef %.0119)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %97, i64 24, i1 false), !tbaa.struct !20
  %98 = call noundef zeroext i1 @_ZN13TPPLPartition8IsConvexER9TPPLPointS1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
  br i1 %98, label %99, label %.loopexit157

99:                                               ; preds = %91
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %.0101193, i64 noundef %50)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %100, i64 24, i1 false), !tbaa.struct !20
  %101 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %.0101193)
  %102 = add nsw i64 %101, -1
  %103 = icmp eq i64 %50, %102
  %104 = add nsw i64 %50, 1
  %.2123 = select i1 %103, i64 0, i64 %104
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %.0101193, i64 noundef %.2123)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %105, i64 24, i1 false), !tbaa.struct !20
  %106 = icmp eq i64 %.3132170, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %99
  %108 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %57)
  br label %109

109:                                              ; preds = %99, %107
  %.1120.in = phi i64 [ %108, %107 ], [ %.3132170, %99 ]
  %.1120 = add nsw i64 %.1120.in, -1
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef %.1120)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %110, i64 24, i1 false), !tbaa.struct !20
  %111 = call noundef zeroext i1 @_ZN13TPPLPartition8IsConvexER9TPPLPointS1_S1_(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
  br i1 %111, label %112, label %.loopexit157

112:                                              ; preds = %109
  %113 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %.0101193)
  %114 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %57)
  %115 = add i64 %113, -2
  %116 = add i64 %115, %114
  invoke void @_ZN8TPPLPoly4InitEl(ptr noundef nonnull align 8 dereferenceable(17) %7, i64 noundef %116)
          to label %.preheader156 unwind label %.loopexit.split-lp.loopexit

.preheader156:                                    ; preds = %112
  %.not138180 = icmp eq i64 %50, %.1108191
  br i1 %.not138180, label %.preheader, label %.lr.ph183

.preheader:                                       ; preds = %.lr.ph183, %.preheader156
  %.0115.lcssa = phi i64 [ 0, %.preheader156 ], [ %120, %.lr.ph183 ]
  %.not139185 = icmp eq i64 %71, %.3132170
  br i1 %.not139185, label %._crit_edge, label %.lr.ph188

.lr.ph183:                                        ; preds = %.preheader156, %.lr.ph183
  %.0115182 = phi i64 [ %120, %.lr.ph183 ], [ 0, %.preheader156 ]
  %.0117181 = phi i64 [ %123, %.lr.ph183 ], [ %50, %.preheader156 ]
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %.0101193, i64 noundef %.0117181)
  %118 = trunc i64 %.0115182 to i32
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %7, i32 noundef %118)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 8 dereferenceable(24) %117, i64 24, i1 false), !tbaa.struct !20
  %120 = add nuw nsw i64 %.0115182, 1
  %121 = add nsw i64 %.0117181, 1
  %122 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %.0101193)
  %123 = srem i64 %121, %122
  %.not138 = icmp eq i64 %123, %.1108191
  br i1 %.not138, label %.preheader, label %.lr.ph183, !llvm.loop !22

.lr.ph188:                                        ; preds = %.preheader, %.lr.ph188
  %.1116187 = phi i64 [ %127, %.lr.ph188 ], [ %.0115.lcssa, %.preheader ]
  %.1118186 = phi i64 [ %130, %.lr.ph188 ], [ %71, %.preheader ]
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPoly8GetPointEl(ptr noundef nonnull align 8 dereferenceable(17) %57, i64 noundef %.1118186)
  %125 = trunc i64 %.1116187 to i32
  %126 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8TPPLPolyixEi(ptr noundef nonnull align 8 dereferenceable(17) %7, i32 noundef %125)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 8 dereferenceable(24) %124, i64 24, i1 false), !tbaa.struct !20
  %127 = add nuw nsw i64 %.1116187, 1
  %128 = add nsw i64 %.1118186, 1
  %129 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %57)
  %130 = srem i64 %128, %129
  %.not139 = icmp eq i64 %130, %.3132170
  br i1 %.not139, label %._crit_edge, label %.lr.ph188, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph188, %.preheader
  call void @_ZNSt20_List_const_iteratorI8TPPLPolyEC2ERKSt14_List_iteratorIS0_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %131 = load ptr, ptr %13, align 8
  %132 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5eraseESt20_List_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %131) #5
  %133 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %134 = invoke noundef nonnull align 8 dereferenceable(17) ptr @_ZN8TPPLPolyaSERKS_(ptr noundef nonnull align 8 dereferenceable(17) %133, ptr noundef nonnull align 8 dereferenceable(17) %7)
          to label %135 unwind label %.loopexit.split-lp.loopexit

135:                                              ; preds = %._crit_edge
  %136 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br label %.loopexit157

.loopexit157:                                     ; preds = %.loopexit155, %.lr.ph195, %109, %91, %135
  %.2109 = phi i64 [ -1, %135 ], [ %.1108191, %109 ], [ %.1108191, %91 ], [ %.1108191, %.lr.ph195 ], [ %.1108191, %.loopexit155 ]
  %.1102 = phi ptr [ %136, %135 ], [ %.0101193, %109 ], [ %.0101193, %91 ], [ %.0101193, %.lr.ph195 ], [ %.0101193, %.loopexit155 ]
  %137 = add nsw i64 %.2109, 1
  %138 = call noundef i64 @_ZNK8TPPLPoly12GetNumPointsEv(ptr noundef nonnull align 8 dereferenceable(17) %.1102)
  %139 = icmp slt i64 %137, %138
  br i1 %139, label %.lr.ph195, label %._crit_edge196, !llvm.loop !24

._crit_edge196:                                   ; preds = %.loopexit157, %.lr.ph204
  %140 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %141 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %141, ptr %11, align 8
  %142 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br i1 %142, label %.lr.ph204, label %._crit_edge205, !llvm.loop !25

._crit_edge205:                                   ; preds = %._crit_edge196, %40
  %143 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %143, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %144 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %144, ptr %14, align 8
  %145 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br i1 %145, label %.lr.ph207, label %.loopexit

.lr.ph207:                                        ; preds = %._crit_edge205, %147
  %146 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNKSt14_List_iteratorI8TPPLPolyEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  invoke void @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(17) %146)
          to label %147 unwind label %.loopexit154

147:                                              ; preds = %.lr.ph207
  %148 = call ptr @_ZNSt14_List_iteratorI8TPPLPolyEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %149 = call ptr @_ZNSt7__cxx114listI8TPPLPolySaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %149, ptr %14, align 8
  %150 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorI8TPPLPolyES3_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br i1 %150, label %.lr.ph207, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %147, %._crit_edge205, %39, %.critedge
  %.0 = phi i32 [ 1, %.critedge ], [ 0, %39 ], [ 1, %._crit_edge205 ], [ 1, %147 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @_ZN8TPPLPolyD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %152

151:                                              ; preds = %.loopexit.split-lp, %27
  %.pn = phi { ptr, i32 } [ %lpad.phi, %.loopexit.split-lp ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1110_List_baseI8TPPLPolySaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn

152:                                              ; preds = %3, %.loopexit
  %.1 = phi i32 [ %.0, %.loopexit ], [ 0, %3 ]
  ret i32 %.1
}

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

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 = { inlinehint 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 #5 = { 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 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 1}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS9TPPLPoint", !13, i64 0, !13, i64 8, !16, i64 16}
!16 = !{!"int", !10, i64 0}
!17 = !{!15, !13, i64 8}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}
!20 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 4, !21}
!21 = !{!16, !16, i64 0}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}
!25 = distinct !{!25, !6}
!26 = distinct !{!26, !6}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass