; LLVM IR from wesley-a-leung/Resources :: Tests/C++/geometry/2d (PolygonTriangulationFuzzTest)

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

%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::allocator" = type { i8 }
%"class.std::set" = type { %"class.std::_Rb_tree.99" }
%"class.std::_Rb_tree.99" = type { %"struct.std::_Rb_tree<pt, pt, std::_Identity<pt>, std::less<pt>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<pt, pt, std::_Identity<pt>, std::less<pt>>::_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.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.104" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<long double>::param_type" }
%"struct.std::uniform_real_distribution<long double>::param_type" = type { x86_fp80, x86_fp80 }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.90" = type { ptr }
%class.anon.107 = type { ptr }
%struct.UnionFind = type <{ %"class.std::vector.65", i32, [4 x i8] }>
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.AdjacencyListGraph = type { %"class.std::vector.108" }
%"class.std::vector.108" = type { %"struct.std::_Vector_base.109" }
%"struct.std::_Vector_base.109" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.70" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.114 = type { ptr, ptr, ptr, ptr }
%"struct.std::pair.20" = type { i32, i32 }

@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [113 x i8], align 1
@__PRETTY_FUNCTION__._Z15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEb = external hidden unnamed_addr constant [52 x i8], align 1

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

; 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 @_Z4dist2ptS_(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 noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #4

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_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_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEb(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(2504) %2, i1 noundef zeroext %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::set", align 8
  %14 = alloca %"class.std::uniform_int_distribution", align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::pair.104", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca x86_fp80, align 16
  %23 = alloca i32, align 4
  %24 = alloca %struct.pt, align 16
  %25 = alloca %struct.pt, align 16
  %26 = alloca %struct.pt, align 16
  %27 = alloca %struct.pt, align 16
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::uniform_real_distribution", align 16
  %30 = alloca ptr, align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"struct.std::pair.104", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca x86_fp80, align 16
  %38 = alloca i32, align 4
  %39 = alloca %struct.pt, align 16
  %40 = alloca %struct.pt, align 16
  %41 = alloca %struct.pt, align 16
  %42 = alloca %struct.pt, align 16
  %43 = alloca %"class.std::vector.24", align 8
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %48 = alloca %class.anon.107, align 8
  %49 = alloca %struct.UnionFind, align 8
  %50 = alloca %struct.AdjacencyListGraph, align 8
  %51 = alloca ptr, align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %54 = alloca ptr, align 8
  %55 = alloca i32, align 4
  %56 = alloca %"class.__gnu_cxx::__normal_iterator.70", align 8
  %57 = alloca %"class.__gnu_cxx::__normal_iterator.70", align 8
  %58 = alloca i1, align 1
  %59 = alloca %"class.std::function", align 8
  %60 = alloca %class.anon.114, align 8
  %61 = alloca i8, align 1
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca %struct.pt, align 16
  %65 = alloca %struct.pt, align 16
  %66 = alloca %struct.pt, align 16
  %67 = alloca %struct.pt, align 16
  %68 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %69 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %70 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %71 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %72 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %73 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %5, align 8
  store i32 %1, ptr %6, align 4, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !9
  %74 = zext i1 %3 to i8
  store i8 %74, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @_ZNSaI2ptEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorI2ptSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %76, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %77 unwind label %82

77:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = icmp sge i32 %78, 3
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  br label %87

81:                                               ; preds = %77
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 12, ptr noundef @__PRETTY_FUNCTION__._Z15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEb) #8
  unreachable

82:                                               ; preds = %4
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %11, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %12, align 4
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %537

86:                                               ; No predecessors!
  br label %87

87:                                               ; preds = %86, %80
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #7
  call void @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  %88 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %198

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  invoke void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef 0, i32 noundef 10)
          to label %91 unwind label %103

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %194, %91
  br label %93

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr %9, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %94 = load ptr, ptr %15, align 8, !tbaa !9
  %95 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #7
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %97 = load ptr, ptr %15, align 8, !tbaa !9
  %98 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #7
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %98, ptr %99, align 8
  br label %100

100:                                              ; preds = %135, %93
  %101 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br i1 %101, label %107, label %102

102:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %141

103:                                              ; preds = %141, %90
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %11, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %12, align 4
  br label %197

107:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %108 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  store ptr %108, ptr %18, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %125, %107
  %110 = load ptr, ptr %7, align 8, !tbaa !9
  %111 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(2504) %110)
          to label %112 unwind label %137

112:                                              ; preds = %109
  %113 = sitofp i32 %111 to x86_fp80
  %114 = load ptr, ptr %18, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.pt, ptr %114, i32 0, i32 0
  store x86_fp80 %113, ptr %115, align 16, !tbaa !15
  %116 = load ptr, ptr %7, align 8, !tbaa !9
  %117 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(2504) %116)
          to label %118 unwind label %137

118:                                              ; preds = %112
  %119 = sitofp i32 %117 to x86_fp80
  %120 = load ptr, ptr %18, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.pt, ptr %120, i32 0, i32 1
  store x86_fp80 %119, ptr %121, align 16, !tbaa !18
  br label %122

122:                                              ; preds = %118
  %123 = load ptr, ptr %18, align 8, !tbaa !9
  %124 = invoke noundef i64 @_ZNKSt3setI2ptSt4lessIS0_ESaIS0_EE5countERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 16 dereferenceable(32) %123)
          to label %125 unwind label %137

125:                                              ; preds = %122
  %126 = icmp ne i64 %124, 0
  br i1 %126, label %109, label %127, !llvm.loop !19

127:                                              ; preds = %125
  %128 = load ptr, ptr %18, align 8, !tbaa !9
  %129 = invoke { ptr, i8 } @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 16 dereferenceable(32) %128)
          to label %130 unwind label %137

130:                                              ; preds = %127
  %131 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %132 = extractvalue { ptr, i8 } %129, 0
  store ptr %132, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %134 = extractvalue { ptr, i8 } %129, 1
  store i8 %134, ptr %133, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %135

135:                                              ; preds = %130
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %100

137:                                              ; preds = %127, %122, %112, %109
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %11, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %197

141:                                              ; preds = %102
  %142 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  %144 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %147, ptr %149)
          to label %150 unwind label %103

150:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  store x86_fp80 0xK00000000000000000000, ptr %22, align 16, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %169, %150
  %152 = load i32, ptr %23, align 4, !tbaa !5
  %153 = load i32, ptr %6, align 4, !tbaa !5
  %154 = sub nsw i32 %153, 1
  %155 = icmp slt i32 %152, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %176

157:                                              ; preds = %151
  %158 = load i32, ptr %23, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %159) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %160, i64 32, i1 false), !tbaa.struct !22
  %161 = load i32, ptr %23, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %163) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %164, i64 32, i1 false), !tbaa.struct !22
  %165 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef byval(%struct.pt) align 16 %24, ptr noundef byval(%struct.pt) align 16 %25)
          to label %166 unwind label %172

166:                                              ; preds = %157
  %167 = load x86_fp80, ptr %22, align 16, !tbaa !21
  %168 = fadd x86_fp80 %167, %165
  store x86_fp80 %168, ptr %22, align 16, !tbaa !21
  br label %169

169:                                              ; preds = %166
  %170 = load i32, ptr %23, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %23, align 4, !tbaa !5
  br label %151, !llvm.loop !23

172:                                              ; preds = %157
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %11, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %195

176:                                              ; preds = %156
  %177 = load x86_fp80, ptr %22, align 16, !tbaa !21
  %178 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %178, i64 32, i1 false), !tbaa.struct !22
  %179 = load i32, ptr %6, align 4, !tbaa !5
  %180 = sub nsw i32 %179, 1
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %181) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %182, i64 32, i1 false), !tbaa.struct !22
  %183 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef byval(%struct.pt) align 16 %26, ptr noundef byval(%struct.pt) align 16 %27)
          to label %184 unwind label %187

184:                                              ; preds = %176
  %185 = call noundef zeroext i1 @_Z2eqee(x86_fp80 noundef %177, x86_fp80 noundef %183)
  br i1 %185, label %191, label %186

186:                                              ; preds = %184
  store i32 3, ptr %28, align 4
  br label %192

187:                                              ; preds = %176
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %11, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %12, align 4
  br label %195

191:                                              ; preds = %184
  store i32 0, ptr %28, align 4
  br label %192

192:                                              ; preds = %191, %186
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  %193 = load i32, ptr %28, align 4
  switch i32 %193, label %543 [
    i32 0, label %194
    i32 3, label %196
  ]

194:                                              ; preds = %192
  br label %92, !llvm.loop !24

195:                                              ; preds = %187, %172
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %197

196:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %304

197:                                              ; preds = %195, %137, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %536

198:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  invoke void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %29, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK4002A000000000000000)
          to label %199 unwind label %211

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %300, %199
  br label %201

201:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store ptr %9, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %202 = load ptr, ptr %30, align 8, !tbaa !9
  %203 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #7
  %204 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %203, ptr %204, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %205 = load ptr, ptr %30, align 8, !tbaa !9
  %206 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %205) #7
  %207 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %206, ptr %207, align 8
  br label %208

208:                                              ; preds = %241, %201
  %209 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  br i1 %209, label %215, label %210

210:                                              ; preds = %208
  store i32 13, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %247

211:                                              ; preds = %247, %198
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %11, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %12, align 4
  br label %303

215:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %216 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  store ptr %216, ptr %33, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %231, %215
  %218 = load ptr, ptr %7, align 8, !tbaa !9
  %219 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(2504) %218)
          to label %220 unwind label %243

220:                                              ; preds = %217
  %221 = load ptr, ptr %33, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.pt, ptr %221, i32 0, i32 0
  store x86_fp80 %219, ptr %222, align 16, !tbaa !15
  %223 = load ptr, ptr %7, align 8, !tbaa !9
  %224 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(2504) %223)
          to label %225 unwind label %243

225:                                              ; preds = %220
  %226 = load ptr, ptr %33, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct.pt, ptr %226, i32 0, i32 1
  store x86_fp80 %224, ptr %227, align 16, !tbaa !18
  br label %228

228:                                              ; preds = %225
  %229 = load ptr, ptr %33, align 8, !tbaa !9
  %230 = invoke noundef i64 @_ZNKSt3setI2ptSt4lessIS0_ESaIS0_EE5countERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 16 dereferenceable(32) %229)
          to label %231 unwind label %243

231:                                              ; preds = %228
  %232 = icmp ne i64 %230, 0
  br i1 %232, label %217, label %233, !llvm.loop !25

233:                                              ; preds = %231
  %234 = load ptr, ptr %33, align 8, !tbaa !9
  %235 = invoke { ptr, i8 } @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 16 dereferenceable(32) %234)
          to label %236 unwind label %243

236:                                              ; preds = %233
  %237 = getelementptr inbounds { ptr, i8 }, ptr %34, i32 0, i32 0
  %238 = extractvalue { ptr, i8 } %235, 0
  store ptr %238, ptr %237, align 8
  %239 = getelementptr inbounds { ptr, i8 }, ptr %34, i32 0, i32 1
  %240 = extractvalue { ptr, i8 } %235, 1
  store i8 %240, ptr %239, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %241

241:                                              ; preds = %236
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br label %208

243:                                              ; preds = %233, %228, %220, %217
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %11, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %303

247:                                              ; preds = %210
  %248 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  %250 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %251 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %250, ptr %251, align 8
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8
  %254 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %253, ptr %255)
          to label %256 unwind label %211

256:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #7
  store x86_fp80 0xK00000000000000000000, ptr %37, align 16, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %275, %256
  %258 = load i32, ptr %38, align 4, !tbaa !5
  %259 = load i32, ptr %6, align 4, !tbaa !5
  %260 = sub nsw i32 %259, 1
  %261 = icmp slt i32 %258, %260
  br i1 %261, label %263, label %262

262:                                              ; preds = %257
  store i32 17, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %282

263:                                              ; preds = %257
  %264 = load i32, ptr %38, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %265) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 %266, i64 32, i1 false), !tbaa.struct !22
  %267 = load i32, ptr %38, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %269) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 %270, i64 32, i1 false), !tbaa.struct !22
  %271 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef byval(%struct.pt) align 16 %39, ptr noundef byval(%struct.pt) align 16 %40)
          to label %272 unwind label %278

272:                                              ; preds = %263
  %273 = load x86_fp80, ptr %37, align 16, !tbaa !21
  %274 = fadd x86_fp80 %273, %271
  store x86_fp80 %274, ptr %37, align 16, !tbaa !21
  br label %275

275:                                              ; preds = %272
  %276 = load i32, ptr %38, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %38, align 4, !tbaa !5
  br label %257, !llvm.loop !26

278:                                              ; preds = %263
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %11, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %301

282:                                              ; preds = %262
  %283 = load x86_fp80, ptr %37, align 16, !tbaa !21
  %284 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %284, i64 32, i1 false), !tbaa.struct !22
  %285 = load i32, ptr %6, align 4, !tbaa !5
  %286 = sub nsw i32 %285, 1
  %287 = sext i32 %286 to i64
  %288 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %287) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %288, i64 32, i1 false), !tbaa.struct !22
  %289 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef byval(%struct.pt) align 16 %41, ptr noundef byval(%struct.pt) align 16 %42)
          to label %290 unwind label %293

290:                                              ; preds = %282
  %291 = call noundef zeroext i1 @_Z2eqee(x86_fp80 noundef %283, x86_fp80 noundef %289)
  br i1 %291, label %297, label %292

292:                                              ; preds = %290
  store i32 12, ptr %28, align 4
  br label %298

293:                                              ; preds = %282
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %11, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %12, align 4
  br label %301

297:                                              ; preds = %290
  store i32 0, ptr %28, align 4
  br label %298

298:                                              ; preds = %297, %292
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  %299 = load i32, ptr %28, align 4
  switch i32 %299, label %543 [
    i32 0, label %300
    i32 12, label %302
  ]

300:                                              ; preds = %298
  br label %200, !llvm.loop !27

301:                                              ; preds = %293, %278
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #7
  br label %303

302:                                              ; preds = %298
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %304

303:                                              ; preds = %301, %243, %211
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %536

304:                                              ; preds = %302, %196
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %305

305:                                              ; preds = %327, %304
  %306 = load i32, ptr %44, align 4, !tbaa !5
  %307 = load i32, ptr %6, align 4, !tbaa !5
  %308 = icmp slt i32 %306, %307
  br i1 %308, label %310, label %309

309:                                              ; preds = %305
  store i32 20, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %330

310:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %311

311:                                              ; preds = %319, %310
  %312 = load i32, ptr %45, align 4, !tbaa !5
  %313 = load i32, ptr %44, align 4, !tbaa !5
  %314 = icmp slt i32 %312, %313
  br i1 %314, label %316, label %315

315:                                              ; preds = %311
  store i32 23, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %326

316:                                              ; preds = %311
  %317 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %318 unwind label %322

318:                                              ; preds = %316
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %45, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %45, align 4, !tbaa !5
  br label %311, !llvm.loop !28

322:                                              ; preds = %316
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %11, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %535

326:                                              ; preds = %315
  br label %327

327:                                              ; preds = %326
  %328 = load i32, ptr %44, align 4, !tbaa !5
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %44, align 4, !tbaa !5
  br label %305, !llvm.loop !29

330:                                              ; preds = %309
  %331 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %332 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %46, i32 0, i32 0
  store ptr %331, ptr %332, align 8
  %333 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %334 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %47, i32 0, i32 0
  store ptr %333, ptr %334, align 8
  %335 = getelementptr inbounds %class.anon.107, ptr %48, i32 0, i32 0
  store ptr %9, ptr %335, align 8, !tbaa !9
  %336 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %46, i32 0, i32 0
  %337 = load ptr, ptr %336, align 8
  %338 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %47, i32 0, i32 0
  %339 = load ptr, ptr %338, align 8
  %340 = getelementptr inbounds %class.anon.107, ptr %48, i32 0, i32 0
  %341 = load ptr, ptr %340, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_1EvT_SD_T0_"(ptr %337, ptr %339, ptr %341)
          to label %342 unwind label %356

342:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #7
  %343 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN9UnionFindC2Ei(ptr noundef nonnull align 8 dereferenceable(28) %49, i32 noundef %343)
          to label %344 unwind label %360

344:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #7
  %345 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN18AdjacencyListGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %50, i32 noundef %345)
          to label %346 unwind label %364

346:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #7
  store ptr %43, ptr %51, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #7
  %347 = load ptr, ptr %51, align 8, !tbaa !9
  %348 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %347) #7
  %349 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %52, i32 0, i32 0
  store ptr %348, ptr %349, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #7
  %350 = load ptr, ptr %51, align 8, !tbaa !9
  %351 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %350) #7
  %352 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.90", ptr %53, i32 0, i32 0
  store ptr %351, ptr %352, align 8
  br label %353

353:                                              ; preds = %391, %346
  %354 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53) #7
  br i1 %354, label %368, label %355

355:                                              ; preds = %353
  store i32 26, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %393

356:                                              ; preds = %330
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %11, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %12, align 4
  br label %535

360:                                              ; preds = %342
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %11, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %12, align 4
  br label %534

364:                                              ; preds = %344
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %11, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %12, align 4
  br label %533

368:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #7
  %369 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #7
  store ptr %369, ptr %54, align 8, !tbaa !9
  %370 = load ptr, ptr %54, align 8, !tbaa !9
  %371 = getelementptr inbounds %"struct.std::pair.20", ptr %370, i32 0, i32 0
  %372 = load i32, ptr %371, align 4, !tbaa !30
  %373 = load ptr, ptr %54, align 8, !tbaa !9
  %374 = getelementptr inbounds %"struct.std::pair.20", ptr %373, i32 0, i32 1
  %375 = load i32, ptr %374, align 4, !tbaa !32
  %376 = invoke noundef zeroext i1 @_ZN9UnionFind4joinEii(ptr noundef nonnull align 8 dereferenceable(28) %49, i32 noundef %372, i32 noundef %375)
          to label %377 unwind label %386

377:                                              ; preds = %368
  br i1 %376, label %378, label %390

378:                                              ; preds = %377
  %379 = load ptr, ptr %54, align 8, !tbaa !9
  %380 = getelementptr inbounds %"struct.std::pair.20", ptr %379, i32 0, i32 0
  %381 = load i32, ptr %380, align 4, !tbaa !30
  %382 = load ptr, ptr %54, align 8, !tbaa !9
  %383 = getelementptr inbounds %"struct.std::pair.20", ptr %382, i32 0, i32 1
  %384 = load i32, ptr %383, align 4, !tbaa !32
  invoke void @_ZN18AdjacencyListGraph9addBiEdgeEii(ptr noundef nonnull align 8 dereferenceable(24) %50, i32 noundef %381, i32 noundef %384)
          to label %385 unwind label %386

385:                                              ; preds = %378
  br label %390

386:                                              ; preds = %378, %368
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %11, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %532

390:                                              ; preds = %385, %377
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #7
  br label %391

391:                                              ; preds = %390
  %392 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #7
  br label %353

393:                                              ; preds = %355
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #7
  store i32 0, ptr %55, align 4, !tbaa !5
  br label %394

394:                                              ; preds = %416, %393
  %395 = load i32, ptr %55, align 4, !tbaa !5
  %396 = load i32, ptr %6, align 4, !tbaa !5
  %397 = icmp slt i32 %395, %396
  br i1 %397, label %399, label %398

398:                                              ; preds = %394
  store i32 28, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  br label %423

399:                                              ; preds = %394
  %400 = load i32, ptr %55, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %401) #7
  %403 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %402) #7
  %404 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.70", ptr %56, i32 0, i32 0
  store ptr %403, ptr %404, align 8
  %405 = load i32, ptr %55, align 4, !tbaa !5
  %406 = sext i32 %405 to i64
  %407 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %406) #7
  %408 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %407) #7
  %409 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.70", ptr %57, i32 0, i32 0
  store ptr %408, ptr %409, align 8
  %410 = load ptr, ptr %7, align 8, !tbaa !9
  %411 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.70", ptr %56, i32 0, i32 0
  %412 = load ptr, ptr %411, align 8
  %413 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.70", ptr %57, i32 0, i32 0
  %414 = load ptr, ptr %413, align 8
  invoke void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEERSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEvT_SA_OT0_(ptr %412, ptr %414, ptr noundef nonnull align 8 dereferenceable(2504) %410)
          to label %415 unwind label %419

415:                                              ; preds = %399
  br label %416

416:                                              ; preds = %415
  %417 = load i32, ptr %55, align 4, !tbaa !5
  %418 = add nsw i32 %417, 1
  store i32 %418, ptr %55, align 4, !tbaa !5
  br label %394, !llvm.loop !33

419:                                              ; preds = %399
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %11, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  br label %532

423:                                              ; preds = %398
  store i1 false, ptr %58, align 1
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %59) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %60) #7
  %424 = getelementptr inbounds %class.anon.114, ptr %60, i32 0, i32 0
  store ptr %0, ptr %424, align 8, !tbaa !9
  %425 = getelementptr inbounds %class.anon.114, ptr %60, i32 0, i32 1
  store ptr %9, ptr %425, align 8, !tbaa !9
  %426 = getelementptr inbounds %class.anon.114, ptr %60, i32 0, i32 2
  store ptr %50, ptr %426, align 8, !tbaa !9
  %427 = getelementptr inbounds %class.anon.114, ptr %60, i32 0, i32 3
  store ptr %59, ptr %427, align 8, !tbaa !9
  invoke void @"_ZNSt8functionIFviiEEC2IZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef nonnull align 8 dereferenceable(32) %60)
          to label %428 unwind label %440

428:                                              ; preds = %423
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #7
  invoke void @_ZNKSt8functionIFviiEEclEii(ptr noundef nonnull align 8 dereferenceable(32) %59, i32 noundef 0, i32 noundef -1)
          to label %429 unwind label %444

429:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 1, ptr %61) #7
  store i8 0, ptr %61, align 1, !tbaa !11
  br label %430

430:                                              ; preds = %525, %429
  %431 = load i8, ptr %61, align 1, !tbaa !11, !range !13, !noundef !14
  %432 = trunc i8 %431 to i1
  %433 = xor i1 %432, true
  br i1 %433, label %434, label %526

434:                                              ; preds = %430
  store i8 1, ptr %61, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #7
  store i32 0, ptr %62, align 4, !tbaa !5
  br label %435

435:                                              ; preds = %522, %434
  %436 = load i32, ptr %62, align 4, !tbaa !5
  %437 = load i32, ptr %6, align 4, !tbaa !5
  %438 = icmp slt i32 %436, %437
  br i1 %438, label %448, label %439

439:                                              ; preds = %435
  store i32 33, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #7
  br label %525

440:                                              ; preds = %423
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %11, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #7
  br label %529

444:                                              ; preds = %428
  %445 = landingpad { ptr, i32 }
          cleanup
  %446 = extractvalue { ptr, i32 } %445, 0
  store ptr %446, ptr %11, align 8
  %447 = extractvalue { ptr, i32 } %445, 1
  store i32 %447, ptr %12, align 4
  br label %528

448:                                              ; preds = %435
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #7
  %449 = load i32, ptr %62, align 4, !tbaa !5
  %450 = add nsw i32 %449, 2
  store i32 %450, ptr %63, align 4, !tbaa !5
  br label %451

451:                                              ; preds = %517, %448
  %452 = load i32, ptr %63, align 4, !tbaa !5
  %453 = load i32, ptr %6, align 4, !tbaa !5
  %454 = icmp slt i32 %452, %453
  br i1 %454, label %456, label %455

455:                                              ; preds = %451
  store i32 36, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #7
  br label %521

456:                                              ; preds = %451
  %457 = load i32, ptr %63, align 4, !tbaa !5
  %458 = add nsw i32 %457, 1
  %459 = load i32, ptr %6, align 4, !tbaa !5
  %460 = call noundef i32 @_Z3modii(i32 noundef %458, i32 noundef %459)
  %461 = load i32, ptr %62, align 4, !tbaa !5
  %462 = icmp ne i32 %460, %461
  br i1 %462, label %463, label %516

463:                                              ; preds = %456
  %464 = load i32, ptr %62, align 4, !tbaa !5
  %465 = sext i32 %464 to i64
  %466 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %465) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %466, i64 32, i1 false), !tbaa.struct !22
  %467 = load i32, ptr %62, align 4, !tbaa !5
  %468 = add nsw i32 %467, 1
  %469 = load i32, ptr %6, align 4, !tbaa !5
  %470 = call noundef i32 @_Z3modii(i32 noundef %468, i32 noundef %469)
  %471 = sext i32 %470 to i64
  %472 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %471) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %472, i64 32, i1 false), !tbaa.struct !22
  %473 = load i32, ptr %63, align 4, !tbaa !5
  %474 = sext i32 %473 to i64
  %475 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %474) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %475, i64 32, i1 false), !tbaa.struct !22
  %476 = load i32, ptr %63, align 4, !tbaa !5
  %477 = add nsw i32 %476, 1
  %478 = load i32, ptr %6, align 4, !tbaa !5
  %479 = call noundef i32 @_Z3modii(i32 noundef %477, i32 noundef %478)
  %480 = sext i32 %479 to i64
  %481 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %480) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 16 %481, i64 32, i1 false), !tbaa.struct !22
  %482 = invoke noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16 %64, ptr noundef byval(%struct.pt) align 16 %65, ptr noundef byval(%struct.pt) align 16 %66, ptr noundef byval(%struct.pt) align 16 %67)
          to label %483 unwind label %507

483:                                              ; preds = %463
  %484 = icmp ne i32 %482, 0
  br i1 %484, label %485, label %515

485:                                              ; preds = %483
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #7
  %486 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %487 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %70, i32 0, i32 0
  store ptr %486, ptr %487, align 8
  %488 = load i32, ptr %62, align 4, !tbaa !5
  %489 = sext i32 %488 to i64
  %490 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %70, i64 noundef %489) #7
  %491 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %69, i32 0, i32 0
  store ptr %490, ptr %491, align 8
  %492 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %69, i64 noundef 1) #7
  %493 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %68, i32 0, i32 0
  store ptr %492, ptr %493, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #7
  %494 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %495 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %73, i32 0, i32 0
  store ptr %494, ptr %495, align 8
  %496 = load i32, ptr %63, align 4, !tbaa !5
  %497 = sext i32 %496 to i64
  %498 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %73, i64 noundef %497) #7
  %499 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %72, i32 0, i32 0
  store ptr %498, ptr %499, align 8
  %500 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %72, i64 noundef 1) #7
  %501 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %71, i32 0, i32 0
  store ptr %500, ptr %501, align 8
  %502 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %68, i32 0, i32 0
  %503 = load ptr, ptr %502, align 8
  %504 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %71, i32 0, i32 0
  %505 = load ptr, ptr %504, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %503, ptr %505)
          to label %506 unwind label %511

506:                                              ; preds = %485
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #7
  store i8 0, ptr %61, align 1, !tbaa !11
  br label %515

507:                                              ; preds = %463
  %508 = landingpad { ptr, i32 }
          cleanup
  %509 = extractvalue { ptr, i32 } %508, 0
  store ptr %509, ptr %11, align 8
  %510 = extractvalue { ptr, i32 } %508, 1
  store i32 %510, ptr %12, align 4
  br label %520

511:                                              ; preds = %485
  %512 = landingpad { ptr, i32 }
          cleanup
  %513 = extractvalue { ptr, i32 } %512, 0
  store ptr %513, ptr %11, align 8
  %514 = extractvalue { ptr, i32 } %512, 1
  store i32 %514, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #7
  br label %520

515:                                              ; preds = %506, %483
  br label %516

516:                                              ; preds = %515, %456
  br label %517

517:                                              ; preds = %516
  %518 = load i32, ptr %63, align 4, !tbaa !5
  %519 = add nsw i32 %518, 1
  store i32 %519, ptr %63, align 4, !tbaa !5
  br label %451, !llvm.loop !34

520:                                              ; preds = %511, %507
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #7
  br label %528

521:                                              ; preds = %455
  br label %522

522:                                              ; preds = %521
  %523 = load i32, ptr %62, align 4, !tbaa !5
  %524 = add nsw i32 %523, 1
  store i32 %524, ptr %62, align 4, !tbaa !5
  br label %435, !llvm.loop !35

525:                                              ; preds = %439
  br label %430, !llvm.loop !36

526:                                              ; preds = %430
  store i1 true, ptr %58, align 1
  store i32 1, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #7
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #7
  %527 = load i1, ptr %58, align 1
  br i1 %527, label %531, label %530

528:                                              ; preds = %520, %444
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #7
  br label %529

529:                                              ; preds = %528, %440
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #7
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %532

530:                                              ; preds = %526
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %531

531:                                              ; preds = %530, %526
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #7
  call void @_ZN9UnionFindD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %49) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #7
  call void @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #7
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  ret void

532:                                              ; preds = %529, %419, %386
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  br label %533

533:                                              ; preds = %532, %364
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #7
  call void @_ZN9UnionFindD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %49) #7
  br label %534

534:                                              ; preds = %533, %360
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #7
  br label %535

535:                                              ; preds = %534, %356, %322
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #7
  br label %536

536:                                              ; preds = %535, %303, %197
  call void @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #7
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %537

537:                                              ; preds = %536, %82
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  br label %538

538:                                              ; preds = %537
  %539 = load ptr, ptr %11, align 8
  %540 = load i32, ptr %12, align 4
  %541 = insertvalue { ptr, i32 } poison, ptr %539, 0
  %542 = insertvalue { ptr, i32 } %541, i32 %540, 1
  resume { ptr, i32 } %542

543:                                              ; preds = %298, %192
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(32)) #2 align 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: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_1EvT_SD_T0_"(ptr, ptr, ptr) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9UnionFindC2Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18AdjacencyListGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9UnionFind4joinEii(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, i32 noundef) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviiEEC2IZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFviiEEclEii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9UnionFindD2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS2pt", !17, i64 0, !17, i64 16}
!17 = !{!"long double", !7, i64 0}
!18 = !{!16, !17, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !17, i64 0}
!22 = !{i64 0, i64 16, !21, i64 16, i64 16, !21}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = !{!31, !6, i64 0}
!31 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!32 = !{!31, !6, i64 4}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}


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

%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::allocator" = type { i8 }
%"class.std::set" = type { %"class.std::_Rb_tree.99" }
%"class.std::_Rb_tree.99" = type { %"struct.std::_Rb_tree<pt, pt, std::_Identity<pt>, std::less<pt>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<pt, pt, std::_Identity<pt>, std::less<pt>>::_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.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<long double>::param_type" }
%"struct.std::uniform_real_distribution<long double>::param_type" = type { x86_fp80, x86_fp80 }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.UnionFind = type <{ %"class.std::vector.65", i32, [4 x i8] }>
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.AdjacencyListGraph = type { %"class.std::vector.108" }
%"class.std::vector.108" = type { %"struct.std::_Vector_base.109" }
%"struct.std::_Vector_base.109" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.90" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.114 = type { ptr, ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [113 x i8], align 1
@__PRETTY_FUNCTION__._Z15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEb = external hidden unnamed_addr constant [52 x i8], align 1

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

; Function Attrs: mustprogress 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 @_Z4dist2ptS_(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 noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #4

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_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_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEb(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(2504) %2, i1 noundef zeroext %3) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::set", align 8
  %8 = alloca %"class.std::uniform_int_distribution", align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %struct.pt, align 16
  %12 = alloca %struct.pt, align 16
  %13 = alloca %"class.std::uniform_real_distribution", align 16
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %struct.pt, align 16
  %17 = alloca %struct.pt, align 16
  %18 = alloca %"class.std::vector.24", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.UnionFind, align 8
  %22 = alloca %struct.AdjacencyListGraph, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.90", align 8
  %25 = alloca %"class.std::function", align 8
  %26 = alloca %class.anon.114, align 8
  %27 = alloca %struct.pt, align 16
  %28 = alloca %struct.pt, align 16
  %29 = alloca %struct.pt, align 16
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  %34 = sext i32 %1 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaI2ptEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorI2ptSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %35 unwind label %38

35:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %36 = icmp sgt i32 %1, 2
  br i1 %36, label %40, label %37

37:                                               ; preds = %35
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 12, ptr noundef nonnull @__PRETTY_FUNCTION__._Z15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEb) #9
  unreachable

38:                                               ; preds = %4
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI2ptED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %221

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  br i1 %3, label %41, label %83

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  invoke void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef 0, i32 noundef 10)
          to label %.preheader140 unwind label %.loopexit.split-lp142

.preheader140:                                    ; preds = %41
  %42 = add nsw i32 %1, -1
  %43 = zext nneg i32 %42 to i64
  br label %44

44:                                               ; preds = %.preheader140, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %45 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %45, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %46 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %46, ptr %10, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %47, label %.lr.ph173, label %._crit_edge174

._crit_edge174:                                   ; preds = %63, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %48 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %49 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %48, ptr %49)
          to label %.lr.ph177 unwind label %.loopexit141

.loopexit141:                                     ; preds = %._crit_edge174
  %lpad.loopexit143 = landingpad { ptr, i32 }
          cleanup
  br label %82

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

.lr.ph173:                                        ; preds = %44, %63
  %50 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  br label %52

52:                                               ; preds = %60, %.lr.ph173
  %53 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %54 unwind label %.loopexit

54:                                               ; preds = %52
  %55 = sitofp i32 %53 to x86_fp80
  store x86_fp80 %55, ptr %50, align 16, !tbaa !5
  %56 = invoke noundef i32 @_ZNSt24uniform_int_distributionIiEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %57 unwind label %.loopexit

57:                                               ; preds = %54
  %58 = sitofp i32 %56 to x86_fp80
  store x86_fp80 %58, ptr %51, align 16, !tbaa !10
  %59 = invoke noundef i64 @_ZNKSt3setI2ptSt4lessIS0_ESaIS0_EE5countERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 16 dereferenceable(32) %50)
          to label %60 unwind label %.loopexit

60:                                               ; preds = %57
  %.not134 = icmp eq i64 %59, 0
  br i1 %.not134, label %61, label %52, !llvm.loop !11

61:                                               ; preds = %60
  %62 = invoke { ptr, i8 } @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 16 dereferenceable(32) %50)
          to label %63 unwind label %.loopexit.split-lp

63:                                               ; preds = %61
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %65 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %65, label %.lr.ph173, label %._crit_edge174

.loopexit:                                        ; preds = %52, %54, %57
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %66

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

66:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %82

._crit_edge178:                                   ; preds = %73
  %67 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %12, ptr noundef nonnull align 16 dereferenceable(32) %67, i64 32, i1 false), !tbaa.struct !13
  %68 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %43) #8
  %69 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %12, ptr noundef nonnull byval(%struct.pt) align 16 %68)
          to label %77 unwind label %79

.lr.ph177:                                        ; preds = %._crit_edge174, %73
  %indvars.iv205 = phi i64 [ %indvars.iv.next206, %73 ], [ 0, %._crit_edge174 ]
  %.0106176 = phi x86_fp80 [ %74, %73 ], [ 0xK00000000000000000000, %._crit_edge174 ]
  %70 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv205) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 16 dereferenceable(32) %70, i64 32, i1 false), !tbaa.struct !13
  %indvars.iv.next206 = add nuw nsw i64 %indvars.iv205, 1
  %71 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv.next206) #8
  %72 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %11, ptr noundef nonnull byval(%struct.pt) align 16 %71)
          to label %73 unwind label %75

73:                                               ; preds = %.lr.ph177
  %74 = fadd x86_fp80 %.0106176, %72
  %exitcond209.not = icmp eq i64 %indvars.iv.next206, %43
  br i1 %exitcond209.not, label %._crit_edge178, label %.lr.ph177, !llvm.loop !15

75:                                               ; preds = %.lr.ph177
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %82

77:                                               ; preds = %._crit_edge178
  %78 = call noundef zeroext i1 @_Z2eqee(x86_fp80 noundef %74, x86_fp80 noundef %69)
  br i1 %78, label %44, label %81

79:                                               ; preds = %._crit_edge178
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %82

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %.lr.ph186.preheader

82:                                               ; preds = %.loopexit141, %.loopexit.split-lp142, %75, %79, %66
  %.pn135 = phi { ptr, i32 } [ %lpad.phi, %66 ], [ %76, %75 ], [ %80, %79 ], [ %lpad.loopexit143, %.loopexit141 ], [ %lpad.loopexit.split-lp144, %.loopexit.split-lp142 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %220

83:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  invoke void @_ZNSt25uniform_real_distributionIeEC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %13, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK4002A000000000000000)
          to label %.preheader152 unwind label %.loopexit.split-lp154

.preheader152:                                    ; preds = %83
  %84 = add nsw i32 %1, -1
  %85 = zext nneg i32 %84 to i64
  br label %86

86:                                               ; preds = %.preheader152, %117
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %87 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %87, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %88 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %88, ptr %15, align 8
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br i1 %89, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %103, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  %90 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %91 = call ptr @_ZNSt6vectorI2ptSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %90, ptr %91)
          to label %.lr.ph169 unwind label %.loopexit153

.loopexit153:                                     ; preds = %._crit_edge
  %lpad.loopexit155 = landingpad { ptr, i32 }
          cleanup
  br label %122

.loopexit.split-lp154:                            ; preds = %83
  %lpad.loopexit.split-lp156 = landingpad { ptr, i32 }
          cleanup
  br label %122

.lr.ph:                                           ; preds = %86, %103
  %92 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  br label %94

94:                                               ; preds = %100, %.lr.ph
  %95 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %96 unwind label %.loopexit146

96:                                               ; preds = %94
  store x86_fp80 %95, ptr %92, align 16, !tbaa !5
  %97 = invoke noundef x86_fp80 @_ZNSt25uniform_real_distributionIeEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEeRT_(ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %98 unwind label %.loopexit146

98:                                               ; preds = %96
  store x86_fp80 %97, ptr %93, align 16, !tbaa !10
  %99 = invoke noundef i64 @_ZNKSt3setI2ptSt4lessIS0_ESaIS0_EE5countERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 16 dereferenceable(32) %92)
          to label %100 unwind label %.loopexit146

100:                                              ; preds = %98
  %.not = icmp eq i64 %99, 0
  br i1 %.not, label %101, label %94, !llvm.loop !16

101:                                              ; preds = %100
  %102 = invoke { ptr, i8 } @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 16 dereferenceable(32) %92)
          to label %103 unwind label %.loopexit.split-lp147

103:                                              ; preds = %101
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  %105 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2ptSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br i1 %105, label %.lr.ph, label %._crit_edge

.loopexit146:                                     ; preds = %94, %96, %98
  %lpad.loopexit148 = landingpad { ptr, i32 }
          cleanup
  br label %106

.loopexit.split-lp147:                            ; preds = %101
  %lpad.loopexit.split-lp149 = landingpad { ptr, i32 }
          cleanup
  br label %106

106:                                              ; preds = %.loopexit.split-lp147, %.loopexit146
  %lpad.phi150 = phi { ptr, i32 } [ %lpad.loopexit148, %.loopexit146 ], [ %lpad.loopexit.split-lp149, %.loopexit.split-lp147 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %122

._crit_edge170:                                   ; preds = %113
  %107 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %17, ptr noundef nonnull align 16 dereferenceable(32) %107, i64 32, i1 false), !tbaa.struct !13
  %108 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %85) #8
  %109 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %17, ptr noundef nonnull byval(%struct.pt) align 16 %108)
          to label %117 unwind label %119

.lr.ph169:                                        ; preds = %._crit_edge, %113
  %indvars.iv = phi i64 [ %indvars.iv.next, %113 ], [ 0, %._crit_edge ]
  %.0111168 = phi x86_fp80 [ %114, %113 ], [ 0xK00000000000000000000, %._crit_edge ]
  %110 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %16, ptr noundef nonnull align 16 dereferenceable(32) %110, i64 32, i1 false), !tbaa.struct !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %111 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv.next) #8
  %112 = invoke noundef x86_fp80 @_Z4dist2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %16, ptr noundef nonnull byval(%struct.pt) align 16 %111)
          to label %113 unwind label %115

113:                                              ; preds = %.lr.ph169
  %114 = fadd x86_fp80 %.0111168, %112
  %exitcond.not = icmp eq i64 %indvars.iv.next, %85
  br i1 %exitcond.not, label %._crit_edge170, label %.lr.ph169, !llvm.loop !17

115:                                              ; preds = %.lr.ph169
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %122

117:                                              ; preds = %._crit_edge170
  %118 = call noundef zeroext i1 @_Z2eqee(x86_fp80 noundef %114, x86_fp80 noundef %109)
  br i1 %118, label %86, label %121

119:                                              ; preds = %._crit_edge170
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %122

121:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  br label %.lr.ph186.preheader

122:                                              ; preds = %.loopexit153, %.loopexit.split-lp154, %115, %119, %106
  %.pn117 = phi { ptr, i32 } [ %lpad.phi150, %106 ], [ %116, %115 ], [ %120, %119 ], [ %lpad.loopexit155, %.loopexit153 ], [ %lpad.loopexit.split-lp156, %.loopexit.split-lp154 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  br label %220

.lr.ph186.preheader:                              ; preds = %81, %121
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  store i32 0, ptr %19, align 4, !tbaa !18
  br label %.lr.ph186

._crit_edge187:                                   ; preds = %._crit_edge183
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  %123 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %124 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_1EvT_SD_T0_"(ptr %123, ptr %124, ptr nonnull %5)
          to label %137 unwind label %143

.lr.ph186:                                        ; preds = %.lr.ph186.preheader, %._crit_edge183
  %125 = phi i32 [ 0, %.lr.ph186.preheader ], [ %127, %._crit_edge183 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store i32 0, ptr %20, align 4, !tbaa !18
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %.lr.ph182, label %._crit_edge183

._crit_edge183:                                   ; preds = %130, %.lr.ph186
  %.lcssa = phi i32 [ %125, %.lr.ph186 ], [ %133, %130 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  %127 = add nsw i32 %.lcssa, 1
  store i32 %127, ptr %19, align 4, !tbaa !18
  %128 = icmp slt i32 %127, %1
  br i1 %128, label %.lr.ph186, label %._crit_edge187, !llvm.loop !20

.lr.ph182:                                        ; preds = %.lr.ph186, %130
  %129 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %130 unwind label %135

130:                                              ; preds = %.lr.ph182
  %131 = load i32, ptr %20, align 4, !tbaa !18
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %20, align 4, !tbaa !18
  %133 = load i32, ptr %19, align 4, !tbaa !18
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %.lr.ph182, label %._crit_edge183, !llvm.loop !21

135:                                              ; preds = %.lr.ph182
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  br label %219

137:                                              ; preds = %._crit_edge187
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #8
  invoke void @_ZN9UnionFindC2Ei(ptr noundef nonnull align 8 dereferenceable(28) %21, i32 noundef %1)
          to label %138 unwind label %145

138:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #8
  invoke void @_ZN18AdjacencyListGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %1)
          to label %139 unwind label %147

139:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %140 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  store ptr %140, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %141 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  store ptr %141, ptr %24, align 8
  %142 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %142, label %.lr.ph189, label %.lr.ph193.preheader

.lr.ph193.preheader:                              ; preds = %160, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  %smax = call i32 @llvm.smax.i32(i32 %1, i32 1)
  %wide.trip.count213 = zext nneg i32 %smax to i64
  br label %.lr.ph193

143:                                              ; preds = %._crit_edge187
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %219

145:                                              ; preds = %137
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %218

147:                                              ; preds = %138
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %217

.lr.ph189:                                        ; preds = %139, %160
  %149 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %150 = load i32, ptr %149, align 4, !tbaa !22
  %151 = getelementptr inbounds i8, ptr %149, i64 4
  %152 = load i32, ptr %151, align 4, !tbaa !24
  %153 = invoke noundef zeroext i1 @_ZN9UnionFind4joinEii(ptr noundef nonnull align 8 dereferenceable(28) %21, i32 noundef %150, i32 noundef %152)
          to label %154 unwind label %158

154:                                              ; preds = %.lr.ph189
  br i1 %153, label %155, label %160

155:                                              ; preds = %154
  %156 = load i32, ptr %149, align 4, !tbaa !22
  %157 = load i32, ptr %151, align 4, !tbaa !24
  invoke void @_ZN18AdjacencyListGraph9addBiEdgeEii(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %156, i32 noundef %157)
          to label %160 unwind label %158

158:                                              ; preds = %155, %.lr.ph189
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  br label %216

160:                                              ; preds = %155, %154
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %162 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %162, label %.lr.ph189, label %.lr.ph193.preheader

._crit_edge194:                                   ; preds = %170
  call void @_ZNSt6vectorI2ptSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  store ptr %0, ptr %26, align 8, !tbaa !25
  %163 = getelementptr inbounds i8, ptr %26, i64 8
  store ptr %5, ptr %163, align 8, !tbaa !25
  %164 = getelementptr inbounds i8, ptr %26, i64 16
  store ptr %22, ptr %164, align 8, !tbaa !25
  %165 = getelementptr inbounds i8, ptr %26, i64 24
  store ptr %25, ptr %165, align 8, !tbaa !25
  invoke void @"_ZNSt8functionIFviiEEC2IZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %173 unwind label %176

.lr.ph193:                                        ; preds = %.lr.ph193.preheader, %170
  %indvars.iv210 = phi i64 [ 0, %.lr.ph193.preheader ], [ %indvars.iv.next211, %170 ]
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv210) #8
  %167 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #8
  %168 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv210) #8
  %169 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #8
  invoke void @_ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEERSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEvT_SA_OT0_(ptr %167, ptr %169, ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %170 unwind label %171

170:                                              ; preds = %.lr.ph193
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %exitcond214.not = icmp eq i64 %indvars.iv.next211, %wide.trip.count213
  br i1 %exitcond214.not, label %._crit_edge194, label %.lr.ph193, !llvm.loop !27

171:                                              ; preds = %.lr.ph193
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %216

173:                                              ; preds = %._crit_edge194
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  invoke void @_ZNKSt8functionIFviiEEclEii(ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 0, i32 noundef -1)
          to label %.critedge unwind label %178

174:                                              ; preds = %.critedge
  br i1 %.1103, label %213, label %.critedge.backedge

.critedge:                                        ; preds = %173, %.critedge.backedge
  %.1103 = phi i1 [ %.1103.be, %.critedge.backedge ], [ true, %173 ]
  %.0101 = phi i32 [ %.0101.be, %.critedge.backedge ], [ 0, %173 ]
  %175 = icmp slt i32 %.0101, %1
  br i1 %175, label %180, label %174, !llvm.loop !28

176:                                              ; preds = %._crit_edge194
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %215

178:                                              ; preds = %173
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %214

180:                                              ; preds = %.critedge
  %181 = add nuw nsw i32 %.0101, 2
  %182 = icmp slt i32 %181, %1
  br i1 %182, label %.lr.ph198, label %.._crit_edge199_crit_edge

.._crit_edge199_crit_edge:                        ; preds = %180
  %.pre = add nuw nsw i32 %.0101, 1
  br label %.critedge.backedge

.lr.ph198:                                        ; preds = %180
  %183 = zext nneg i32 %.0101 to i64
  %184 = add nuw nsw i32 %.0101, 1
  %185 = zext i32 %181 to i64
  br label %186

.critedge.backedge:                               ; preds = %212, %.._crit_edge199_crit_edge, %174
  %.1103.be = phi i1 [ true, %174 ], [ %.1103, %.._crit_edge199_crit_edge ], [ %.3105, %212 ]
  %.0101.be = phi i32 [ 0, %174 ], [ %.pre, %.._crit_edge199_crit_edge ], [ %184, %212 ]
  br label %.critedge, !llvm.loop !29

186:                                              ; preds = %.lr.ph198, %212
  %indvars.iv215 = phi i64 [ %185, %.lr.ph198 ], [ %indvars.iv.next216, %212 ]
  %.2104195 = phi i1 [ %.1103, %.lr.ph198 ], [ %.3105, %212 ]
  %indvars.iv.next216 = add nuw nsw i64 %indvars.iv215, 1
  %187 = trunc i64 %indvars.iv.next216 to i32
  %188 = call noundef i32 @_Z3modii(i32 noundef %187, i32 noundef %1)
  %.not119 = icmp eq i32 %188, %.0101
  br i1 %.not119, label %212, label %189

189:                                              ; preds = %186
  %190 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %183) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %27, ptr noundef nonnull align 16 dereferenceable(32) %190, i64 32, i1 false), !tbaa.struct !13
  %191 = call noundef i32 @_Z3modii(i32 noundef %184, i32 noundef %1)
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %192) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %28, ptr noundef nonnull align 16 dereferenceable(32) %193, i64 32, i1 false), !tbaa.struct !13
  %194 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv215) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %29, ptr noundef nonnull align 16 dereferenceable(32) %194, i64 32, i1 false), !tbaa.struct !13
  %195 = call noundef i32 @_Z3modii(i32 noundef %187, i32 noundef %1)
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %196) #8
  %198 = invoke noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef nonnull byval(%struct.pt) align 16 %27, ptr noundef nonnull byval(%struct.pt) align 16 %28, ptr noundef nonnull byval(%struct.pt) align 16 %29, ptr noundef nonnull byval(%struct.pt) align 16 %197)
          to label %199 unwind label %208

199:                                              ; preds = %189
  %.not120 = icmp eq i32 %198, 0
  br i1 %.not120, label %212, label %200

200:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #8
  %201 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %201, ptr %31, align 8
  %202 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %183) #8
  store ptr %202, ptr %30, align 8
  %203 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %30, i64 noundef 1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #8
  %204 = call ptr @_ZNSt6vectorI2ptSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %204, ptr %33, align 8
  %205 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %33, i64 noundef %indvars.iv215) #8
  store ptr %205, ptr %32, align 8
  %206 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %32, i64 noundef 1) #8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %203, ptr %206)
          to label %207 unwind label %210

207:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  br label %212

208:                                              ; preds = %189
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %214

210:                                              ; preds = %200
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #8
  br label %214

212:                                              ; preds = %186, %207, %199
  %.3105 = phi i1 [ false, %207 ], [ %.2104195, %199 ], [ %.2104195, %186 ]
  %exitcond217.not = icmp eq i32 %187, %1
  br i1 %exitcond217.not, label %.critedge.backedge, label %186, !llvm.loop !30

213:                                              ; preds = %174
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  call void @_ZN9UnionFindD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  ret void

214:                                              ; preds = %208, %210, %178
  %.pn121.pn = phi { ptr, i32 } [ %179, %178 ], [ %211, %210 ], [ %209, %208 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  br label %215

215:                                              ; preds = %214, %176
  %.pn121.pn.pn = phi { ptr, i32 } [ %.pn121.pn, %214 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  br label %216

216:                                              ; preds = %215, %171, %158
  %.pn125 = phi { ptr, i32 } [ %159, %158 ], [ %172, %171 ], [ %.pn121.pn.pn, %215 ]
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  br label %217

217:                                              ; preds = %216, %147
  %.pn125.pn = phi { ptr, i32 } [ %.pn125, %216 ], [ %148, %147 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  call void @_ZN9UnionFindD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %21) #8
  br label %218

218:                                              ; preds = %217, %145
  %.pn125.pn.pn = phi { ptr, i32 } [ %.pn125.pn, %217 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  br label %219

219:                                              ; preds = %218, %143, %135
  %.pn130 = phi { ptr, i32 } [ %136, %135 ], [ %.pn125.pn.pn, %218 ], [ %144, %143 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  br label %220

220:                                              ; preds = %219, %122, %82
  %.pn135.pn = phi { ptr, i32 } [ %.pn135, %82 ], [ %.pn130, %219 ], [ %.pn117, %122 ]
  call void @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt6vectorI2ptSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %221

221:                                              ; preds = %220, %38
  %.pn135.pn.pn = phi { ptr, i32 } [ %.pn135.pn, %220 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn135.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setI2ptSt4lessIS0_ESaIS0_EE6insertERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #2 align 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: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_1EvT_SD_T0_"(ptr, ptr, ptr) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9UnionFindC2Ei(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18AdjacencyListGraphC2Ei(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9UnionFind4joinEii(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFviiEEC2IZ15generatePolygoniRSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEbE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFviiEEclEii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIP2ptSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9UnionFindD2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #5 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

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


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SCCPPass,SROAPass,SimplifyCFGPass