; LLVM IR from VastoLorde95/Competitive-Programming :: Timus/1905 (A)

; 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 }
%"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::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.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.8" = type { ptr }
%"struct.std::pair" = type { i32, i32 }

@a = external dso_local global [200100 x %"class.std::vector"], align 16
@d = external dso_local global [200100 x %"class.std::vector"], align 16
@node = external dso_local global %"class.std::map", align 8
@g = external dso_local global [200100 x %"class.std::vector.3"], align 16
@rid = external dso_local global [200100 x i32], align 16
@x = external dso_local global [200100 x i32], align 16
@y = external dso_local global [200100 x i32], align 16
@u = external dso_local global [200100 x i32], align 16
@v = external dso_local global [200100 x i32], align 16
@used = external dso_local global [200100 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 [11 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmp1RKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsii(i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair", align 4
  %27 = alloca i32, 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 %"struct.std::pair", align 4
  %34 = alloca %"struct.std::pair", align 4
  %35 = alloca i32, align 4
  %36 = alloca %"struct.std::pair", align 4
  %37 = alloca %"struct.std::pair", align 4
  %38 = alloca %"struct.std::pair", align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %"struct.std::pair", align 4
  %42 = alloca %"struct.std::pair", align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %"struct.std::pair", align 4
  %46 = alloca i32, align 4
  %47 = alloca %"struct.std::pair", align 4
  %48 = alloca %"struct.std::pair", align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca %"struct.std::pair", align 4
  %54 = alloca i32, align 4
  %55 = alloca %"struct.std::pair", align 4
  %56 = alloca %"struct.std::pair", align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca %"struct.std::pair", align 4
  %60 = alloca %"struct.std::pair", align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca %"class.std::vector", align 8
  %64 = alloca i32, align 4
  %65 = alloca ptr, align 8
  %66 = alloca i32, align 4
  %67 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %68 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %69 = alloca ptr, align 8
  %70 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %71 = alloca %"class.__gnu_cxx::__normal_iterator.8", align 8
  %72 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %73 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %74 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %75 = getelementptr i8, ptr %74, i64 -24
  %76 = load i64, ptr %75, align 8
  %77 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %76
  %78 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %77, ptr noundef null)
  %79 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %80 = getelementptr i8, ptr %79, i64 -24
  %81 = load i64, ptr %80, align 8
  %82 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %81
  %83 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %82, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %84 = 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)
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 1, ptr %4, align 4, !tbaa !8
  br label %86

86:                                               ; preds = %120, %0
  %87 = load i32, ptr %4, align 4, !tbaa !8
  %88 = load i32, ptr %3, align 4, !tbaa !8
  %89 = icmp sle i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %123

91:                                               ; preds = %86
  %92 = load i32, ptr %4, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [200100 x i32], ptr @x, i64 0, i64 %93
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %94)
  %96 = load i32, ptr %4, align 4, !tbaa !8
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [200100 x i32], ptr @y, i64 0, i64 %97
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %95, ptr noundef nonnull align 4 dereferenceable(4) %98)
  %100 = load i32, ptr %4, align 4, !tbaa !8
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [200100 x i32], ptr @u, i64 0, i64 %101
  %103 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 4 dereferenceable(4) %102)
  %104 = load i32, ptr %4, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %105
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %103, ptr noundef nonnull align 4 dereferenceable(4) %106)
  %108 = load i32, ptr %4, align 4, !tbaa !8
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [200100 x i32], ptr @x, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !8
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %112
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %114 = load i32, ptr %4, align 4, !tbaa !8
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [200100 x i32], ptr @y, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !8
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %118
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %120

120:                                              ; preds = %91
  %121 = load i32, ptr %4, align 4, !tbaa !8
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %4, align 4, !tbaa !8
  br label %86, !llvm.loop !11

123:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %124, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %127 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %126, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %128 = load i32, ptr %5, align 4, !tbaa !8
  %129 = load i32, ptr %6, align 4, !tbaa !8
  %130 = icmp eq i32 %128, %129
  br i1 %130, label %131, label %138

131:                                              ; preds = %123
  %132 = load i32, ptr %7, align 4, !tbaa !8
  %133 = load i32, ptr %8, align 4, !tbaa !8
  %134 = icmp sle i32 %132, %133
  br i1 %134, label %135, label %138

135:                                              ; preds = %131
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %604

138:                                              ; preds = %131, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %139

139:                                              ; preds = %173, %138
  %140 = load i32, ptr %10, align 4, !tbaa !8
  %141 = load i32, ptr %2, align 4, !tbaa !8
  %142 = icmp sle i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %176

144:                                              ; preds = %139
  %145 = load i32, ptr %10, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %146
  %148 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #7
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %11, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  %150 = load i32, ptr %10, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %151
  %153 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %152) #7
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %12, i32 0, i32 0
  store ptr %153, ptr %154, align 8
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %11, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %12, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %156, ptr %158, ptr noundef @_Z4cmp1RKiS0_)
  %159 = load i32, ptr %10, align 4, !tbaa !8
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %160
  %162 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %161) #7
  %163 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %13, i32 0, i32 0
  store ptr %162, ptr %163, align 8
  %164 = load i32, ptr %10, align 4, !tbaa !8
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %165
  %167 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #7
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %14, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  %169 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %13, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8
  %171 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %14, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %170, ptr %172, ptr noundef @_Z4cmp2RKiS0_)
  br label %173

173:                                              ; preds = %144
  %174 = load i32, ptr %10, align 4, !tbaa !8
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %10, align 4, !tbaa !8
  br label %139, !llvm.loop !13

176:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !8
  br label %177

177:                                              ; preds = %237, %176
  %178 = load i32, ptr %16, align 4, !tbaa !8
  %179 = load i32, ptr %2, align 4, !tbaa !8
  %180 = icmp sle i32 %178, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %177
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %240

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %183 = load i32, ptr %16, align 4, !tbaa !8
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %184
  store ptr %185, ptr %17, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %186 = load ptr, ptr %17, align 8, !tbaa !14
  %187 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #7
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %18, i32 0, i32 0
  store ptr %187, ptr %188, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %189 = load ptr, ptr %17, align 8, !tbaa !14
  %190 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #7
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %19, i32 0, i32 0
  store ptr %190, ptr %191, align 8
  br label %192

192:                                              ; preds = %206, %182
  %193 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br i1 %193, label %195, label %194

194:                                              ; preds = %192
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %208

195:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %197 = load i32, ptr %196, align 4, !tbaa !8
  store i32 %197, ptr %20, align 4, !tbaa !8
  %198 = load i32, ptr %15, align 4, !tbaa !8
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %200 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store i64 %200, ptr %21, align 4
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store i32 %199, ptr %201, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %202 = load i32, ptr %20, align 4, !tbaa !8
  %203 = load i32, ptr %15, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [200100 x i32], ptr @rid, i64 0, i64 %204
  store i32 %202, ptr %205, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %206

206:                                              ; preds = %195
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br label %192

208:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %209 = load i32, ptr %16, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %210
  store ptr %211, ptr %22, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %212 = load ptr, ptr %22, align 8, !tbaa !14
  %213 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #7
  %214 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %23, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %215 = load ptr, ptr %22, align 8, !tbaa !14
  %216 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #7
  %217 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %24, i32 0, i32 0
  store ptr %216, ptr %217, align 8
  br label %218

218:                                              ; preds = %234, %208
  %219 = 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) #7
  br i1 %219, label %221, label %220

220:                                              ; preds = %218
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %236

221:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %223 = load i32, ptr %222, align 4, !tbaa !8
  store i32 %223, ptr %25, align 4, !tbaa !8
  %224 = load i32, ptr %15, align 4, !tbaa !8
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %226 = load i32, ptr %25, align 4, !tbaa !8
  %227 = sub nsw i32 0, %226
  store i32 %227, ptr %27, align 4, !tbaa !8
  %228 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %27)
  store i64 %228, ptr %26, align 4
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %26)
  store i32 %225, ptr %229, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %230 = load i32, ptr %25, align 4, !tbaa !8
  %231 = load i32, ptr %15, align 4, !tbaa !8
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [200100 x i32], ptr @rid, i64 0, i64 %232
  store i32 %230, ptr %233, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %234

234:                                              ; preds = %221
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br label %218

236:                                              ; preds = %220
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %16, align 4, !tbaa !8
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %16, align 4, !tbaa !8
  br label %177, !llvm.loop !16

240:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %241 = load i32, ptr %15, align 4, !tbaa !8
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %15, align 4, !tbaa !8
  store i32 %242, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %243 = load i32, ptr %15, align 4, !tbaa !8
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %15, align 4, !tbaa !8
  store i32 %244, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 1, ptr %30, align 4, !tbaa !8
  br label %245

245:                                              ; preds = %468, %240
  %246 = load i32, ptr %30, align 4, !tbaa !8
  %247 = load i32, ptr %2, align 4, !tbaa !8
  %248 = icmp sle i32 %246, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %245
  store i32 15, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %471

250:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !8
  br label %251

251:                                              ; preds = %390, %250
  %252 = load i32, ptr %31, align 4, !tbaa !8
  %253 = sext i32 %252 to i64
  %254 = load i32, ptr %30, align 4, !tbaa !8
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %255
  %257 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %256) #7
  %258 = icmp ult i64 %253, %257
  br i1 %258, label %260, label %259

259:                                              ; preds = %251
  store i32 18, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %393

260:                                              ; preds = %251
  br label %261

261:                                              ; preds = %293, %260
  %262 = load i32, ptr %32, align 4, !tbaa !8
  %263 = sext i32 %262 to i64
  %264 = load i32, ptr %30, align 4, !tbaa !8
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %265
  %267 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %266) #7
  %268 = icmp ult i64 %263, %267
  br i1 %268, label %269, label %291

269:                                              ; preds = %261
  %270 = load i32, ptr %30, align 4, !tbaa !8
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %271
  %273 = load i32, ptr %32, align 4, !tbaa !8
  %274 = sext i32 %273 to i64
  %275 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %272, i64 noundef %274) #7
  %276 = load i32, ptr %275, align 4, !tbaa !8
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [200100 x i32], ptr @u, i64 0, i64 %277
  %279 = load i32, ptr %278, align 4, !tbaa !8
  %280 = load i32, ptr %30, align 4, !tbaa !8
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %281
  %283 = load i32, ptr %31, align 4, !tbaa !8
  %284 = sext i32 %283 to i64
  %285 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %282, i64 noundef %284) #7
  %286 = load i32, ptr %285, align 4, !tbaa !8
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %287
  %289 = load i32, ptr %288, align 4, !tbaa !8
  %290 = icmp slt i32 %279, %289
  br label %291

291:                                              ; preds = %269, %261
  %292 = phi i1 [ false, %261 ], [ %290, %269 ]
  br i1 %292, label %293, label %296

293:                                              ; preds = %291
  %294 = load i32, ptr %32, align 4, !tbaa !8
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %32, align 4, !tbaa !8
  br label %261, !llvm.loop !17

296:                                              ; preds = %291
  %297 = load i32, ptr %32, align 4, !tbaa !8
  %298 = sext i32 %297 to i64
  %299 = load i32, ptr %30, align 4, !tbaa !8
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %300
  %302 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %301) #7
  %303 = icmp ult i64 %298, %302
  br i1 %303, label %304, label %358

304:                                              ; preds = %296
  %305 = load i32, ptr %30, align 4, !tbaa !8
  %306 = load i32, ptr %6, align 4, !tbaa !8
  %307 = icmp eq i32 %305, %306
  br i1 %307, label %308, label %334

308:                                              ; preds = %304
  %309 = load i32, ptr %30, align 4, !tbaa !8
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %310
  %312 = load i32, ptr %31, align 4, !tbaa !8
  %313 = sext i32 %312 to i64
  %314 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %311, i64 noundef %313) #7
  %315 = load i32, ptr %314, align 4, !tbaa !8
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !8
  %319 = load i32, ptr %8, align 4, !tbaa !8
  %320 = icmp sle i32 %318, %319
  br i1 %320, label %321, label %334

321:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %322 = load i32, ptr %30, align 4, !tbaa !8
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %323
  %325 = load i32, ptr %31, align 4, !tbaa !8
  %326 = sext i32 %325 to i64
  %327 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %324, i64 noundef %326) #7
  %328 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %327)
  store i64 %328, ptr %33, align 4
  %329 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %33)
  %330 = load i32, ptr %329, align 4, !tbaa !8
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %331
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !8
  %333 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %35)
  store i64 %333, ptr %34, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %332, ptr noundef nonnull align 4 dereferenceable(8) %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %357

334:                                              ; preds = %308, %304
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %335 = load i32, ptr %30, align 4, !tbaa !8
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %336
  %338 = load i32, ptr %31, align 4, !tbaa !8
  %339 = sext i32 %338 to i64
  %340 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %337, i64 noundef %339) #7
  %341 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %340)
  store i64 %341, ptr %36, align 4
  %342 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %36)
  %343 = load i32, ptr %342, align 4, !tbaa !8
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %346 = load i32, ptr %30, align 4, !tbaa !8
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %347
  %349 = load i32, ptr %32, align 4, !tbaa !8
  %350 = sext i32 %349 to i64
  %351 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %348, i64 noundef %350) #7
  %352 = load i32, ptr %351, align 4, !tbaa !8
  %353 = sub nsw i32 0, %352
  store i32 %353, ptr %39, align 4, !tbaa !8
  %354 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %39)
  store i64 %354, ptr %38, align 4
  %355 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 0, ptr %40, align 4, !tbaa !8
  %356 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %355, ptr noundef nonnull align 4 dereferenceable(4) %40)
  store i64 %356, ptr %37, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %345, ptr noundef nonnull align 4 dereferenceable(8) %37)
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %357

357:                                              ; preds = %334, %321
  br label %389

358:                                              ; preds = %296
  %359 = load i32, ptr %30, align 4, !tbaa !8
  %360 = load i32, ptr %6, align 4, !tbaa !8
  %361 = icmp eq i32 %359, %360
  br i1 %361, label %362, label %388

362:                                              ; preds = %358
  %363 = load i32, ptr %30, align 4, !tbaa !8
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %364
  %366 = load i32, ptr %31, align 4, !tbaa !8
  %367 = sext i32 %366 to i64
  %368 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %365, i64 noundef %367) #7
  %369 = load i32, ptr %368, align 4, !tbaa !8
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %370
  %372 = load i32, ptr %371, align 4, !tbaa !8
  %373 = load i32, ptr %8, align 4, !tbaa !8
  %374 = icmp sle i32 %372, %373
  br i1 %374, label %375, label %388

375:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %376 = load i32, ptr %30, align 4, !tbaa !8
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %377
  %379 = load i32, ptr %31, align 4, !tbaa !8
  %380 = sext i32 %379 to i64
  %381 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %378, i64 noundef %380) #7
  %382 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %381)
  store i64 %382, ptr %41, align 4
  %383 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %41)
  %384 = load i32, ptr %383, align 4, !tbaa !8
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %385
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 0, ptr %43, align 4, !tbaa !8
  %387 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %43)
  store i64 %387, ptr %42, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %386, ptr noundef nonnull align 4 dereferenceable(8) %42)
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %388

388:                                              ; preds = %375, %362, %358
  br label %389

389:                                              ; preds = %388, %357
  br label %390

390:                                              ; preds = %389
  %391 = load i32, ptr %31, align 4, !tbaa !8
  %392 = add nsw i32 %391, 1
  store i32 %392, ptr %31, align 4, !tbaa !8
  br label %251, !llvm.loop !18

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

394:                                              ; preds = %430, %393
  %395 = load i32, ptr %44, align 4, !tbaa !8
  %396 = add nsw i32 %395, 1
  %397 = sext i32 %396 to i64
  %398 = load i32, ptr %30, align 4, !tbaa !8
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %399
  %401 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %400) #7
  %402 = icmp ult i64 %397, %401
  br i1 %402, label %404, label %403

403:                                              ; preds = %394
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %433

404:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %405 = load i32, ptr %30, align 4, !tbaa !8
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %406
  %408 = load i32, ptr %44, align 4, !tbaa !8
  %409 = sext i32 %408 to i64
  %410 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %407, i64 noundef %409) #7
  %411 = load i32, ptr %410, align 4, !tbaa !8
  %412 = sub nsw i32 0, %411
  store i32 %412, ptr %46, align 4, !tbaa !8
  %413 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %46)
  store i64 %413, ptr %45, align 4
  %414 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %45)
  %415 = load i32, ptr %414, align 4, !tbaa !8
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %416
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %418 = load i32, ptr %30, align 4, !tbaa !8
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %419
  %421 = load i32, ptr %44, align 4, !tbaa !8
  %422 = add nsw i32 %421, 1
  %423 = sext i32 %422 to i64
  %424 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %420, i64 noundef %423) #7
  %425 = load i32, ptr %424, align 4, !tbaa !8
  %426 = sub nsw i32 0, %425
  store i32 %426, ptr %49, align 4, !tbaa !8
  %427 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %49)
  store i64 %427, ptr %48, align 4
  %428 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  store i32 0, ptr %50, align 4, !tbaa !8
  %429 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %428, ptr noundef nonnull align 4 dereferenceable(4) %50)
  store i64 %429, ptr %47, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %417, ptr noundef nonnull align 4 dereferenceable(8) %47)
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  br label %430

430:                                              ; preds = %404
  %431 = load i32, ptr %44, align 4, !tbaa !8
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %44, align 4, !tbaa !8
  br label %394, !llvm.loop !19

433:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  store i32 0, ptr %51, align 4, !tbaa !8
  br label %434

434:                                              ; preds = %464, %433
  %435 = load i32, ptr %51, align 4, !tbaa !8
  %436 = sext i32 %435 to i64
  %437 = load i32, ptr %30, align 4, !tbaa !8
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %438
  %440 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %439) #7
  %441 = icmp ult i64 %436, %440
  br i1 %441, label %443, label %442

442:                                              ; preds = %434
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  br label %467

443:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  %444 = load i32, ptr %30, align 4, !tbaa !8
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %445
  %447 = load i32, ptr %51, align 4, !tbaa !8
  %448 = sext i32 %447 to i64
  %449 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %446, i64 noundef %448) #7
  %450 = load i32, ptr %449, align 4, !tbaa !8
  store i32 %450, ptr %52, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #7
  %451 = load i32, ptr %52, align 4, !tbaa !8
  %452 = sub nsw i32 0, %451
  store i32 %452, ptr %54, align 4, !tbaa !8
  %453 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %54)
  store i64 %453, ptr %53, align 4
  %454 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %53)
  %455 = load i32, ptr %454, align 4, !tbaa !8
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %456
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #7
  %458 = load i32, ptr %52, align 4, !tbaa !8
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [200100 x i32], ptr @y, i64 0, i64 %459
  %461 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %460, ptr noundef nonnull align 4 dereferenceable(4) %52)
  store i64 %461, ptr %56, align 4
  %462 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #7
  store i32 1, ptr %57, align 4, !tbaa !8
  %463 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %462, ptr noundef nonnull align 4 dereferenceable(4) %57)
  store i64 %463, ptr %55, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %457, ptr noundef nonnull align 4 dereferenceable(8) %55)
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  br label %464

464:                                              ; preds = %443
  %465 = load i32, ptr %51, align 4, !tbaa !8
  %466 = add nsw i32 %465, 1
  store i32 %466, ptr %51, align 4, !tbaa !8
  br label %434, !llvm.loop !20

467:                                              ; preds = %442
  br label %468

468:                                              ; preds = %467
  %469 = load i32, ptr %30, align 4, !tbaa !8
  %470 = add nsw i32 %469, 1
  store i32 %470, ptr %30, align 4, !tbaa !8
  br label %245, !llvm.loop !21

471:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #7
  store i32 0, ptr %58, align 4, !tbaa !8
  br label %472

472:                                              ; preds = %495, %471
  %473 = load i32, ptr %58, align 4, !tbaa !8
  %474 = sext i32 %473 to i64
  %475 = load i32, ptr %5, align 4, !tbaa !8
  %476 = sext i32 %475 to i64
  %477 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %476
  %478 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %477) #7
  %479 = icmp ult i64 %474, %478
  br i1 %479, label %480, label %493

480:                                              ; preds = %472
  %481 = load i32, ptr %5, align 4, !tbaa !8
  %482 = sext i32 %481 to i64
  %483 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %482
  %484 = load i32, ptr %58, align 4, !tbaa !8
  %485 = sext i32 %484 to i64
  %486 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %483, i64 noundef %485) #7
  %487 = load i32, ptr %486, align 4, !tbaa !8
  %488 = sext i32 %487 to i64
  %489 = getelementptr inbounds [200100 x i32], ptr @u, i64 0, i64 %488
  %490 = load i32, ptr %489, align 4, !tbaa !8
  %491 = load i32, ptr %7, align 4, !tbaa !8
  %492 = icmp slt i32 %490, %491
  br label %493

493:                                              ; preds = %480, %472
  %494 = phi i1 [ false, %472 ], [ %492, %480 ]
  br i1 %494, label %495, label %498

495:                                              ; preds = %493
  %496 = load i32, ptr %58, align 4, !tbaa !8
  %497 = add nsw i32 %496, 1
  store i32 %497, ptr %58, align 4, !tbaa !8
  br label %472, !llvm.loop !22

498:                                              ; preds = %493
  %499 = load i32, ptr %58, align 4, !tbaa !8
  %500 = sext i32 %499 to i64
  %501 = load i32, ptr %5, align 4, !tbaa !8
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %502
  %504 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %503) #7
  %505 = icmp ult i64 %500, %504
  br i1 %505, label %506, label %521

506:                                              ; preds = %498
  %507 = load i32, ptr %28, align 4, !tbaa !8
  %508 = sext i32 %507 to i64
  %509 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %508
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #7
  %510 = load i32, ptr %5, align 4, !tbaa !8
  %511 = sext i32 %510 to i64
  %512 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %511
  %513 = load i32, ptr %58, align 4, !tbaa !8
  %514 = sext i32 %513 to i64
  %515 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %512, i64 noundef %514) #7
  %516 = load i32, ptr %515, align 4, !tbaa !8
  %517 = sub nsw i32 0, %516
  store i32 %517, ptr %61, align 4, !tbaa !8
  %518 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %61)
  store i64 %518, ptr %60, align 4
  %519 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %60)
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #7
  store i32 0, ptr %62, align 4, !tbaa !8
  %520 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %519, ptr noundef nonnull align 4 dereferenceable(4) %62)
  store i64 %520, ptr %59, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %509, ptr noundef nonnull align 4 dereferenceable(8) %59)
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #7
  br label %524

521:                                              ; preds = %498
  %522 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %523 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %522, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %525

524:                                              ; preds = %506
  store i32 0, ptr %9, align 4
  br label %525

525:                                              ; preds = %524, %521
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #7
  %526 = load i32, ptr %9, align 4
  switch i32 %526, label %603 [
    i32 0, label %527
  ]

527:                                              ; preds = %525
  %528 = load i32, ptr %28, align 4, !tbaa !8
  %529 = load i32, ptr %29, align 4, !tbaa !8
  %530 = call noundef zeroext i1 @_Z3dfsii(i32 noundef %528, i32 noundef %529)
  br i1 %530, label %534, label %531

531:                                              ; preds = %527
  %532 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %533 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %532, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %603

534:                                              ; preds = %527
  call void @llvm.lifetime.start.p0(i64 24, ptr %63) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #7
  store i32 1, ptr %64, align 4, !tbaa !8
  br label %535

535:                                              ; preds = %553, %534
  %536 = load i32, ptr %64, align 4, !tbaa !8
  %537 = load i32, ptr %3, align 4, !tbaa !8
  %538 = icmp sle i32 %536, %537
  br i1 %538, label %540, label %539

539:                                              ; preds = %535
  store i32 31, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #7
  br label %556

540:                                              ; preds = %535
  %541 = load i32, ptr %64, align 4, !tbaa !8
  %542 = sext i32 %541 to i64
  %543 = getelementptr inbounds [200100 x i32], ptr @used, i64 0, i64 %542
  %544 = load i32, ptr %543, align 4, !tbaa !8
  %545 = icmp ne i32 %544, 0
  br i1 %545, label %546, label %552

546:                                              ; preds = %540
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 4 dereferenceable(4) %64)
          to label %547 unwind label %548

547:                                              ; preds = %546
  br label %552

548:                                              ; preds = %546
  %549 = landingpad { ptr, i32 }
          cleanup
  %550 = extractvalue { ptr, i32 } %549, 0
  store ptr %550, ptr %65, align 8
  %551 = extractvalue { ptr, i32 } %549, 1
  store i32 %551, ptr %66, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #7
  br label %601

552:                                              ; preds = %547, %540
  br label %553

553:                                              ; preds = %552
  %554 = load i32, ptr %64, align 4, !tbaa !8
  %555 = add nsw i32 %554, 1
  store i32 %555, ptr %64, align 4, !tbaa !8
  br label %535, !llvm.loop !23

556:                                              ; preds = %539
  %557 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %558 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %557)
          to label %559 unwind label %580

559:                                              ; preds = %556
  %560 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %558, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %561 unwind label %580

561:                                              ; preds = %559
  %562 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %563 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %67, i32 0, i32 0
  store ptr %562, ptr %563, align 8
  %564 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %565 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %68, i32 0, i32 0
  store ptr %564, ptr %565, align 8
  %566 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %67, i32 0, i32 0
  %567 = load ptr, ptr %566, align 8
  %568 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %68, i32 0, i32 0
  %569 = load ptr, ptr %568, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %567, ptr %569, ptr noundef @_Z4cmp3RKiS0_)
          to label %570 unwind label %580

570:                                              ; preds = %561
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #7
  store ptr %63, ptr %69, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #7
  %571 = load ptr, ptr %69, align 8, !tbaa !14
  %572 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %571) #7
  %573 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %70, i32 0, i32 0
  store ptr %572, ptr %573, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #7
  %574 = load ptr, ptr %69, align 8, !tbaa !14
  %575 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %574) #7
  %576 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.8", ptr %71, i32 0, i32 0
  store ptr %575, ptr %576, align 8
  br label %577

577:                                              ; preds = %592, %570
  %578 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71) #7
  br i1 %578, label %584, label %579

579:                                              ; preds = %577
  store i32 34, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #7
  br label %598

580:                                              ; preds = %598, %561, %559, %556
  %581 = landingpad { ptr, i32 }
          cleanup
  %582 = extractvalue { ptr, i32 } %581, 0
  store ptr %582, ptr %65, align 8
  %583 = extractvalue { ptr, i32 } %581, 1
  store i32 %583, ptr %66, align 4
  br label %601

584:                                              ; preds = %577
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #7
  %585 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #7
  %586 = load i32, ptr %585, align 4, !tbaa !8
  store i32 %586, ptr %72, align 4, !tbaa !8
  %587 = load i32, ptr %72, align 4, !tbaa !8
  %588 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %587)
          to label %589 unwind label %594

589:                                              ; preds = %584
  %590 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %588, i8 noundef signext 32)
          to label %591 unwind label %594

591:                                              ; preds = %589
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #7
  br label %592

592:                                              ; preds = %591
  %593 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #7
  br label %577

594:                                              ; preds = %589, %584
  %595 = landingpad { ptr, i32 }
          cleanup
  %596 = extractvalue { ptr, i32 } %595, 0
  store ptr %596, ptr %65, align 8
  %597 = extractvalue { ptr, i32 } %595, 1
  store i32 %597, ptr %66, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #7
  br label %601

598:                                              ; preds = %579
  %599 = 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 %600 unwind label %580

600:                                              ; preds = %598
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #7
  br label %602

601:                                              ; preds = %594, %580, %548
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %606

602:                                              ; preds = %600
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %603

603:                                              ; preds = %602, %531, %525
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %604

604:                                              ; preds = %603, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %605 = load i32, ptr %1, align 4
  ret i32 %605

606:                                              ; preds = %601
  %607 = load ptr, ptr %65, align 8
  %608 = load i32, ptr %66, align 4
  %609 = insertvalue { ptr, i32 } poison, ptr %607, 0
  %610 = insertvalue { ptr, i32 } %609, i32 %608, 1
  resume { ptr, i32 } %610
}

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

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

; 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

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

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

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

; 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: 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)) #6

; 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 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: 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: 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 i64 @_ZSt9make_pairIRiiESt4pairINSt25__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: 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


; 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 }
%"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::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.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.8" = type { ptr }
%"struct.std::pair" = type { i32, i32 }

@a = external dso_local global [200100 x %"class.std::vector"], align 16
@d = external dso_local global [200100 x %"class.std::vector"], align 16
@node = external dso_local global %"class.std::map", align 8
@g = external dso_local global [200100 x %"class.std::vector.3"], align 16
@rid = external dso_local local_unnamed_addr global [200100 x i32], align 16
@x = external dso_local global [200100 x i32], align 16
@y = external dso_local global [200100 x i32], align 16
@u = external dso_local global [200100 x i32], align 16
@v = external dso_local global [200100 x i32], align 16
@used = external dso_local local_unnamed_addr global [200100 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 [11 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmp1RKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #1

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %68 = load i32, ptr %4, align 4, !tbaa !8
  %69 = load i32, ptr %5, align 4, !tbaa !8
  %70 = icmp eq i32 %68, %69
  br i1 %70, label %101, label %107

.lr.ph:                                           ; preds = %0, %.lr.ph
  %storemerge97 = phi i32 [ %99, %.lr.ph ], [ 1, %0 ]
  %71 = sext i32 %storemerge97 to i64
  %72 = getelementptr inbounds [200100 x i32], ptr @x, i64 0, i64 %71
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %72)
  %74 = load i32, ptr %3, align 4, !tbaa !8
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200100 x i32], ptr @y, i64 0, i64 %75
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 4 dereferenceable(4) %76)
  %78 = load i32, ptr %3, align 4, !tbaa !8
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [200100 x i32], ptr @u, i64 0, i64 %79
  %81 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(4) %80)
  %82 = load i32, ptr %3, align 4, !tbaa !8
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %83
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %81, ptr noundef nonnull align 4 dereferenceable(4) %84)
  %86 = load i32, ptr %3, align 4, !tbaa !8
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [200100 x i32], ptr @x, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !8
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %90
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %92 = load i32, ptr %3, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [200100 x i32], ptr @y, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %96
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %98 = load i32, ptr %3, align 4, !tbaa !8
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %3, align 4, !tbaa !8
  %100 = load i32, ptr %2, align 4, !tbaa !8
  %.not.not = icmp slt i32 %98, %100
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

101:                                              ; preds = %._crit_edge
  %102 = load i32, ptr %6, align 4, !tbaa !8
  %103 = load i32, ptr %7, align 4, !tbaa !8
  %.not80 = icmp sgt i32 %102, %103
  br i1 %.not80, label %107, label %104

104:                                              ; preds = %101
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %406

107:                                              ; preds = %101, %._crit_edge
  %108 = load i32, ptr %1, align 4, !tbaa !8
  %.not8198 = icmp slt i32 %108, 1
  br i1 %.not8198, label %._crit_edge102.thread, label %.lr.ph101

._crit_edge102.thread:                            ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  br label %._crit_edge117.thread

._crit_edge102:                                   ; preds = %.lr.ph101
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 1, ptr %8, align 4, !tbaa !8
  %.not83112 = icmp slt i32 %115, 1
  br i1 %.not83112, label %._crit_edge117.thread, label %.lr.ph116

.lr.ph101:                                        ; preds = %107, %.lr.ph101
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph101 ], [ 1, %107 ]
  %109 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %indvars.iv
  %110 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #7
  %111 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %110, ptr %111, ptr noundef nonnull @_Z4cmp1RKiS0_)
  %112 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %indvars.iv
  %113 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #7
  %114 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %113, ptr %114, ptr noundef nonnull @_Z4cmp2RKiS0_)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %115 = load i32, ptr %1, align 4, !tbaa !8
  %116 = sext i32 %115 to i64
  %.not81.not = icmp slt i64 %indvars.iv, %116
  br i1 %.not81.not, label %.lr.ph101, label %._crit_edge102, !llvm.loop !13

._crit_edge117.thread:                            ; preds = %._crit_edge102, %._crit_edge102.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  store i32 2, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  br label %._crit_edge134

._crit_edge117:                                   ; preds = %._crit_edge110
  %117 = icmp slt i32 %144, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %118 = add nsw i32 %.262.lcssa, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %119 = add nsw i32 %.262.lcssa, 2
  store i32 %119, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store i32 1, ptr %18, align 4, !tbaa !8
  br i1 %117, label %._crit_edge134, label %.preheader94

.lr.ph116:                                        ; preds = %._crit_edge102, %._crit_edge110
  %.060114 = phi i32 [ %.262.lcssa, %._crit_edge110 ], [ 0, %._crit_edge102 ]
  %storemerge82113 = phi i32 [ %143, %._crit_edge110 ], [ 1, %._crit_edge102 ]
  %120 = sext i32 %storemerge82113 to i64
  %121 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %122 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  store ptr %122, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %123 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  store ptr %123, ptr %10, align 8
  %124 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %124, label %.lr.ph105.preheader, label %._crit_edge106

.lr.ph105.preheader:                              ; preds = %.lr.ph116
  %125 = sext i32 %.060114 to i64
  br label %.lr.ph105

._crit_edge106:                                   ; preds = %.lr.ph105, %.lr.ph116
  %.161.lcssa = phi i32 [ %.060114, %.lr.ph116 ], [ %137, %.lr.ph105 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %126 = load i32, ptr %8, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %127
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %129 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #7
  store ptr %129, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %130 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #7
  store ptr %130, ptr %14, align 8
  %131 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %131, label %.lr.ph109.preheader, label %._crit_edge110

.lr.ph109.preheader:                              ; preds = %._crit_edge106
  %132 = sext i32 %.161.lcssa to i64
  br label %.lr.ph109

.lr.ph105:                                        ; preds = %.lr.ph105.preheader, %.lr.ph105
  %indvars.iv154 = phi i64 [ %125, %.lr.ph105.preheader ], [ %indvars.iv.next155, %.lr.ph105 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %134 = load i32, ptr %133, align 4, !tbaa !8
  store i32 %134, ptr %11, align 4, !tbaa !8
  %indvars.iv.next155 = add nsw i64 %indvars.iv154, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %135 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store i64 %135, ptr %12, align 8
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %137 = trunc nsw i64 %indvars.iv.next155 to i32
  store i32 %137, ptr %136, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %138 = load i32, ptr %11, align 4, !tbaa !8
  %139 = getelementptr inbounds [200100 x i32], ptr @rid, i64 0, i64 %indvars.iv.next155
  store i32 %138, ptr %139, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %141 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %141, label %.lr.ph105, label %._crit_edge106

._crit_edge110:                                   ; preds = %.lr.ph109, %._crit_edge106
  %.262.lcssa = phi i32 [ %.161.lcssa, %._crit_edge106 ], [ %150, %.lr.ph109 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %142 = load i32, ptr %8, align 4, !tbaa !8
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %8, align 4, !tbaa !8
  %144 = load i32, ptr %1, align 4, !tbaa !8
  %.not83.not = icmp slt i32 %142, %144
  br i1 %.not83.not, label %.lr.ph116, label %._crit_edge117, !llvm.loop !14

.lr.ph109:                                        ; preds = %.lr.ph109.preheader, %.lr.ph109
  %indvars.iv157 = phi i64 [ %132, %.lr.ph109.preheader ], [ %indvars.iv.next158, %.lr.ph109 ]
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %146 = load i32, ptr %145, align 4, !tbaa !8
  %indvars.iv.next158 = add nsw i64 %indvars.iv157, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %147 = sub nsw i32 0, %146
  store i32 %147, ptr %16, align 4, !tbaa !8
  %148 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i64 %148, ptr %15, align 8
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %150 = trunc nsw i64 %indvars.iv.next158 to i32
  store i32 %150, ptr %149, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %151 = getelementptr inbounds [200100 x i32], ptr @rid, i64 0, i64 %indvars.iv.next158
  store i32 %146, ptr %151, align 4, !tbaa !8
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %153 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %153, label %.lr.ph109, label %._crit_edge110

.preheader94:                                     ; preds = %._crit_edge117, %._crit_edge132
  %154 = phi i32 [ %301, %._crit_edge132 ], [ 1, %._crit_edge117 ]
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %155
  %157 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #7
  %.not = icmp eq i64 %157, 0
  br i1 %.not, label %.preheader93, label %.preheader

._crit_edge134:                                   ; preds = %._crit_edge132, %._crit_edge117.thread, %._crit_edge117
  %158 = phi i32 [ 1, %._crit_edge117.thread ], [ %118, %._crit_edge117 ], [ %118, %._crit_edge132 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  %159 = load i32, ptr %4, align 4, !tbaa !8
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %160
  %162 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %161) #7
  %.not150 = icmp eq i64 %162, 0
  br i1 %.not150, label %.critedge2, label %.lr.ph137

.preheader93:                                     ; preds = %265, %.preheader94
  %163 = load i32, ptr %18, align 4, !tbaa !8
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %164
  %166 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #7
  %167 = icmp ugt i64 %166, 1
  br i1 %167, label %.lr.ph129, label %.preheader92

.preheader:                                       ; preds = %.preheader94, %265
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %265 ], [ 0, %.preheader94 ]
  %.068127 = phi i32 [ %.169.lcssa, %265 ], [ 0, %.preheader94 ]
  %168 = sext i32 %.068127 to i64
  %169 = load i32, ptr %18, align 4, !tbaa !8
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %170
  %172 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #7
  %173 = icmp ugt i64 %172, %168
  br i1 %173, label %.lr.ph120, label %.critedge

.lr.ph120:                                        ; preds = %.preheader, %191
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %191 ], [ %168, %.preheader ]
  %174 = load i32, ptr %18, align 4, !tbaa !8
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %175
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %indvars.iv160) #7
  %178 = load i32, ptr %177, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [200100 x i32], ptr @u, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !8
  %182 = load i32, ptr %18, align 4, !tbaa !8
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %183
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %indvars.iv163) #7
  %186 = load i32, ptr %185, align 4, !tbaa !8
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !8
  %190 = icmp slt i32 %181, %189
  br i1 %190, label %191, label %.critedge.loopexit

191:                                              ; preds = %.lr.ph120
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %192 = load i32, ptr %18, align 4, !tbaa !8
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %193
  %195 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %194) #7
  %196 = icmp ugt i64 %195, %indvars.iv.next161
  br i1 %196, label %.lr.ph120, label %.critedge.loopexit, !llvm.loop !15

.critedge.loopexit:                               ; preds = %191, %.lr.ph120
  %.lcssa95.ph = phi i64 [ %indvars.iv160, %.lr.ph120 ], [ %indvars.iv.next161, %191 ]
  %.169.lcssa.ph = trunc i64 %.lcssa95.ph to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader
  %.169.lcssa = phi i32 [ %.068127, %.preheader ], [ %.169.lcssa.ph, %.critedge.loopexit ]
  %.lcssa95 = phi i64 [ %168, %.preheader ], [ %.lcssa95.ph, %.critedge.loopexit ]
  %197 = load i32, ptr %18, align 4, !tbaa !8
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %198
  %200 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %199) #7
  %201 = icmp ugt i64 %200, %.lcssa95
  %202 = load i32, ptr %18, align 4, !tbaa !8
  %203 = load i32, ptr %5, align 4, !tbaa !8
  %204 = icmp eq i32 %202, %203
  br i1 %201, label %205, label %244

205:                                              ; preds = %.critedge
  br i1 %204, label %206, label %225

206:                                              ; preds = %205
  %207 = sext i32 %202 to i64
  %208 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %207
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %indvars.iv163) #7
  %210 = load i32, ptr %209, align 4, !tbaa !8
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !8
  %214 = load i32, ptr %7, align 4, !tbaa !8
  %.not91 = icmp sgt i32 %213, %214
  %.pre = load i32, ptr %18, align 4, !tbaa !8
  br i1 %.not91, label %225, label %215

215:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %216 = sext i32 %.pre to i64
  %217 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %216
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %indvars.iv163) #7
  %219 = 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) %218)
  store i64 %219, ptr %19, align 8
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %19)
  %221 = load i32, ptr %220, align 4, !tbaa !8
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %222
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  store i32 0, ptr %21, align 4, !tbaa !8
  %224 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %21)
  store i64 %224, ptr %20, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %223, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %265

225:                                              ; preds = %206, %205
  %226 = phi i32 [ %.pre, %206 ], [ %202, %205 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %227
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %indvars.iv163) #7
  %230 = 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) %229)
  store i64 %230, ptr %22, align 8
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %22)
  %232 = load i32, ptr %231, align 4, !tbaa !8
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %233
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  %235 = load i32, ptr %18, align 4, !tbaa !8
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %236
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %.lcssa95) #7
  %239 = load i32, ptr %238, align 4, !tbaa !8
  %240 = sub nsw i32 0, %239
  store i32 %240, ptr %25, align 4, !tbaa !8
  %241 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %25)
  store i64 %241, ptr %24, align 8
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  store i32 0, ptr %26, align 4, !tbaa !8
  %243 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %242, ptr noundef nonnull align 4 dereferenceable(4) %26)
  store i64 %243, ptr %23, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %234, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %265

244:                                              ; preds = %.critedge
  br i1 %204, label %245, label %265

245:                                              ; preds = %244
  %246 = sext i32 %202 to i64
  %247 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %246
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %indvars.iv163) #7
  %249 = load i32, ptr %248, align 4, !tbaa !8
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [200100 x i32], ptr @v, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !8
  %253 = load i32, ptr %7, align 4, !tbaa !8
  %.not90 = icmp sgt i32 %252, %253
  br i1 %.not90, label %265, label %254

254:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %255 = load i32, ptr %18, align 4, !tbaa !8
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %256
  %258 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %257, i64 noundef %indvars.iv163) #7
  %259 = 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) %258)
  store i64 %259, ptr %27, align 8
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %27)
  %261 = load i32, ptr %260, align 4, !tbaa !8
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %262
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #7
  store i32 0, ptr %29, align 4, !tbaa !8
  %264 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %29)
  store i64 %264, ptr %28, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %263, ptr noundef nonnull align 4 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  br label %265

265:                                              ; preds = %225, %215, %254, %245, %244
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %266 = load i32, ptr %18, align 4, !tbaa !8
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @a, i64 0, i64 %267
  %269 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %268) #7
  %270 = icmp ugt i64 %269, %indvars.iv.next164
  br i1 %270, label %.preheader, label %.preheader93, !llvm.loop !16

.preheader92:                                     ; preds = %.lr.ph129, %.preheader93
  %271 = load i32, ptr %18, align 4, !tbaa !8
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %272
  %274 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %273) #7
  %.not149 = icmp eq i64 %274, 0
  br i1 %.not149, label %._crit_edge132, label %.lr.ph131

.lr.ph129:                                        ; preds = %.preheader93, %.lr.ph129
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %.lr.ph129 ], [ 0, %.preheader93 ]
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %.lr.ph129 ], [ 1, %.preheader93 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #7
  %275 = load i32, ptr %18, align 4, !tbaa !8
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %276
  %278 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %277, i64 noundef %indvars.iv169) #7
  %279 = load i32, ptr %278, align 4, !tbaa !8
  %280 = sub nsw i32 0, %279
  store i32 %280, ptr %31, align 4, !tbaa !8
  %281 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %31)
  store i64 %281, ptr %30, align 8
  %282 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %30)
  %283 = load i32, ptr %282, align 4, !tbaa !8
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %284
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #7
  %286 = load i32, ptr %18, align 4, !tbaa !8
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %287
  %289 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %indvars.iv167) #7
  %290 = load i32, ptr %289, align 4, !tbaa !8
  %291 = sub nsw i32 0, %290
  store i32 %291, ptr %34, align 4, !tbaa !8
  %292 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %34)
  store i64 %292, ptr %33, align 8
  %293 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #7
  store i32 0, ptr %35, align 4, !tbaa !8
  %294 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %293, ptr noundef nonnull align 4 dereferenceable(4) %35)
  store i64 %294, ptr %32, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %285, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %295 = load i32, ptr %18, align 4, !tbaa !8
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %296
  %298 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %297) #7
  %299 = icmp ugt i64 %298, %indvars.iv.next168
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  br i1 %299, label %.lr.ph129, label %.preheader92, !llvm.loop !17

._crit_edge132:                                   ; preds = %.lr.ph131, %.preheader92
  %300 = load i32, ptr %18, align 4, !tbaa !8
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %18, align 4, !tbaa !8
  %302 = load i32, ptr %1, align 4, !tbaa !8
  %.not85.not = icmp slt i32 %300, %302
  br i1 %.not85.not, label %.preheader94, label %._crit_edge134, !llvm.loop !18

.lr.ph131:                                        ; preds = %.preheader92, %.lr.ph131
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %.lr.ph131 ], [ 0, %.preheader92 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #7
  %303 = load i32, ptr %18, align 4, !tbaa !8
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %304
  %306 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %indvars.iv175) #7
  %307 = load i32, ptr %306, align 4, !tbaa !8
  store i32 %307, ptr %36, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #7
  %308 = sub nsw i32 0, %307
  store i32 %308, ptr %38, align 4, !tbaa !8
  %309 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__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) %38)
  store i64 %309, ptr %37, align 8
  %310 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %37)
  %311 = load i32, ptr %310, align 4, !tbaa !8
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %312
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #7
  %314 = load i32, ptr %36, align 4, !tbaa !8
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [200100 x i32], ptr @y, i64 0, i64 %315
  %317 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %316, ptr noundef nonnull align 4 dereferenceable(4) %36)
  store i64 %317, ptr %40, align 8
  %318 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #7
  store i32 1, ptr %41, align 4, !tbaa !8
  %319 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %318, ptr noundef nonnull align 4 dereferenceable(4) %41)
  store i64 %319, ptr %39, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %313, ptr noundef nonnull align 4 dereferenceable(8) %39)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #7
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %320 = load i32, ptr %18, align 4, !tbaa !8
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %321
  %323 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %322) #7
  %324 = icmp ugt i64 %323, %indvars.iv.next176
  br i1 %324, label %.lr.ph131, label %._crit_edge132, !llvm.loop !19

325:                                              ; preds = %.lr.ph137
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %326 = load i32, ptr %4, align 4, !tbaa !8
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %327
  %329 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %328) #7
  %330 = icmp ugt i64 %329, %indvars.iv.next180
  br i1 %330, label %.lr.ph137, label %.critedge2, !llvm.loop !20

.lr.ph137:                                        ; preds = %._crit_edge134, %325
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %325 ], [ 0, %._crit_edge134 ]
  %331 = load i32, ptr %4, align 4, !tbaa !8
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %332
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %333, i64 noundef %indvars.iv179) #7
  %335 = load i32, ptr %334, align 4, !tbaa !8
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [200100 x i32], ptr @u, i64 0, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !8
  %339 = load i32, ptr %6, align 4, !tbaa !8
  %340 = icmp slt i32 %338, %339
  br i1 %340, label %325, label %.critedge2

.critedge2:                                       ; preds = %.lr.ph137, %325, %._crit_edge134
  %.lcssa = phi i64 [ 0, %._crit_edge134 ], [ %indvars.iv.next180, %325 ], [ %indvars.iv179, %.lr.ph137 ]
  %341 = load i32, ptr %4, align 4, !tbaa !8
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %342
  %344 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %343) #7
  %345 = icmp ugt i64 %344, %.lcssa
  br i1 %345, label %349, label %346

346:                                              ; preds = %.critedge2
  %347 = 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)
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %347, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %405

349:                                              ; preds = %.critedge2
  %350 = sext i32 %158 to i64
  %351 = getelementptr inbounds [200100 x %"class.std::vector.3"], ptr @g, i64 0, i64 %350
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %43) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #7
  %352 = load i32, ptr %4, align 4, !tbaa !8
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @d, i64 0, i64 %353
  %355 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %354, i64 noundef %.lcssa) #7
  %356 = load i32, ptr %355, align 4, !tbaa !8
  %357 = sub nsw i32 0, %356
  store i32 %357, ptr %44, align 4, !tbaa !8
  %358 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %44)
  store i64 %358, ptr %43, align 8
  %359 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt4pairIiiEiSt4lessIS1_ESaIS0_IKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @node, ptr noundef nonnull align 4 dereferenceable(8) %43)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #7
  store i32 0, ptr %45, align 4, !tbaa !8
  %360 = call i64 @_ZSt9make_pairIRiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %359, ptr noundef nonnull align 4 dereferenceable(4) %45)
  store i64 %360, ptr %42, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %351, ptr noundef nonnull align 4 dereferenceable(8) %42)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #7
  %361 = load i32, ptr %17, align 4, !tbaa !8
  %362 = call noundef zeroext i1 @_Z3dfsii(i32 noundef %158, i32 noundef %361)
  br i1 %362, label %366, label %363

363:                                              ; preds = %349
  %364 = 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)
  %365 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %364, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %405

366:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %46) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %47) #7
  store i32 1, ptr %47, align 4, !tbaa !8
  %367 = load i32, ptr %2, align 4, !tbaa !8
  %.not87141 = icmp slt i32 %367, 1
  br i1 %.not87141, label %._crit_edge145, label %.lr.ph144

._crit_edge145:                                   ; preds = %377, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %47) #7
  %368 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %369 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %368)
          to label %381 unwind label %391

.lr.ph144:                                        ; preds = %366, %377
  %370 = phi i32 [ %378, %377 ], [ %367, %366 ]
  %storemerge86142 = phi i32 [ %380, %377 ], [ 1, %366 ]
  %371 = sext i32 %storemerge86142 to i64
  %372 = getelementptr inbounds [200100 x i32], ptr @used, i64 0, i64 %371
  %373 = load i32, ptr %372, align 4, !tbaa !8
  %.not88 = icmp eq i32 %373, 0
  br i1 %.not88, label %377, label %374

374:                                              ; preds = %.lr.ph144
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %._crit_edge183 unwind label %375

._crit_edge183:                                   ; preds = %374
  %.pre184 = load i32, ptr %47, align 4, !tbaa !8
  %.pre185 = load i32, ptr %2, align 4, !tbaa !8
  br label %377

375:                                              ; preds = %374
  %376 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %47) #7
  br label %404

377:                                              ; preds = %._crit_edge183, %.lr.ph144
  %378 = phi i32 [ %.pre185, %._crit_edge183 ], [ %370, %.lr.ph144 ]
  %379 = phi i32 [ %.pre184, %._crit_edge183 ], [ %storemerge86142, %.lr.ph144 ]
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %47, align 4, !tbaa !8
  %.not87.not = icmp slt i32 %379, %378
  br i1 %.not87.not, label %.lr.ph144, label %._crit_edge145, !llvm.loop !21

381:                                              ; preds = %._crit_edge145
  %382 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %369, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %383 unwind label %391

383:                                              ; preds = %381
  %384 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %385 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEPFbRKiS8_EEvT_SB_T0_(ptr %384, ptr %385, ptr noundef nonnull @_Z4cmp3RKiS0_)
          to label %386 unwind label %391

386:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #7
  %387 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  store ptr %387, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %49) #7
  %388 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  store ptr %388, ptr %49, align 8
  %389 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  br i1 %389, label %.lr.ph147, label %._crit_edge148

._crit_edge148:                                   ; preds = %398, %386
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  %390 = 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 %403 unwind label %391

391:                                              ; preds = %._crit_edge148, %383, %381, %._crit_edge145
  %392 = landingpad { ptr, i32 }
          cleanup
  br label %404

.lr.ph147:                                        ; preds = %386, %398
  %393 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  %394 = load i32, ptr %393, align 4, !tbaa !8
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %394)
          to label %396 unwind label %401

396:                                              ; preds = %.lr.ph147
  %397 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %395, i8 noundef signext 32)
          to label %398 unwind label %401

398:                                              ; preds = %396
  %399 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  %400 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  br i1 %400, label %.lr.ph147, label %._crit_edge148

401:                                              ; preds = %396, %.lr.ph147
  %402 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  br label %404

403:                                              ; preds = %._crit_edge148
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %46) #7
  br label %405

404:                                              ; preds = %401, %391, %375
  %.pn = phi { ptr, i32 } [ %376, %375 ], [ %402, %401 ], [ %392, %391 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %46) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn

405:                                              ; preds = %346, %403, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %406

406:                                              ; preds = %405, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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

; 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

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

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

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

; 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: 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 #6

; 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 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: 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 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 i64 @_ZSt9make_pairIRiiESt4pairINSt25__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 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 = distinct !{!21, !12}


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