; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/286 Division 1/Problem D (tester)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }

@par_uf = external dso_local global [100010 x i32], align 16
@rank_uf = external dso_local global [100010 x i32], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@qa = external dso_local global [100010 x i32], align 16
@qb = external dso_local global [100010 x i32], align 16
@edge = external dso_local global [100010 x %"class.std::vector"], align 16
@comp = external dso_local global %"class.std::vector.0", align 8
@appear = external dso_local global [100010 x %"class.std::vector.5"], align 16
@big = external dso_local global %"class.std::vector.5", align 8
@bigID = external dso_local global [100010 x i32], align 16
@table = external dso_local global [460 x [100010 x i32]], align 16
@used = external dso_local global [100010 x i32], align 16
@temp = external dso_local global [100010 x %"class.std::vector.5"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %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 i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %33 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %35
  %37 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %36, ptr noundef null)
  %38 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %41

41:                                               ; preds = %60, %0
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = load i32, ptr @m, align 4, !tbaa !8
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %63

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %50 = load i32, ptr %3, align 4, !tbaa !8
  %51 = add nsw i32 %50, -1
  store i32 %51, ptr %3, align 4, !tbaa !8
  %52 = load i32, ptr %4, align 4, !tbaa !8
  %53 = add nsw i32 %52, -1
  store i32 %53, ptr %4, align 4, !tbaa !8
  %54 = load i32, ptr %5, align 4, !tbaa !8
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %5, align 4, !tbaa !8
  %56 = load i32, ptr %5, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %59 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %59, ptr %6, align 4
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %60

60:                                               ; preds = %46
  %61 = load i32, ptr %2, align 4, !tbaa !8
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %2, align 4, !tbaa !8
  br label %41, !llvm.loop !11

63:                                               ; preds = %45
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @q)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !8
  br label %65

65:                                               ; preds = %89, %63
  %66 = load i32, ptr %7, align 4, !tbaa !8
  %67 = load i32, ptr @q, align 4, !tbaa !8
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %92

70:                                               ; preds = %65
  %71 = load i32, ptr %7, align 4, !tbaa !8
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100010 x i32], ptr @qa, i64 0, i64 %72
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %75 = load i32, ptr %7, align 4, !tbaa !8
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100010 x i32], ptr @qb, i64 0, i64 %76
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 4 dereferenceable(4) %77)
  %79 = load i32, ptr %7, align 4, !tbaa !8
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100010 x i32], ptr @qa, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !8
  %83 = add nsw i32 %82, -1
  store i32 %83, ptr %81, align 4, !tbaa !8
  %84 = load i32, ptr %7, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100010 x i32], ptr @qb, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !8
  %88 = add nsw i32 %87, -1
  store i32 %88, ptr %86, align 4, !tbaa !8
  br label %89

89:                                               ; preds = %70
  %90 = load i32, ptr %7, align 4, !tbaa !8
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !8
  br label %65, !llvm.loop !13

92:                                               ; preds = %69
  %93 = load i32, ptr @n, align 4, !tbaa !8
  call void @_Z4initi(i32 noundef %93)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !8
  br label %94

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

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

98:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %99

99:                                               ; preds = %127, %98
  %100 = load i32, ptr %10, align 4, !tbaa !8
  %101 = load i32, ptr %8, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %102
  %104 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #7
  %105 = trunc i64 %104 to i32
  %106 = icmp slt i32 %100, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %99
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %130

108:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %109 = load i32, ptr %8, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %110
  %112 = load i32, ptr %10, align 4, !tbaa !8
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #7
  %115 = getelementptr inbounds %"struct.std::pair", ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !14
  store i32 %116, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %117 = load i32, ptr %8, align 4, !tbaa !8
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %118
  %120 = load i32, ptr %10, align 4, !tbaa !8
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #7
  %123 = getelementptr inbounds %"struct.std::pair", ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 4, !tbaa !16
  store i32 %124, ptr %12, align 4, !tbaa !8
  %125 = load i32, ptr %11, align 4, !tbaa !8
  %126 = load i32, ptr %12, align 4, !tbaa !8
  call void @_Z5uniteii(i32 noundef %125, i32 noundef %126)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %127

127:                                              ; preds = %108
  %128 = load i32, ptr %10, align 4, !tbaa !8
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %10, align 4, !tbaa !8
  br label %99, !llvm.loop !17

130:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %131

131:                                              ; preds = %185, %130
  %132 = load i32, ptr %13, align 4, !tbaa !8
  %133 = load i32, ptr %8, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %134
  %136 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #7
  %137 = trunc i64 %136 to i32
  %138 = icmp slt i32 %132, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %131
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %188

140:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %141 = load i32, ptr %8, align 4, !tbaa !8
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %142
  %144 = load i32, ptr %13, align 4, !tbaa !8
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %145) #7
  %147 = getelementptr inbounds %"struct.std::pair", ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 4, !tbaa !14
  store i32 %148, ptr %14, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %149 = load i32, ptr %8, align 4, !tbaa !8
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %150
  %152 = load i32, ptr %13, align 4, !tbaa !8
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %153) #7
  %155 = getelementptr inbounds %"struct.std::pair", ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !16
  store i32 %156, ptr %15, align 4, !tbaa !8
  %157 = load i32, ptr %14, align 4, !tbaa !8
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !8
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %170, label %162

162:                                              ; preds = %140
  %163 = load i32, ptr %14, align 4, !tbaa !8
  %164 = call noundef i32 @_Z4findi(i32 noundef %163)
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %165
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %166, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %167 = load i32, ptr %14, align 4, !tbaa !8
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %168
  store i32 1, ptr %169, align 4, !tbaa !8
  br label %170

170:                                              ; preds = %162, %140
  %171 = load i32, ptr %15, align 4, !tbaa !8
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !8
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %184, label %176

176:                                              ; preds = %170
  %177 = load i32, ptr %15, align 4, !tbaa !8
  %178 = call noundef i32 @_Z4findi(i32 noundef %177)
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %179
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %180, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %181 = load i32, ptr %15, align 4, !tbaa !8
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %182
  store i32 1, ptr %183, align 4, !tbaa !8
  br label %184

184:                                              ; preds = %176, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %13, align 4, !tbaa !8
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %13, align 4, !tbaa !8
  br label %131, !llvm.loop !18

188:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %189

189:                                              ; preds = %263, %188
  %190 = load i32, ptr %16, align 4, !tbaa !8
  %191 = load i32, ptr %8, align 4, !tbaa !8
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %192
  %194 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %193) #7
  %195 = trunc i64 %194 to i32
  %196 = icmp slt i32 %190, %195
  br i1 %196, label %198, label %197

197:                                              ; preds = %189
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %266

198:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %199 = load i32, ptr %8, align 4, !tbaa !8
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %200
  %202 = load i32, ptr %16, align 4, !tbaa !8
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %203) #7
  %205 = getelementptr inbounds %"struct.std::pair", ptr %204, i32 0, i32 0
  %206 = load i32, ptr %205, align 4, !tbaa !14
  store i32 %206, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %207 = load i32, ptr %8, align 4, !tbaa !8
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %208
  %210 = load i32, ptr %16, align 4, !tbaa !8
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %211) #7
  %213 = getelementptr inbounds %"struct.std::pair", ptr %212, i32 0, i32 1
  %214 = load i32, ptr %213, align 4, !tbaa !16
  store i32 %214, ptr %18, align 4, !tbaa !8
  %215 = load i32, ptr %17, align 4, !tbaa !8
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %216
  %218 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %217) #7
  %219 = trunc i64 %218 to i32
  %220 = icmp sgt i32 %219, 0
  br i1 %220, label %221, label %228

221:                                              ; preds = %198
  %222 = load i32, ptr %17, align 4, !tbaa !8
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %223
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @comp, ptr noundef nonnull align 8 dereferenceable(24) %224)
  %225 = load i32, ptr %17, align 4, !tbaa !8
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %226
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %227) #7
  br label %228

228:                                              ; preds = %221, %198
  %229 = load i32, ptr %18, align 4, !tbaa !8
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %230
  %232 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %231) #7
  %233 = trunc i64 %232 to i32
  %234 = icmp sgt i32 %233, 0
  br i1 %234, label %235, label %242

235:                                              ; preds = %228
  %236 = load i32, ptr %18, align 4, !tbaa !8
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %237
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @comp, ptr noundef nonnull align 8 dereferenceable(24) %238)
  %239 = load i32, ptr %18, align 4, !tbaa !8
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %240
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %241) #7
  br label %242

242:                                              ; preds = %235, %228
  %243 = load i32, ptr %17, align 4, !tbaa !8
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %244
  store i32 0, ptr %245, align 4, !tbaa !8
  %246 = load i32, ptr %18, align 4, !tbaa !8
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %247
  store i32 0, ptr %248, align 4, !tbaa !8
  %249 = load i32, ptr %17, align 4, !tbaa !8
  %250 = load i32, ptr %17, align 4, !tbaa !8
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [100010 x i32], ptr @par_uf, i64 0, i64 %251
  store i32 %249, ptr %252, align 4, !tbaa !8
  %253 = load i32, ptr %18, align 4, !tbaa !8
  %254 = load i32, ptr %18, align 4, !tbaa !8
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [100010 x i32], ptr @par_uf, i64 0, i64 %255
  store i32 %253, ptr %256, align 4, !tbaa !8
  %257 = load i32, ptr %17, align 4, !tbaa !8
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [100010 x i32], ptr @rank_uf, i64 0, i64 %258
  store i32 0, ptr %259, align 4, !tbaa !8
  %260 = load i32, ptr %18, align 4, !tbaa !8
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [100010 x i32], ptr @rank_uf, i64 0, i64 %261
  store i32 0, ptr %262, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %263

263:                                              ; preds = %242
  %264 = load i32, ptr %16, align 4, !tbaa !8
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %16, align 4, !tbaa !8
  br label %189, !llvm.loop !19

266:                                              ; preds = %197
  br label %267

267:                                              ; preds = %266
  %268 = load i32, ptr %8, align 4, !tbaa !8
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %8, align 4, !tbaa !8
  br label %94, !llvm.loop !20

270:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !8
  br label %271

271:                                              ; preds = %301, %270
  %272 = load i32, ptr %19, align 4, !tbaa !8
  %273 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @comp) #7
  %274 = trunc i64 %273 to i32
  %275 = icmp slt i32 %272, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %271
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %304

277:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !8
  br label %278

278:                                              ; preds = %297, %277
  %279 = load i32, ptr %20, align 4, !tbaa !8
  %280 = load i32, ptr %19, align 4, !tbaa !8
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %281) #7
  %283 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %282) #7
  %284 = trunc i64 %283 to i32
  %285 = icmp slt i32 %279, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %278
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %300

287:                                              ; preds = %278
  %288 = load i32, ptr %19, align 4, !tbaa !8
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %289) #7
  %291 = load i32, ptr %20, align 4, !tbaa !8
  %292 = sext i32 %291 to i64
  %293 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %290, i64 noundef %292) #7
  %294 = load i32, ptr %293, align 4, !tbaa !8
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %295
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %296, ptr noundef nonnull align 4 dereferenceable(4) %19)
  br label %297

297:                                              ; preds = %287
  %298 = load i32, ptr %20, align 4, !tbaa !8
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %20, align 4, !tbaa !8
  br label %278, !llvm.loop !21

300:                                              ; preds = %286
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %19, align 4, !tbaa !8
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %19, align 4, !tbaa !8
  br label %271, !llvm.loop !22

304:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !8
  br label %305

305:                                              ; preds = %328, %304
  %306 = load i32, ptr %21, align 4, !tbaa !8
  %307 = load i32, ptr @n, align 4, !tbaa !8
  %308 = icmp slt i32 %306, %307
  br i1 %308, label %310, label %309

309:                                              ; preds = %305
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %331

310:                                              ; preds = %305
  %311 = load i32, ptr %21, align 4, !tbaa !8
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %312
  %314 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %313) #7
  %315 = trunc i64 %314 to i32
  %316 = icmp sgt i32 %315, 450
  br i1 %316, label %317, label %323

317:                                              ; preds = %310
  %318 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @big) #7
  %319 = trunc i64 %318 to i32
  %320 = load i32, ptr %21, align 4, !tbaa !8
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %321
  store i32 %319, ptr %322, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @big, ptr noundef nonnull align 4 dereferenceable(4) %21)
  br label %327

323:                                              ; preds = %310
  %324 = load i32, ptr %21, align 4, !tbaa !8
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %325
  store i32 -1, ptr %326, align 4, !tbaa !8
  br label %327

327:                                              ; preds = %323, %317
  br label %328

328:                                              ; preds = %327
  %329 = load i32, ptr %21, align 4, !tbaa !8
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %21, align 4, !tbaa !8
  br label %305, !llvm.loop !23

331:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !8
  br label %332

332:                                              ; preds = %392, %331
  %333 = load i32, ptr %22, align 4, !tbaa !8
  %334 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @big) #7
  %335 = trunc i64 %334 to i32
  %336 = icmp slt i32 %333, %335
  br i1 %336, label %338, label %337

337:                                              ; preds = %332
  store i32 29, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %395

338:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %339 = load i32, ptr %22, align 4, !tbaa !8
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @big, i64 noundef %340) #7
  %342 = load i32, ptr %341, align 4, !tbaa !8
  store i32 %342, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !8
  br label %343

343:                                              ; preds = %388, %338
  %344 = load i32, ptr %24, align 4, !tbaa !8
  %345 = load i32, ptr %23, align 4, !tbaa !8
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %346
  %348 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %347) #7
  %349 = trunc i64 %348 to i32
  %350 = icmp slt i32 %344, %349
  br i1 %350, label %352, label %351

351:                                              ; preds = %343
  store i32 32, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %391

352:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %353 = load i32, ptr %23, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %354
  %356 = load i32, ptr %24, align 4, !tbaa !8
  %357 = sext i32 %356 to i64
  %358 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %355, i64 noundef %357) #7
  %359 = load i32, ptr %358, align 4, !tbaa !8
  store i32 %359, ptr %25, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !8
  br label %360

360:                                              ; preds = %384, %352
  %361 = load i32, ptr %26, align 4, !tbaa !8
  %362 = load i32, ptr %25, align 4, !tbaa !8
  %363 = sext i32 %362 to i64
  %364 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %363) #7
  %365 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %364) #7
  %366 = trunc i64 %365 to i32
  %367 = icmp slt i32 %361, %366
  br i1 %367, label %369, label %368

368:                                              ; preds = %360
  store i32 35, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %387

369:                                              ; preds = %360
  %370 = load i32, ptr %22, align 4, !tbaa !8
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [460 x [100010 x i32]], ptr @table, i64 0, i64 %371
  %373 = load i32, ptr %25, align 4, !tbaa !8
  %374 = sext i32 %373 to i64
  %375 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %374) #7
  %376 = load i32, ptr %26, align 4, !tbaa !8
  %377 = sext i32 %376 to i64
  %378 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %375, i64 noundef %377) #7
  %379 = load i32, ptr %378, align 4, !tbaa !8
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [100010 x i32], ptr %372, i64 0, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !8
  %383 = add nsw i32 %382, 1
  store i32 %383, ptr %381, align 4, !tbaa !8
  br label %384

384:                                              ; preds = %369
  %385 = load i32, ptr %26, align 4, !tbaa !8
  %386 = add nsw i32 %385, 1
  store i32 %386, ptr %26, align 4, !tbaa !8
  br label %360, !llvm.loop !24

387:                                              ; preds = %368
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %388

388:                                              ; preds = %387
  %389 = load i32, ptr %24, align 4, !tbaa !8
  %390 = add nsw i32 %389, 1
  store i32 %390, ptr %24, align 4, !tbaa !8
  br label %343, !llvm.loop !25

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

392:                                              ; preds = %391
  %393 = load i32, ptr %22, align 4, !tbaa !8
  %394 = add nsw i32 %393, 1
  store i32 %394, ptr %22, align 4, !tbaa !8
  br label %332, !llvm.loop !26

395:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !8
  br label %396

396:                                              ; preds = %506, %395
  %397 = load i32, ptr %27, align 4, !tbaa !8
  %398 = load i32, ptr @q, align 4, !tbaa !8
  %399 = icmp slt i32 %397, %398
  br i1 %399, label %401, label %400

400:                                              ; preds = %396
  store i32 38, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %509

401:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %402 = load i32, ptr %27, align 4, !tbaa !8
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [100010 x i32], ptr @qa, i64 0, i64 %403
  %405 = load i32, ptr %404, align 4, !tbaa !8
  store i32 %405, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %406 = load i32, ptr %27, align 4, !tbaa !8
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [100010 x i32], ptr @qb, i64 0, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !8
  store i32 %409, ptr %29, align 4, !tbaa !8
  %410 = load i32, ptr %28, align 4, !tbaa !8
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %411
  %413 = load i32, ptr %412, align 4, !tbaa !8
  %414 = icmp eq i32 %413, -1
  br i1 %414, label %415, label %416

415:                                              ; preds = %401
  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) %28, ptr noundef nonnull align 4 dereferenceable(4) %29) #7
  br label %416

416:                                              ; preds = %415, %401
  %417 = load i32, ptr %28, align 4, !tbaa !8
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %418
  %420 = load i32, ptr %419, align 4, !tbaa !8
  %421 = icmp ne i32 %420, -1
  br i1 %421, label %422, label %435

422:                                              ; preds = %416
  %423 = load i32, ptr %28, align 4, !tbaa !8
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %424
  %426 = load i32, ptr %425, align 4, !tbaa !8
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds [460 x [100010 x i32]], ptr @table, i64 0, i64 %427
  %429 = load i32, ptr %29, align 4, !tbaa !8
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [100010 x i32], ptr %428, i64 0, i64 %430
  %432 = load i32, ptr %431, align 4, !tbaa !8
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %432)
  %434 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %433, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %505

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

436:                                              ; preds = %500, %435
  %437 = load i32, ptr %30, align 4, !tbaa !8
  %438 = load i32, ptr %28, align 4, !tbaa !8
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %439
  %441 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %440) #7
  %442 = trunc i64 %441 to i32
  %443 = icmp slt i32 %437, %442
  br i1 %443, label %444, label %452

444:                                              ; preds = %436
  %445 = load i32, ptr %31, align 4, !tbaa !8
  %446 = load i32, ptr %29, align 4, !tbaa !8
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %447
  %449 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %448) #7
  %450 = trunc i64 %449 to i32
  %451 = icmp slt i32 %445, %450
  br label %452

452:                                              ; preds = %444, %436
  %453 = phi i1 [ false, %436 ], [ %451, %444 ]
  br i1 %453, label %454, label %501

454:                                              ; preds = %452
  %455 = load i32, ptr %28, align 4, !tbaa !8
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %456
  %458 = load i32, ptr %30, align 4, !tbaa !8
  %459 = sext i32 %458 to i64
  %460 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %457, i64 noundef %459) #7
  %461 = load i32, ptr %460, align 4, !tbaa !8
  %462 = load i32, ptr %29, align 4, !tbaa !8
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %463
  %465 = load i32, ptr %31, align 4, !tbaa !8
  %466 = sext i32 %465 to i64
  %467 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %464, i64 noundef %466) #7
  %468 = load i32, ptr %467, align 4, !tbaa !8
  %469 = icmp eq i32 %461, %468
  br i1 %469, label %470, label %477

470:                                              ; preds = %454
  %471 = load i32, ptr %32, align 4, !tbaa !8
  %472 = add nsw i32 %471, 1
  store i32 %472, ptr %32, align 4, !tbaa !8
  %473 = load i32, ptr %30, align 4, !tbaa !8
  %474 = add nsw i32 %473, 1
  store i32 %474, ptr %30, align 4, !tbaa !8
  %475 = load i32, ptr %31, align 4, !tbaa !8
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr %31, align 4, !tbaa !8
  br label %500

477:                                              ; preds = %454
  %478 = load i32, ptr %28, align 4, !tbaa !8
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %479
  %481 = load i32, ptr %30, align 4, !tbaa !8
  %482 = sext i32 %481 to i64
  %483 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %480, i64 noundef %482) #7
  %484 = load i32, ptr %483, align 4, !tbaa !8
  %485 = load i32, ptr %29, align 4, !tbaa !8
  %486 = sext i32 %485 to i64
  %487 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %486
  %488 = load i32, ptr %31, align 4, !tbaa !8
  %489 = sext i32 %488 to i64
  %490 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %487, i64 noundef %489) #7
  %491 = load i32, ptr %490, align 4, !tbaa !8
  %492 = icmp slt i32 %484, %491
  br i1 %492, label %493, label %496

493:                                              ; preds = %477
  %494 = load i32, ptr %30, align 4, !tbaa !8
  %495 = add nsw i32 %494, 1
  store i32 %495, ptr %30, align 4, !tbaa !8
  br label %499

496:                                              ; preds = %477
  %497 = load i32, ptr %31, align 4, !tbaa !8
  %498 = add nsw i32 %497, 1
  store i32 %498, ptr %31, align 4, !tbaa !8
  br label %499

499:                                              ; preds = %496, %493
  br label %500

500:                                              ; preds = %499, %470
  br label %436, !llvm.loop !27

501:                                              ; preds = %452
  %502 = load i32, ptr %32, align 4, !tbaa !8
  %503 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %502)
  %504 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %503, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %505

505:                                              ; preds = %501, %422
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %506

506:                                              ; preds = %505
  %507 = load i32, ptr %27, align 4, !tbaa !8
  %508 = add nsw i32 %507, 1
  store i32 %508, ptr %27, align 4, !tbaa !8
  br label %396, !llvm.loop !28

509:                                              ; preds = %400
  %510 = load i32, ptr %1, align 4
  ret i32 %510
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 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 uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

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

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

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

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }

@par_uf = external dso_local local_unnamed_addr global [100010 x i32], align 16
@rank_uf = external dso_local local_unnamed_addr global [100010 x i32], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@qa = external dso_local global [100010 x i32], align 16
@qb = external dso_local global [100010 x i32], align 16
@edge = external dso_local global [100010 x %"class.std::vector"], align 16
@comp = external dso_local global %"class.std::vector.0", align 8
@appear = external dso_local global [100010 x %"class.std::vector.5"], align 16
@big = external dso_local global %"class.std::vector.5", align 8
@bigID = external dso_local local_unnamed_addr global [100010 x i32], align 16
@table = external dso_local local_unnamed_addr global [460 x [100010 x i32]], align 16
@used = external dso_local local_unnamed_addr global [100010 x i32], align 16
@temp = external dso_local global [100010 x %"class.std::vector.5"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %19 = load i32, ptr @m, align 4, !tbaa !8
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @q)
  %22 = load i32, ptr @q, align 4, !tbaa !8
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph109, label %._crit_edge110

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.087106 = phi i32 [ %36, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %27 = load i32, ptr %1, align 4, !tbaa !8
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %1, align 4, !tbaa !8
  %29 = load i32, ptr %2, align 4, !tbaa !8
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr %2, align 4, !tbaa !8
  %31 = load i32, ptr %3, align 4, !tbaa !8
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr %3, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %35 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i64 %35, ptr %4, align 8
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %36 = add nuw nsw i32 %.087106, 1
  %37 = load i32, ptr @m, align 4, !tbaa !8
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge110:                                   ; preds = %.lr.ph109, %._crit_edge
  %39 = load i32, ptr @n, align 4, !tbaa !8
  call void @_Z4initi(i32 noundef %39)
  br label %.preheader105

.lr.ph109:                                        ; preds = %._crit_edge, %.lr.ph109
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph109 ], [ 0, %._crit_edge ]
  %40 = getelementptr inbounds [100010 x i32], ptr @qa, i64 0, i64 %indvars.iv
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %42 = getelementptr inbounds [100010 x i32], ptr @qb, i64 0, i64 %indvars.iv
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = load i32, ptr %40, align 4, !tbaa !8
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %40, align 4, !tbaa !8
  %46 = load i32, ptr %42, align 4, !tbaa !8
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %42, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr @q, align 4, !tbaa !8
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next, %49
  br i1 %50, label %.lr.ph109, label %._crit_edge110, !llvm.loop !13

.preheader105:                                    ; preds = %._crit_edge110, %._crit_edge117
  %indvars.iv157 = phi i64 [ 0, %._crit_edge110 ], [ %indvars.iv.next158, %._crit_edge117 ]
  %51 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @edge, i64 0, i64 %indvars.iv157
  %52 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %53 = trunc i64 %52 to i32
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph112, label %.preheader104

55:                                               ; preds = %._crit_edge117
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 0, ptr %7, align 4, !tbaa !8
  %56 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @comp) #7
  %57 = trunc i64 %56 to i32
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.preheader102, label %._crit_edge122

.preheader104:                                    ; preds = %.lr.ph112, %.preheader105
  %59 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %60 = trunc i64 %59 to i32
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph114, label %.preheader103

.lr.ph112:                                        ; preds = %.preheader105, %.lr.ph112
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %.lr.ph112 ], [ 0, %.preheader105 ]
  %62 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv148) #7
  %63 = load i32, ptr %62, align 4, !tbaa !14
  %64 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv148) #7
  %65 = getelementptr inbounds i8, ptr %64, i64 4
  %66 = load i32, ptr %65, align 4, !tbaa !16
  call void @_Z5uniteii(i32 noundef %63, i32 noundef %66)
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %67 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %sext = shl i64 %67, 32
  %68 = ashr exact i64 %sext, 32
  %69 = icmp slt i64 %indvars.iv.next149, %68
  br i1 %69, label %.lr.ph112, label %.preheader104, !llvm.loop !17

.preheader103:                                    ; preds = %101, %.preheader104
  %70 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %71 = trunc i64 %70 to i32
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %.lr.ph116, label %._crit_edge117

.lr.ph114:                                        ; preds = %.preheader104, %101
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %101 ], [ 0, %.preheader104 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %73 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv151) #7
  %74 = load i32, ptr %73, align 4, !tbaa !14
  store i32 %74, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %75 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv151) #7
  %76 = getelementptr inbounds i8, ptr %75, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !16
  store i32 %77, ptr %6, align 4, !tbaa !8
  %78 = load i32, ptr %5, align 4, !tbaa !8
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !8
  %.not99 = icmp eq i32 %81, 0
  br i1 %.not99, label %82, label %89

82:                                               ; preds = %.lr.ph114
  %83 = call noundef i32 @_Z4findi(i32 noundef %78)
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %84
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %86 = load i32, ptr %5, align 4, !tbaa !8
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %87
  store i32 1, ptr %88, align 4, !tbaa !8
  %.pre = load i32, ptr %6, align 4, !tbaa !8
  br label %89

89:                                               ; preds = %82, %.lr.ph114
  %90 = phi i32 [ %.pre, %82 ], [ %77, %.lr.ph114 ]
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %.not100 = icmp eq i32 %93, 0
  br i1 %.not100, label %94, label %101

94:                                               ; preds = %89
  %95 = call noundef i32 @_Z4findi(i32 noundef %90)
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %96
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %97, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %98 = load i32, ptr %6, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %99
  store i32 1, ptr %100, align 4, !tbaa !8
  br label %101

101:                                              ; preds = %94, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %102 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %sext179 = shl i64 %102, 32
  %103 = ashr exact i64 %sext179, 32
  %104 = icmp slt i64 %indvars.iv.next152, %103
  br i1 %104, label %.lr.ph114, label %.preheader103, !llvm.loop !18

._crit_edge117:                                   ; preds = %123, %.preheader103
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next158, 100010
  br i1 %exitcond.not, label %55, label %.preheader105, !llvm.loop !19

.lr.ph116:                                        ; preds = %.preheader103, %123
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %123 ], [ 0, %.preheader103 ]
  %105 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv154) #7
  %106 = load i32, ptr %105, align 4, !tbaa !14
  %107 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %indvars.iv154) #7
  %108 = getelementptr inbounds i8, ptr %107, i64 4
  %109 = load i32, ptr %108, align 4, !tbaa !16
  %110 = sext i32 %106 to i64
  %111 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %110
  %112 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #7
  %113 = trunc i64 %112 to i32
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %.lr.ph116
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @comp, ptr noundef nonnull align 8 dereferenceable(24) %111)
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #7
  br label %116

116:                                              ; preds = %115, %.lr.ph116
  %117 = sext i32 %109 to i64
  %118 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @temp, i64 0, i64 %117
  %119 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #7
  %120 = trunc i64 %119 to i32
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %116
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @comp, ptr noundef nonnull align 8 dereferenceable(24) %118)
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #7
  br label %123

123:                                              ; preds = %122, %116
  %124 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %110
  store i32 0, ptr %124, align 4, !tbaa !8
  %125 = getelementptr inbounds [100010 x i32], ptr @used, i64 0, i64 %117
  store i32 0, ptr %125, align 4, !tbaa !8
  %126 = getelementptr inbounds [100010 x i32], ptr @par_uf, i64 0, i64 %110
  store i32 %106, ptr %126, align 4, !tbaa !8
  %127 = getelementptr inbounds [100010 x i32], ptr @par_uf, i64 0, i64 %117
  store i32 %109, ptr %127, align 4, !tbaa !8
  %128 = getelementptr inbounds [100010 x i32], ptr @rank_uf, i64 0, i64 %110
  store i32 0, ptr %128, align 4, !tbaa !8
  %129 = getelementptr inbounds [100010 x i32], ptr @rank_uf, i64 0, i64 %117
  store i32 0, ptr %129, align 4, !tbaa !8
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %130 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %sext180 = shl i64 %130, 32
  %131 = ashr exact i64 %sext180, 32
  %132 = icmp slt i64 %indvars.iv.next155, %131
  br i1 %132, label %.lr.ph116, label %._crit_edge117, !llvm.loop !20

.preheader102:                                    ; preds = %55, %._crit_edge121
  %133 = load i32, ptr %7, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %134) #7
  %136 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #7
  %137 = trunc i64 %136 to i32
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %.lr.ph120, label %._crit_edge121

._crit_edge122:                                   ; preds = %._crit_edge121, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 0, ptr %8, align 4, !tbaa !8
  %139 = load i32, ptr @n, align 4, !tbaa !8
  %140 = icmp sgt i32 %139, 0
  br i1 %140, label %.lr.ph125, label %._crit_edge126

._crit_edge121:                                   ; preds = %.lr.ph120, %.preheader102
  %141 = load i32, ptr %7, align 4, !tbaa !8
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %7, align 4, !tbaa !8
  %143 = call noundef i64 @_ZNKSt6vectorIS_IiSaIiEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @comp) #7
  %144 = trunc i64 %143 to i32
  %145 = icmp slt i32 %142, %144
  br i1 %145, label %.preheader102, label %._crit_edge122, !llvm.loop !21

.lr.ph120:                                        ; preds = %.preheader102, %.lr.ph120
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %.lr.ph120 ], [ 0, %.preheader102 ]
  %146 = load i32, ptr %7, align 4, !tbaa !8
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %147) #7
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %indvars.iv160) #7
  %150 = load i32, ptr %149, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %151
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %153 = load i32, ptr %7, align 4, !tbaa !8
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %154) #7
  %156 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %155) #7
  %sext181 = shl i64 %156, 32
  %157 = ashr exact i64 %sext181, 32
  %158 = icmp slt i64 %indvars.iv.next161, %157
  br i1 %158, label %.lr.ph120, label %._crit_edge121, !llvm.loop !22

._crit_edge126:                                   ; preds = %177, %._crit_edge122
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %159 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @big) #7
  %160 = trunc i64 %159 to i32
  %161 = icmp sgt i32 %160, 0
  br i1 %161, label %.lr.ph137, label %.preheader101

.lr.ph125:                                        ; preds = %._crit_edge122, %177
  %storemerge98123 = phi i32 [ %179, %177 ], [ 0, %._crit_edge122 ]
  %162 = sext i32 %storemerge98123 to i64
  %163 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %162
  %164 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #7
  %165 = trunc i64 %164 to i32
  %166 = icmp sgt i32 %165, 450
  br i1 %166, label %167, label %173

167:                                              ; preds = %.lr.ph125
  %168 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @big) #7
  %169 = trunc i64 %168 to i32
  %170 = load i32, ptr %8, align 4, !tbaa !8
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %171
  store i32 %169, ptr %172, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @big, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %.pre175 = load i32, ptr %8, align 4, !tbaa !8
  br label %177

173:                                              ; preds = %.lr.ph125
  %174 = load i32, ptr %8, align 4, !tbaa !8
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %175
  store i32 -1, ptr %176, align 4, !tbaa !8
  br label %177

177:                                              ; preds = %167, %173
  %178 = phi i32 [ %.pre175, %167 ], [ %174, %173 ]
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %8, align 4, !tbaa !8
  %180 = load i32, ptr @n, align 4, !tbaa !8
  %181 = icmp slt i32 %179, %180
  br i1 %181, label %.lr.ph125, label %._crit_edge126, !llvm.loop !23

.preheader101:                                    ; preds = %._crit_edge134, %._crit_edge126
  %182 = load i32, ptr @q, align 4, !tbaa !8
  %183 = icmp sgt i32 %182, 0
  br i1 %183, label %.lr.ph145, label %._crit_edge146

.lr.ph137:                                        ; preds = %._crit_edge126, %._crit_edge134
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %._crit_edge134 ], [ 0, %._crit_edge126 ]
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @big, i64 noundef %indvars.iv169) #7
  %185 = load i32, ptr %184, align 4, !tbaa !8
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %186
  %188 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %187) #7
  %189 = trunc i64 %188 to i32
  %190 = icmp sgt i32 %189, 0
  br i1 %190, label %.lr.ph133, label %._crit_edge134

._crit_edge134:                                   ; preds = %._crit_edge130, %.lr.ph137
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %191 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @big) #7
  %sext184 = shl i64 %191, 32
  %192 = ashr exact i64 %sext184, 32
  %193 = icmp slt i64 %indvars.iv.next170, %192
  br i1 %193, label %.lr.ph137, label %.preheader101, !llvm.loop !24

.lr.ph133:                                        ; preds = %.lr.ph137, %._crit_edge130
  %indvars.iv166 = phi i64 [ %indvars.iv.next167, %._crit_edge130 ], [ 0, %.lr.ph137 ]
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %indvars.iv166) #7
  %195 = load i32, ptr %194, align 4, !tbaa !8
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %196) #7
  %198 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %197) #7
  %199 = trunc i64 %198 to i32
  %200 = icmp sgt i32 %199, 0
  br i1 %200, label %.lr.ph129, label %._crit_edge130

._crit_edge130:                                   ; preds = %.lr.ph129, %.lr.ph133
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %201 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %187) #7
  %sext183 = shl i64 %201, 32
  %202 = ashr exact i64 %sext183, 32
  %203 = icmp slt i64 %indvars.iv.next167, %202
  br i1 %203, label %.lr.ph133, label %._crit_edge134, !llvm.loop !25

.lr.ph129:                                        ; preds = %.lr.ph133, %.lr.ph129
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %.lr.ph129 ], [ 0, %.lr.ph133 ]
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %196) #7
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %indvars.iv163) #7
  %206 = load i32, ptr %205, align 4, !tbaa !8
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [460 x [100010 x i32]], ptr @table, i64 0, i64 %indvars.iv169, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !8
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %208, align 4, !tbaa !8
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %211 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @comp, i64 noundef %196) #7
  %212 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %211) #7
  %sext182 = shl i64 %212, 32
  %213 = ashr exact i64 %sext182, 32
  %214 = icmp slt i64 %indvars.iv.next164, %213
  br i1 %214, label %.lr.ph129, label %._crit_edge130, !llvm.loop !26

._crit_edge146:                                   ; preds = %.critedge, %.preheader101
  ret i32 0

.lr.ph145:                                        ; preds = %.preheader101, %.critedge
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %.critedge ], [ 0, %.preheader101 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %215 = getelementptr inbounds [100010 x i32], ptr @qa, i64 0, i64 %indvars.iv172
  %216 = load i32, ptr %215, align 4, !tbaa !8
  store i32 %216, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %217 = getelementptr inbounds [100010 x i32], ptr @qb, i64 0, i64 %indvars.iv172
  %218 = load i32, ptr %217, align 4, !tbaa !8
  store i32 %218, ptr %10, align 4, !tbaa !8
  %219 = sext i32 %216 to i64
  %220 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !8
  %222 = icmp eq i32 %221, -1
  br i1 %222, label %223, label %.thread

223:                                              ; preds = %.lr.ph145
  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) %9, ptr noundef nonnull align 4 dereferenceable(4) %10) #7
  %.pre176 = load i32, ptr %9, align 4, !tbaa !8
  %.phi.trans.insert = sext i32 %.pre176 to i64
  %.phi.trans.insert177 = getelementptr inbounds [100010 x i32], ptr @bigID, i64 0, i64 %.phi.trans.insert
  %.pre178 = load i32, ptr %.phi.trans.insert177, align 4, !tbaa !8
  %.not = icmp eq i32 %.pre178, -1
  br i1 %.not, label %.preheader, label %.thread

.preheader:                                       ; preds = %223
  %224 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %.phi.trans.insert
  %225 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %224) #7
  %226 = trunc i64 %225 to i32
  %227 = icmp sgt i32 %226, 0
  br i1 %227, label %.lr.ph141, label %.critedge

.thread:                                          ; preds = %.lr.ph145, %223
  %228 = phi i32 [ %.pre178, %223 ], [ %221, %.lr.ph145 ]
  %229 = sext i32 %228 to i64
  %230 = load i32, ptr %10, align 4, !tbaa !8
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [460 x [100010 x i32]], ptr @table, i64 0, i64 %229, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !8
  br label %.critedge

.lr.ph141:                                        ; preds = %.preheader, %274
  %.0140 = phi i32 [ %.1, %274 ], [ 0, %.preheader ]
  %.081139 = phi i32 [ %.182, %274 ], [ 0, %.preheader ]
  %.083138 = phi i32 [ %.184, %274 ], [ 0, %.preheader ]
  %234 = load i32, ptr %10, align 4, !tbaa !8
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %235
  %237 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %236) #7
  %238 = trunc i64 %237 to i32
  %239 = icmp slt i32 %.081139, %238
  br i1 %239, label %240, label %.critedge

240:                                              ; preds = %.lr.ph141
  %241 = load i32, ptr %9, align 4, !tbaa !8
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %242
  %244 = sext i32 %.083138 to i64
  %245 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %244) #7
  %246 = load i32, ptr %245, align 4, !tbaa !8
  %247 = load i32, ptr %10, align 4, !tbaa !8
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %248
  %250 = sext i32 %.081139 to i64
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %250) #7
  %252 = load i32, ptr %251, align 4, !tbaa !8
  %253 = icmp eq i32 %246, %252
  br i1 %253, label %254, label %258

254:                                              ; preds = %240
  %255 = add nsw i32 %.0140, 1
  %256 = add nsw i32 %.083138, 1
  %257 = add nsw i32 %.081139, 1
  br label %274

258:                                              ; preds = %240
  %259 = load i32, ptr %9, align 4, !tbaa !8
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %260
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %244) #7
  %263 = load i32, ptr %262, align 4, !tbaa !8
  %264 = load i32, ptr %10, align 4, !tbaa !8
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %265
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %250) #7
  %268 = load i32, ptr %267, align 4, !tbaa !8
  %269 = icmp slt i32 %263, %268
  br i1 %269, label %270, label %272

270:                                              ; preds = %258
  %271 = add nsw i32 %.083138, 1
  br label %274

272:                                              ; preds = %258
  %273 = add nsw i32 %.081139, 1
  br label %274

274:                                              ; preds = %270, %272, %254
  %.184 = phi i32 [ %256, %254 ], [ %271, %270 ], [ %.083138, %272 ]
  %.182 = phi i32 [ %257, %254 ], [ %.081139, %270 ], [ %273, %272 ]
  %.1 = phi i32 [ %255, %254 ], [ %.0140, %270 ], [ %.0140, %272 ]
  %275 = load i32, ptr %9, align 4, !tbaa !8
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [100010 x %"class.std::vector.5"], ptr @appear, i64 0, i64 %276
  %278 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %277) #7
  %279 = trunc i64 %278 to i32
  %280 = icmp slt i32 %.184, %279
  br i1 %280, label %.lr.ph141, label %.critedge, !llvm.loop !27

.critedge:                                        ; preds = %274, %.lr.ph141, %.preheader, %.thread
  %.0.lcssa.sink = phi i32 [ %233, %.thread ], [ 0, %.preheader ], [ %.1, %274 ], [ %.0140, %.lr.ph141 ]
  %281 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0.lcssa.sink)
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %283 = load i32, ptr @q, align 4, !tbaa !8
  %284 = sext i32 %283 to i64
  %285 = icmp slt i64 %indvars.iv.next173, %284
  br i1 %285, label %.lr.ph145, label %._crit_edge146, !llvm.loop !28
}

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

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

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

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

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

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

; 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 #2 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 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 #2 align 2

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

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

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

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

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

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

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

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

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


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