; LLVM IR from wesley-a-leung/Resources :: Tests/C++/geometry/2d/ConvexPolygonFuzzTest.ll (Z5test4v)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.pt = type { x86_fp80, x86_fp80 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%struct.IncrementalConvexHull = type { %"class.std::set", x86_fp80 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<Ray, Ray, std::_Identity<Ray>, std::less<Ray>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Ray, Ray, std::_Identity<Ray>, std::less<Ray>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<long double>::param_type" }
%"struct.std::uniform_real_distribution<long double>::param_type" = type { x86_fp80, x86_fp80 }
%"struct.std::_Setprecision" = type { i32 }

@.str.4 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._Z5test4v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2leee(x86_fp80 noundef, x86_fp80 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2eqee(x86_fp80 noundef, x86_fp80 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #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: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2ptmiES_(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.pt) align 16) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2ptmlEe(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14closestPtOnSeg2ptS_S_(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17isInConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%struct.pt) align 16) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z27closestPointOnConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%struct.pt) align 16) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21generateConvexPolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(2504)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(2504)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504)) #2 align 2

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21IncrementalConvexHullC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN21IncrementalConvexHull8addPointE2pt(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef byval(%struct.pt) align 16) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test4v() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %struct.IncrementalConvexHull, align 16
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.pt, align 16
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::uniform_real_distribution", align 16
  %19 = alloca i32, align 4
  %20 = alloca %struct.pt, align 16
  %21 = alloca %struct.pt, align 16
  %22 = alloca %struct.pt, align 16
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.pt, align 16
  %26 = alloca %struct.pt, align 16
  %27 = alloca %struct.pt, align 16
  %28 = alloca %struct.pt, align 16
  %29 = alloca %struct.pt, align 16
  %30 = alloca i32, align 4
  %31 = alloca %struct.pt, align 16
  %32 = alloca %struct.pt, align 16
  %33 = alloca %struct.pt, align 16
  %34 = alloca %struct.pt, align 16
  %35 = alloca %struct.pt, align 16
  %36 = alloca %struct.pt, align 16
  %37 = alloca %struct.pt, align 16
  %38 = alloca %struct.pt, align 16
  %39 = alloca %struct.pt, align 16
  %40 = alloca %struct.pt, align 16
  %41 = alloca %struct.pt, align 16
  %42 = alloca %struct.pt, align 16
  %43 = alloca %struct.pt, align 16
  %44 = alloca %struct.pt, align 16
  %45 = alloca %"class.std::chrono::time_point", align 8
  %46 = alloca double, align 8
  %47 = alloca %"class.std::chrono::duration", align 8
  %48 = alloca %"struct.std::_Setprecision", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #8
  %49 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %50 = getelementptr inbounds %"class.std::chrono::time_point", ptr %1, i32 0, i32 0
  %51 = getelementptr inbounds %"class.std::chrono::duration", ptr %50, i32 0, i32 0
  store i64 %49, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr %2) #8
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 50000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %233, %0
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 50000
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %57 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %58 = urem i64 %57, 10
  %59 = add i64 %58, 1
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  %61 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z21generateConvexPolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %8, i32 noundef %61, ptr noundef nonnull align 8 dereferenceable(2504) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #8
  invoke void @_ZN21IncrementalConvexHullC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %9)
          to label %62 unwind label %72

62:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr %8, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %63 = load ptr, ptr %12, align 8, !tbaa !11
  %64 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #8
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %66 = load ptr, ptr %12, align 8, !tbaa !11
  %67 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #8
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %67, ptr %68, align 8
  br label %69

69:                                               ; preds = %89, %62
  %70 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %70, label %76, label %71

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

72:                                               ; preds = %56
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %10, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %11, align 4
  br label %238

76:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %77 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  store ptr %77, ptr %15, align 8, !tbaa !11
  %78 = load ptr, ptr %15, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %78, i64 32, i1 false), !tbaa.struct !13
  %79 = invoke noundef zeroext i1 @_ZN21IncrementalConvexHull8addPointE2pt(ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef byval(%struct.pt) align 16 %16)
          to label %80 unwind label %83

80:                                               ; preds = %76
  br i1 %79, label %81, label %82

81:                                               ; preds = %80
  br label %88

82:                                               ; preds = %80
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 259, ptr noundef @__PRETTY_FUNCTION__._Z5test4v) #9
  unreachable

83:                                               ; preds = %76
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %10, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %237

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %89

89:                                               ; preds = %88
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %69

91:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 100, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  invoke void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %18, x86_fp80 noundef 0xKC002A000000000000000, x86_fp80 noundef 0xK4002A000000000000000)
          to label %92 unwind label %98

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %227, %92
  %94 = load i32, ptr %19, align 4, !tbaa !5
  %95 = load i32, ptr %17, align 4, !tbaa !5
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %102, label %97

97:                                               ; preds = %93
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %232

98:                                               ; preds = %91
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %10, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %11, align 4
  br label %236

102:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #8
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %20, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
          to label %103 unwind label %138

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %112, %103
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %105 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %106 unwind label %142

106:                                              ; preds = %104
  %107 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %108 unwind label %142

108:                                              ; preds = %106
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %21, x86_fp80 noundef %105, x86_fp80 noundef %107)
          to label %109 unwind label %142

109:                                              ; preds = %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %21, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %110

110:                                              ; preds = %109
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %111 = invoke noundef i32 @_Z17isInConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef byval(%struct.pt) align 16 %22)
          to label %112 unwind label %138

112:                                              ; preds = %110
  %113 = icmp sge i32 %111, 0
  br i1 %113, label %104, label %114, !llvm.loop !16

114:                                              ; preds = %112
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = icmp sge i32 %115, 2
  br i1 %116, label %117, label %169

117:                                              ; preds = %114
  %118 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %119 unwind label %138

119:                                              ; preds = %117
  %120 = urem i64 %118, 10
  %121 = icmp eq i64 %120, 0
  br i1 %121, label %122, label %169

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %123 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %124 unwind label %146

124:                                              ; preds = %122
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = urem i64 %123, %126
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %129 = load i32, ptr %23, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = call noundef i32 @_Z3modii(i32 noundef %130, i32 noundef %131)
  store i32 %132, ptr %24, align 4, !tbaa !5
  %133 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %134 unwind label %150

134:                                              ; preds = %124
  %135 = urem i64 %133, 2
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %154

137:                                              ; preds = %134
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24) #8
  br label %154

138:                                              ; preds = %117, %110, %102
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %10, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %11, align 4
  br label %231

142:                                              ; preds = %108, %106, %104
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %10, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %231

146:                                              ; preds = %122
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %10, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %11, align 4
  br label %168

150:                                              ; preds = %124
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  br label %167

154:                                              ; preds = %137, %134
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #8
  %155 = load i32, ptr %23, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %156) #8
  invoke void @_ZNK2ptmlEe(ptr dead_on_unwind writable sret(%struct.pt) align 16 %26, ptr noundef nonnull align 16 dereferenceable(32) %157, x86_fp80 noundef 0xK40008000000000000000)
          to label %158 unwind label %163

158:                                              ; preds = %154
  %159 = load i32, ptr %24, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %160) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %161, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %25, ptr noundef nonnull align 16 dereferenceable(32) %26, ptr noundef byval(%struct.pt) align 16 %27)
          to label %162 unwind label %163

162:                                              ; preds = %158
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %25, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %169

163:                                              ; preds = %158, %154
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %10, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  br label %167

167:                                              ; preds = %163, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %168

168:                                              ; preds = %167, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %231

169:                                              ; preds = %162, %119, %114
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  invoke void @_Z27closestPointOnConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %28, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef byval(%struct.pt) align 16 %29)
          to label %170 unwind label %176

170:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %204, %170
  %172 = load i32, ptr %30, align 4, !tbaa !5
  %173 = load i32, ptr %7, align 4, !tbaa !5
  %174 = icmp slt i32 %172, %173
  br i1 %174, label %180, label %175

175:                                              ; preds = %171
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %207

176:                                              ; preds = %207, %169
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %10, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %11, align 4
  br label %230

180:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %181 = load i32, ptr %30, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %182) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %183, i64 32, i1 false), !tbaa.struct !13
  %184 = load i32, ptr %30, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  %186 = load i32, ptr %7, align 4, !tbaa !5
  %187 = call noundef i32 @_Z3modii(i32 noundef %185, i32 noundef %186)
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %188) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %189, i64 32, i1 false), !tbaa.struct !13
  invoke void @_Z14closestPtOnSeg2ptS_S_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %31, ptr noundef byval(%struct.pt) align 16 %32, ptr noundef byval(%struct.pt) align 16 %33, ptr noundef byval(%struct.pt) align 16 %34)
          to label %190 unwind label %198

190:                                              ; preds = %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %28, i64 32, i1 false), !tbaa.struct !13
  %191 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %35, ptr noundef byval(%struct.pt) align 16 %36)
          to label %192 unwind label %198

192:                                              ; preds = %190
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %31, i64 32, i1 false), !tbaa.struct !13
  %193 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %37, ptr noundef byval(%struct.pt) align 16 %38)
          to label %194 unwind label %198

194:                                              ; preds = %192
  %195 = call noundef zeroext i1 @_Z2leee(x86_fp80 noundef %191, x86_fp80 noundef %193)
  br i1 %195, label %196, label %197

196:                                              ; preds = %194
  br label %203

197:                                              ; preds = %194
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.4, i32 noundef 276, ptr noundef @__PRETTY_FUNCTION__._Z5test4v) #9
  unreachable

198:                                              ; preds = %192, %190, %180
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %10, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %230

202:                                              ; No predecessors!
  br label %203

203:                                              ; preds = %202, %196
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %30, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %30, align 4, !tbaa !5
  br label %171, !llvm.loop !18

207:                                              ; preds = %175
  %208 = load i64, ptr %4, align 8, !tbaa !9
  %209 = mul nsw i64 31, %208
  %210 = sitofp i64 %209 to x86_fp80
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %28, i64 32, i1 false), !tbaa.struct !13
  %211 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %39, ptr noundef byval(%struct.pt) align 16 %40)
          to label %212 unwind label %176

212:                                              ; preds = %207
  %213 = fadd x86_fp80 %210, %211
  %214 = fptosi x86_fp80 %213 to i64
  store i64 %214, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZNK21IncrementalConvexHull9closestPtE2pt(ptr dead_on_unwind writable sret(%struct.pt) align 16 %41, ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef byval(%struct.pt) align 16 %42)
          to label %215 unwind label %221

215:                                              ; preds = %212
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %28, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %41, i64 32, i1 false), !tbaa.struct !13
  %216 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %43, ptr noundef byval(%struct.pt) align 16 %44)
          to label %217 unwind label %221

217:                                              ; preds = %215
  %218 = call noundef zeroext i1 @_Z2eqee(x86_fp80 noundef %216, x86_fp80 noundef 0xK00000000000000000000)
  br i1 %218, label %219, label %220

219:                                              ; preds = %217
  br label %226

220:                                              ; preds = %217
  call void @__assert_fail(ptr noundef @.str.45, ptr noundef @.str.4, i32 noundef 280, ptr noundef @__PRETTY_FUNCTION__._Z5test4v) #9
  unreachable

221:                                              ; preds = %215, %212
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %10, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #8
  br label %230

225:                                              ; No predecessors!
  br label %226

226:                                              ; preds = %225, %219
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %19, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %19, align 4, !tbaa !5
  br label %93, !llvm.loop !19

230:                                              ; preds = %221, %198, %176
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  br label %231

231:                                              ; preds = %230, %168, %142, %138
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %236

232:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %9) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %5, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %5, align 4, !tbaa !5
  br label %52, !llvm.loop !20

236:                                              ; preds = %231, %98
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %237

237:                                              ; preds = %236, %83
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %9) #8
  br label %238

238:                                              ; preds = %237, %72
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  br label %265

239:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %240 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %241 = getelementptr inbounds %"class.std::chrono::time_point", ptr %45, i32 0, i32 0
  %242 = getelementptr inbounds %"class.std::chrono::duration", ptr %241, i32 0, i32 0
  store i64 %240, ptr %242, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %243 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %244 = getelementptr inbounds %"class.std::chrono::duration", ptr %47, i32 0, i32 0
  store i64 %243, ptr %244, align 8
  %245 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %47)
  %246 = sitofp i64 %245 to double
  %247 = fdiv double %246, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  store double %247, ptr %46, align 8, !tbaa !21
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.46)
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.18)
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef @_ZSt5fixedRSt8ios_base)
  %252 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %253 = getelementptr inbounds %"struct.std::_Setprecision", ptr %48, i32 0, i32 0
  store i32 %252, ptr %253, align 4
  %254 = getelementptr inbounds %"struct.std::_Setprecision", ptr %48, i32 0, i32 0
  %255 = load i32, ptr %254, align 4
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %251, i32 %255)
  %257 = load double, ptr %46, align 8, !tbaa !21
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %256, double noundef %257)
  %259 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef @.str.19)
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.20)
  %262 = load i64, ptr %4, align 8, !tbaa !9
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %261, i64 noundef %262)
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  ret void

265:                                              ; preds = %238
  %266 = load ptr, ptr %10, align 8
  %267 = load i32, ptr %11, align 4
  %268 = insertvalue { ptr, i32 } poison, ptr %266, 0
  %269 = insertvalue { ptr, i32 } %268, i32 %267, 1
  resume { ptr, i32 } %269
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21IncrementalConvexHull9closestPtE2pt(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef byval(%struct.pt) align 16) #2 align 2

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.pt = type { x86_fp80, x86_fp80 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%struct.IncrementalConvexHull = type { %"class.std::set", x86_fp80 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<Ray, Ray, std::_Identity<Ray>, std::less<Ray>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Ray, Ray, std::_Identity<Ray>, std::less<Ray>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<long double>::param_type" }
%"struct.std::uniform_real_distribution<long double>::param_type" = type { x86_fp80, x86_fp80 }

@.str.4 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._Z5test4v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2leee(x86_fp80 noundef, x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2eqee(x86_fp80 noundef, x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) 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 uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2ptmiES_(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2ptmlEe(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14closestPtOnSeg2ptS_S_(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17isInConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z27closestPointOnConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21generateConvexPolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(2504)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(2504)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504)) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21IncrementalConvexHullC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN21IncrementalConvexHull8addPointE2pt(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test4v() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %struct.IncrementalConvexHull, align 16
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.std::uniform_real_distribution", align 16
  %8 = alloca %struct.pt, align 16
  %9 = alloca %struct.pt, align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.pt, align 16
  %14 = alloca %struct.pt, align 16
  %15 = alloca %struct.pt, align 16
  %16 = alloca %struct.pt, align 16
  %17 = alloca %struct.pt, align 16
  %18 = alloca %struct.pt, align 16
  %19 = alloca %"class.std::chrono::time_point", align 8
  %20 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %21 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %21, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %2) #8
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  br label %40

22:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %23 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %23, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %24 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i64 %24, ptr %20, align 8
  %25 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %26 = sitofp i64 %25 to double
  %27 = fdiv double %26, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.46)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.18)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %32 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 %32)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %33, double noundef %27)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @.str.19)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.20)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef %134)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret void

40:                                               ; preds = %0, %61
  %.075 = phi i64 [ 0, %0 ], [ %134, %61 ]
  %.02274 = phi i32 [ 0, %0 ], [ %62, %61 ]
  %41 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %42 = urem i64 %41, 10
  %43 = udiv i64 %41, 10
  %44 = trunc nuw nsw i64 %42 to i32
  %45 = add nuw nsw i32 %44, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_Z21generateConvexPolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, i32 noundef %45, ptr noundef nonnull align 8 dereferenceable(2504) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  call void @_ZN21IncrementalConvexHullC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %46 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %46, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %47 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %47, ptr %6, align 8
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %48, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %58, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  invoke void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %7, x86_fp80 noundef 0xKC002A000000000000000, x86_fp80 noundef 0xK4002A000000000000000)
          to label %.preheader45 unwind label %63

.preheader45:                                     ; preds = %._crit_edge
  %.not = icmp eq i64 %42, 0
  %49 = zext nneg i32 %45 to i64
  %50 = add i64 %41, 1
  %.neg = mul i64 %43, 4294967286
  %51 = add i64 %.neg, %50
  %wide.trip.count = and i64 %51, 4294967295
  br label %65

.lr.ph:                                           ; preds = %40, %58
  %52 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %53 = invoke noundef zeroext i1 @_ZN21IncrementalConvexHull8addPointE2pt(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull byval(%struct.pt) align 16 %52)
          to label %54 unwind label %56

54:                                               ; preds = %.lr.ph
  br i1 %53, label %58, label %55

55:                                               ; preds = %54
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 259, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test4v) #9
  unreachable

56:                                               ; preds = %.lr.ph
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %147

58:                                               ; preds = %54
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %60, label %.lr.ph, label %._crit_edge

61:                                               ; preds = %142
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %4) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %62 = add nuw nsw i32 %.02274, 1
  %exitcond80.not = icmp eq i32 %62, 50000
  br i1 %exitcond80.not, label %22, label %40, !llvm.loop !5

63:                                               ; preds = %._crit_edge
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %146

65:                                               ; preds = %.preheader45, %142
  %.173 = phi i64 [ %.075, %.preheader45 ], [ %134, %142 ]
  %.02472 = phi i32 [ 0, %.preheader45 ], [ %143, %142 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %8, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  br label %66

66:                                               ; preds = %72, %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  %67 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %68 unwind label %91

68:                                               ; preds = %66
  %69 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %70 unwind label %91

70:                                               ; preds = %68
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %9, x86_fp80 noundef %67, x86_fp80 noundef %69)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %9, i64 32, i1 false), !tbaa.struct !7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  %71 = invoke noundef i32 @_Z17isInConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %72 unwind label %.loopexit

72:                                               ; preds = %70
  %73 = icmp sgt i32 %71, -1
  br i1 %73, label %66, label %74, !llvm.loop !12

74:                                               ; preds = %72
  br i1 %.not, label %110, label %75

75:                                               ; preds = %74
  %76 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %77 unwind label %.loopexit.split-lp

77:                                               ; preds = %75
  %78 = urem i64 %76, 10
  %79 = icmp eq i64 %78, 0
  br i1 %79, label %80, label %110

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %81 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %82 unwind label %93

82:                                               ; preds = %80
  %83 = urem i64 %81, %49
  %84 = trunc nuw nsw i64 %83 to i32
  store i32 %84, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %85 = add nuw nsw i32 %84, 1
  %86 = call noundef i32 @_Z3modii(i32 noundef %85, i32 noundef %45)
  store i32 %86, ptr %11, align 4, !tbaa !13
  %87 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %88 unwind label %95

88:                                               ; preds = %82
  %89 = and i64 %87, 1
  %.not35 = icmp eq i64 %89, 0
  br i1 %.not35, label %97, label %90

90:                                               ; preds = %88
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11) #8
  br label %97

.loopexit:                                        ; preds = %70
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %145

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

91:                                               ; preds = %68, %66
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %145

93:                                               ; preds = %80
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %109

95:                                               ; preds = %82
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %108

97:                                               ; preds = %90, %88
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  %98 = load i32, ptr %10, align 4, !tbaa !13
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %99) #8
  invoke void @_ZNK2ptmlEe(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %13, ptr noundef nonnull align 16 dereferenceable(32) %100, x86_fp80 noundef 0xK40008000000000000000)
          to label %101 unwind label %106

101:                                              ; preds = %97
  %102 = load i32, ptr %11, align 4, !tbaa !13
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %103) #8
  invoke void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %12, ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull byval(%struct.pt) align 16 %104)
          to label %105 unwind label %106

105:                                              ; preds = %101
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %110

106:                                              ; preds = %101, %97
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %108

108:                                              ; preds = %106, %95
  %.pn = phi { ptr, i32 } [ %107, %106 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %109

109:                                              ; preds = %108, %93
  %.pn.pn = phi { ptr, i32 } [ %.pn, %108 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %145

110:                                              ; preds = %105, %77, %74
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  invoke void @_Z27closestPointOnConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %14, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %.preheader unwind label %113

111:                                              ; preds = %129
  %112 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %8, ptr noundef nonnull byval(%struct.pt) align 16 %14)
          to label %130 unwind label %113

113:                                              ; preds = %111, %110
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %144

.preheader:                                       ; preds = %110, %129
  %indvars.iv = phi i64 [ %indvars.iv.next, %129 ], [ 0, %110 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %16, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !7
  %115 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %17, ptr noundef nonnull align 16 dereferenceable(32) %115, i64 32, i1 false), !tbaa.struct !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %116 = trunc nuw i64 %indvars.iv.next to i32
  %117 = call noundef i32 @_Z3modii(i32 noundef %116, i32 noundef %45)
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %118) #8
  invoke void @_Z14closestPtOnSeg2ptS_S_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %15, ptr noundef nonnull byval(%struct.pt) align 16 %16, ptr noundef nonnull byval(%struct.pt) align 16 %17, ptr noundef nonnull byval(%struct.pt) align 16 %119)
          to label %120 unwind label %127

120:                                              ; preds = %.preheader
  %121 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %8, ptr noundef nonnull byval(%struct.pt) align 16 %14)
          to label %122 unwind label %127

122:                                              ; preds = %120
  %123 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %8, ptr noundef nonnull byval(%struct.pt) align 16 %15)
          to label %124 unwind label %127

124:                                              ; preds = %122
  %125 = call noundef zeroext i1 @_Z2leee(x86_fp80 noundef %121, x86_fp80 noundef %123)
  br i1 %125, label %129, label %126

126:                                              ; preds = %124
  call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.4, i32 noundef 276, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test4v) #9
  unreachable

127:                                              ; preds = %122, %120, %.preheader
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  br label %144

129:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %111, label %.preheader, !llvm.loop !15

130:                                              ; preds = %111
  %131 = mul nsw i64 %.173, 31
  %132 = sitofp i64 %131 to x86_fp80
  %133 = fadd x86_fp80 %112, %132
  %134 = fptosi x86_fp80 %133 to i64
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #8
  invoke void @_ZNK21IncrementalConvexHull9closestPtE2pt(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %18, ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %135 unwind label %140

135:                                              ; preds = %130
  %136 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %14, ptr noundef nonnull byval(%struct.pt) align 16 %18)
          to label %137 unwind label %140

137:                                              ; preds = %135
  %138 = call noundef zeroext i1 @_Z2eqee(x86_fp80 noundef %136, x86_fp80 noundef 0xK00000000000000000000)
  br i1 %138, label %142, label %139

139:                                              ; preds = %137
  call void @__assert_fail(ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.4, i32 noundef 280, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test4v) #9
  unreachable

140:                                              ; preds = %135, %130
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br label %144

142:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  %143 = add nuw nsw i32 %.02472, 1
  %exitcond79.not = icmp eq i32 %143, 100
  br i1 %exitcond79.not, label %61, label %65, !llvm.loop !16

144:                                              ; preds = %140, %127, %113
  %.pn39 = phi { ptr, i32 } [ %128, %127 ], [ %141, %140 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %145

145:                                              ; preds = %.loopexit, %.loopexit.split-lp, %144, %109, %91
  %.pn39.pn = phi { ptr, i32 } [ %.pn39, %144 ], [ %.pn.pn, %109 ], [ %92, %91 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %146

146:                                              ; preds = %145, %63
  %.pn39.pn.pn = phi { ptr, i32 } [ %.pn39.pn, %145 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %147

147:                                              ; preds = %146, %56
  %.pn43 = phi { ptr, i32 } [ %57, %56 ], [ %.pn39.pn.pn, %146 ]
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %4) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn43
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21IncrementalConvexHull9closestPtE2pt(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2 align 2

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


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