; LLVM IR from ShahjalalShohag/code-library :: Graph Theory (Gomory Hu Tree of Planar Graph)

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

%struct.EDGE = type { i32, i32, i32, i64 }
%"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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, int>, std::pair<long long, int>, std::_Identity<std::pair<long long, int>>, std::less<std::pair<long long, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, int>, std::pair<long long, int>, std::_Identity<std::pair<long long, int>>, std::less<std::pair<long long, 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.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { ptr }
%"struct.std::pair.13" = type <{ i64, i32, [4 x i8] }>
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.16" = type { %"struct.std::pair.18", i64 }
%"struct.std::pair.18" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator.20" = type { ptr }

@E = external dso_local global [800020 x %struct.EDGE], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@bel = external dso_local global [800020 x i32], align 16
@vis = external dso_local global [800020 x i8], align 16
@G = external dso_local global [200005 x %"class.std::vector"], align 16
@plr = external dso_local global %"class.std::vector.0", align 8
@st = external dso_local global %"class.std::set", align 8
@tr = external dso_local global %"class.std::vector.8", align 8
@fa = external dso_local global [200005 x i32], align 16
@sz = external dso_local global [200005 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 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 uwtable
declare dso_local noundef i32 @_Z4Findi(i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 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 %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %class.anon, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair.13", align 8
  %27 = alloca { i64, i32 }, align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %33 = alloca %"struct.std::pair.16", align 8
  %34 = alloca %"struct.std::pair.18", align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca i32, align 4
  %40 = alloca %"struct.std::pair.13", align 8
  %41 = alloca i32, align 4
  %42 = alloca { i64, i32 }, align 8
  %43 = alloca %"struct.std::pair.13", align 8
  %44 = alloca i32, align 4
  %45 = alloca { i64, i32 }, align 8
  %46 = alloca %"struct.std::pair", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %113, %0
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = load i32, ptr @m, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %116

61:                                               ; preds = %56
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = mul nsw i32 %62, 2
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.EDGE, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = mul nsw i32 %67, 2
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.EDGE, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = mul nsw i32 %72, 2
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.EDGE, ptr %75, i32 0, i32 3
  %77 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %66, ptr noundef %71, ptr noundef %76)
  %78 = load i32, ptr %2, align 4, !tbaa !5
  %79 = mul nsw i32 %78, 2
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %80
  %82 = getelementptr inbounds %struct.EDGE, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !9
  %84 = add nsw i32 %83, -1
  store i32 %84, ptr %82, align 8, !tbaa !9
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = mul nsw i32 %85, 2
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.EDGE, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !12
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr %89, align 4, !tbaa !12
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = mul nsw i32 %92, 2
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %94
  %96 = load i32, ptr %2, align 4, !tbaa !5
  %97 = mul nsw i32 %96, 2
  %98 = add nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %100, ptr align 8 %95, i64 24, i1 false), !tbaa.struct !13
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = mul nsw i32 %101, 2
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %104
  %106 = getelementptr inbounds %struct.EDGE, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %2, align 4, !tbaa !5
  %108 = mul nsw i32 %107, 2
  %109 = add nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %110
  %112 = getelementptr inbounds %struct.EDGE, ptr %111, i32 0, i32 1
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %106, ptr noundef nonnull align 4 dereferenceable(4) %112) #8
  br label %113

113:                                              ; preds = %61
  %114 = load i32, ptr %2, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %2, align 4, !tbaa !5
  br label %56, !llvm.loop !15

116:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %154, %116
  %118 = load i32, ptr %3, align 4, !tbaa !5
  %119 = load i32, ptr @m, align 4, !tbaa !5
  %120 = mul nsw i32 %119, 2
  %121 = icmp slt i32 %118, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %157

123:                                              ; preds = %117
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %125
  %127 = getelementptr inbounds %struct.EDGE, ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %129
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %131 = load i32, ptr %3, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %132
  %134 = getelementptr inbounds %struct.EDGE, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !9
  %136 = add nsw i32 %135, 1
  %137 = load i32, ptr @n, align 4, !tbaa !5
  %138 = srem i32 %136, %137
  %139 = load i32, ptr %3, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %140
  %142 = getelementptr inbounds %struct.EDGE, ptr %141, i32 0, i32 1
  %143 = load i32, ptr %142, align 4, !tbaa !12
  %144 = icmp eq i32 %138, %143
  br i1 %144, label %145, label %149

145:                                              ; preds = %123
  %146 = load i32, ptr %3, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %147
  store i8 1, ptr %148, align 1, !tbaa !17
  br label %153

149:                                              ; preds = %123
  %150 = load i32, ptr %3, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %151
  store i8 0, ptr %152, align 1, !tbaa !17
  br label %153

153:                                              ; preds = %149, %145
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %3, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %3, align 4, !tbaa !5
  br label %117, !llvm.loop !19

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

158:                                              ; preds = %208, %157
  %159 = load i32, ptr %4, align 4, !tbaa !5
  %160 = load i32, ptr @n, align 4, !tbaa !5
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %163, label %162

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

163:                                              ; preds = %158
  %164 = load i32, ptr %4, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %165
  %167 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #8
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  %169 = load i32, ptr %4, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %170
  %172 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #8
  %173 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %172, ptr %173, align 8
  %174 = getelementptr inbounds %class.anon, ptr %8, i32 0, i32 0
  store ptr %4, ptr %174, align 8, !tbaa !20
  %175 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8
  %179 = getelementptr inbounds %class.anon, ptr %8, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8
  call void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr %176, ptr %178, ptr %180)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %204, %163
  %182 = load i32, ptr %9, align 4, !tbaa !5
  %183 = load i32, ptr %4, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %184
  %186 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %185) #8
  %187 = trunc i64 %186 to i32
  %188 = icmp slt i32 %182, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %181
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %207

190:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %191 = load i32, ptr %4, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %192
  %194 = load i32, ptr %9, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %195) #8
  %197 = load i32, ptr %196, align 4, !tbaa !5
  store i32 %197, ptr %10, align 4, !tbaa !5
  %198 = load i32, ptr %9, align 4, !tbaa !5
  %199 = load i32, ptr %10, align 4, !tbaa !5
  %200 = xor i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %201
  %203 = getelementptr inbounds %struct.EDGE, ptr %202, i32 0, i32 2
  store i32 %198, ptr %203, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %204

204:                                              ; preds = %190
  %205 = load i32, ptr %9, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %9, align 4, !tbaa !5
  br label %181, !llvm.loop !23

207:                                              ; preds = %189
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %4, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %4, align 4, !tbaa !5
  br label %158, !llvm.loop !24

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

212:                                              ; preds = %289, %211
  %213 = load i32, ptr %11, align 4, !tbaa !5
  %214 = load i32, ptr @m, align 4, !tbaa !5
  %215 = mul nsw i32 %214, 2
  %216 = icmp slt i32 %213, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %212
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %292

218:                                              ; preds = %212
  %219 = load i32, ptr %11, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %220
  %222 = load i8, ptr %221, align 1, !tbaa !17, !range !25, !noundef !26
  %223 = trunc i8 %222 to i1
  br i1 %223, label %288, label %224

224:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %225 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %225, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %226

226:                                              ; preds = %234, %224
  %227 = load i32, ptr %12, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %228
  %230 = load i8, ptr %229, align 1, !tbaa !17, !range !25, !noundef !26
  %231 = trunc i8 %230 to i1
  %232 = xor i1 %231, true
  br i1 %232, label %233, label %265

233:                                              ; preds = %226
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %234 unwind label %261

234:                                              ; preds = %233
  %235 = load i32, ptr %12, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %236
  store i8 1, ptr %237, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %238 = load i32, ptr %12, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %239
  %241 = getelementptr inbounds %struct.EDGE, ptr %240, i32 0, i32 1
  %242 = load i32, ptr %241, align 4, !tbaa !12
  store i32 %242, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %243 = load i32, ptr %16, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %244
  %246 = load i32, ptr %12, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %247
  %249 = getelementptr inbounds %struct.EDGE, ptr %248, i32 0, i32 2
  %250 = load i32, ptr %249, align 8, !tbaa !22
  %251 = add nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = load i32, ptr %16, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %254
  %256 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %255) #8
  %257 = urem i64 %252, %256
  %258 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %245, i64 noundef %257) #8
  %259 = load i32, ptr %258, align 4, !tbaa !5
  store i32 %259, ptr %17, align 4, !tbaa !5
  %260 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %260, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %226, !llvm.loop !27

261:                                              ; preds = %265, %233
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %14, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %15, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %626

265:                                              ; preds = %226
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @plr, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %266 unwind label %261

266:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store ptr %13, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %267 = load ptr, ptr %18, align 8, !tbaa !20
  %268 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %267) #8
  %269 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %268, ptr %269, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %270 = load ptr, ptr %18, align 8, !tbaa !20
  %271 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %270) #8
  %272 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %271, ptr %272, align 8
  br label %273

273:                                              ; preds = %285, %266
  %274 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br i1 %274, label %276, label %275

275:                                              ; preds = %273
  store i32 19, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %287

276:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %278 = load i32, ptr %277, align 4, !tbaa !5
  store i32 %278, ptr %21, align 4, !tbaa !5
  %279 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @plr) #8
  %280 = sub i64 %279, 1
  %281 = trunc i64 %280 to i32
  %282 = load i32, ptr %21, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [800020 x i32], ptr @bel, i64 0, i64 %283
  store i32 %281, ptr %284, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %285

285:                                              ; preds = %276
  %286 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %273

287:                                              ; preds = %275
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %288

288:                                              ; preds = %287, %218
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %11, align 4, !tbaa !5
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %11, align 4, !tbaa !5
  br label %212, !llvm.loop !28

292:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %323, %292
  %294 = load i32, ptr %22, align 4, !tbaa !5
  %295 = load i32, ptr @m, align 4, !tbaa !5
  %296 = mul nsw i32 %295, 2
  %297 = icmp slt i32 %294, %296
  br i1 %297, label %299, label %298

298:                                              ; preds = %293
  store i32 21, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %326

299:                                              ; preds = %293
  %300 = load i32, ptr %22, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %301
  %303 = getelementptr inbounds %struct.EDGE, ptr %302, i32 0, i32 0
  %304 = load i32, ptr %303, align 8, !tbaa !9
  %305 = add nsw i32 %304, 1
  %306 = load i32, ptr @n, align 4, !tbaa !5
  %307 = srem i32 %305, %306
  %308 = load i32, ptr %22, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %309
  %311 = getelementptr inbounds %struct.EDGE, ptr %310, i32 0, i32 1
  %312 = load i32, ptr %311, align 4, !tbaa !12
  %313 = icmp eq i32 %307, %312
  br i1 %313, label %314, label %318

314:                                              ; preds = %299
  %315 = load i32, ptr %22, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %316
  store i8 1, ptr %317, align 1, !tbaa !17
  br label %322

318:                                              ; preds = %299
  %319 = load i32, ptr %22, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %320
  store i8 0, ptr %321, align 1, !tbaa !17
  br label %322

322:                                              ; preds = %318, %314
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr %22, align 4, !tbaa !5
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %22, align 4, !tbaa !5
  br label %293, !llvm.loop !29

326:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %327

327:                                              ; preds = %371, %326
  %328 = load i32, ptr %23, align 4, !tbaa !5
  %329 = load i32, ptr @m, align 4, !tbaa !5
  %330 = icmp slt i32 %328, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %327
  store i32 24, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %374

332:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %333 = load i32, ptr %23, align 4, !tbaa !5
  %334 = mul nsw i32 %333, 2
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %335
  %337 = getelementptr inbounds %struct.EDGE, ptr %336, i32 0, i32 0
  %338 = load i32, ptr %337, align 8, !tbaa !9
  store i32 %338, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %339 = load i32, ptr %23, align 4, !tbaa !5
  %340 = mul nsw i32 %339, 2
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %341
  %343 = getelementptr inbounds %struct.EDGE, ptr %342, i32 0, i32 1
  %344 = load i32, ptr %343, align 4, !tbaa !12
  store i32 %344, ptr %25, align 4, !tbaa !5
  %345 = load i32, ptr %24, align 4, !tbaa !5
  %346 = add nsw i32 %345, 1
  %347 = load i32, ptr @n, align 4, !tbaa !5
  %348 = srem i32 %346, %347
  %349 = load i32, ptr %25, align 4, !tbaa !5
  %350 = icmp eq i32 %348, %349
  br i1 %350, label %358, label %351

351:                                              ; preds = %332
  %352 = load i32, ptr %25, align 4, !tbaa !5
  %353 = add nsw i32 %352, 1
  %354 = load i32, ptr @n, align 4, !tbaa !5
  %355 = srem i32 %353, %354
  %356 = load i32, ptr %24, align 4, !tbaa !5
  %357 = icmp eq i32 %355, %356
  br i1 %357, label %358, label %370

358:                                              ; preds = %351, %332
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %359 = load i32, ptr %23, align 4, !tbaa !5
  %360 = mul nsw i32 %359, 2
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %361
  %363 = getelementptr inbounds %struct.EDGE, ptr %362, i32 0, i32 3
  %364 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %363, ptr noundef nonnull align 4 dereferenceable(4) %23)
  store { i64, i32 } %364, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %27, i64 12, i1 false)
  %365 = call { ptr, i8 } @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr noundef nonnull align 8 dereferenceable(12) %26)
  %366 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %367 = extractvalue { ptr, i8 } %365, 0
  store ptr %367, ptr %366, align 8
  %368 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %369 = extractvalue { ptr, i8 } %365, 1
  store i8 %369, ptr %368, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %370

370:                                              ; preds = %358, %351
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %371

371:                                              ; preds = %370
  %372 = load i32, ptr %23, align 4, !tbaa !5
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %23, align 4, !tbaa !5
  br label %327, !llvm.loop !30

374:                                              ; preds = %331
  br label %375

375:                                              ; preds = %519, %517, %374
  %376 = call noundef zeroext i1 @_ZNKSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) @st) #8
  %377 = xor i1 %376, true
  br i1 %377, label %378, label %520

378:                                              ; preds = %375
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %379 = call ptr @_ZNKSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @st) #8
  %380 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %30, i32 0, i32 0
  store ptr %379, ptr %380, align 8
  %381 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  %382 = getelementptr inbounds %"struct.std::pair.13", ptr %381, i32 0, i32 1
  %383 = load i32, ptr %382, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  store i32 %383, ptr %29, align 4, !tbaa !5
  %384 = call ptr @_ZNKSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @st) #8
  %385 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %31, i32 0, i32 0
  store ptr %384, ptr %385, align 8
  %386 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %31, i32 0, i32 0
  %387 = load ptr, ptr %386, align 8
  %388 = call ptr @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr %387)
  %389 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %32, i32 0, i32 0
  store ptr %388, ptr %389, align 8
  %390 = load i32, ptr %29, align 4, !tbaa !5
  %391 = mul nsw i32 %390, 2
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %392
  %394 = load i8, ptr %393, align 1, !tbaa !17, !range !25, !noundef !26
  %395 = trunc i8 %394 to i1
  br i1 %395, label %396, label %426

396:                                              ; preds = %378
  %397 = load i32, ptr %29, align 4, !tbaa !5
  %398 = mul nsw i32 %397, 2
  %399 = add nsw i32 %398, 1
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %400
  %402 = load i8, ptr %401, align 1, !tbaa !17, !range !25, !noundef !26
  %403 = trunc i8 %402 to i1
  br i1 %403, label %404, label %426

404:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %405 = load i32, ptr %29, align 4, !tbaa !5
  %406 = mul nsw i32 %405, 2
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %407
  %409 = getelementptr inbounds %struct.EDGE, ptr %408, i32 0, i32 0
  %410 = load i32, ptr %29, align 4, !tbaa !5
  %411 = mul nsw i32 %410, 2
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %412
  %414 = getelementptr inbounds %struct.EDGE, ptr %413, i32 0, i32 1
  %415 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %409, ptr noundef nonnull align 4 dereferenceable(4) %414)
  store i64 %415, ptr %34, align 4
  %416 = load i32, ptr %29, align 4, !tbaa !5
  %417 = mul nsw i32 %416, 2
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %418
  %420 = getelementptr inbounds %struct.EDGE, ptr %419, i32 0, i32 3
  %421 = call { i64, i64 } @_ZSt9make_pairISt4pairIiiERxES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %420)
  %422 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 0
  %423 = extractvalue { i64, i64 } %421, 0
  store i64 %423, ptr %422, align 8
  %424 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 1
  %425 = extractvalue { i64, i64 } %421, 1
  store i64 %425, ptr %424, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @tr, ptr noundef nonnull align 8 dereferenceable(16) %33)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  store i32 27, ptr %5, align 4
  br label %517, !llvm.loop !33

426:                                              ; preds = %396, %378
  %427 = load i32, ptr %29, align 4, !tbaa !5
  %428 = mul nsw i32 %427, 2
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %429
  %431 = load i8, ptr %430, align 1, !tbaa !17, !range !25, !noundef !26
  %432 = trunc i8 %431 to i1
  br i1 %432, label %436, label %433

433:                                              ; preds = %426
  %434 = load i32, ptr %29, align 4, !tbaa !5
  %435 = mul nsw i32 %434, 2
  store i32 %435, ptr %29, align 4, !tbaa !5
  br label %440

436:                                              ; preds = %426
  %437 = load i32, ptr %29, align 4, !tbaa !5
  %438 = mul nsw i32 %437, 2
  %439 = add nsw i32 %438, 1
  store i32 %439, ptr %29, align 4, !tbaa !5
  br label %440

440:                                              ; preds = %436, %433
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %441 = load i32, ptr %29, align 4, !tbaa !5
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds [800020 x i32], ptr @bel, i64 0, i64 %442
  %444 = load i32, ptr %443, align 4, !tbaa !5
  store i32 %444, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %445 = load i32, ptr %35, align 4, !tbaa !5
  %446 = sext i32 %445 to i64
  %447 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @plr, i64 noundef %446) #8
  store ptr %447, ptr %36, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %448 = load ptr, ptr %36, align 8, !tbaa !20
  %449 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %448) #8
  %450 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %449, ptr %450, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %451 = load ptr, ptr %36, align 8, !tbaa !20
  %452 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %451) #8
  %453 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %452, ptr %453, align 8
  br label %454

454:                                              ; preds = %514, %440
  %455 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br i1 %455, label %457, label %456

456:                                              ; preds = %454
  store i32 29, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %516

457:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %458 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  %459 = load i32, ptr %458, align 4, !tbaa !5
  store i32 %459, ptr %39, align 4, !tbaa !5
  %460 = load i32, ptr %39, align 4, !tbaa !5
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %461
  store i8 1, ptr %462, align 1, !tbaa !17
  %463 = load i32, ptr %39, align 4, !tbaa !5
  %464 = load i32, ptr %29, align 4, !tbaa !5
  %465 = icmp eq i32 %463, %464
  br i1 %465, label %466, label %467

466:                                              ; preds = %457
  store i32 30, ptr %5, align 4
  br label %511

467:                                              ; preds = %457
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %468 = load i32, ptr %39, align 4, !tbaa !5
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %469
  %471 = getelementptr inbounds %struct.EDGE, ptr %470, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %472 = load i32, ptr %39, align 4, !tbaa !5
  %473 = ashr i32 %472, 1
  store i32 %473, ptr %41, align 4, !tbaa !5
  %474 = call { i64, i32 } @_ZSt9make_pairIRxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %471, ptr noundef nonnull align 4 dereferenceable(4) %41)
  store { i64, i32 } %474, ptr %42, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %42, i64 12, i1 false)
  %475 = call noundef i64 @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr noundef nonnull align 8 dereferenceable(12) %40)
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  %476 = load i32, ptr %29, align 4, !tbaa !5
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %477
  %479 = getelementptr inbounds %struct.EDGE, ptr %478, i32 0, i32 3
  %480 = load i64, ptr %479, align 8, !tbaa !34
  %481 = load i32, ptr %39, align 4, !tbaa !5
  %482 = sext i32 %481 to i64
  %483 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %482
  %484 = getelementptr inbounds %struct.EDGE, ptr %483, i32 0, i32 3
  %485 = load i64, ptr %484, align 8, !tbaa !34
  %486 = add nsw i64 %485, %480
  store i64 %486, ptr %484, align 8, !tbaa !34
  %487 = load i32, ptr %29, align 4, !tbaa !5
  %488 = sext i32 %487 to i64
  %489 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %488
  %490 = getelementptr inbounds %struct.EDGE, ptr %489, i32 0, i32 3
  %491 = load i64, ptr %490, align 8, !tbaa !34
  %492 = load i32, ptr %39, align 4, !tbaa !5
  %493 = xor i32 %492, 1
  %494 = sext i32 %493 to i64
  %495 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %494
  %496 = getelementptr inbounds %struct.EDGE, ptr %495, i32 0, i32 3
  %497 = load i64, ptr %496, align 8, !tbaa !34
  %498 = add nsw i64 %497, %491
  store i64 %498, ptr %496, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #8
  %499 = load i32, ptr %39, align 4, !tbaa !5
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %500
  %502 = getelementptr inbounds %struct.EDGE, ptr %501, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %503 = load i32, ptr %39, align 4, !tbaa !5
  %504 = ashr i32 %503, 1
  store i32 %504, ptr %44, align 4, !tbaa !5
  %505 = call { i64, i32 } @_ZSt9make_pairIRxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %502, ptr noundef nonnull align 4 dereferenceable(4) %44)
  store { i64, i32 } %505, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %45, i64 12, i1 false)
  %506 = call { ptr, i8 } @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr noundef nonnull align 8 dereferenceable(12) %43)
  %507 = getelementptr inbounds { ptr, i8 }, ptr %46, i32 0, i32 0
  %508 = extractvalue { ptr, i8 } %506, 0
  store ptr %508, ptr %507, align 8
  %509 = getelementptr inbounds { ptr, i8 }, ptr %46, i32 0, i32 1
  %510 = extractvalue { ptr, i8 } %506, 1
  store i8 %510, ptr %509, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #8
  store i32 0, ptr %5, align 4
  br label %511

511:                                              ; preds = %467, %466
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  %512 = load i32, ptr %5, align 4
  switch i32 %512, label %631 [
    i32 0, label %513
    i32 30, label %514
  ]

513:                                              ; preds = %511
  br label %514

514:                                              ; preds = %513, %511
  %515 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br label %454

516:                                              ; preds = %456
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  store i32 0, ptr %5, align 4
  br label %517

517:                                              ; preds = %516, %404
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  %518 = load i32, ptr %5, align 4
  switch i32 %518, label %631 [
    i32 0, label %519
    i32 27, label %375
  ]

519:                                              ; preds = %517
  br label %375, !llvm.loop !33

520:                                              ; preds = %375
  %521 = call ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @tr) #8
  %522 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %47, i32 0, i32 0
  store ptr %521, ptr %522, align 8
  %523 = call ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @tr) #8
  %524 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %48, i32 0, i32 0
  store ptr %523, ptr %524, align 8
  %525 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %47, i32 0, i32 0
  %526 = load ptr, ptr %525, align 8
  %527 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %48, i32 0, i32 0
  %528 = load ptr, ptr %527, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiExESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %526, ptr %528)
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  store i32 0, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  store i32 0, ptr %50, align 4, !tbaa !5
  br label %529

529:                                              ; preds = %542, %520
  %530 = load i32, ptr %50, align 4, !tbaa !5
  %531 = load i32, ptr @n, align 4, !tbaa !5
  %532 = icmp slt i32 %530, %531
  br i1 %532, label %534, label %533

533:                                              ; preds = %529
  store i32 31, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %545

534:                                              ; preds = %529
  %535 = load i32, ptr %50, align 4, !tbaa !5
  %536 = load i32, ptr %50, align 4, !tbaa !5
  %537 = sext i32 %536 to i64
  %538 = getelementptr inbounds [200005 x i32], ptr @fa, i64 0, i64 %537
  store i32 %535, ptr %538, align 4, !tbaa !5
  %539 = load i32, ptr %50, align 4, !tbaa !5
  %540 = sext i32 %539 to i64
  %541 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %540
  store i32 1, ptr %541, align 4, !tbaa !5
  br label %542

542:                                              ; preds = %534
  %543 = load i32, ptr %50, align 4, !tbaa !5
  %544 = add nsw i32 %543, 1
  store i32 %544, ptr %50, align 4, !tbaa !5
  br label %529, !llvm.loop !35

545:                                              ; preds = %533
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  store i32 0, ptr %51, align 4, !tbaa !5
  br label %546

546:                                              ; preds = %619, %545
  %547 = load i32, ptr %51, align 4, !tbaa !5
  %548 = load i32, ptr @n, align 4, !tbaa !5
  %549 = sub nsw i32 %548, 1
  %550 = icmp slt i32 %547, %549
  br i1 %550, label %552, label %551

551:                                              ; preds = %546
  store i32 34, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %622

552:                                              ; preds = %546
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %553 = load i32, ptr %51, align 4, !tbaa !5
  %554 = sext i32 %553 to i64
  %555 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @tr, i64 noundef %554) #8
  %556 = getelementptr inbounds %"struct.std::pair.16", ptr %555, i32 0, i32 0
  %557 = getelementptr inbounds %"struct.std::pair.18", ptr %556, i32 0, i32 0
  %558 = load i32, ptr %557, align 8, !tbaa !36
  %559 = call noundef i32 @_Z4Findi(i32 noundef %558)
  store i32 %559, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %560 = load i32, ptr %51, align 4, !tbaa !5
  %561 = sext i32 %560 to i64
  %562 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @tr, i64 noundef %561) #8
  %563 = getelementptr inbounds %"struct.std::pair.16", ptr %562, i32 0, i32 0
  %564 = getelementptr inbounds %"struct.std::pair.18", ptr %563, i32 0, i32 1
  %565 = load i32, ptr %564, align 4, !tbaa !39
  %566 = call noundef i32 @_Z4Findi(i32 noundef %565)
  store i32 %566, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %567 = load i32, ptr %51, align 4, !tbaa !5
  %568 = sext i32 %567 to i64
  %569 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @tr, i64 noundef %568) #8
  %570 = getelementptr inbounds %"struct.std::pair.16", ptr %569, i32 0, i32 1
  %571 = load i64, ptr %570, align 8, !tbaa !40
  %572 = srem i64 %571, 998244353
  %573 = trunc i64 %572 to i32
  store i32 %573, ptr %54, align 4, !tbaa !5
  %574 = load i32, ptr %49, align 4, !tbaa !5
  %575 = sext i32 %574 to i64
  %576 = load i32, ptr %52, align 4, !tbaa !5
  %577 = sext i32 %576 to i64
  %578 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %577
  %579 = load i32, ptr %578, align 4, !tbaa !5
  %580 = sext i32 %579 to i64
  %581 = mul nsw i64 1, %580
  %582 = load i32, ptr %53, align 4, !tbaa !5
  %583 = sext i32 %582 to i64
  %584 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %583
  %585 = load i32, ptr %584, align 4, !tbaa !5
  %586 = sext i32 %585 to i64
  %587 = mul nsw i64 %581, %586
  %588 = srem i64 %587, 998244353
  %589 = load i32, ptr %54, align 4, !tbaa !5
  %590 = sext i32 %589 to i64
  %591 = mul nsw i64 %588, %590
  %592 = add nsw i64 %575, %591
  %593 = srem i64 %592, 998244353
  %594 = trunc i64 %593 to i32
  store i32 %594, ptr %49, align 4, !tbaa !5
  %595 = load i32, ptr %52, align 4, !tbaa !5
  %596 = sext i32 %595 to i64
  %597 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %596
  %598 = load i32, ptr %597, align 4, !tbaa !5
  %599 = load i32, ptr %53, align 4, !tbaa !5
  %600 = sext i32 %599 to i64
  %601 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %600
  %602 = load i32, ptr %601, align 4, !tbaa !5
  %603 = icmp slt i32 %598, %602
  br i1 %603, label %604, label %605

604:                                              ; preds = %552
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %53) #8
  br label %605

605:                                              ; preds = %604, %552
  %606 = load i32, ptr %52, align 4, !tbaa !5
  %607 = load i32, ptr %53, align 4, !tbaa !5
  %608 = sext i32 %607 to i64
  %609 = getelementptr inbounds [200005 x i32], ptr @fa, i64 0, i64 %608
  store i32 %606, ptr %609, align 4, !tbaa !5
  %610 = load i32, ptr %53, align 4, !tbaa !5
  %611 = sext i32 %610 to i64
  %612 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %611
  %613 = load i32, ptr %612, align 4, !tbaa !5
  %614 = load i32, ptr %52, align 4, !tbaa !5
  %615 = sext i32 %614 to i64
  %616 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %615
  %617 = load i32, ptr %616, align 4, !tbaa !5
  %618 = add nsw i32 %617, %613
  store i32 %618, ptr %616, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %619

619:                                              ; preds = %605
  %620 = load i32, ptr %51, align 4, !tbaa !5
  %621 = add nsw i32 %620, 1
  store i32 %621, ptr %51, align 4, !tbaa !5
  br label %546, !llvm.loop !41

622:                                              ; preds = %551
  %623 = load i32, ptr %49, align 4, !tbaa !5
  %624 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %623)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  %625 = load i32, ptr %1, align 4
  ret i32 %625

626:                                              ; preds = %261
  %627 = load ptr, ptr %14, align 8
  %628 = load i32, ptr %15, align 4
  %629 = insertvalue { ptr, i32 } poison, ptr %627, 0
  %630 = insertvalue { ptr, i32 } %629, i32 %628, 1
  resume { ptr, i32 } %630

631:                                              ; preds = %517, %511
  unreachable
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr, ptr, ptr) #7

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; 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 { ptr, i8 } @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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

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

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

; 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(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

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

declare i32 @printf(ptr noundef, ...) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS4EDGE", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16}
!11 = !{!"long long", !7, i64 0}
!12 = !{!10, !6, i64 4}
!13 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 16, i64 8, !14}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = distinct !{!19, !16}
!20 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!10, !6, i64 8}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}
!31 = !{!32, !6, i64 8}
!32 = !{!"_ZTSSt4pairIxiE", !11, i64 0, !6, i64 8}
!33 = distinct !{!33, !16}
!34 = !{!10, !11, i64 16}
!35 = distinct !{!35, !16}
!36 = !{!37, !6, i64 0}
!37 = !{!"_ZTSSt4pairIS_IiiExE", !38, i64 0, !11, i64 8}
!38 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!39 = !{!37, !6, i64 4}
!40 = !{!37, !11, i64 8}
!41 = distinct !{!41, !16}


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

%struct.EDGE = type { i32, i32, i32, i64 }
%"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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, int>, std::pair<long long, int>, std::_Identity<std::pair<long long, int>>, std::less<std::pair<long long, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, int>, std::pair<long long, int>, std::_Identity<std::pair<long long, int>>, std::less<std::pair<long long, 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.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, long long>, std::allocator<std::pair<std::pair<int, int>, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair.13" = type <{ i64, i32, [4 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.16" = type { %"struct.std::pair.18", i64 }
%"struct.std::pair.18" = type { i32, i32 }

@E = external dso_local global [800020 x %struct.EDGE], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@bel = external dso_local local_unnamed_addr global [800020 x i32], align 16
@vis = external dso_local local_unnamed_addr global [800020 x i8], align 16
@G = external dso_local global [200005 x %"class.std::vector"], align 16
@plr = external dso_local global %"class.std::vector.0", align 8
@st = external dso_local global %"class.std::set", align 8
@tr = external dso_local global %"class.std::vector.8", align 8
@fa = external dso_local local_unnamed_addr global [200005 x i32], align 16
@sz = external dso_local local_unnamed_addr global [200005 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 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 uwtable
declare dso_local noundef i32 @_Z4Findi(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair.13", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::pair.16", align 8
  %11 = alloca %"struct.std::pair.18", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"struct.std::pair.13", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair.13", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %21 = load i32, ptr @m, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  br label %._crit_edge.._crit_edge113_crit_edge

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !5
  %23 = icmp sgt i32 %35, 0
  br i1 %23, label %.lr.ph112, label %._crit_edge.._crit_edge113_crit_edge

._crit_edge.._crit_edge113_crit_edge:             ; preds = %._crit_edge.thread, %._crit_edge
  %24 = phi i32 [ %21, %._crit_edge.thread ], [ %35, %._crit_edge ]
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge113

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %25 = shl nuw nsw i64 %indvars.iv, 1
  %26 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %25
  %27 = getelementptr inbounds i8, ptr %26, i64 4
  %28 = getelementptr inbounds i8, ptr %26, i64 16
  %29 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28)
  %30 = load <2 x i32>, ptr %26, align 16, !tbaa !5
  %31 = add nsw <2 x i32> %30, <i32 -1, i32 -1>
  store <2 x i32> %31, ptr %26, align 16, !tbaa !5
  %32 = or disjoint i64 %25, 1
  %33 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %32
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 16 dereferenceable(24) %26, i64 24, i1 false), !tbaa.struct !9
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %34) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load i32, ptr @m, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge113:                                   ; preds = %.lr.ph112, %._crit_edge.._crit_edge113_crit_edge
  %38 = phi i32 [ %24, %._crit_edge.._crit_edge113_crit_edge ], [ %58, %.lr.ph112 ]
  %39 = phi i32 [ %.pre, %._crit_edge.._crit_edge113_crit_edge ], [ %51, %.lr.ph112 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph120, label %._crit_edge121

.lr.ph112:                                        ; preds = %._crit_edge, %.lr.ph112
  %storemerge110 = phi i32 [ %57, %.lr.ph112 ], [ 0, %._crit_edge ]
  %41 = sext i32 %storemerge110 to i64
  %42 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %41
  %43 = load i32, ptr %42, align 8, !tbaa !14
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %44
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %47
  %49 = load i32, ptr %48, align 8, !tbaa !14
  %50 = add nsw i32 %49, 1
  %51 = load i32, ptr @n, align 4, !tbaa !5
  %52 = srem i32 %50, %51
  %53 = getelementptr inbounds i8, ptr %48, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !16
  %55 = icmp eq i32 %52, %54
  %spec.select = zext i1 %55 to i8
  %56 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %47
  store i8 %spec.select, ptr %56, align 1
  %57 = add nsw i32 %46, 1
  store i32 %57, ptr %1, align 4, !tbaa !5
  %58 = load i32, ptr @m, align 4, !tbaa !5
  %59 = shl nsw i32 %58, 1
  %60 = icmp slt i32 %57, %59
  br i1 %60, label %.lr.ph112, label %._crit_edge113, !llvm.loop !17

._crit_edge121.loopexit:                          ; preds = %._crit_edge117
  %.pre173 = load i32, ptr @m, align 4, !tbaa !5
  br label %._crit_edge121

._crit_edge121:                                   ; preds = %._crit_edge121.loopexit, %._crit_edge113
  %61 = phi i32 [ %.pre173, %._crit_edge121.loopexit ], [ %38, %._crit_edge113 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %62 = shl nsw i32 %61, 1
  %63 = icmp sgt i32 %61, 0
  br i1 %63, label %.lr.ph130, label %.preheader106

.lr.ph120:                                        ; preds = %._crit_edge113, %._crit_edge117
  %storemerge104118 = phi i32 [ %78, %._crit_edge117 ], [ 0, %._crit_edge113 ]
  %64 = sext i32 %storemerge104118 to i64
  %65 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %64
  %66 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #8
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %68
  %70 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  call void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr %66, ptr %70, ptr nonnull %2)
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %72
  %74 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #8
  %75 = trunc i64 %74 to i32
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph116, label %._crit_edge117

._crit_edge117:                                   ; preds = %.lr.ph116, %.lr.ph120
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %2, align 4, !tbaa !5
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %.lr.ph120, label %._crit_edge121.loopexit, !llvm.loop !18

.lr.ph116:                                        ; preds = %.lr.ph120, %.lr.ph116
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %.lr.ph116 ], [ 0, %.lr.ph120 ]
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %82
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %indvars.iv155) #8
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = xor i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %87, i32 2
  %89 = trunc nuw nsw i64 %indvars.iv155 to i32
  store i32 %89, ptr %88, align 8, !tbaa !19
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %91
  %93 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #8
  %sext = shl i64 %93, 32
  %94 = ashr exact i64 %sext, 32
  %95 = icmp slt i64 %indvars.iv.next156, %94
  br i1 %95, label %.lr.ph116, label %._crit_edge117, !llvm.loop !20

.preheader106:                                    ; preds = %145, %._crit_edge121
  %96 = phi i32 [ %61, %._crit_edge121 ], [ %146, %145 ]
  %.lcssa = phi i32 [ %62, %._crit_edge121 ], [ %147, %145 ]
  %97 = icmp sgt i32 %.lcssa, 0
  br i1 %97, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %.preheader106
  %98 = load i32, ptr @n, align 4, !tbaa !5
  %wide.trip.count = zext nneg i32 %.lcssa to i64
  br label %151

.lr.ph130:                                        ; preds = %._crit_edge121, %145
  %99 = phi i32 [ %146, %145 ], [ %61, %._crit_edge121 ]
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %145 ], [ 0, %._crit_edge121 ]
  %100 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %indvars.iv158
  %101 = load i8, ptr %100, align 1, !tbaa !21, !range !23, !noundef !24
  %102 = trunc nuw i8 %101 to i1
  br i1 %102, label %145, label %103

103:                                              ; preds = %.lr.ph130
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %104 = trunc nuw nsw i64 %indvars.iv158 to i32
  store i32 %104, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !21, !range !23, !noundef !24
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %._crit_edge124, label %.lr.ph123

.lr.ph123:                                        ; preds = %103, %110
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %110 unwind label %.loopexit

110:                                              ; preds = %.lr.ph123
  %111 = load i32, ptr %3, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %112
  store i8 1, ptr %113, align 1, !tbaa !21
  %114 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %112
  %115 = getelementptr inbounds i8, ptr %114, i64 4
  %116 = load i32, ptr %115, align 4, !tbaa !16
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [200005 x %"class.std::vector"], ptr @G, i64 0, i64 %117
  %119 = getelementptr inbounds i8, ptr %114, i64 8
  %120 = load i32, ptr %119, align 8, !tbaa !19
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #8
  %124 = urem i64 %122, %123
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %124) #8
  %126 = load i32, ptr %125, align 4, !tbaa !5
  store i32 %126, ptr %3, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %127
  %129 = load i8, ptr %128, align 1, !tbaa !21, !range !23, !noundef !24
  %130 = trunc nuw i8 %129 to i1
  br i1 %130, label %._crit_edge124, label %.lr.ph123, !llvm.loop !25

.loopexit:                                        ; preds = %.lr.ph123
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %131

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

131:                                              ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  resume { ptr, i32 } %lpad.phi

._crit_edge124:                                   ; preds = %110, %103
  invoke void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @plr, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %132 unwind label %.loopexit.split-lp

132:                                              ; preds = %._crit_edge124
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %133 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  store ptr %133, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %134 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  store ptr %134, ptr %6, align 8
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %135, label %.lr.ph126, label %._crit_edge127

._crit_edge127:                                   ; preds = %.lr.ph126, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %.pre174 = load i32, ptr @m, align 4, !tbaa !5
  br label %145

.lr.ph126:                                        ; preds = %132, %.lr.ph126
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @plr) #8
  %139 = trunc i64 %138 to i32
  %140 = add i32 %139, -1
  %141 = sext i32 %137 to i64
  %142 = getelementptr inbounds [800020 x i32], ptr @bel, i64 0, i64 %141
  store i32 %140, ptr %142, align 4, !tbaa !5
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %144 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %144, label %.lr.ph126, label %._crit_edge127

145:                                              ; preds = %.lr.ph130, %._crit_edge127
  %146 = phi i32 [ %99, %.lr.ph130 ], [ %.pre174, %._crit_edge127 ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %147 = shl nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  %149 = icmp slt i64 %indvars.iv.next159, %148
  br i1 %149, label %.lr.ph130, label %.preheader106, !llvm.loop !26

._crit_edge133:                                   ; preds = %151, %.preheader106
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  %150 = icmp sgt i32 %96, 0
  br i1 %150, label %.lr.ph136, label %._crit_edge137

.lr.ph136:                                        ; preds = %._crit_edge133
  %.sroa.249.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.pre176 = load i32, ptr @n, align 4, !tbaa !5
  br label %170

151:                                              ; preds = %151, %.lr.ph132
  %indvars.iv161 = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next162.1, %151 ]
  %niter = phi i64 [ 0, %.lr.ph132 ], [ %niter.next.1, %151 ]
  %152 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %indvars.iv161
  %153 = load i32, ptr %152, align 16, !tbaa !14
  %154 = add nsw i32 %153, 1
  %155 = srem i32 %154, %98
  %156 = getelementptr inbounds i8, ptr %152, i64 4
  %157 = load i32, ptr %156, align 4, !tbaa !16
  %158 = icmp eq i32 %155, %157
  %spec.select194 = zext i1 %158 to i8
  %159 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %indvars.iv161
  store i8 %spec.select194, ptr %159, align 2
  %indvars.iv.next162 = or disjoint i64 %indvars.iv161, 1
  %160 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %indvars.iv.next162
  %161 = load i32, ptr %160, align 8, !tbaa !14
  %162 = add nsw i32 %161, 1
  %163 = srem i32 %162, %98
  %164 = getelementptr inbounds i8, ptr %160, i64 4
  %165 = load i32, ptr %164, align 4, !tbaa !16
  %166 = icmp eq i32 %163, %165
  %spec.select194.1 = zext i1 %166 to i8
  %167 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %indvars.iv.next162
  store i8 %spec.select194.1, ptr %167, align 1
  %indvars.iv.next162.1 = add nuw nsw i64 %indvars.iv161, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %wide.trip.count
  br i1 %niter.ncmp.1, label %._crit_edge133, label %151, !llvm.loop !27

._crit_edge137:                                   ; preds = %190, %._crit_edge133
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %168 = call noundef zeroext i1 @_ZNKSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) @st) #8
  br i1 %168, label %._crit_edge143, label %.lr.ph142

.lr.ph142:                                        ; preds = %._crit_edge137
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %169 = getelementptr inbounds i8, ptr %10, i64 8
  br label %196

170:                                              ; preds = %.lr.ph136, %190
  %171 = phi i32 [ %96, %.lr.ph136 ], [ %191, %190 ]
  %172 = phi i32 [ %.pre176, %.lr.ph136 ], [ %193, %190 ]
  %storemerge105134 = phi i32 [ 0, %.lr.ph136 ], [ %194, %190 ]
  %173 = shl nsw i32 %storemerge105134, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %174
  %176 = load i32, ptr %175, align 16, !tbaa !14
  %177 = getelementptr inbounds i8, ptr %175, i64 4
  %178 = load i32, ptr %177, align 4, !tbaa !16
  %179 = add nsw i32 %176, 1
  %180 = srem i32 %179, %172
  %181 = icmp eq i32 %180, %178
  br i1 %181, label %186, label %182

182:                                              ; preds = %170
  %183 = add nsw i32 %178, 1
  %184 = srem i32 %183, %172
  %185 = icmp eq i32 %184, %176
  br i1 %185, label %186, label %190

186:                                              ; preds = %182, %170
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %187 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %174, i32 3
  %188 = call { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %.fca.0.extract46 = extractvalue { i64, i32 } %188, 0
  %.fca.1.extract47 = extractvalue { i64, i32 } %188, 1
  store i64 %.fca.0.extract46, ptr %8, align 8
  store i32 %.fca.1.extract47, ptr %.sroa.249.0..sroa_idx, align 8
  %189 = call { ptr, i8 } @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr noundef nonnull align 8 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  %.pre175 = load i32, ptr @n, align 4, !tbaa !5
  %.pre177 = load i32, ptr %7, align 4, !tbaa !5
  %.pre178 = load i32, ptr @m, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %186, %182
  %191 = phi i32 [ %.pre178, %186 ], [ %171, %182 ]
  %192 = phi i32 [ %.pre177, %186 ], [ %storemerge105134, %182 ]
  %193 = phi i32 [ %.pre175, %186 ], [ %172, %182 ]
  %194 = add nsw i32 %192, 1
  store i32 %194, ptr %7, align 4, !tbaa !5
  %195 = icmp slt i32 %194, %191
  br i1 %195, label %170, label %._crit_edge137, !llvm.loop !28

196:                                              ; preds = %.lr.ph142, %258
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %197 = call ptr @_ZNKSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @st) #8
  store ptr %197, ptr %9, align 8
  %198 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIxiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %199 = getelementptr inbounds i8, ptr %198, i64 8
  %200 = load i32, ptr %199, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %201 = call ptr @_ZNKSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @st) #8
  %202 = call ptr @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr %201)
  %203 = shl nsw i32 %200, 1
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %204
  %206 = load i8, ptr %205, align 2, !tbaa !21, !range !23, !noundef !24
  %207 = trunc nuw i8 %206 to i1
  br i1 %207, label %208, label %222

208:                                              ; preds = %196
  %209 = or disjoint i32 %203, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %210
  %212 = load i8, ptr %211, align 1, !tbaa !21, !range !23, !noundef !24
  %213 = trunc nuw i8 %212 to i1
  br i1 %213, label %214, label %222

214:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %215 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %204
  %216 = getelementptr inbounds i8, ptr %215, i64 4
  %217 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %215, ptr noundef nonnull align 4 dereferenceable(4) %216)
  store i64 %217, ptr %11, align 8
  %218 = getelementptr inbounds i8, ptr %215, i64 16
  %219 = call { i64, i64 } @_ZSt9make_pairISt4pairIiiERxES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %218)
  %220 = extractvalue { i64, i64 } %219, 0
  store i64 %220, ptr %10, align 8
  %221 = extractvalue { i64, i64 } %219, 1
  store i64 %221, ptr %169, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) @tr, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %258, !llvm.loop !31

222:                                              ; preds = %208, %196
  %223 = zext nneg i8 %206 to i32
  %.098 = or disjoint i32 %203, %223
  %224 = sext i32 %.098 to i64
  %225 = getelementptr inbounds [800020 x i32], ptr @bel, i64 0, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @plr, i64 noundef %227) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %229 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %228) #8
  store ptr %229, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %230 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %228) #8
  store ptr %230, ptr %13, align 8
  %231 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %231, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %222
  %232 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %224, i32 3
  br label %233

._crit_edge140:                                   ; preds = %255, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %258

233:                                              ; preds = %.lr.ph139, %255
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [800020 x i8], ptr @vis, i64 0, i64 %236
  store i8 1, ptr %237, align 1, !tbaa !21
  %238 = icmp eq i32 %235, %.098
  br i1 %238, label %255, label %239

239:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %240 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %236, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %241 = ashr i32 %235, 1
  store i32 %241, ptr %15, align 4, !tbaa !5
  %242 = call { i64, i32 } @_ZSt9make_pairIRxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %.fca.0.extract16 = extractvalue { i64, i32 } %242, 0
  %.fca.1.extract17 = extractvalue { i64, i32 } %242, 1
  store i64 %.fca.0.extract16, ptr %14, align 8
  store i32 %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  %243 = call noundef i64 @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5eraseERKS1_(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr noundef nonnull align 8 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  %244 = load i64, ptr %232, align 8, !tbaa !32
  %245 = load i64, ptr %240, align 8, !tbaa !32
  %246 = add nsw i64 %245, %244
  store i64 %246, ptr %240, align 8, !tbaa !32
  %247 = load i64, ptr %232, align 8, !tbaa !32
  %248 = xor i32 %235, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [800020 x %struct.EDGE], ptr @E, i64 0, i64 %249, i32 3
  %251 = load i64, ptr %250, align 8, !tbaa !32
  %252 = add nsw i64 %251, %247
  store i64 %252, ptr %250, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  store i32 %241, ptr %17, align 4, !tbaa !5
  %253 = call { i64, i32 } @_ZSt9make_pairIRxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %.fca.0.extract = extractvalue { i64, i32 } %253, 0
  %.fca.1.extract = extractvalue { i64, i32 } %253, 1
  store i64 %.fca.0.extract, ptr %16, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %254 = call { ptr, i8 } @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) @st, ptr noundef nonnull align 8 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  br label %255

255:                                              ; preds = %233, %239
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %257 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %257, label %233, label %._crit_edge140

258:                                              ; preds = %._crit_edge140, %214
  %259 = call noundef zeroext i1 @_ZNKSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) @st) #8
  br i1 %259, label %._crit_edge143, label %196

._crit_edge143:                                   ; preds = %258, %._crit_edge137
  %260 = call ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @tr) #8
  %261 = call ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @tr) #8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IiiExESt6vectorIS4_SaIS4_EEEEEvT_SA_(ptr %260, ptr %261)
  %262 = load i32, ptr @n, align 4, !tbaa !5
  %263 = icmp sgt i32 %262, 0
  br i1 %263, label %.lr.ph146.preheader, label %._crit_edge150

.lr.ph146.preheader:                              ; preds = %._crit_edge143
  %wide.trip.count167 = zext nneg i32 %262 to i64
  %min.iters.check = icmp ult i32 %262, 8
  br i1 %min.iters.check, label %.lr.ph146.preheader203, label %vector.ph

.lr.ph146.preheader203:                           ; preds = %middle.block, %.lr.ph146.preheader
  %indvars.iv164.ph = phi i64 [ 0, %.lr.ph146.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph146

vector.ph:                                        ; preds = %.lr.ph146.preheader
  %n.vec = and i64 %wide.trip.count167, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %264 = getelementptr inbounds [200005 x i32], ptr @fa, i64 0, i64 %index
  %265 = getelementptr inbounds i8, ptr %264, i64 16
  store <4 x i32> %vec.ind, ptr %264, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %265, align 16, !tbaa !5
  %266 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %index
  %267 = getelementptr inbounds i8, ptr %266, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %266, align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %267, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %268 = icmp eq i64 %index.next, %n.vec
  br i1 %268, label %middle.block, label %vector.body, !llvm.loop !33

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count167
  br i1 %cmp.n, label %.preheader, label %.lr.ph146.preheader203

.preheader:                                       ; preds = %.lr.ph146, %middle.block
  %.not = icmp eq i32 %262, 1
  br i1 %.not, label %._crit_edge150, label %.lr.ph149

.lr.ph146:                                        ; preds = %.lr.ph146.preheader203, %.lr.ph146
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %.lr.ph146 ], [ %indvars.iv164.ph, %.lr.ph146.preheader203 ]
  %269 = getelementptr inbounds [200005 x i32], ptr @fa, i64 0, i64 %indvars.iv164
  %270 = trunc nuw nsw i64 %indvars.iv164 to i32
  store i32 %270, ptr %269, align 4, !tbaa !5
  %271 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %indvars.iv164
  store i32 1, ptr %271, align 4, !tbaa !5
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %wide.trip.count167
  br i1 %exitcond168.not, label %.preheader, label %.lr.ph146, !llvm.loop !36

._crit_edge150.loopexit:                          ; preds = %302
  %272 = trunc nsw i64 %299 to i32
  br label %._crit_edge150

._crit_edge150:                                   ; preds = %._crit_edge150.loopexit, %._crit_edge143, %.preheader
  %.093.lcssa = phi i32 [ 0, %.preheader ], [ 0, %._crit_edge143 ], [ %272, %._crit_edge150.loopexit ]
  %273 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %.093.lcssa)
  ret i32 0

.lr.ph149:                                        ; preds = %.preheader, %302
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %302 ], [ 0, %.preheader ]
  %.093147 = phi i64 [ %299, %302 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  %274 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @tr, i64 noundef %indvars.iv169) #8
  %275 = load i32, ptr %274, align 8, !tbaa !37
  %276 = call noundef i32 @_Z4Findi(i32 noundef %275)
  store i32 %276, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  %277 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @tr, i64 noundef %indvars.iv169) #8
  %278 = getelementptr inbounds i8, ptr %277, i64 4
  %279 = load i32, ptr %278, align 4, !tbaa !40
  %280 = call noundef i32 @_Z4Findi(i32 noundef %279)
  store i32 %280, ptr %19, align 4, !tbaa !5
  %281 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIS0_IiiExESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @tr, i64 noundef %indvars.iv169) #8
  %282 = getelementptr inbounds i8, ptr %281, i64 8
  %283 = load i64, ptr %282, align 8, !tbaa !41
  %284 = srem i64 %283, 998244353
  %285 = load i32, ptr %18, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = load i32, ptr %19, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = mul nsw i64 %294, %289
  %296 = srem i64 %295, 998244353
  %297 = mul nsw i64 %296, %284
  %298 = add nsw i64 %297, %.093147
  %299 = srem i64 %298, 998244353
  %300 = icmp slt i32 %288, %293
  br i1 %300, label %301, label %302

301:                                              ; preds = %.lr.ph149
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19) #8
  %.pre179 = load i32, ptr %18, align 4, !tbaa !5
  %.pre180 = load i32, ptr %19, align 4, !tbaa !5
  %.phi.trans.insert = sext i32 %.pre180 to i64
  %.phi.trans.insert181 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %.phi.trans.insert
  %.pre182 = load i32, ptr %.phi.trans.insert181, align 4, !tbaa !5
  %.phi.trans.insert183 = sext i32 %.pre179 to i64
  %.phi.trans.insert184 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %.phi.trans.insert183
  %.pre185 = load i32, ptr %.phi.trans.insert184, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %301, %.lr.ph149
  %.pre-phi186 = phi i64 [ %.phi.trans.insert183, %301 ], [ %286, %.lr.ph149 ]
  %.pre-phi = phi i64 [ %.phi.trans.insert, %301 ], [ %291, %.lr.ph149 ]
  %303 = phi i32 [ %.pre185, %301 ], [ %288, %.lr.ph149 ]
  %304 = phi i32 [ %.pre182, %301 ], [ %293, %.lr.ph149 ]
  %305 = phi i32 [ %.pre179, %301 ], [ %285, %.lr.ph149 ]
  %306 = getelementptr inbounds [200005 x i32], ptr @fa, i64 0, i64 %.pre-phi
  store i32 %305, ptr %306, align 4, !tbaa !5
  %307 = getelementptr inbounds [200005 x i32], ptr @sz, i64 0, i64 %.pre-phi186
  %308 = add nsw i32 %303, %304
  store i32 %308, ptr %307, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %309 = load i32, ptr @n, align 4, !tbaa !5
  %310 = add nsw i32 %309, -1
  %311 = sext i32 %310 to i64
  %312 = icmp slt i64 %indvars.iv.next170, %311
  br i1 %312, label %.lr.ph149, label %._crit_edge150.loopexit, !llvm.loop !42
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ4mainE3$_0EvT_S8_T0_"(ptr, ptr, ptr) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIxiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRxRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

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

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

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

; 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(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZSt9make_pairIRxiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 16, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTS4EDGE", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16}
!16 = !{!15, !6, i64 4}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{!15, !6, i64 8}
!20 = distinct !{!20, !13}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !13}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}
!29 = !{!30, !6, i64 8}
!30 = !{!"_ZTSSt4pairIxiE", !11, i64 0, !6, i64 8}
!31 = distinct !{!31, !13}
!32 = !{!15, !11, i64 16}
!33 = distinct !{!33, !13, !34, !35}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = distinct !{!36, !13, !35, !34}
!37 = !{!38, !6, i64 0}
!38 = !{!"_ZTSSt4pairIS_IiiExE", !39, i64 0, !11, i64 8}
!39 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!40 = !{!38, !6, i64 4}
!41 = !{!38, !11, i64 8}
!42 = distinct !{!42, !13}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass