; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/400/F (F)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::pair" = type { i32, i32 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_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::set" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@pt = external dso_local global i32, align 4
@nxt = external dso_local global [100100 x %"class.std::vector"], align 16
@a = external dso_local global [100100 x i32], align 16
@b = external dso_local global [100100 x i32], align 16
@lft = external dso_local global [100100 x i32], align 16
@rgt = external dso_local global [100100 x i32], align 16
@tosort = external dso_local global [100100 x %"struct.std::pair"], align 16
@face = external dso_local global [100100 x %"class.std::vector"], align 16
@g = external dso_local global [100100 x %"class.std::vector"], align 16
@id = external dso_local global %"class.std::map", align 8
@used = external dso_local global %"class.std::set", align 8
@lvl = external dso_local global [100100 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z10importanceRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9buildFaceiii(i32 noundef, i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9decomposeii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 4
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 4
  %22 = alloca %"struct.std::pair", align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair", align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::pair", align 4
  %36 = alloca %"class.std::vector", align 8
  %37 = alloca i32, align 4
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca ptr, align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %46 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %47 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %48 = getelementptr i8, ptr %47, i64 -24
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %49
  %51 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %50, ptr noundef null)
  %52 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %53 = getelementptr i8, ptr %52, i64 -24
  %54 = load i64, ptr %53, align 8
  %55 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %54
  %56 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %55, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %59 = load i32, ptr %3, align 4, !tbaa !8
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %0
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %506

64:                                               ; preds = %0
  %65 = load i32, ptr %3, align 4, !tbaa !8
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %70

67:                                               ; preds = %64
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %506

70:                                               ; preds = %64
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(4) %2)
  %71 = load i32, ptr %2, align 4, !tbaa !8
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 2, ptr %6, align 4, !tbaa !8
  br label %74

74:                                               ; preds = %89, %70
  %75 = load i32, ptr %6, align 4, !tbaa !8
  %76 = load i32, ptr %2, align 4, !tbaa !8
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %74
  %80 = load i32, ptr %6, align 4, !tbaa !8
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %83 = load i32, ptr %6, align 4, !tbaa !8
  %84 = sub nsw i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %85 = load i32, ptr %6, align 4, !tbaa !8
  %86 = sub nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %87
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %89

89:                                               ; preds = %79
  %90 = load i32, ptr %6, align 4, !tbaa !8
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %6, align 4, !tbaa !8
  br label %74, !llvm.loop !11

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

93:                                               ; preds = %159, %92
  %94 = load i32, ptr %8, align 4, !tbaa !8
  %95 = load i32, ptr %3, align 4, !tbaa !8
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %98, label %97

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

98:                                               ; preds = %93
  %99 = load i32, ptr %8, align 4, !tbaa !8
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %100
  %102 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %101)
  %103 = load i32, ptr %8, align 4, !tbaa !8
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %104
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %102, ptr noundef nonnull align 4 dereferenceable(4) %105)
  %107 = load i32, ptr %8, align 4, !tbaa !8
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !8
  %111 = load i32, ptr %8, align 4, !tbaa !8
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %115 = icmp slt i32 %110, %114
  br i1 %115, label %116, label %123

116:                                              ; preds = %98
  %117 = load i32, ptr %8, align 4, !tbaa !8
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %118
  %120 = load i32, ptr %8, align 4, !tbaa !8
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %121
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %119, ptr noundef nonnull align 4 dereferenceable(4) %122) #8
  br label %123

123:                                              ; preds = %116, %98
  %124 = load i32, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %125 = load i32, ptr %8, align 4, !tbaa !8
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %126
  %128 = load i32, ptr %8, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %129
  %131 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %127, ptr noundef nonnull align 4 dereferenceable(4) %130)
  store i64 %131, ptr %9, align 4
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store i32 %124, ptr %132, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %133 = load i32, ptr %8, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %134
  %136 = load i32, ptr %8, align 4, !tbaa !8
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %137
  %139 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %135, ptr noundef nonnull align 4 dereferenceable(4) %138)
  store i64 %139, ptr %10, align 4
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i32 %124, ptr %140, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  %141 = load i32, ptr %8, align 4, !tbaa !8
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !8
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %145
  %147 = load i32, ptr %8, align 4, !tbaa !8
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %148
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 4 dereferenceable(4) %149)
  %150 = load i32, ptr %8, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !8
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %154
  %156 = load i32, ptr %8, align 4, !tbaa !8
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %157
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %155, ptr noundef nonnull align 4 dereferenceable(4) %158)
  br label %159

159:                                              ; preds = %123
  %160 = load i32, ptr %8, align 4, !tbaa !8
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %8, align 4, !tbaa !8
  br label %93, !llvm.loop !13

162:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !8
  br label %163

163:                                              ; preds = %184, %162
  %164 = load i32, ptr %11, align 4, !tbaa !8
  %165 = load i32, ptr %2, align 4, !tbaa !8
  %166 = icmp sle i32 %164, %165
  br i1 %166, label %168, label %167

167:                                              ; preds = %163
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %187

168:                                              ; preds = %163
  %169 = load i32, ptr %11, align 4, !tbaa !8
  store i32 %169, ptr @pt, align 4, !tbaa !8
  %170 = load i32, ptr %11, align 4, !tbaa !8
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %171
  %173 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %172) #8
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  %175 = load i32, ptr %11, align 4, !tbaa !8
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %176
  %178 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #8
  %179 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %178, ptr %179, align 8
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  %182 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %181, ptr %183, ptr noundef @_Z3cmpRKiS0_)
  br label %184

184:                                              ; preds = %168
  %185 = load i32, ptr %11, align 4, !tbaa !8
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %11, align 4, !tbaa !8
  br label %163, !llvm.loop !14

187:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %188

188:                                              ; preds = %393, %187
  %189 = load i32, ptr %15, align 4, !tbaa !8
  %190 = load i32, ptr %3, align 4, !tbaa !8
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %396

193:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %194 = load i32, ptr %15, align 4, !tbaa !8
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %195
  %197 = load i32, ptr %15, align 4, !tbaa !8
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %198
  %200 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %196, ptr noundef nonnull align 4 dereferenceable(4) %199)
  store i64 %200, ptr %16, align 4
  %201 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @used, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %202 = icmp ne i64 %201, 0
  %203 = xor i1 %202, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br i1 %203, label %204, label %280

204:                                              ; preds = %193
  %205 = load i32, ptr %14, align 4, !tbaa !8
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %14, align 4, !tbaa !8
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %207
  %209 = load i32, ptr %15, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %210
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %208, ptr noundef nonnull align 4 dereferenceable(4) %211)
  %212 = load i32, ptr %15, align 4, !tbaa !8
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !8
  %216 = load i32, ptr %15, align 4, !tbaa !8
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !8
  %220 = load i32, ptr %14, align 4, !tbaa !8
  call void @_Z9buildFaceiii(i32 noundef %215, i32 noundef %219, i32 noundef %220)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 1, ptr %17, align 4, !tbaa !8
  br label %221

221:                                              ; preds = %276, %204
  %222 = load i32, ptr %17, align 4, !tbaa !8
  %223 = sext i32 %222 to i64
  %224 = load i32, ptr %14, align 4, !tbaa !8
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %225
  %227 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %226) #8
  %228 = icmp ult i64 %223, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %221
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %279

230:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %231 = load i32, ptr %14, align 4, !tbaa !8
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %232
  %234 = load i32, ptr %17, align 4, !tbaa !8
  %235 = sub nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %233, i64 noundef %236) #8
  %238 = load i32, ptr %237, align 4, !tbaa !8
  store i32 %238, ptr %18, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %239 = load i32, ptr %14, align 4, !tbaa !8
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %240
  %242 = load i32, ptr %17, align 4, !tbaa !8
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %243) #8
  %245 = load i32, ptr %244, align 4, !tbaa !8
  store i32 %245, ptr %19, align 4, !tbaa !8
  %246 = load i32, ptr %18, align 4, !tbaa !8
  %247 = sub nsw i32 %246, 1
  %248 = load i32, ptr %19, align 4, !tbaa !8
  %249 = icmp ne i32 %247, %248
  br i1 %249, label %250, label %275

250:                                              ; preds = %230
  %251 = load i32, ptr %18, align 4, !tbaa !8
  %252 = icmp eq i32 %251, 1
  br i1 %252, label %253, label %257

253:                                              ; preds = %250
  %254 = load i32, ptr %19, align 4, !tbaa !8
  %255 = load i32, ptr %2, align 4, !tbaa !8
  %256 = icmp eq i32 %254, %255
  br i1 %256, label %275, label %257

257:                                              ; preds = %253, %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %258 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store i64 %258, ptr %21, align 4
  %259 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %21)
  %260 = load i32, ptr %259, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  store i32 %260, ptr %20, align 4, !tbaa !8
  %261 = load i32, ptr %18, align 4, !tbaa !8
  %262 = load i32, ptr %19, align 4, !tbaa !8
  %263 = icmp sgt i32 %261, %262
  br i1 %263, label %264, label %269

264:                                              ; preds = %257
  %265 = load i32, ptr %14, align 4, !tbaa !8
  %266 = load i32, ptr %20, align 4, !tbaa !8
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [100100 x i32], ptr @lft, i64 0, i64 %267
  store i32 %265, ptr %268, align 4, !tbaa !8
  br label %274

269:                                              ; preds = %257
  %270 = load i32, ptr %14, align 4, !tbaa !8
  %271 = load i32, ptr %20, align 4, !tbaa !8
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [100100 x i32], ptr @rgt, i64 0, i64 %272
  store i32 %270, ptr %273, align 4, !tbaa !8
  br label %274

274:                                              ; preds = %269, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %275

275:                                              ; preds = %274, %253, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %17, align 4, !tbaa !8
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %17, align 4, !tbaa !8
  br label %221, !llvm.loop !15

279:                                              ; preds = %229
  br label %280

280:                                              ; preds = %279, %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %281 = load i32, ptr %15, align 4, !tbaa !8
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %282
  %284 = load i32, ptr %15, align 4, !tbaa !8
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %285
  %287 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %283, ptr noundef nonnull align 4 dereferenceable(4) %286)
  store i64 %287, ptr %22, align 4
  %288 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @used, ptr noundef nonnull align 4 dereferenceable(8) %22)
  %289 = icmp ne i64 %288, 0
  %290 = xor i1 %289, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br i1 %290, label %291, label %367

291:                                              ; preds = %280
  %292 = load i32, ptr %14, align 4, !tbaa !8
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %14, align 4, !tbaa !8
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %294
  %296 = load i32, ptr %15, align 4, !tbaa !8
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %297
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %295, ptr noundef nonnull align 4 dereferenceable(4) %298)
  %299 = load i32, ptr %15, align 4, !tbaa !8
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %300
  %302 = load i32, ptr %301, align 4, !tbaa !8
  %303 = load i32, ptr %15, align 4, !tbaa !8
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %304
  %306 = load i32, ptr %305, align 4, !tbaa !8
  %307 = load i32, ptr %14, align 4, !tbaa !8
  call void @_Z9buildFaceiii(i32 noundef %302, i32 noundef %306, i32 noundef %307)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 1, ptr %23, align 4, !tbaa !8
  br label %308

308:                                              ; preds = %363, %291
  %309 = load i32, ptr %23, align 4, !tbaa !8
  %310 = sext i32 %309 to i64
  %311 = load i32, ptr %14, align 4, !tbaa !8
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %312
  %314 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %313) #8
  %315 = icmp ult i64 %310, %314
  br i1 %315, label %317, label %316

316:                                              ; preds = %308
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %366

317:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %318 = load i32, ptr %14, align 4, !tbaa !8
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %319
  %321 = load i32, ptr %23, align 4, !tbaa !8
  %322 = sub nsw i32 %321, 1
  %323 = sext i32 %322 to i64
  %324 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %320, i64 noundef %323) #8
  %325 = load i32, ptr %324, align 4, !tbaa !8
  store i32 %325, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %326 = load i32, ptr %14, align 4, !tbaa !8
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %327
  %329 = load i32, ptr %23, align 4, !tbaa !8
  %330 = sext i32 %329 to i64
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %328, i64 noundef %330) #8
  %332 = load i32, ptr %331, align 4, !tbaa !8
  store i32 %332, ptr %25, align 4, !tbaa !8
  %333 = load i32, ptr %24, align 4, !tbaa !8
  %334 = sub nsw i32 %333, 1
  %335 = load i32, ptr %25, align 4, !tbaa !8
  %336 = icmp ne i32 %334, %335
  br i1 %336, label %337, label %362

337:                                              ; preds = %317
  %338 = load i32, ptr %24, align 4, !tbaa !8
  %339 = icmp eq i32 %338, 1
  br i1 %339, label %340, label %344

340:                                              ; preds = %337
  %341 = load i32, ptr %25, align 4, !tbaa !8
  %342 = load i32, ptr %2, align 4, !tbaa !8
  %343 = icmp eq i32 %341, %342
  br i1 %343, label %362, label %344

344:                                              ; preds = %340, %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %345 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  store i64 %345, ptr %27, align 4
  %346 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %27)
  %347 = load i32, ptr %346, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  store i32 %347, ptr %26, align 4, !tbaa !8
  %348 = load i32, ptr %24, align 4, !tbaa !8
  %349 = load i32, ptr %25, align 4, !tbaa !8
  %350 = icmp sgt i32 %348, %349
  br i1 %350, label %351, label %356

351:                                              ; preds = %344
  %352 = load i32, ptr %14, align 4, !tbaa !8
  %353 = load i32, ptr %26, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [100100 x i32], ptr @lft, i64 0, i64 %354
  store i32 %352, ptr %355, align 4, !tbaa !8
  br label %361

356:                                              ; preds = %344
  %357 = load i32, ptr %14, align 4, !tbaa !8
  %358 = load i32, ptr %26, align 4, !tbaa !8
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [100100 x i32], ptr @rgt, i64 0, i64 %359
  store i32 %357, ptr %360, align 4, !tbaa !8
  br label %361

361:                                              ; preds = %356, %351
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %362

362:                                              ; preds = %361, %340, %317
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %363

363:                                              ; preds = %362
  %364 = load i32, ptr %23, align 4, !tbaa !8
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %23, align 4, !tbaa !8
  br label %308, !llvm.loop !16

366:                                              ; preds = %316
  br label %367

367:                                              ; preds = %366, %280
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %368 = load i32, ptr %15, align 4, !tbaa !8
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [100100 x i32], ptr @lft, i64 0, i64 %369
  %371 = load i32, ptr %370, align 4, !tbaa !8
  store i32 %371, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %372 = load i32, ptr %15, align 4, !tbaa !8
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [100100 x i32], ptr @rgt, i64 0, i64 %373
  %375 = load i32, ptr %374, align 4, !tbaa !8
  store i32 %375, ptr %29, align 4, !tbaa !8
  %376 = load i32, ptr %28, align 4, !tbaa !8
  %377 = icmp sgt i32 %376, 0
  br i1 %377, label %378, label %381

378:                                              ; preds = %367
  %379 = load i32, ptr %29, align 4, !tbaa !8
  %380 = icmp sgt i32 %379, 0
  br label %381

381:                                              ; preds = %378, %367
  %382 = phi i1 [ false, %367 ], [ %380, %378 ]
  br i1 %382, label %383, label %384

383:                                              ; preds = %381
  br label %386

384:                                              ; preds = %381
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef 201, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

385:                                              ; No predecessors!
  br label %386

386:                                              ; preds = %385, %383
  %387 = load i32, ptr %28, align 4, !tbaa !8
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %388
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %389, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %390 = load i32, ptr %29, align 4, !tbaa !8
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %391
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %392, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %393

393:                                              ; preds = %386
  %394 = load i32, ptr %15, align 4, !tbaa !8
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %15, align 4, !tbaa !8
  br label %188, !llvm.loop !17

396:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 1, ptr %30, align 4, !tbaa !8
  br label %397

397:                                              ; preds = %443, %396
  %398 = load i32, ptr %30, align 4, !tbaa !8
  %399 = load i32, ptr %14, align 4, !tbaa !8
  %400 = icmp sle i32 %398, %399
  br i1 %400, label %402, label %401

401:                                              ; preds = %397
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %446

402:                                              ; preds = %397
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 1, ptr %33, align 4, !tbaa !8
  br label %403

403:                                              ; preds = %434, %402
  %404 = load i32, ptr %33, align 4, !tbaa !8
  %405 = sext i32 %404 to i64
  %406 = load i32, ptr %30, align 4, !tbaa !8
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %407
  %409 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %408) #8
  %410 = icmp ult i64 %405, %409
  br i1 %410, label %412, label %411

411:                                              ; preds = %403
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %437

412:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %413 = load i32, ptr %30, align 4, !tbaa !8
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %414
  %416 = load i32, ptr %33, align 4, !tbaa !8
  %417 = sext i32 %416 to i64
  %418 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %415, i64 noundef %417) #8
  %419 = load i32, ptr %418, align 4, !tbaa !8
  store i32 %419, ptr %34, align 4, !tbaa !8
  %420 = load i32, ptr %34, align 4, !tbaa !8
  %421 = load i32, ptr %31, align 4, !tbaa !8
  %422 = icmp sgt i32 %420, %421
  br i1 %422, label %423, label %426

423:                                              ; preds = %412
  %424 = load i32, ptr %31, align 4, !tbaa !8
  store i32 %424, ptr %32, align 4, !tbaa !8
  %425 = load i32, ptr %34, align 4, !tbaa !8
  store i32 %425, ptr %31, align 4, !tbaa !8
  br label %433

426:                                              ; preds = %412
  %427 = load i32, ptr %34, align 4, !tbaa !8
  %428 = load i32, ptr %32, align 4, !tbaa !8
  %429 = icmp sgt i32 %427, %428
  br i1 %429, label %430, label %432

430:                                              ; preds = %426
  %431 = load i32, ptr %34, align 4, !tbaa !8
  store i32 %431, ptr %32, align 4, !tbaa !8
  br label %432

432:                                              ; preds = %430, %426
  br label %433

433:                                              ; preds = %432, %423
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %434

434:                                              ; preds = %433
  %435 = load i32, ptr %33, align 4, !tbaa !8
  %436 = add nsw i32 %435, 1
  store i32 %436, ptr %33, align 4, !tbaa !8
  br label %403, !llvm.loop !18

437:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %438 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
  store i64 %438, ptr %35, align 4
  %439 = load i32, ptr %30, align 4, !tbaa !8
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [100100 x %"struct.std::pair"], ptr @tosort, i64 0, i64 %440
  %442 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %441, ptr noundef nonnull align 4 dereferenceable(8) %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %443

443:                                              ; preds = %437
  %444 = load i32, ptr %30, align 4, !tbaa !8
  %445 = add nsw i32 %444, 1
  store i32 %445, ptr %30, align 4, !tbaa !8
  br label %397, !llvm.loop !19

446:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 1, ptr %37, align 4, !tbaa !8
  br label %447

447:                                              ; preds = %454, %446
  %448 = load i32, ptr %37, align 4, !tbaa !8
  %449 = load i32, ptr %14, align 4, !tbaa !8
  %450 = icmp sle i32 %448, %449
  br i1 %450, label %452, label %451

451:                                              ; preds = %447
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %461

452:                                              ; preds = %447
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %453 unwind label %457

453:                                              ; preds = %452
  br label %454

454:                                              ; preds = %453
  %455 = load i32, ptr %37, align 4, !tbaa !8
  %456 = add nsw i32 %455, 1
  store i32 %456, ptr %37, align 4, !tbaa !8
  br label %447, !llvm.loop !20

457:                                              ; preds = %452
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %38, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %505

461:                                              ; preds = %451
  %462 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %463 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %462, ptr %463, align 8
  %464 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %465 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %464, ptr %465, align 8
  %466 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  %467 = load ptr, ptr %466, align 8
  %468 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  %469 = load ptr, ptr %468, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %467, ptr %469, ptr noundef @_Z10importanceRKiS0_)
          to label %470 unwind label %481

470:                                              ; preds = %461
  invoke void @_Z9decomposeii(i32 noundef 1, i32 noundef 1)
          to label %471 unwind label %481

471:                                              ; preds = %470
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  store ptr %36, ptr %42, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %472 = load ptr, ptr %42, align 8, !tbaa !21
  %473 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %472) #8
  %474 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %473, ptr %474, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %475 = load ptr, ptr %42, align 8, !tbaa !21
  %476 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %475) #8
  %477 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %476, ptr %477, align 8
  br label %478

478:                                              ; preds = %496, %471
  %479 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  br i1 %479, label %485, label %480

480:                                              ; preds = %478
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %502

481:                                              ; preds = %502, %470, %461
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %38, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %39, align 4
  br label %505

485:                                              ; preds = %478
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  %486 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  %487 = load i32, ptr %486, align 4, !tbaa !8
  store i32 %487, ptr %45, align 4, !tbaa !8
  %488 = load i32, ptr %45, align 4, !tbaa !8
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [100100 x i32], ptr @lvl, i64 0, i64 %489
  %491 = load i32, ptr %490, align 4, !tbaa !8
  %492 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %491)
          to label %493 unwind label %498

493:                                              ; preds = %485
  %494 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %492, i8 noundef signext 32)
          to label %495 unwind label %498

495:                                              ; preds = %493
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %496

496:                                              ; preds = %495
  %497 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  br label %478

498:                                              ; preds = %493, %485
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %38, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %505

502:                                              ; preds = %480
  %503 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %504 unwind label %481

504:                                              ; preds = %502
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %506

505:                                              ; preds = %498, %481, %457
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %508

506:                                              ; preds = %504, %67, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %507 = load i32, ptr %1, align 4
  ret i32 %507

508:                                              ; preds = %505
  %509 = load ptr, ptr %38, align 8
  %510 = load i32, ptr %39, align 4
  %511 = insertvalue { ptr, i32 } poison, ptr %509, 0
  %512 = insertvalue { ptr, i32 } %511, i32 %510, 1
  resume { ptr, i32 } %512
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #5

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr, ptr, ptr noundef) #6

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress norecurse 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 = { "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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::pair" = type { i32, i32 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<const std::pair<int, int>, int>, std::_Select1st<std::pair<const std::pair<int, int>, int>>, std::less<std::pair<int, int>>>::_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::set" = type { %"class.std::_Rb_tree.3" }
%"class.std::_Rb_tree.3" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@pt = external dso_local local_unnamed_addr global i32, align 4
@nxt = external dso_local global [100100 x %"class.std::vector"], align 16
@a = external dso_local global [100100 x i32], align 16
@b = external dso_local global [100100 x i32], align 16
@lft = external dso_local local_unnamed_addr global [100100 x i32], align 16
@rgt = external dso_local local_unnamed_addr global [100100 x i32], align 16
@tosort = external dso_local global [100100 x %"struct.std::pair"], align 16
@face = external dso_local global [100100 x %"class.std::vector"], align 16
@g = external dso_local global [100100 x %"class.std::vector"], align 16
@id = external dso_local global %"class.std::map", align 8
@used = external dso_local global %"class.std::set", align 8
@lvl = external dso_local local_unnamed_addr global [100100 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z10importanceRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9buildFaceiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9decomposeii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %26 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %28
  %30 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %29, ptr noundef null)
  %31 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %33
  %35 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %34, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %38 = load i32, ptr %2, align 4, !tbaa !8
  switch i32 %38, label %45 [
    i32 0, label %39
    i32 1, label %42
  ]

39:                                               ; preds = %0
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %228

42:                                               ; preds = %0
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %228

45:                                               ; preds = %0
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @nxt, i64 24), ptr noundef nonnull align 4 dereferenceable(4) %1)
  %46 = load i32, ptr %1, align 4, !tbaa !8
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %47
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 1, ptr %3, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 2, ptr %4, align 4, !tbaa !8
  %49 = load i32, ptr %1, align 4, !tbaa !8
  %.not120 = icmp slt i32 %49, 2
  br i1 %.not120, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %45
  %50 = phi i32 [ %49, %45 ], [ %62, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %51 = load i32, ptr %2, align 4, !tbaa !8
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph124, label %.preheader118

.lr.ph:                                           ; preds = %45, %.lr.ph
  %storemerge121 = phi i32 [ %61, %.lr.ph ], [ 2, %45 ]
  %53 = sext i32 %storemerge121 to i64
  %54 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %53
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %55 = add nsw i32 %storemerge121, -1
  store i32 %55, ptr %5, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %56 = load i32, ptr %4, align 4, !tbaa !8
  %57 = add nsw i32 %56, -1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %58
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %60 = load i32, ptr %4, align 4, !tbaa !8
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %4, align 4, !tbaa !8
  %62 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %60, %62
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader118.loopexit:                           ; preds = %73
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  br label %.preheader118

.preheader118:                                    ; preds = %.preheader118.loopexit, %._crit_edge
  %63 = phi i32 [ %85, %.preheader118.loopexit ], [ %51, %._crit_edge ]
  %64 = phi i32 [ %.pre, %.preheader118.loopexit ], [ %50, %._crit_edge ]
  %.not104125 = icmp slt i32 %64, 1
  br i1 %.not104125, label %.preheader117, label %.lr.ph127

.lr.ph124:                                        ; preds = %._crit_edge, %73
  %indvars.iv = phi i64 [ %indvars.iv.next, %73 ], [ 0, %._crit_edge ]
  %65 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %65)
  %67 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %indvars.iv
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %67)
  %69 = load i32, ptr %65, align 4, !tbaa !8
  %70 = load i32, ptr %67, align 4, !tbaa !8
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %.lr.ph124
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %67) #8
  br label %73

73:                                               ; preds = %72, %.lr.ph124
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %74 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %65)
  store i64 %74, ptr %6, align 8
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %76 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %76, ptr %75, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %77 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %67)
  store i64 %77, ptr %7, align 8
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store i32 %76, ptr %78, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %79 = load i32, ptr %65, align 4, !tbaa !8
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %80
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(4) %67)
  %82 = load i32, ptr %67, align 4, !tbaa !8
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %83
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 4 dereferenceable(4) %65)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = load i32, ptr %2, align 4, !tbaa !8
  %86 = sext i32 %85 to i64
  %87 = icmp slt i64 %indvars.iv.next, %86
  br i1 %87, label %.lr.ph124, label %.preheader118.loopexit, !llvm.loop !13

.preheader117.loopexit:                           ; preds = %.lr.ph127
  %.pre173 = load i32, ptr %2, align 4, !tbaa !8
  br label %.preheader117

.preheader117:                                    ; preds = %.preheader117.loopexit, %.preheader118
  %88 = phi i32 [ %.pre173, %.preheader117.loopexit ], [ %63, %.preheader118 ]
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph136, label %._crit_edge145.thread

.lr.ph127:                                        ; preds = %.preheader118, %.lr.ph127
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %.lr.ph127 ], [ 1, %.preheader118 ]
  %90 = trunc nuw nsw i64 %indvars.iv155 to i32
  store i32 %90, ptr @pt, align 4, !tbaa !8
  %91 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @nxt, i64 0, i64 %indvars.iv155
  %92 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #8
  %93 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %92, ptr %93, ptr noundef nonnull @_Z3cmpRKiS0_)
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %94 = load i32, ptr %1, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %.not104.not = icmp slt i64 %indvars.iv155, %95
  br i1 %.not104.not, label %.lr.ph127, label %.preheader117.loopexit, !llvm.loop !14

.preheader:                                       ; preds = %171
  %.not105142 = icmp slt i32 %.2, 1
  br i1 %.not105142, label %._crit_edge145.thread, label %.lr.ph144.preheader

.lr.ph144.preheader:                              ; preds = %.preheader
  %96 = add nuw i32 %.2, 1
  %wide.trip.count = zext i32 %96 to i64
  br label %.lr.ph144

.lr.ph136:                                        ; preds = %.preheader117, %171
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %171 ], [ 0, %.preheader117 ]
  %.088135 = phi i32 [ %.2, %171 ], [ 0, %.preheader117 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %97 = getelementptr inbounds [100100 x i32], ptr @a, i64 0, i64 %indvars.iv164
  %98 = getelementptr inbounds [100100 x i32], ptr @b, i64 0, i64 %indvars.iv164
  %99 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 4 dereferenceable(4) %98)
  store i64 %99, ptr %8, align 8
  %100 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @used, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %.not109 = icmp eq i64 %100, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br i1 %.not109, label %101, label %.loopexit116

101:                                              ; preds = %.lr.ph136
  %102 = add nsw i32 %.088135, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %103
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 4 dereferenceable(4) %97)
  %105 = load i32, ptr %97, align 4, !tbaa !8
  %106 = load i32, ptr %98, align 4, !tbaa !8
  call void @_Z9buildFaceiii(i32 noundef %105, i32 noundef %106, i32 noundef %102)
  %107 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #8
  %108 = icmp ugt i64 %107, 1
  br i1 %108, label %.lr.ph130, label %.loopexit116

.lr.ph130:                                        ; preds = %101, %128
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %128 ], [ 1, %101 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %109 = add nsw i64 %indvars.iv158, -1
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %109) #8
  %111 = load i32, ptr %110, align 4, !tbaa !8
  store i32 %111, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %indvars.iv158) #8
  %113 = load i32, ptr %112, align 4, !tbaa !8
  store i32 %113, ptr %10, align 4, !tbaa !8
  %114 = load i32, ptr %9, align 4, !tbaa !8
  %115 = add nsw i32 %114, -1
  %.not112 = icmp eq i32 %115, %113
  br i1 %.not112, label %128, label %116

116:                                              ; preds = %.lr.ph130
  %117 = icmp eq i32 %114, 1
  %118 = load i32, ptr %1, align 4
  %119 = icmp eq i32 %113, %118
  %or.cond = select i1 %117, i1 %119, i1 false
  br i1 %or.cond, label %128, label %.sink.split

.sink.split:                                      ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %120 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  store i64 %120, ptr %11, align 8
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %122 = load i32, ptr %121, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %123 = load i32, ptr %9, align 4, !tbaa !8
  %124 = load i32, ptr %10, align 4, !tbaa !8
  %125 = icmp sgt i32 %123, %124
  %126 = sext i32 %122 to i64
  %lft.rgt = select i1 %125, ptr @lft, ptr @rgt
  %127 = getelementptr inbounds [100100 x i32], ptr %lft.rgt, i64 0, i64 %126
  store i32 %102, ptr %127, align 4, !tbaa !8
  br label %128

128:                                              ; preds = %.sink.split, %116, %.lr.ph130
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %129 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #8
  %130 = icmp ugt i64 %129, %indvars.iv.next159
  br i1 %130, label %.lr.ph130, label %.loopexit116, !llvm.loop !15

.loopexit116:                                     ; preds = %128, %101, %.lr.ph136
  %.1 = phi i32 [ %.088135, %.lr.ph136 ], [ %102, %101 ], [ %102, %128 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %131 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %98, ptr noundef nonnull align 4 dereferenceable(4) %97)
  store i64 %131, ptr %12, align 8
  %132 = call noundef i64 @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @used, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %.not110 = icmp eq i64 %132, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %.not110, label %133, label %.loopexit

133:                                              ; preds = %.loopexit116
  %134 = add nsw i32 %.1, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %135
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %136, ptr noundef nonnull align 4 dereferenceable(4) %98)
  %137 = load i32, ptr %98, align 4, !tbaa !8
  %138 = load i32, ptr %97, align 4, !tbaa !8
  call void @_Z9buildFaceiii(i32 noundef %137, i32 noundef %138, i32 noundef %134)
  %139 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  %140 = icmp ugt i64 %139, 1
  br i1 %140, label %.lr.ph133, label %.loopexit

.lr.ph133:                                        ; preds = %133, %160
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %160 ], [ 1, %133 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %141 = add nsw i64 %indvars.iv161, -1
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %141) #8
  %143 = load i32, ptr %142, align 4, !tbaa !8
  store i32 %143, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %indvars.iv161) #8
  %145 = load i32, ptr %144, align 4, !tbaa !8
  store i32 %145, ptr %14, align 4, !tbaa !8
  %146 = load i32, ptr %13, align 4, !tbaa !8
  %147 = add nsw i32 %146, -1
  %.not111 = icmp eq i32 %147, %145
  br i1 %.not111, label %160, label %148

148:                                              ; preds = %.lr.ph133
  %149 = icmp eq i32 %146, 1
  %150 = load i32, ptr %1, align 4
  %151 = icmp eq i32 %145, %150
  %or.cond115 = select i1 %149, i1 %151, i1 false
  br i1 %or.cond115, label %160, label %.sink.split182

.sink.split182:                                   ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %152 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  store i64 %152, ptr %15, align 8
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @id, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %154 = load i32, ptr %153, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %155 = load i32, ptr %13, align 4, !tbaa !8
  %156 = load i32, ptr %14, align 4, !tbaa !8
  %157 = icmp sgt i32 %155, %156
  %158 = sext i32 %154 to i64
  %lft.rgt184 = select i1 %157, ptr @lft, ptr @rgt
  %159 = getelementptr inbounds [100100 x i32], ptr %lft.rgt184, i64 0, i64 %158
  store i32 %134, ptr %159, align 4, !tbaa !8
  br label %160

160:                                              ; preds = %.sink.split182, %148, %.lr.ph133
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %161 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  %162 = icmp ugt i64 %161, %indvars.iv.next162
  br i1 %162, label %.lr.ph133, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %160, %133, %.loopexit116
  %.2 = phi i32 [ %.1, %.loopexit116 ], [ %134, %133 ], [ %134, %160 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  %163 = getelementptr inbounds [100100 x i32], ptr @lft, i64 0, i64 %indvars.iv164
  %164 = load i32, ptr %163, align 4, !tbaa !8
  store i32 %164, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  %165 = getelementptr inbounds [100100 x i32], ptr @rgt, i64 0, i64 %indvars.iv164
  %166 = load i32, ptr %165, align 4, !tbaa !8
  store i32 %166, ptr %17, align 4, !tbaa !8
  %167 = icmp sgt i32 %164, 0
  %168 = icmp sgt i32 %166, 0
  %169 = select i1 %167, i1 %168, i1 false
  br i1 %169, label %171, label %170

170:                                              ; preds = %.loopexit
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef 201, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

171:                                              ; preds = %.loopexit
  %172 = zext nneg i32 %164 to i64
  %173 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %172
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %173, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %174 = load i32, ptr %17, align 4, !tbaa !8
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @g, i64 0, i64 %175
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %176, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %177 = load i32, ptr %2, align 4, !tbaa !8
  %178 = sext i32 %177 to i64
  %179 = icmp slt i64 %indvars.iv.next165, %178
  br i1 %179, label %.lr.ph136, label %.preheader, !llvm.loop !17

._crit_edge145.thread:                            ; preds = %.preheader, %.preheader117
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  br label %._crit_edge149

._crit_edge145:                                   ; preds = %._crit_edge140
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  store i32 1, ptr %22, align 4, !tbaa !8
  br i1 %.not105142, label %._crit_edge149, label %.lr.ph148

.lr.ph144:                                        ; preds = %.lr.ph144.preheader, %._crit_edge140
  %indvars.iv170 = phi i64 [ 1, %.lr.ph144.preheader ], [ %indvars.iv.next171, %._crit_edge140 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  store i32 0, ptr %18, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  store i32 0, ptr %19, align 4, !tbaa !8
  %180 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @face, i64 0, i64 %indvars.iv170
  %181 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %180) #8
  %182 = icmp ugt i64 %181, 1
  br i1 %182, label %.lr.ph139, label %._crit_edge140

._crit_edge140:                                   ; preds = %195, %.lr.ph144
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %183 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store i64 %183, ptr %20, align 8
  %184 = getelementptr inbounds [100100 x %"struct.std::pair"], ptr @tosort, i64 0, i64 %indvars.iv170
  %185 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %184, ptr noundef nonnull align 4 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next171, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge145, label %.lr.ph144, !llvm.loop !18

.lr.ph139:                                        ; preds = %.lr.ph144, %195
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %195 ], [ 1, %.lr.ph144 ]
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %indvars.iv167) #8
  %187 = load i32, ptr %186, align 4, !tbaa !8
  %188 = load i32, ptr %18, align 4, !tbaa !8
  %189 = icmp sgt i32 %187, %188
  br i1 %189, label %190, label %191

190:                                              ; preds = %.lr.ph139
  store i32 %188, ptr %19, align 4, !tbaa !8
  store i32 %187, ptr %18, align 4, !tbaa !8
  br label %195

191:                                              ; preds = %.lr.ph139
  %192 = load i32, ptr %19, align 4, !tbaa !8
  %193 = icmp sgt i32 %187, %192
  br i1 %193, label %194, label %195

194:                                              ; preds = %191
  store i32 %187, ptr %19, align 4, !tbaa !8
  br label %195

195:                                              ; preds = %191, %194, %190
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %196 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %180) #8
  %197 = icmp ugt i64 %196, %indvars.iv.next168
  br i1 %197, label %.lr.ph139, label %._crit_edge140, !llvm.loop !19

._crit_edge149:                                   ; preds = %200, %._crit_edge145.thread, %._crit_edge145
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  %198 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %199 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %198, ptr %199, ptr noundef nonnull @_Z10importanceRKiS0_)
          to label %205 unwind label %211

.lr.ph148:                                        ; preds = %._crit_edge145, %200
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %200 unwind label %203

200:                                              ; preds = %.lr.ph148
  %201 = load i32, ptr %22, align 4, !tbaa !8
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %22, align 4, !tbaa !8
  %.not107.not = icmp slt i32 %201, %.2
  br i1 %.not107.not, label %.lr.ph148, label %._crit_edge149, !llvm.loop !20

203:                                              ; preds = %.lr.ph148
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  br label %227

205:                                              ; preds = %._crit_edge149
  invoke void @_Z9decomposeii(i32 noundef 1, i32 noundef 1)
          to label %206 unwind label %211

206:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %207 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  store ptr %207, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %208 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  store ptr %208, ptr %24, align 8
  %209 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %209, label %.lr.ph151, label %._crit_edge152

._crit_edge152:                                   ; preds = %221, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %226 unwind label %211

211:                                              ; preds = %._crit_edge152, %205, %._crit_edge149
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %227

.lr.ph151:                                        ; preds = %206, %221
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %214 = load i32, ptr %213, align 4, !tbaa !8
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [100100 x i32], ptr @lvl, i64 0, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !8
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %217)
          to label %219 unwind label %224

219:                                              ; preds = %.lr.ph151
  %220 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %218, i8 noundef signext 32)
          to label %221 unwind label %224

221:                                              ; preds = %219
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %223 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %223, label %.lr.ph151, label %._crit_edge152

224:                                              ; preds = %219, %.lr.ph151
  %225 = 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 %227

226:                                              ; preds = %._crit_edge152
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #8
  br label %228

227:                                              ; preds = %224, %211, %203
  %.pn = phi { ptr, i32 } [ %204, %203 ], [ %225, %224 ], [ %212, %211 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn

228:                                              ; preds = %226, %42, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #5

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #6

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress norecurse 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 = { "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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }

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

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


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