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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.pt = type { x86_fp80, x86_fp80 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl" = type { %"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pt, std::allocator<pt>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%struct.IncrementalConvexHull = type { %"class.std::set", x86_fp80 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<Ray, Ray, std::_Identity<Ray>, std::less<Ray>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Ray, Ray, std::_Identity<Ray>, std::less<Ray>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<long double>::param_type" }
%"struct.std::uniform_real_distribution<long double>::param_type" = type { x86_fp80, x86_fp80 }
%"struct.std::pair.20" = type { i32, i32 }
%struct.Line = type { %struct.pt, x86_fp80 }
%"struct.std::pair.67" = type { %"struct.std::_Rb_tree_const_iterator", %"struct.std::_Rb_tree_const_iterator" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::_Setprecision" = type { i32 }
%struct.Ray = type <{ ptr, [8 x i8], %struct.pt, %struct.Line, ptr, [8 x 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
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.17 = external hidden unnamed_addr constant [48 x i8], align 1
@.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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16) #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

63:                                               ; preds = %415, %0
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 50000
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %68 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %69 = urem i64 %68, 10
  %70 = add i64 %69, 1
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  %72 = 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 %72, ptr noundef nonnull align 8 dereferenceable(2504) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #8
  invoke void @_ZN21IncrementalConvexHullC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %9)
          to label %73 unwind label %83

73:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr %8, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %74 = load ptr, ptr %12, align 8, !tbaa !11
  %75 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #8
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %77 = load ptr, ptr %12, align 8, !tbaa !11
  %78 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  br label %80

80:                                               ; preds = %100, %73
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %81, label %87, label %82

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

83:                                               ; preds = %67
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %10, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %11, align 4
  br label %420

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

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

92:                                               ; preds = %91
  br label %99

93:                                               ; preds = %91
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 73, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

94:                                               ; preds = %87
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %10, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %419

98:                                               ; No predecessors!
  br label %99

99:                                               ; preds = %98, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %100

100:                                              ; preds = %99
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %80

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

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

104:                                              ; preds = %407, %103
  %105 = load i32, ptr %19, align 4, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %113, label %108

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

109:                                              ; preds = %102
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %10, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %11, align 4
  br label %418

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

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %123, %114
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %116 = 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 %117 unwind label %153

117:                                              ; preds = %115
  %118 = 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 %119 unwind label %153

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

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

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

123:                                              ; preds = %121
  %124 = icmp sge i32 %122, 0
  br i1 %124, label %115, label %125, !llvm.loop !16

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

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

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

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %134 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %135 unwind label %157

135:                                              ; preds = %133
  %136 = load i32, ptr %7, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = urem i64 %134, %137
  %139 = trunc i64 %138 to i32
  store i32 %139, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %140 = load i32, ptr %23, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = call noundef i32 @_Z3modii(i32 noundef %141, i32 noundef %142)
  store i32 %143, ptr %24, align 4, !tbaa !5
  %144 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %145 unwind label %161

145:                                              ; preds = %135
  %146 = urem i64 %144, 2
  %147 = icmp ne i64 %146, 0
  br i1 %147, label %148, label %165

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

149:                                              ; preds = %128, %121, %113
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %10, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %11, align 4
  br label %413

153:                                              ; preds = %119, %117, %115
  %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
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %413

157:                                              ; preds = %133
  %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
  br label %179

161:                                              ; preds = %135
  %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 %178

165:                                              ; preds = %148, %145
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #8
  %166 = load i32, ptr %23, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %167) #8
  invoke void @_ZNK2ptmlEe(ptr dead_on_unwind writable sret(%struct.pt) align 16 %26, ptr noundef nonnull align 16 dereferenceable(32) %168, x86_fp80 noundef 0xK40008000000000000000)
          to label %169 unwind label %174

169:                                              ; preds = %165
  %170 = load i32, ptr %24, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %171) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %172, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZNK2ptmiES_(ptr dead_on_unwind writable sret(%struct.pt) align 16 %25, ptr noundef nonnull align 16 dereferenceable(32) %26, ptr noundef byval(%struct.pt) align 16 %27)
          to label %173 unwind label %174

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

174:                                              ; preds = %169, %165
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %10, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  br label %178

178:                                              ; preds = %174, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %179

179:                                              ; preds = %178, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %413

180:                                              ; preds = %173, %130, %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %181 = invoke i64 @_Z25convexPolygonPointTangentRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef byval(%struct.pt) align 16 %29)
          to label %182 unwind label %195

182:                                              ; preds = %180
  store i64 %181, ptr %28, align 4
  %183 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %184 = load i32, ptr %183, align 4, !tbaa !18
  %185 = icmp sle i32 0, %184
  br i1 %185, label %186, label %191

186:                                              ; preds = %182
  %187 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %188 = load i32, ptr %187, align 4, !tbaa !18
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = icmp slt i32 %188, %189
  br label %191

191:                                              ; preds = %186, %182
  %192 = phi i1 [ false, %182 ], [ %190, %186 ]
  br i1 %192, label %193, label %194

193:                                              ; preds = %191
  br label %200

194:                                              ; preds = %191
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.4, i32 noundef 88, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

195:                                              ; preds = %248, %180
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %10, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %11, align 4
  br label %412

199:                                              ; No predecessors!
  br label %200

200:                                              ; preds = %199, %193
  %201 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !20
  %203 = icmp sle i32 0, %202
  br i1 %203, label %204, label %209

204:                                              ; preds = %200
  %205 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %206 = load i32, ptr %205, align 4, !tbaa !20
  %207 = load i32, ptr %7, align 4, !tbaa !5
  %208 = icmp slt i32 %206, %207
  br label %209

209:                                              ; preds = %204, %200
  %210 = phi i1 [ false, %200 ], [ %208, %204 ]
  br i1 %210, label %211, label %212

211:                                              ; preds = %209
  br label %214

212:                                              ; preds = %209
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 89, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

213:                                              ; No predecessors!
  br label %214

214:                                              ; preds = %213, %211
  %215 = load i64, ptr %4, align 8, !tbaa !9
  %216 = mul nsw i64 31, %215
  %217 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %218 = load i32, ptr %217, align 4, !tbaa !18
  %219 = sext i32 %218 to i64
  %220 = add nsw i64 %216, %219
  store i64 %220, ptr %4, align 8, !tbaa !9
  %221 = load i64, ptr %4, align 8, !tbaa !9
  %222 = mul nsw i64 31, %221
  %223 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %224 = load i32, ptr %223, align 4, !tbaa !20
  %225 = sext i32 %224 to i64
  %226 = add nsw i64 %222, %225
  store i64 %226, ptr %4, align 8, !tbaa !9
  %227 = load i32, ptr %7, align 4, !tbaa !5
  %228 = icmp eq i32 %227, 1
  br i1 %228, label %229, label %239

229:                                              ; preds = %214
  %230 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %231 = load i32, ptr %230, align 4, !tbaa !18
  %232 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %233 = load i32, ptr %232, align 4, !tbaa !20
  %234 = icmp eq i32 %231, %233
  br i1 %234, label %235, label %236

235:                                              ; preds = %229
  br label %238

236:                                              ; preds = %229
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.4, i32 noundef 93, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

237:                                              ; No predecessors!
  br label %238

238:                                              ; preds = %237, %235
  br label %270

239:                                              ; preds = %214
  %240 = load i32, ptr %7, align 4, !tbaa !5
  %241 = icmp eq i32 %240, 2
  br i1 %241, label %242, label %259

242:                                              ; preds = %239
  %243 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %244 = load i32, ptr %243, align 4, !tbaa !18
  %245 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %246 = load i32, ptr %245, align 4, !tbaa !20
  %247 = icmp eq i32 %244, %246
  br i1 %247, label %248, label %258

248:                                              ; preds = %242
  %249 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %249, i64 32, i1 false), !tbaa.struct !13
  %250 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %250, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %251 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %30, ptr noundef byval(%struct.pt) align 16 %31, ptr noundef byval(%struct.pt) align 16 %32)
          to label %252 unwind label %195

252:                                              ; preds = %248
  %253 = icmp eq i32 %251, 0
  br i1 %253, label %254, label %255

254:                                              ; preds = %252
  br label %257

255:                                              ; preds = %252
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.4, i32 noundef 95, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

256:                                              ; No predecessors!
  br label %257

257:                                              ; preds = %256, %254
  br label %258

258:                                              ; preds = %257, %242
  br label %269

259:                                              ; preds = %239
  %260 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %261 = load i32, ptr %260, align 4, !tbaa !18
  %262 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %263 = load i32, ptr %262, align 4, !tbaa !20
  %264 = icmp ne i32 %261, %263
  br i1 %264, label %265, label %266

265:                                              ; preds = %259
  br label %268

266:                                              ; preds = %259
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.4, i32 noundef 96, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

267:                                              ; No predecessors!
  br label %268

268:                                              ; preds = %267, %265
  br label %269

269:                                              ; preds = %268, %258
  br label %270

270:                                              ; preds = %269, %238
  call void @llvm.lifetime.start.p0(i64 48, ptr %33) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %271 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %272 = load i32, ptr %271, align 4, !tbaa !18
  %273 = sext i32 %272 to i64
  %274 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %273) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %35, ptr align 16 %274, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %33, ptr noundef byval(%struct.pt) align 16 %34, ptr noundef byval(%struct.pt) align 16 %35)
          to label %275 unwind label %286

275:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 48, ptr %36) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %276 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %277 = load i32, ptr %276, align 4, !tbaa !20
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %278) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %279, i64 32, i1 false), !tbaa.struct !13
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %36, ptr noundef byval(%struct.pt) align 16 %37, ptr noundef byval(%struct.pt) align 16 %38)
          to label %280 unwind label %290

280:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %367, %280
  %282 = load i32, ptr %39, align 4, !tbaa !5
  %283 = load i32, ptr %7, align 4, !tbaa !5
  %284 = icmp slt i32 %282, %283
  br i1 %284, label %294, label %285

285:                                              ; preds = %281
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %370

286:                                              ; preds = %270
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %10, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %11, align 4
  br label %411

290:                                              ; preds = %275
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %10, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %11, align 4
  br label %410

294:                                              ; preds = %281
  %295 = load i32, ptr %39, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %296) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %297, i64 32, i1 false), !tbaa.struct !13
  %298 = invoke noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %33, ptr noundef byval(%struct.pt) align 16 %40)
          to label %299 unwind label %327

299:                                              ; preds = %294
  %300 = icmp slt i32 %298, 0
  br i1 %300, label %323, label %301

301:                                              ; preds = %299
  %302 = load i32, ptr %39, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %303) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %304, i64 32, i1 false), !tbaa.struct !13
  %305 = invoke noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %33, ptr noundef byval(%struct.pt) align 16 %41)
          to label %306 unwind label %327

306:                                              ; preds = %301
  %307 = icmp eq i32 %305, 0
  br i1 %307, label %308, label %321

308:                                              ; preds = %306
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %309 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %310 = load i32, ptr %309, align 4, !tbaa !18
  %311 = sext i32 %310 to i64
  %312 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %311) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %312, i64 32, i1 false), !tbaa.struct !13
  %313 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %42, ptr noundef byval(%struct.pt) align 16 %43)
          to label %314 unwind label %327

314:                                              ; preds = %308
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %315 = load i32, ptr %39, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %316) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %317, i64 32, i1 false), !tbaa.struct !13
  %318 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %44, ptr noundef byval(%struct.pt) align 16 %45)
          to label %319 unwind label %327

319:                                              ; preds = %314
  %320 = call noundef zeroext i1 @_Z2leee(x86_fp80 noundef %313, x86_fp80 noundef %318)
  br label %321

321:                                              ; preds = %319, %306
  %322 = phi i1 [ false, %306 ], [ %320, %319 ]
  br label %323

323:                                              ; preds = %321, %299
  %324 = phi i1 [ true, %299 ], [ %322, %321 ]
  br i1 %324, label %325, label %326

325:                                              ; preds = %323
  br label %332

326:                                              ; preds = %323
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 99, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

327:                                              ; preds = %352, %346, %339, %332, %314, %308, %301, %294
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %10, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %410

331:                                              ; No predecessors!
  br label %332

332:                                              ; preds = %331, %325
  %333 = load i32, ptr %39, align 4, !tbaa !5
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %334) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %46, ptr align 16 %335, i64 32, i1 false), !tbaa.struct !13
  %336 = invoke noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %36, ptr noundef byval(%struct.pt) align 16 %46)
          to label %337 unwind label %327

337:                                              ; preds = %332
  %338 = icmp sgt i32 %336, 0
  br i1 %338, label %361, label %339

339:                                              ; preds = %337
  %340 = load i32, ptr %39, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %341) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %342, i64 32, i1 false), !tbaa.struct !13
  %343 = invoke noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %36, ptr noundef byval(%struct.pt) align 16 %47)
          to label %344 unwind label %327

344:                                              ; preds = %339
  %345 = icmp eq i32 %343, 0
  br i1 %345, label %346, label %359

346:                                              ; preds = %344
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %347 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %348 = load i32, ptr %347, align 4, !tbaa !20
  %349 = sext i32 %348 to i64
  %350 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %349) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %350, i64 32, i1 false), !tbaa.struct !13
  %351 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %48, ptr noundef byval(%struct.pt) align 16 %49)
          to label %352 unwind label %327

352:                                              ; preds = %346
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %353 = load i32, ptr %39, align 4, !tbaa !5
  %354 = sext i32 %353 to i64
  %355 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %354) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %355, i64 32, i1 false), !tbaa.struct !13
  %356 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %50, ptr noundef byval(%struct.pt) align 16 %51)
          to label %357 unwind label %327

357:                                              ; preds = %352
  %358 = call noundef zeroext i1 @_Z2leee(x86_fp80 noundef %351, x86_fp80 noundef %356)
  br label %359

359:                                              ; preds = %357, %344
  %360 = phi i1 [ false, %344 ], [ %358, %357 ]
  br label %361

361:                                              ; preds = %359, %337
  %362 = phi i1 [ true, %337 ], [ %360, %359 ]
  br i1 %362, label %363, label %364

363:                                              ; preds = %361
  br label %366

364:                                              ; preds = %361
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.4, i32 noundef 100, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

365:                                              ; No predecessors!
  br label %366

366:                                              ; preds = %365, %363
  br label %367

367:                                              ; preds = %366
  %368 = load i32, ptr %39, align 4, !tbaa !5
  %369 = add nsw i32 %368, 1
  store i32 %369, ptr %39, align 4, !tbaa !5
  br label %281, !llvm.loop !21

370:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %20, i64 32, i1 false), !tbaa.struct !13
  %371 = invoke { ptr, ptr } @_ZNK21IncrementalConvexHull13pointTangentsE2pt(ptr noundef nonnull align 16 dereferenceable(64) %9, ptr noundef byval(%struct.pt) align 16 %53)
          to label %372 unwind label %388

372:                                              ; preds = %370
  %373 = getelementptr inbounds { ptr, ptr }, ptr %52, i32 0, i32 0
  %374 = extractvalue { ptr, ptr } %371, 0
  store ptr %374, ptr %373, align 8
  %375 = getelementptr inbounds { ptr, ptr }, ptr %52, i32 0, i32 1
  %376 = extractvalue { ptr, ptr } %371, 1
  store ptr %376, ptr %375, align 8
  %377 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 0
  %378 = load i32, ptr %377, align 4, !tbaa !18
  %379 = sext i32 %378 to i64
  %380 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %379) #8
  %381 = getelementptr inbounds %"struct.std::pair.67", ptr %52, i32 0, i32 0
  %382 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %381) #8
  %383 = getelementptr inbounds %struct.Ray, ptr %382, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %383, i64 32, i1 false), !tbaa.struct !13
  %384 = invoke noundef zeroext i1 @_ZNK2pteqES_(ptr noundef nonnull align 16 dereferenceable(32) %380, ptr noundef byval(%struct.pt) align 16 %54)
          to label %385 unwind label %388

385:                                              ; preds = %372
  br i1 %384, label %386, label %387

386:                                              ; preds = %385
  br label %393

387:                                              ; preds = %385
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.4, i32 noundef 103, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

388:                                              ; preds = %393, %372, %370
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %10, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #8
  br label %410

392:                                              ; No predecessors!
  br label %393

393:                                              ; preds = %392, %386
  %394 = getelementptr inbounds %"struct.std::pair.20", ptr %28, i32 0, i32 1
  %395 = load i32, ptr %394, align 4, !tbaa !20
  %396 = sext i32 %395 to i64
  %397 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %396) #8
  %398 = getelementptr inbounds %"struct.std::pair.67", ptr %52, i32 0, i32 1
  %399 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %398) #8
  %400 = getelementptr inbounds %struct.Ray, ptr %399, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %400, i64 32, i1 false), !tbaa.struct !13
  %401 = invoke noundef zeroext i1 @_ZNK2pteqES_(ptr noundef nonnull align 16 dereferenceable(32) %397, ptr noundef byval(%struct.pt) align 16 %55)
          to label %402 unwind label %388

402:                                              ; preds = %393
  br i1 %401, label %403, label %404

403:                                              ; preds = %402
  br label %406

404:                                              ; preds = %402
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.4, i32 noundef 104, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

405:                                              ; No predecessors!
  br label %406

406:                                              ; preds = %405, %403
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %407

407:                                              ; preds = %406
  %408 = load i32, ptr %19, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr %19, align 4, !tbaa !5
  br label %104, !llvm.loop !22

410:                                              ; preds = %388, %327, %290
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  br label %411

411:                                              ; preds = %410, %286
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #8
  br label %412

412:                                              ; preds = %411, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %413

413:                                              ; preds = %412, %179, %153, %149
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %418

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

415:                                              ; preds = %414
  %416 = load i32, ptr %5, align 4, !tbaa !5
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %5, align 4, !tbaa !5
  br label %63, !llvm.loop !23

418:                                              ; preds = %413, %109
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %419

419:                                              ; preds = %418, %94
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %9) #8
  br label %420

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

421:                                              ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  %422 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %423 = getelementptr inbounds %"class.std::chrono::time_point", ptr %56, i32 0, i32 0
  %424 = getelementptr inbounds %"class.std::chrono::duration", ptr %423, i32 0, i32 0
  store i64 %422, ptr %424, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %425 = 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) %56, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %426 = getelementptr inbounds %"class.std::chrono::duration", ptr %58, i32 0, i32 0
  store i64 %425, ptr %426, align 8
  %427 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %58)
  %428 = sitofp i64 %427 to double
  %429 = fdiv double %428, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  store double %429, ptr %57, align 8, !tbaa !24
  %430 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
  %431 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %430, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %432 = 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)
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %432, ptr noundef @_ZSt5fixedRSt8ios_base)
  %434 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %435 = getelementptr inbounds %"struct.std::_Setprecision", ptr %59, i32 0, i32 0
  store i32 %434, ptr %435, align 4
  %436 = getelementptr inbounds %"struct.std::_Setprecision", ptr %59, i32 0, i32 0
  %437 = load i32, ptr %436, align 4
  %438 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %433, i32 %437)
  %439 = load double, ptr %57, align 8, !tbaa !24
  %440 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %438, double noundef %439)
  %441 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %440, ptr noundef @.str.19)
  %442 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %441, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %443 = 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)
  %444 = load i64, ptr %4, align 8, !tbaa !9
  %445 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %443, i64 noundef %444)
  %446 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %445, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  ret void

447:                                              ; preds = %420
  %448 = load ptr, ptr %10, align 8
  %449 = load i32, ptr %11, align 4
  %450 = insertvalue { ptr, i32 } poison, ptr %448, 0
  %451 = insertvalue { ptr, i32 } %450, i32 %449, 1
  resume { ptr, i32 } %451
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{i64 0, i64 16, !14, i64 16, i64 16, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"long double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!20 = !{!19, !6, i64 4}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}


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

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

@.str.4 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.17 = external hidden unnamed_addr constant [48 x i8], align 1
@.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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

46:                                               ; preds = %0, %68
  %.0130 = phi i64 [ 0, %0 ], [ %133, %68 ]
  %.053129 = phi i32 [ 0, %0 ], [ %69, %68 ]
  %47 = call noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
  %48 = urem i64 %47, 10
  %49 = udiv i64 %47, 10
  %50 = trunc nuw nsw i64 %48 to i32
  %51 = add nuw nsw i32 %50, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_Z21generateConvexPolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, i32 noundef %51, ptr noundef nonnull align 8 dereferenceable(2504) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  call void @_ZN21IncrementalConvexHullC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %52 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %52, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %53 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %53, ptr %6, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %54, label %.lr.ph, label %._crit_edge

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

.preheader82:                                     ; preds = %._crit_edge
  %.not = icmp eq i64 %48, 0
  %55 = zext nneg i32 %51 to i64
  %56 = icmp eq i32 %51, 2
  %57 = add i64 %47, 1
  %.neg = mul i64 %49, 4294967286
  %58 = add i64 %.neg, %57
  %wide.trip.count = and i64 %58, 4294967295
  br label %72

.lr.ph:                                           ; preds = %46, %65
  %59 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %60 = invoke noundef zeroext i1 @_ZN21IncrementalConvexHull8addPointE2pt(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull byval(%struct.pt) align 16 %59)
          to label %61 unwind label %63

61:                                               ; preds = %.lr.ph
  br i1 %60, label %65, label %62

62:                                               ; preds = %61
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 73, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

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

65:                                               ; preds = %61
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %67, label %.lr.ph, label %._crit_edge

68:                                               ; preds = %208
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %4) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %69 = add nuw nsw i32 %.053129, 1
  %exitcond144.not = icmp eq i32 %69, 50000
  br i1 %exitcond144.not, label %28, label %46, !llvm.loop !5

70:                                               ; preds = %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %213

72:                                               ; preds = %.preheader82, %208
  %.1128 = phi i64 [ %.0130, %.preheader82 ], [ %133, %208 ]
  %.057127 = phi i32 [ 0, %.preheader82 ], [ %209, %208 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %8, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  br label %73

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

75:                                               ; preds = %73
  %76 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %77 unwind label %98

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

79:                                               ; preds = %77
  %80 = icmp sgt i32 %78, -1
  br i1 %80, label %73, label %81, !llvm.loop !12

81:                                               ; preds = %79
  br i1 %.not, label %117, label %82

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

84:                                               ; preds = %82
  %85 = urem i64 %83, 10
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %87, label %117

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %88 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %89 unwind label %100

89:                                               ; preds = %87
  %90 = urem i64 %88, %55
  %91 = trunc nuw nsw i64 %90 to i32
  store i32 %91, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  %92 = add nuw nsw i32 %91, 1
  %93 = call noundef i32 @_Z3modii(i32 noundef %92, i32 noundef %51)
  store i32 %93, ptr %11, align 4, !tbaa !13
  %94 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %95 unwind label %102

95:                                               ; preds = %89
  %96 = and i64 %94, 1
  %.not68 = icmp eq i64 %96, 0
  br i1 %.not68, label %104, label %97

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

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

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

98:                                               ; preds = %75, %73
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %212

100:                                              ; preds = %87
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %116

102:                                              ; preds = %89
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %115

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

108:                                              ; preds = %104
  %109 = load i32, ptr %11, align 4, !tbaa !13
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %110) #8
  invoke void @_ZNK2ptmiES_(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %12, ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull byval(%struct.pt) align 16 %111)
          to label %112 unwind label %113

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

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

115:                                              ; preds = %113, %102
  %.pn = phi { ptr, i32 } [ %114, %113 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %116

116:                                              ; preds = %115, %100
  %.pn.pn = phi { ptr, i32 } [ %.pn, %115 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %212

117:                                              ; preds = %112, %84, %81
  %118 = invoke i64 @_Z25convexPolygonPointTangentRKSt6vectorI2ptSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %119 unwind label %121

119:                                              ; preds = %117
  %.sroa.014.0.extract.trunc = trunc i64 %118 to i32
  %.sroa.13.0.extract.shift = lshr i64 %118, 32
  %.sroa.13.0.extract.trunc = trunc nuw i64 %.sroa.13.0.extract.shift to i32
  %.not71 = icmp ugt i32 %.sroa.014.0.extract.trunc, %50
  br i1 %.not71, label %120, label %123

120:                                              ; preds = %119
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4, i32 noundef 88, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

121:                                              ; preds = %139, %117
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %212

123:                                              ; preds = %119
  %124 = icmp sgt i64 %118, -1
  %125 = icmp sge i32 %50, %.sroa.13.0.extract.trunc
  %126 = select i1 %124, i1 %125, i1 false
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 89, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

128:                                              ; preds = %123
  %129 = mul nsw i64 %.1128, 31
  %130 = and i64 %118, 4294967295
  %131 = add nsw i64 %130, %129
  %132 = mul nsw i64 %131, 31
  %133 = add nsw i64 %132, %.sroa.13.0.extract.shift
  %134 = icmp eq i32 %.sroa.014.0.extract.trunc, %.sroa.13.0.extract.trunc
  br i1 %.not, label %135, label %137

135:                                              ; preds = %128
  br i1 %134, label %148, label %136

136:                                              ; preds = %135
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.4, i32 noundef 93, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

137:                                              ; preds = %128
  br i1 %56, label %138, label %146

138:                                              ; preds = %137
  br i1 %134, label %139, label %148

139:                                              ; preds = %138
  %140 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 16 dereferenceable(32) %140, i64 32, i1 false), !tbaa.struct !7
  %141 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #8
  %142 = invoke noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %14, ptr noundef nonnull byval(%struct.pt) align 16 %141, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %143 unwind label %121

143:                                              ; preds = %139
  %144 = icmp eq i32 %142, 0
  br i1 %144, label %148, label %145

145:                                              ; preds = %143
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.4, i32 noundef 95, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

146:                                              ; preds = %137
  br i1 %134, label %147, label %148

147:                                              ; preds = %146
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.4, i32 noundef 96, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

148:                                              ; preds = %143, %138, %146, %135
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %15) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %16, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !7
  %149 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %130) #8
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %15, ptr noundef nonnull byval(%struct.pt) align 16 %16, ptr noundef nonnull byval(%struct.pt) align 16 %149)
          to label %150 unwind label %154

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !7
  %151 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.sroa.13.0.extract.shift) #8
  invoke void @_ZN4LineC2E2ptS0_(ptr noundef nonnull align 16 dereferenceable(48) %17, ptr noundef nonnull byval(%struct.pt) align 16 %18, ptr noundef nonnull byval(%struct.pt) align 16 %151)
          to label %.preheader unwind label %156

152:                                              ; preds = %.critedge4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #8
  %153 = invoke { ptr, ptr } @_ZNK21IncrementalConvexHull13pointTangentsE2pt(ptr noundef nonnull align 16 dereferenceable(64) %4, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %190 unwind label %199

154:                                              ; preds = %148
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %211

156:                                              ; preds = %150
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %210

.preheader:                                       ; preds = %150, %.critedge4
  %indvars.iv = phi i64 [ %indvars.iv.next, %.critedge4 ], [ 0, %150 ]
  %158 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  %159 = call noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %15, ptr noundef nonnull byval(%struct.pt) align 16 %158)
  %160 = icmp slt i32 %159, 0
  br i1 %160, label %.critedge, label %161

161:                                              ; preds = %.preheader
  %162 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  %163 = call noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %15, ptr noundef nonnull byval(%struct.pt) align 16 %162)
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %.critedge2

165:                                              ; preds = %161
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %19, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !7
  %166 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %130) #8
  %167 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %19, ptr noundef nonnull byval(%struct.pt) align 16 %166)
          to label %168 unwind label %173

168:                                              ; preds = %165
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %20, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !7
  %169 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  %170 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %20, ptr noundef nonnull byval(%struct.pt) align 16 %169)
          to label %171 unwind label %173

171:                                              ; preds = %168
  %172 = call noundef zeroext i1 @_Z2leee(x86_fp80 noundef %167, x86_fp80 noundef %170)
  br i1 %172, label %.critedge, label %.critedge2

.critedge2:                                       ; preds = %161, %171
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 99, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

173:                                              ; preds = %185, %182, %168, %165
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %210

.critedge:                                        ; preds = %.preheader, %171
  %175 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  %176 = call noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %17, ptr noundef nonnull byval(%struct.pt) align 16 %175)
  %177 = icmp sgt i32 %176, 0
  br i1 %177, label %.critedge4, label %178

178:                                              ; preds = %.critedge
  %179 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  %180 = call noundef i32 @_ZNK4Line6onLeftE2pt(ptr noundef nonnull align 16 dereferenceable(48) %17, ptr noundef nonnull byval(%struct.pt) align 16 %179)
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %.critedge6

182:                                              ; preds = %178
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %21, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !7
  %183 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.sroa.13.0.extract.shift) #8
  %184 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %21, ptr noundef nonnull byval(%struct.pt) align 16 %183)
          to label %185 unwind label %173

185:                                              ; preds = %182
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %22, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !7
  %186 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  %187 = invoke noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %22, ptr noundef nonnull byval(%struct.pt) align 16 %186)
          to label %188 unwind label %173

188:                                              ; preds = %185
  %189 = call noundef zeroext i1 @_Z2leee(x86_fp80 noundef %184, x86_fp80 noundef %187)
  br i1 %189, label %.critedge4, label %.critedge6

.critedge6:                                       ; preds = %178, %188
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.4, i32 noundef 100, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

.critedge4:                                       ; preds = %.critedge, %188
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %152, label %.preheader, !llvm.loop !15

190:                                              ; preds = %152
  %191 = extractvalue { ptr, ptr } %153, 0
  store ptr %191, ptr %23, align 8
  %192 = extractvalue { ptr, ptr } %153, 1
  store ptr %192, ptr %27, align 8
  %193 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %130) #8
  %194 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %195 = getelementptr inbounds i8, ptr %194, i64 16
  %196 = invoke noundef zeroext i1 @_ZNK2pteqES_(ptr noundef nonnull align 16 dereferenceable(32) %193, ptr noundef nonnull byval(%struct.pt) align 16 %195)
          to label %197 unwind label %199

197:                                              ; preds = %190
  br i1 %196, label %201, label %198

198:                                              ; preds = %197
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.4, i32 noundef 103, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

199:                                              ; preds = %201, %190, %152
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #8
  br label %210

201:                                              ; preds = %197
  %202 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.sroa.13.0.extract.shift) #8
  %203 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorI3RayEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  %204 = getelementptr inbounds i8, ptr %203, i64 16
  %205 = invoke noundef zeroext i1 @_ZNK2pteqES_(ptr noundef nonnull align 16 dereferenceable(32) %202, ptr noundef nonnull byval(%struct.pt) align 16 %204)
          to label %206 unwind label %199

206:                                              ; preds = %201
  br i1 %205, label %208, label %207

207:                                              ; preds = %206
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.4, i32 noundef 104, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

208:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  %209 = add nuw nsw i32 %.057127, 1
  %exitcond143.not = icmp eq i32 %209, 100
  br i1 %exitcond143.not, label %68, label %72, !llvm.loop !16

210:                                              ; preds = %199, %173, %156
  %.pn74 = phi { ptr, i32 } [ %174, %173 ], [ %200, %199 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #8
  br label %211

211:                                              ; preds = %210, %154
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %210 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #8
  br label %212

212:                                              ; preds = %.loopexit, %.loopexit.split-lp, %121, %211, %116, %98
  %.pn74.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %116 ], [ %99, %98 ], [ %.pn74.pn, %211 ], [ %122, %121 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %213

213:                                              ; preds = %212, %70
  %.pn74.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn.pn, %212 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %214

214:                                              ; preds = %213, %63
  %.pn80 = phi { ptr, i32 } [ %64, %63 ], [ %.pn74.pn.pn.pn.pn, %213 ]
  call void @_ZNSt3setI3RaySt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 16 dereferenceable(64) %4) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn80
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{i64 0, i64 16, !8, i64 16, i64 16, !8}
!8 = !{!9, !9, i64 0}
!9 = !{!"long double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = distinct !{!12, !6}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}


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