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

; 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 }
%struct.Line = type { %struct.pt, 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::pair.20" = type { i32, i32 }
%class.anon.78 = type { ptr, ptr, ptr }
%class.anon.79 = type { i8 }
%"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__._Z5test5v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [52 x i8], align 1

; 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 nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #1

; 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) #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 nounwind uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) unnamed_addr #4 align 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)) #5

; 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) #4

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Z29convexPolygonLineIntersectionRKSt6vectorI2ptSaIS0_EE4Line(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%struct.Line) align 16) #4

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

; 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)) #4

; 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 #4 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)) #4 align 2

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

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

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

; 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) #8

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #8

; 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) #8

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #8

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test5v() #4 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 %struct.pt, align 16
  %24 = alloca %struct.pt, align 16
  %25 = alloca %struct.pt, align 16
  %26 = alloca i32, align 4
  %27 = alloca %struct.Line, align 16
  %28 = alloca %struct.pt, align 16
  %29 = alloca %struct.pt, align 16
  %30 = alloca %"struct.std::pair.20", align 4
  %31 = alloca %struct.Line, align 16
  %32 = alloca %"class.std::vector", align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca %struct.Line, align 16
  %36 = alloca %class.anon.78, align 8
  %37 = alloca %class.anon.79, align 1
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca %struct.pt, align 16
  %43 = alloca %"class.std::chrono::time_point", align 8
  %44 = alloca double, align 8
  %45 = alloca %"class.std::chrono::duration", align 8
  %46 = alloca %"struct.std::_Setprecision", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #9
  %47 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  %48 = getelementptr inbounds %"class.std::chrono::time_point", ptr %1, i32 0, i32 0
  %49 = getelementptr inbounds %"class.std::chrono::duration", ptr %48, i32 0, i32 0
  store i64 %47, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr %2) #9
  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) #9
  store i32 50000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %50

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

53:                                               ; preds = %50
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %288

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %55 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %56 = urem i64 %55, 10
  %57 = add i64 %56, 1
  %58 = trunc i64 %57 to i32
  store i32 %58, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #9
  %59 = 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 %59, ptr noundef nonnull align 8 dereferenceable(2504) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #9
  invoke void @_ZN21IncrementalConvexHullC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %9)
          to label %60 unwind label %70

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

67:                                               ; preds = %87, %60
  %68 = 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) #9
  br i1 %68, label %74, label %69

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

70:                                               ; preds = %54
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  br label %287

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

78:                                               ; preds = %74
  br i1 %77, label %79, label %80

79:                                               ; preds = %78
  br label %86

80:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 299, ptr noundef @__PRETTY_FUNCTION__._Z5test5v) #10
  unreachable

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

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %87

87:                                               ; preds = %86
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br label %67

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

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

91:                                               ; preds = %272, %90
  %92 = load i32, ptr %19, align 4, !tbaa !5
  %93 = load i32, ptr %17, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %100, label %95

95:                                               ; preds = %91
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %281

96:                                               ; preds = %89
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %10, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %11, align 4
  br label %285

100:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #9
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %20, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
          to label %101 unwind label %153

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %110, %101
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #9
  %103 = 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 %104 unwind label %157

104:                                              ; preds = %102
  %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 %157

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

107:                                              ; preds = %106
  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) #9
  br label %108

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

110:                                              ; preds = %108
  %111 = icmp sge i32 %109, 0
  br i1 %111, label %102, label %112, !llvm.loop !16

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #9
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %23, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
          to label %113 unwind label %161

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %122, %113
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #9
  %115 = 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 %116 unwind label %165

116:                                              ; preds = %114
  %117 = 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 %118 unwind label %165

118:                                              ; preds = %116
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %24, x86_fp80 noundef %115, x86_fp80 noundef %117)
          to label %119 unwind label %165

119:                                              ; preds = %118
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %24, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #9
  br label %120

120:                                              ; preds = %119
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %121 = invoke noundef i32 @_Z17isInConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef byval(%struct.pt) align 16 %25)
          to label %122 unwind label %161

122:                                              ; preds = %120
  %123 = icmp sge i32 %121, 0
  br i1 %123, label %114, label %124, !llvm.loop !18

124:                                              ; preds = %122
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = icmp sge i32 %125, 2
  br i1 %126, label %127, label %174

127:                                              ; preds = %124
  %128 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %129 unwind label %161

129:                                              ; preds = %127
  %130 = urem i64 %128, 10
  %131 = icmp eq i64 %130, 0
  br i1 %131, label %132, label %174

132:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %133 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %134 unwind label %169

134:                                              ; preds = %132
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = urem i64 %133, %136
  %138 = trunc i64 %137 to i32
  store i32 %138, ptr %26, align 4, !tbaa !5
  %139 = load i32, ptr %26, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %140) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %141, i64 32, i1 false), !tbaa.struct !13
  %142 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %143 unwind label %169

143:                                              ; preds = %134
  %144 = urem i64 %142, 2
  %145 = icmp ne i64 %144, 0
  br i1 %145, label %146, label %173

146:                                              ; preds = %143
  %147 = load i32, ptr %26, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  %149 = load i32, ptr %7, align 4, !tbaa !5
  %150 = call noundef i32 @_Z3modii(i32 noundef %148, i32 noundef %149)
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %151) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %152, i64 32, i1 false), !tbaa.struct !13
  br label %173

153:                                              ; preds = %108, %100
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %10, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %11, align 4
  br label %280

157:                                              ; preds = %106, %104, %102
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %10, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #9
  br label %280

161:                                              ; preds = %127, %120, %112
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %10, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %11, align 4
  br label %279

165:                                              ; preds = %118, %116, %114
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %10, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #9
  br label %279

169:                                              ; preds = %134, %132
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %10, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %279

173:                                              ; preds = %146, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %174

174:                                              ; preds = %173, %129, %124
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %23, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %27, ptr noundef byval(%struct.pt) align 16 %28, ptr noundef byval(%struct.pt) align 16 %29)
          to label %175 unwind label %189

175:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %27, i64 48, i1 false), !tbaa.struct !19
  %176 = invoke i64 @_Z29convexPolygonLineIntersectionRKSt6vectorI2ptSaIS0_EE4Line(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef byval(%struct.Line) align 16 %31)
          to label %177 unwind label %193

177:                                              ; preds = %175
  store i64 %176, ptr %30, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #9
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %27, i64 48, i1 false), !tbaa.struct !19
  invoke void @_ZNK21IncrementalConvexHull16lineIntersectionE4Line(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %34, ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef byval(%struct.Line) align 16 %35)
          to label %178 unwind label %197

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #9
  %179 = getelementptr inbounds %class.anon.78, ptr %36, i32 0, i32 0
  store ptr %8, ptr %179, align 8, !tbaa !11
  %180 = getelementptr inbounds %class.anon.78, ptr %36, i32 0, i32 1
  store ptr %7, ptr %180, align 8, !tbaa !11
  %181 = getelementptr inbounds %class.anon.78, ptr %36, i32 0, i32 2
  store ptr %27, ptr %181, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #9
  %182 = getelementptr inbounds %"struct.std::pair.20", ptr %30, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !20
  %184 = icmp ne i32 %183, -1
  br i1 %184, label %185, label %205

185:                                              ; preds = %178
  %186 = getelementptr inbounds %"struct.std::pair.20", ptr %30, i32 0, i32 0
  %187 = load i32, ptr %186, align 4, !tbaa !20
  invoke void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %187)
          to label %188 unwind label %201

188:                                              ; preds = %185
  br label %205

189:                                              ; preds = %174
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %10, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %11, align 4
  br label %278

193:                                              ; preds = %175
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %10, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %11, align 4
  br label %277

197:                                              ; preds = %177
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %10, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %11, align 4
  br label %276

201:                                              ; preds = %237, %231, %230, %229, %209, %185
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %10, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %11, align 4
  br label %275

205:                                              ; preds = %188, %178
  %206 = getelementptr inbounds %"struct.std::pair.20", ptr %30, i32 0, i32 1
  %207 = load i32, ptr %206, align 4, !tbaa !22
  %208 = icmp ne i32 %207, -1
  br i1 %208, label %209, label %213

209:                                              ; preds = %205
  %210 = getelementptr inbounds %"struct.std::pair.20", ptr %30, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !22
  invoke void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %211)
          to label %212 unwind label %201

212:                                              ; preds = %209
  br label %213

213:                                              ; preds = %212, %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %222, %213
  %215 = load i32, ptr %38, align 4, !tbaa !5
  %216 = load i32, ptr %7, align 4, !tbaa !5
  %217 = icmp slt i32 %215, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %214
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %229

219:                                              ; preds = %214
  %220 = load i32, ptr %38, align 4, !tbaa !5
  invoke void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %32, i32 noundef %220)
          to label %221 unwind label %225

221:                                              ; preds = %219
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %38, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %38, align 4, !tbaa !5
  br label %214, !llvm.loop !23

225:                                              ; preds = %219
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %10, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %275

229:                                              ; preds = %218
  invoke void @"_ZZ5test5vENK3$_1clERSt6vectorI2ptSaIS1_EE"(ptr noundef nonnull align 1 dereferenceable(1) %37, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %230 unwind label %201

230:                                              ; preds = %229
  invoke void @"_ZZ5test5vENK3$_1clERSt6vectorI2ptSaIS1_EE"(ptr noundef nonnull align 1 dereferenceable(1) %37, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %231 unwind label %201

231:                                              ; preds = %230
  %232 = invoke noundef zeroext i1 @_ZSteqI2ptSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %233 unwind label %201

233:                                              ; preds = %231
  br i1 %232, label %234, label %235

234:                                              ; preds = %233
  br label %237

235:                                              ; preds = %233
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.4, i32 noundef 337, ptr noundef @__PRETTY_FUNCTION__._Z5test5v) #10
  unreachable

236:                                              ; No predecessors!
  br label %237

237:                                              ; preds = %236, %234
  %238 = invoke noundef zeroext i1 @_ZSteqI2ptSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %239 unwind label %201

239:                                              ; preds = %237
  br i1 %238, label %240, label %241

240:                                              ; preds = %239
  br label %243

241:                                              ; preds = %239
  call void @__assert_fail(ptr noundef @.str.48, ptr noundef @.str.4, i32 noundef 338, ptr noundef @__PRETTY_FUNCTION__._Z5test5v) #10
  unreachable

242:                                              ; No predecessors!
  br label %243

243:                                              ; preds = %242, %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  store ptr %32, ptr %39, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %244 = load ptr, ptr %39, align 8, !tbaa !11
  %245 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %244) #9
  %246 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %245, ptr %246, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %247 = load ptr, ptr %39, align 8, !tbaa !11
  %248 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %247) #9
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  br label %250

250:                                              ; preds = %269, %243
  %251 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %41) #9
  br i1 %251, label %253, label %252

252:                                              ; preds = %250
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %271

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #9
  %254 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %254, i64 32, i1 false), !tbaa.struct !13
  %255 = load i64, ptr %4, align 8, !tbaa !9
  %256 = mul nsw i64 31, %255
  %257 = sitofp i64 %256 to x86_fp80
  %258 = getelementptr inbounds %struct.pt, ptr %42, i32 0, i32 0
  %259 = load x86_fp80, ptr %258, align 16, !tbaa !24
  %260 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 0xK401CEE6B280000000000, x86_fp80 %259, x86_fp80 %257)
  %261 = fptosi x86_fp80 %260 to i64
  store i64 %261, ptr %4, align 8, !tbaa !9
  %262 = load i64, ptr %4, align 8, !tbaa !9
  %263 = mul nsw i64 31, %262
  %264 = sitofp i64 %263 to x86_fp80
  %265 = getelementptr inbounds %struct.pt, ptr %42, i32 0, i32 1
  %266 = load x86_fp80, ptr %265, align 16, !tbaa !26
  %267 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 0xK401CEE6B280000000000, x86_fp80 %266, x86_fp80 %264)
  %268 = fptosi x86_fp80 %267 to i64
  store i64 %268, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #9
  br label %269

269:                                              ; preds = %253
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #9
  br label %250

271:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %19, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %19, align 4, !tbaa !5
  br label %91, !llvm.loop !27

275:                                              ; preds = %225, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  br label %276

276:                                              ; preds = %275, %197
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  br label %277

277:                                              ; preds = %276, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %278

278:                                              ; preds = %277, %189
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #9
  br label %279

279:                                              ; preds = %278, %169, %165, %161
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  br label %280

280:                                              ; preds = %279, %157, %153
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %285

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

282:                                              ; preds = %281
  %283 = load i32, ptr %5, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %5, align 4, !tbaa !5
  br label %50, !llvm.loop !28

285:                                              ; preds = %280, %96
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %286

286:                                              ; preds = %285, %81
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %9) #9
  br label %287

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

288:                                              ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %289 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  %290 = getelementptr inbounds %"class.std::chrono::time_point", ptr %43, i32 0, i32 0
  %291 = getelementptr inbounds %"class.std::chrono::duration", ptr %290, i32 0, i32 0
  store i64 %289, ptr %291, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %292 = 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) %43, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %293 = getelementptr inbounds %"class.std::chrono::duration", ptr %45, i32 0, i32 0
  store i64 %292, ptr %293, align 8
  %294 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
  %295 = sitofp i64 %294 to double
  %296 = fdiv double %295, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  store double %296, ptr %44, align 8, !tbaa !29
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.49)
  %298 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %297, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %299 = 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)
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef @_ZSt5fixedRSt8ios_base)
  %301 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %302 = getelementptr inbounds %"struct.std::_Setprecision", ptr %46, i32 0, i32 0
  store i32 %301, ptr %302, align 4
  %303 = getelementptr inbounds %"struct.std::_Setprecision", ptr %46, i32 0, i32 0
  %304 = load i32, ptr %303, align 4
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %300, i32 %304)
  %306 = load double, ptr %44, align 8, !tbaa !29
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %305, double noundef %306)
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %307, ptr noundef @.str.19)
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %310 = 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)
  %311 = load i64, ptr %4, align 8, !tbaa !9
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %310, i64 noundef %311)
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %312, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #9
  ret void

314:                                              ; preds = %287
  %315 = load ptr, ptr %10, align 8
  %316 = load i32, ptr %11, align 4
  %317 = insertvalue { ptr, i32 } poison, ptr %315, 0
  %318 = insertvalue { ptr, i32 } %317, i32 %316, 1
  resume { ptr, i32 } %318
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21IncrementalConvexHull16lineIntersectionE4Line(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef byval(%struct.Line) align 16) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #8 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test5vENK3$_1clERSt6vectorI2ptSaIS1_EE"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) #8 align 2

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

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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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 = !{i64 0, i64 16, !14, i64 16, i64 16, !14, i64 32, i64 16, !14}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!22 = !{!21, !6, i64 4}
!23 = distinct !{!23, !17}
!24 = !{!25, !15, i64 0}
!25 = !{!"_ZTS2pt", !15, i64 0, !15, i64 16}
!26 = !{!25, !15, i64 16}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = !{!30, !30, i64 0}
!30 = !{!"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 }
%struct.Line = type { %struct.pt, 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 }
%class.anon.78 = type { ptr, ptr, ptr }
%class.anon.79 = type { i8 }

@.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__._Z5test5v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [52 x i8], align 1

; 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 nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #1

; 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) #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 nounwind uwtable
declare dso_local void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) unnamed_addr #4 align 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 #5

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Z29convexPolygonLineIntersectionRKSt6vectorI2ptSaIS0_EE4Line(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%struct.Line) align 16) local_unnamed_addr #4

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

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

; 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 #4 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 #4 align 2

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

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

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

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

; 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 #4 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)) #8

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

; 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 #4 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)) #8

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

; 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 #4 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 #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test5v() local_unnamed_addr #4 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 %"class.std::vector", align 8
  %5 = alloca %struct.IncrementalConvexHull, align 16
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::uniform_real_distribution", align 16
  %9 = alloca %struct.pt, align 16
  %10 = alloca %struct.pt, align 16
  %11 = alloca %struct.pt, align 16
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.Line, align 16
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca %class.anon.78, align 8
  %18 = alloca %class.anon.79, align 1
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.std::chrono::time_point", align 8
  %22 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %23 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  store i64 %23, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %2) #9
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  %24 = getelementptr inbounds i8, ptr %17, i64 8
  %25 = getelementptr inbounds i8, ptr %17, i64 16
  br label %44

26:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  %27 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  store i64 %27, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  %28 = 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) %21, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i64 %28, ptr %22, align 8
  %29 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
  %30 = sitofp i64 %29 to double
  %31 = fdiv double %30, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  %32 = 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.49)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %34 = 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)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %36 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %35, i32 %36)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %37, double noundef %31)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @.str.19)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %41 = 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)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %41, i64 noundef %.2.lcssa)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  ret void

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

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

.lr.ph:                                           ; preds = %44, %58
  %52 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %53 = invoke noundef zeroext i1 @_ZN21IncrementalConvexHull8addPointE2pt(ptr noundef nonnull align 16 dereferenceable(64) %5, 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 299, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test5v) #10
  unreachable

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

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) %6) #9
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %60, label %.lr.ph, label %._crit_edge

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

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

.preheader:                                       ; preds = %._crit_edge, %._crit_edge86
  %.188 = phi i64 [ %.2.lcssa, %._crit_edge86 ], [ %.090, %._crit_edge ]
  %.03887 = phi i32 [ %154, %._crit_edge86 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %9, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  br label %65

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

67:                                               ; preds = %65
  %68 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %69 unwind label %110

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

71:                                               ; preds = %69
  %72 = icmp sgt i32 %70, -1
  br i1 %72, label %65, label %73, !llvm.loop !14

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #9
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %11, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  br label %74

74:                                               ; preds = %80, %73
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #9
  %75 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %76 unwind label %112

76:                                               ; preds = %74
  %77 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %78 unwind label %112

78:                                               ; preds = %76
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %12, x86_fp80 noundef %75, x86_fp80 noundef %77)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  %79 = invoke noundef i32 @_Z17isInConvexPolygonRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull byval(%struct.pt) align 16 %9)
          to label %80 unwind label %.loopexit

80:                                               ; preds = %78
  %81 = icmp sgt i32 %79, -1
  br i1 %81, label %74, label %82, !llvm.loop !15

82:                                               ; preds = %80
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = icmp sgt i32 %83, 1
  br i1 %84, label %85, label %116

85:                                               ; preds = %82
  %86 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %87 unwind label %.loopexit.split-lp

87:                                               ; preds = %85
  %88 = urem i64 %86, 10
  %89 = icmp eq i64 %88, 0
  br i1 %89, label %90, label %116

90:                                               ; preds = %87
  %91 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %92 unwind label %114

92:                                               ; preds = %90
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = urem i64 %91, %94
  %96 = trunc i64 %95 to i32
  %sext = shl i64 %95, 32
  %97 = ashr exact i64 %sext, 32
  %98 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %97) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %9, ptr noundef nonnull align 16 dereferenceable(32) %98, i64 32, i1 false), !tbaa.struct !11
  %99 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %100 unwind label %114

100:                                              ; preds = %92
  %101 = and i64 %99, 1
  %.not = icmp eq i64 %101, 0
  br i1 %.not, label %116, label %102

102:                                              ; preds = %100
  %103 = add nsw i32 %96, 1
  %104 = load i32, ptr %3, align 4, !tbaa !5
  %105 = call noundef i32 @_Z3modii(i32 noundef %103, i32 noundef %104)
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %106) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %107, i64 32, i1 false), !tbaa.struct !11
  br label %116

108:                                              ; preds = %69
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %170

110:                                              ; preds = %67, %65
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  br label %170

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

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

112:                                              ; preds = %76, %74
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  br label %169

114:                                              ; preds = %92, %90
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %169

116:                                              ; preds = %100, %102, %87, %82
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #9
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %13, ptr noundef nonnull byval(%struct.pt) align 16 %9, ptr noundef nonnull byval(%struct.pt) align 16 %11)
          to label %117 unwind label %122

117:                                              ; preds = %116
  %118 = invoke i64 @_Z29convexPolygonLineIntersectionRKSt6vectorI2ptSaIS0_EE4Line(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull byval(%struct.Line) align 16 %13)
          to label %119 unwind label %124

119:                                              ; preds = %117
  %.sroa.07.0.extract.trunc = trunc i64 %118 to i32
  %.sroa.6.0.extract.shift = lshr i64 %118, 32
  %.sroa.6.0.extract.trunc = trunc nuw i64 %.sroa.6.0.extract.shift to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #9
  invoke void @_ZNK21IncrementalConvexHull16lineIntersectionE4Line(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %16, ptr noundef nonnull align 16 dereferenceable(64) %5, ptr noundef nonnull byval(%struct.Line) align 16 %13)
          to label %120 unwind label %126

120:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #9
  store ptr %4, ptr %17, align 8, !tbaa !16
  store ptr %3, ptr %24, align 8, !tbaa !16
  store ptr %13, ptr %25, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #9
  %.not39 = icmp eq i32 %.sroa.07.0.extract.trunc, -1
  br i1 %.not39, label %130, label %121

121:                                              ; preds = %120
  invoke void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %.sroa.07.0.extract.trunc)
          to label %130 unwind label %128

122:                                              ; preds = %116
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %168

124:                                              ; preds = %117
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %168

126:                                              ; preds = %119
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %167

128:                                              ; preds = %146, %142, %141, %._crit_edge82, %131, %121
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %166

130:                                              ; preds = %121, %120
  %.not40 = icmp eq i64 %.sroa.6.0.extract.shift, 4294967295
  br i1 %.not40, label %132, label %131

131:                                              ; preds = %130
  invoke void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %.sroa.6.0.extract.trunc)
          to label %132 unwind label %128

132:                                              ; preds = %131, %130
  %133 = load i32, ptr %3, align 4, !tbaa !5
  %134 = icmp sgt i32 %133, 0
  br i1 %134, label %.lr.ph81, label %._crit_edge82

._crit_edge82:                                    ; preds = %135, %132
  invoke void @"_ZZ5test5vENK3$_1clERSt6vectorI2ptSaIS1_EE"(ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %141 unwind label %128

.lr.ph81:                                         ; preds = %132, %135
  %.03779 = phi i32 [ %136, %135 ], [ 0, %132 ]
  invoke void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %.03779)
          to label %135 unwind label %139

135:                                              ; preds = %.lr.ph81
  %136 = add nuw nsw i32 %.03779, 1
  %137 = load i32, ptr %3, align 4, !tbaa !5
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %.lr.ph81, label %._crit_edge82, !llvm.loop !18

139:                                              ; preds = %.lr.ph81
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %166

141:                                              ; preds = %._crit_edge82
  invoke void @"_ZZ5test5vENK3$_1clERSt6vectorI2ptSaIS1_EE"(ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %142 unwind label %128

142:                                              ; preds = %141
  %143 = invoke noundef zeroext i1 @_ZSteqI2ptSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %144 unwind label %128

144:                                              ; preds = %142
  br i1 %143, label %146, label %145

145:                                              ; preds = %144
  call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.4, i32 noundef 337, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test5v) #10
  unreachable

146:                                              ; preds = %144
  %147 = invoke noundef zeroext i1 @_ZSteqI2ptSaIS0_EEbRKSt6vectorIT_T0_ES7_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %148 unwind label %128

148:                                              ; preds = %146
  br i1 %147, label %150, label %149

149:                                              ; preds = %148
  call void @__assert_fail(ptr noundef nonnull @.str.48, ptr noundef nonnull @.str.4, i32 noundef 338, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test5v) #10
  unreachable

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  %151 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  store ptr %151, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %152 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  store ptr %152, ptr %20, align 8
  %153 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %153, label %.lr.ph85, label %._crit_edge86

._crit_edge86:                                    ; preds = %.lr.ph85, %150
  %.2.lcssa = phi i64 [ %.188, %150 ], [ %163, %.lr.ph85 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  %154 = add nuw nsw i32 %.03887, 1
  %exitcond.not = icmp eq i32 %154, 100
  br i1 %exitcond.not, label %61, label %.preheader, !llvm.loop !19

.lr.ph85:                                         ; preds = %150, %.lr.ph85
  %.283 = phi i64 [ %163, %.lr.ph85 ], [ %.188, %150 ]
  %155 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %.sroa.01.0.copyload = load x86_fp80, ptr %155, align 16
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %155, i64 16
  %.sroa.42.0.copyload = load x86_fp80, ptr %.sroa.42.0..sroa_idx, align 16
  %156 = mul nsw i64 %.283, 31
  %157 = sitofp i64 %156 to x86_fp80
  %158 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.sroa.01.0.copyload, x86_fp80 0xK401CEE6B280000000000, x86_fp80 %157)
  %159 = fptosi x86_fp80 %158 to i64
  %160 = mul nsw i64 %159, 31
  %161 = sitofp i64 %160 to x86_fp80
  %162 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.sroa.42.0.copyload, x86_fp80 0xK401CEE6B280000000000, x86_fp80 %161)
  %163 = fptosi x86_fp80 %162 to i64
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %165 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %165, label %.lr.ph85, label %._crit_edge86

166:                                              ; preds = %139, %128
  %.pn = phi { ptr, i32 } [ %140, %139 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #9
  br label %167

167:                                              ; preds = %166, %126
  %.pn.pn = phi { ptr, i32 } [ %.pn, %166 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %168

168:                                              ; preds = %124, %167, %122
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %123, %122 ], [ %.pn.pn, %167 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #9
  br label %169

169:                                              ; preds = %.loopexit, %.loopexit.split-lp, %168, %114, %112
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %168 ], [ %115, %114 ], [ %113, %112 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #9
  br label %170

170:                                              ; preds = %169, %110, %108
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %169 ], [ %109, %108 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %171

171:                                              ; preds = %170, %63
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %170 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %172

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21IncrementalConvexHull16lineIntersectionE4Line(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef byval(%struct.Line) align 16) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test5vENK3$_0clERSt6vectorI2ptSaIS1_EEi"(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #8 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZ5test5vENK3$_1clERSt6vectorI2ptSaIS1_EE"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8 align 2

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

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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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