; LLVM IR from tangjz/acm-icpc :: 51nod (2046)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@seq = external dso_local global [100001 x i32], align 16
@idx = external dso_local global [100001 x i32], align 16
@dsu = external dso_local global [100001 x i32], align 16
@Ref = external dso_local global [100001 x i32], align 16
@f = external dso_local global [201 x [100001 x i32]], align 16
@pos = external dso_local global [100001 x %"class.std::vector"], align 16
@pool = external dso_local global %"class.std::vector", align 8
@que = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %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 %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 0, ptr %1, align 4
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @_ZN6fastIO4readERi(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 !5
  br label %50

50:                                               ; preds = %65, %0
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 100001
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %50
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %56
  store i32 -1, ptr %57, align 4, !tbaa !5
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100001 x i32], ptr @dsu, i64 0, i64 %59
  store i32 -1, ptr %60, align 4, !tbaa !5
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %63
  store i32 %61, ptr %64, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %54
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %2, align 4, !tbaa !5
  br label %50, !llvm.loop !9

68:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %74, %68
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 201
  br i1 %71, label %73, label %72

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

73:                                               ; preds = %69
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @pool, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %3, align 4, !tbaa !5
  br label %69, !llvm.loop !11

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

78:                                               ; preds = %93, %77
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = load i32, ptr @n, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %96

83:                                               ; preds = %78
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %85
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %86)
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %91
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %93

93:                                               ; preds = %83
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %4, align 4, !tbaa !5
  br label %78, !llvm.loop !12

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

97:                                               ; preds = %134, %96
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = icmp slt i32 %98, 100001
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %137

101:                                              ; preds = %97
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %103
  %105 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #7
  %106 = trunc i64 %105 to i32
  %107 = icmp sge i32 %106, 500
  br i1 %107, label %108, label %122

108:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = load i32, ptr %5, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %112
  store i32 %110, ptr %113, align 4, !tbaa !5
  store i32 %110, ptr %6, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %116
  %118 = getelementptr inbounds [100001 x i32], ptr %117, i64 0, i64 0
  call void @_Z5buildiPi(i32 noundef %114, ptr noundef %118)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %120
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @que, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %133

122:                                              ; preds = %101
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %124
  %126 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #7
  %127 = icmp ne i64 %126, 0
  br i1 %127, label %132, label %128

128:                                              ; preds = %122
  %129 = load i32, ptr %5, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %130
  store i32 -1, ptr %131, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %128, %122
  br label %133

133:                                              ; preds = %132, %108
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %5, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %5, align 4, !tbaa !5
  br label %97, !llvm.loop !13

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

138:                                              ; preds = %606, %604, %137
  %139 = load i32, ptr @m, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr @m, align 4, !tbaa !5
  %141 = icmp ne i32 %139, 0
  br i1 %141, label %142, label %607

142:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %11)
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = load i32, ptr %10, align 4, !tbaa !5
  %145 = xor i32 %144, %143
  store i32 %145, ptr %10, align 4, !tbaa !5
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = xor i32 %147, %146
  store i32 %148, ptr %11, align 4, !tbaa !5
  %149 = load i32, ptr %9, align 4, !tbaa !5
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %151, label %442

151:                                              ; preds = %142
  %152 = load i32, ptr %10, align 4, !tbaa !5
  %153 = load i32, ptr %11, align 4, !tbaa !5
  %154 = icmp eq i32 %152, %153
  br i1 %154, label %155, label %156

155:                                              ; preds = %151
  store i32 14, ptr %12, align 4
  br label %604, !llvm.loop !14

156:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %157 = load i32, ptr %10, align 4, !tbaa !5
  %158 = icmp slt i32 %157, 100001
  br i1 %158, label %159, label %164

159:                                              ; preds = %156
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  br label %165

164:                                              ; preds = %156
  br label %165

165:                                              ; preds = %164, %159
  %166 = phi i32 [ %163, %159 ], [ -1, %164 ]
  store i32 %166, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %167 = load i32, ptr %11, align 4, !tbaa !5
  %168 = icmp slt i32 %167, 100001
  br i1 %168, label %169, label %174

169:                                              ; preds = %165
  %170 = load i32, ptr %11, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !5
  br label %175

174:                                              ; preds = %165
  br label %175

175:                                              ; preds = %174, %169
  %176 = phi i32 [ %173, %169 ], [ -1, %174 ]
  store i32 %176, ptr %14, align 4, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !5
  %178 = icmp eq i32 %177, -1
  br i1 %178, label %179, label %180

179:                                              ; preds = %175
  store i32 14, ptr %12, align 4
  br label %439, !llvm.loop !14

180:                                              ; preds = %175
  %181 = load i32, ptr %14, align 4, !tbaa !5
  %182 = icmp eq i32 %181, -1
  br i1 %182, label %183, label %191

183:                                              ; preds = %180
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %185
  store i32 -1, ptr %186, align 4, !tbaa !5
  %187 = load i32, ptr %13, align 4, !tbaa !5
  %188 = load i32, ptr %11, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %189
  store i32 %187, ptr %190, align 4, !tbaa !5
  store i32 14, ptr %12, align 4
  br label %439, !llvm.loop !14

191:                                              ; preds = %180
  %192 = load i32, ptr %13, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %193
  %195 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %194) #7
  %196 = trunc i64 %195 to i32
  %197 = load i32, ptr %13, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp ne i32 %200, -1
  %202 = zext i1 %201 to i64
  %203 = select i1 %201, i32 500, i32 0
  %204 = add nsw i32 %196, %203
  %205 = load i32, ptr %14, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %206
  %208 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #7
  %209 = trunc i64 %208 to i32
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = icmp ne i32 %213, -1
  %215 = zext i1 %214 to i64
  %216 = select i1 %214, i32 500, i32 0
  %217 = add nsw i32 %209, %216
  %218 = icmp sgt i32 %204, %217
  br i1 %218, label %219, label %220

219:                                              ; preds = %191
  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) %13, ptr noundef nonnull align 4 dereferenceable(4) %14) #7
  br label %220

220:                                              ; preds = %219, %191
  %221 = load i32, ptr %10, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %222
  store i32 -1, ptr %223, align 4, !tbaa !5
  %224 = load i32, ptr %14, align 4, !tbaa !5
  %225 = load i32, ptr %11, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %226
  store i32 %224, ptr %227, align 4, !tbaa !5
  %228 = load i32, ptr %14, align 4, !tbaa !5
  %229 = load i32, ptr %13, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [100001 x i32], ptr @dsu, i64 0, i64 %230
  store i32 %228, ptr %231, align 4, !tbaa !5
  %232 = load i32, ptr %13, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = icmp ne i32 %235, -1
  br i1 %236, label %237, label %277

237:                                              ; preds = %220
  %238 = load i32, ptr %14, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !5
  %242 = icmp ne i32 %241, -1
  br i1 %242, label %243, label %277

243:                                              ; preds = %237
  %244 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %245 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %244, ptr %245, align 8
  %246 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %246, ptr %247, align 8
  %248 = load i32, ptr %13, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %249
  %251 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8
  %253 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  %255 = call ptr @_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr %252, ptr %254, ptr noundef nonnull align 4 dereferenceable(4) %250)
  %256 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %255, ptr %256, align 8
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %257 = load i32, ptr %13, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %258
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @pool, ptr noundef nonnull align 4 dereferenceable(4) %259)
  %260 = load i32, ptr %13, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %261
  store i32 -1, ptr %262, align 4, !tbaa !5
  %263 = load i32, ptr %14, align 4, !tbaa !5
  %264 = load i32, ptr %14, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %265
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %268
  %270 = getelementptr inbounds [100001 x i32], ptr %269, i64 0, i64 0
  call void @_Z5buildiPi(i32 noundef %263, ptr noundef %270)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %271 = load i32, ptr %13, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %272
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %273) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %274 = load i32, ptr %14, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %275
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %276) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  br label %395

277:                                              ; preds = %237, %220
  %278 = load i32, ptr %13, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %279
  %281 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %280) #7
  %282 = trunc i64 %281 to i32
  %283 = load i32, ptr %14, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %284
  %286 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %285) #7
  %287 = trunc i64 %286 to i32
  %288 = add nsw i32 %282, %287
  %289 = icmp sge i32 %288, 500
  br i1 %289, label %290, label %315

290:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %291 = load i32, ptr %14, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %292
  store ptr %293, ptr %20, align 8, !tbaa !15
  %294 = load ptr, ptr %20, align 8, !tbaa !15
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = icmp eq i32 %295, -1
  br i1 %296, label %297, label %302

297:                                              ; preds = %290
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = load ptr, ptr %20, align 8, !tbaa !15
  store i32 %299, ptr %300, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  %301 = load ptr, ptr %20, align 8, !tbaa !15
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @que, ptr noundef nonnull align 4 dereferenceable(4) %301)
  br label %302

302:                                              ; preds = %297, %290
  %303 = load i32, ptr %14, align 4, !tbaa !5
  %304 = load ptr, ptr %20, align 8, !tbaa !15
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %306
  %308 = getelementptr inbounds [100001 x i32], ptr %307, i64 0, i64 0
  call void @_Z5buildiPi(i32 noundef %303, ptr noundef %308)
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %309 = load i32, ptr %13, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %310
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %311) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %312 = load i32, ptr %14, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %313
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %314) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %394

315:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %316 = load i32, ptr %13, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %317
  %319 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %318) #7
  %320 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %319, ptr %320, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %321 = load i32, ptr %14, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %322
  %324 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %323) #7
  %325 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %324, ptr %325, align 8
  br label %326

326:                                              ; preds = %385, %315
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %327 = load i32, ptr %13, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %328
  %330 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %329) #7
  %331 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %330, ptr %331, align 8
  %332 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  br i1 %332, label %340, label %333

333:                                              ; preds = %326
  %334 = load i32, ptr %14, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %335
  %337 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %336) #7
  %338 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %337, ptr %338, align 8
  %339 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br label %340

340:                                              ; preds = %333, %326
  %341 = phi i1 [ true, %326 ], [ %339, %333 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br i1 %341, label %343, label %342

342:                                              ; preds = %340
  store i32 16, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %387

343:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %344 = load i32, ptr %14, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %345
  %347 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %346) #7
  %348 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %347, ptr %348, align 8
  %349 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  br i1 %349, label %365, label %350

350:                                              ; preds = %343
  %351 = load i32, ptr %13, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %352
  %354 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %353) #7
  %355 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %354, ptr %355, align 8
  %356 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br i1 %356, label %357, label %363

357:                                              ; preds = %350
  %358 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %359 = load i32, ptr %358, align 4, !tbaa !5
  %360 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  %361 = load i32, ptr %360, align 4, !tbaa !5
  %362 = icmp slt i32 %359, %361
  br label %363

363:                                              ; preds = %357, %350
  %364 = phi i1 [ false, %350 ], [ %362, %357 ]
  br label %365

365:                                              ; preds = %363, %343
  %366 = phi i1 [ true, %343 ], [ %364, %363 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br i1 %366, label %367, label %376

367:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %368 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 0) #7
  %369 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %368, ptr %369, align 8
  %370 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(4) %370)
          to label %371 unwind label %372

371:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %385

372:                                              ; preds = %367
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %31, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %386

376:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %377 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 0) #7
  %378 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %377, ptr %378, align 8
  %379 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(4) %379)
          to label %380 unwind label %381

380:                                              ; preds = %376
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %385

381:                                              ; preds = %376
  %382 = landingpad { ptr, i32 }
          cleanup
  %383 = extractvalue { ptr, i32 } %382, 0
  store ptr %383, ptr %31, align 8
  %384 = extractvalue { ptr, i32 } %382, 1
  store i32 %384, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %386

385:                                              ; preds = %380, %371
  br label %326, !llvm.loop !17

386:                                              ; preds = %381, %372
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %609

387:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  %388 = load i32, ptr %13, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %389
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %390) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  %391 = load i32, ptr %14, align 4, !tbaa !5
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %392
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %393) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %394

394:                                              ; preds = %387, %302
  br label %395

395:                                              ; preds = %394, %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %396 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %397 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %396, ptr %397, align 8
  br label %398

398:                                              ; preds = %436, %395
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %399 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %400 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %399, ptr %400, align 8
  %401 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br i1 %401, label %403, label %402

402:                                              ; preds = %398
  store i32 18, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %438

403:                                              ; preds = %398
  %404 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %405 = load i32, ptr %404, align 4, !tbaa !5
  %406 = load i32, ptr %13, align 4, !tbaa !5
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !5
  %410 = icmp ne i32 %405, %409
  br i1 %410, label %411, label %435

411:                                              ; preds = %403
  %412 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %413 = load i32, ptr %412, align 4, !tbaa !5
  %414 = load i32, ptr %14, align 4, !tbaa !5
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %415
  %417 = load i32, ptr %416, align 4, !tbaa !5
  %418 = icmp ne i32 %413, %417
  br i1 %418, label %419, label %435

419:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %420 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  %421 = load i32, ptr %420, align 4, !tbaa !5
  store i32 %421, ptr %37, align 4, !tbaa !5
  %422 = load i32, ptr %37, align 4, !tbaa !5
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %423
  %425 = load i32, ptr %14, align 4, !tbaa !5
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [100001 x i32], ptr %424, i64 0, i64 %426
  %428 = load i32, ptr %37, align 4, !tbaa !5
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %429
  %431 = load i32, ptr %13, align 4, !tbaa !5
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [100001 x i32], ptr %430, i64 0, i64 %432
  %434 = load i32, ptr %433, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %427, i32 noundef %434)
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %435

435:                                              ; preds = %419, %411, %403
  br label %436

436:                                              ; preds = %435
  %437 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %398, !llvm.loop !18

438:                                              ; preds = %402
  store i32 0, ptr %12, align 4
  br label %439

439:                                              ; preds = %438, %183, %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %440 = load i32, ptr %12, align 4
  switch i32 %440, label %604 [
    i32 0, label %441
  ]

441:                                              ; preds = %439
  br label %603

442:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %443 = load i32, ptr %10, align 4, !tbaa !5
  %444 = icmp slt i32 %443, 100001
  br i1 %444, label %445, label %450

445:                                              ; preds = %442
  %446 = load i32, ptr %10, align 4, !tbaa !5
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %447
  %449 = load i32, ptr %448, align 4, !tbaa !5
  br label %451

450:                                              ; preds = %442
  br label %451

451:                                              ; preds = %450, %445
  %452 = phi i32 [ %449, %445 ], [ -1, %450 ]
  store i32 %452, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %453 = load i32, ptr %11, align 4, !tbaa !5
  %454 = icmp slt i32 %453, 100001
  br i1 %454, label %455, label %460

455:                                              ; preds = %451
  %456 = load i32, ptr %11, align 4, !tbaa !5
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %457
  %459 = load i32, ptr %458, align 4, !tbaa !5
  br label %461

460:                                              ; preds = %451
  br label %461

461:                                              ; preds = %460, %455
  %462 = phi i32 [ %459, %455 ], [ -1, %460 ]
  store i32 %462, ptr %39, align 4, !tbaa !5
  %463 = load i32, ptr %38, align 4, !tbaa !5
  %464 = icmp eq i32 %463, -1
  br i1 %464, label %468, label %465

465:                                              ; preds = %461
  %466 = load i32, ptr %39, align 4, !tbaa !5
  %467 = icmp eq i32 %466, -1
  br i1 %467, label %468, label %469

468:                                              ; preds = %465, %461
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @_ZN6fastIO7printlnEPc(ptr noundef @.str)
  store i32 14, ptr %12, align 4
  br label %600, !llvm.loop !14

469:                                              ; preds = %465
  %470 = load i32, ptr %38, align 4, !tbaa !5
  %471 = load i32, ptr %39, align 4, !tbaa !5
  %472 = icmp eq i32 %470, %471
  br i1 %472, label %473, label %474

473:                                              ; preds = %469
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @_ZN6fastIO7printlnEi(i32 noundef 0)
  store i32 14, ptr %12, align 4
  br label %600, !llvm.loop !14

474:                                              ; preds = %469
  store i32 1061109567, ptr %8, align 4, !tbaa !5
  %475 = load i32, ptr %38, align 4, !tbaa !5
  %476 = sext i32 %475 to i64
  %477 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %476
  %478 = load i32, ptr %477, align 4, !tbaa !5
  %479 = icmp ne i32 %478, -1
  br i1 %479, label %480, label %491

480:                                              ; preds = %474
  %481 = load i32, ptr %38, align 4, !tbaa !5
  %482 = sext i32 %481 to i64
  %483 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %482
  %484 = load i32, ptr %483, align 4, !tbaa !5
  %485 = sext i32 %484 to i64
  %486 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %485
  %487 = load i32, ptr %39, align 4, !tbaa !5
  %488 = sext i32 %487 to i64
  %489 = getelementptr inbounds [100001 x i32], ptr %486, i64 0, i64 %488
  %490 = load i32, ptr %489, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %490)
  br label %491

491:                                              ; preds = %480, %474
  %492 = load i32, ptr %39, align 4, !tbaa !5
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %493
  %495 = load i32, ptr %494, align 4, !tbaa !5
  %496 = icmp ne i32 %495, -1
  br i1 %496, label %497, label %508

497:                                              ; preds = %491
  %498 = load i32, ptr %39, align 4, !tbaa !5
  %499 = sext i32 %498 to i64
  %500 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %499
  %501 = load i32, ptr %500, align 4, !tbaa !5
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %502
  %504 = load i32, ptr %38, align 4, !tbaa !5
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds [100001 x i32], ptr %503, i64 0, i64 %505
  %507 = load i32, ptr %506, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %507)
  br label %508

508:                                              ; preds = %497, %491
  %509 = load i32, ptr %38, align 4, !tbaa !5
  %510 = sext i32 %509 to i64
  %511 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %510
  %512 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %511) #7
  %513 = icmp ne i64 %512, 0
  br i1 %513, label %514, label %598

514:                                              ; preds = %508
  %515 = load i32, ptr %39, align 4, !tbaa !5
  %516 = sext i32 %515 to i64
  %517 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %516
  %518 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %517) #7
  %519 = icmp ne i64 %518, 0
  br i1 %519, label %520, label %598

520:                                              ; preds = %514
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 -1, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  store i32 -1, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %521 = load i32, ptr %38, align 4, !tbaa !5
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %522
  %524 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %523) #7
  %525 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %524, ptr %525, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %526 = load i32, ptr %39, align 4, !tbaa !5
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %527
  %529 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %528) #7
  %530 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %529, ptr %530, align 8
  br label %531

531:                                              ; preds = %596, %520
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %532 = load i32, ptr %38, align 4, !tbaa !5
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %533
  %535 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %534) #7
  %536 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %535, ptr %536, align 8
  %537 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %44) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  br i1 %537, label %545, label %538

538:                                              ; preds = %531
  %539 = load i32, ptr %39, align 4, !tbaa !5
  %540 = sext i32 %539 to i64
  %541 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %540
  %542 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %541) #7
  %543 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %542, ptr %543, align 8
  %544 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %45) #7
  br label %545

545:                                              ; preds = %538, %531
  %546 = phi i1 [ true, %531 ], [ %544, %538 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  br i1 %546, label %548, label %547

547:                                              ; preds = %545
  store i32 21, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %597

548:                                              ; preds = %545
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %549 = load i32, ptr %39, align 4, !tbaa !5
  %550 = sext i32 %549 to i64
  %551 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %550
  %552 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %551) #7
  %553 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  store ptr %552, ptr %553, align 8
  %554 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  br i1 %554, label %570, label %555

555:                                              ; preds = %548
  %556 = load i32, ptr %38, align 4, !tbaa !5
  %557 = sext i32 %556 to i64
  %558 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %557
  %559 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %558) #7
  %560 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %47, i32 0, i32 0
  store ptr %559, ptr %560, align 8
  %561 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  br i1 %561, label %562, label %568

562:                                              ; preds = %555
  %563 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  %564 = load i32, ptr %563, align 4, !tbaa !5
  %565 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #7
  %566 = load i32, ptr %565, align 4, !tbaa !5
  %567 = icmp slt i32 %564, %566
  br label %568

568:                                              ; preds = %562, %555
  %569 = phi i1 [ false, %555 ], [ %567, %562 ]
  br label %570

570:                                              ; preds = %568, %548
  %571 = phi i1 [ true, %548 ], [ %569, %568 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br i1 %571, label %572, label %584

572:                                              ; preds = %570
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %573 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %42, i32 noundef 0) #7
  %574 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  store ptr %573, ptr %574, align 8
  %575 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  %576 = load i32, ptr %575, align 4, !tbaa !5
  store i32 %576, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  %577 = load i32, ptr %41, align 4, !tbaa !5
  %578 = icmp ne i32 %577, -1
  br i1 %578, label %579, label %583

579:                                              ; preds = %572
  %580 = load i32, ptr %40, align 4, !tbaa !5
  %581 = load i32, ptr %41, align 4, !tbaa !5
  %582 = sub nsw i32 %580, %581
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %582)
  br label %583

583:                                              ; preds = %579, %572
  br label %596

584:                                              ; preds = %570
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  %585 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef 0) #7
  %586 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %49, i32 0, i32 0
  store ptr %585, ptr %586, align 8
  %587 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  %588 = load i32, ptr %587, align 4, !tbaa !5
  store i32 %588, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  %589 = load i32, ptr %40, align 4, !tbaa !5
  %590 = icmp ne i32 %589, -1
  br i1 %590, label %591, label %595

591:                                              ; preds = %584
  %592 = load i32, ptr %41, align 4, !tbaa !5
  %593 = load i32, ptr %40, align 4, !tbaa !5
  %594 = sub nsw i32 %592, %593
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %594)
  br label %595

595:                                              ; preds = %591, %584
  br label %596

596:                                              ; preds = %595, %583
  br label %531, !llvm.loop !19

597:                                              ; preds = %547
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %598

598:                                              ; preds = %597, %514, %508
  %599 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN6fastIO7printlnEi(i32 noundef %599)
  store i32 0, ptr %12, align 4
  br label %600

600:                                              ; preds = %598, %473, %468
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  %601 = load i32, ptr %12, align 4
  switch i32 %601, label %604 [
    i32 0, label %602
  ]

602:                                              ; preds = %600
  br label %603

603:                                              ; preds = %602, %441
  store i32 0, ptr %12, align 4
  br label %604

604:                                              ; preds = %603, %600, %439, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %605 = load i32, ptr %12, align 4
  switch i32 %605, label %614 [
    i32 0, label %606
    i32 14, label %138
  ]

606:                                              ; preds = %604
  br label %138, !llvm.loop !14

607:                                              ; preds = %138
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %608 = load i32, ptr %1, align 4
  ret i32 %608

609:                                              ; preds = %386
  %610 = load ptr, ptr %31, align 8
  %611 = load i32, ptr %32, align 4
  %612 = insertvalue { ptr, i32 } poison, ptr %610, 0
  %613 = insertvalue { ptr, i32 } %612, i32 %611, 1
  resume { ptr, i32 } %613

614:                                              ; preds = %604
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO7printlnEi(i32 noundef) #6

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@seq = external dso_local global [100001 x i32], align 16
@idx = external dso_local local_unnamed_addr global [100001 x i32], align 16
@dsu = external dso_local local_unnamed_addr global [100001 x i32], align 16
@Ref = external dso_local global [100001 x i32], align 16
@f = external dso_local global [201 x [100001 x i32]], align 16
@pos = external dso_local global [100001 x %"class.std::vector"], align 16
@pool = external dso_local global %"class.std::vector", align 8
@que = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
vector.ph:
  %0 = alloca i32, align 4
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @m)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400004) @Ref, i8 -1, i64 400004, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400004) @dsu, i8 -1, i64 400004, i1 false), !tbaa !5
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.3, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next.3, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %34 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  store <4 x i32> %vec.ind, ptr %34, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %35, align 16, !tbaa !5
  %index.next = or disjoint i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %step.add.1 = add <4 x i32> %vec.ind, <i32 12, i32 12, i32 12, i32 12>
  %36 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %index.next
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store <4 x i32> %vec.ind.next, ptr %36, align 16, !tbaa !5
  store <4 x i32> %step.add.1, ptr %37, align 16, !tbaa !5
  %index.next.1 = or disjoint i64 %index, 16
  %vec.ind.next.1 = add <4 x i32> %vec.ind, <i32 16, i32 16, i32 16, i32 16>
  %step.add.2 = add <4 x i32> %vec.ind, <i32 20, i32 20, i32 20, i32 20>
  %38 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %index.next.1
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  store <4 x i32> %vec.ind.next.1, ptr %38, align 16, !tbaa !5
  store <4 x i32> %step.add.2, ptr %39, align 16, !tbaa !5
  %index.next.2 = or disjoint i64 %index, 24
  %vec.ind.next.2 = add <4 x i32> %vec.ind, <i32 24, i32 24, i32 24, i32 24>
  %step.add.3 = add <4 x i32> %vec.ind, <i32 28, i32 28, i32 28, i32 28>
  %40 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %index.next.2
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  store <4 x i32> %vec.ind.next.2, ptr %40, align 16, !tbaa !5
  store <4 x i32> %step.add.3, ptr %41, align 16, !tbaa !5
  %index.next.3 = add nuw nsw i64 %index, 32
  %vec.ind.next.3 = add <4 x i32> %vec.ind, <i32 32, i32 32, i32 32, i32 32>
  %42 = icmp eq i64 %index.next.3, 100000
  br i1 %42, label %scalar.ph, label %vector.body, !llvm.loop !9

scalar.ph:                                        ; preds = %vector.body
  store i32 100000, ptr getelementptr inbounds (i8, ptr @idx, i64 400000), align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %0) #7
  store i32 0, ptr %0, align 4, !tbaa !5
  br label %46

43:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph, label %._crit_edge

46:                                               ; preds = %scalar.ph, %46
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @pool, ptr noundef nonnull align 4 dereferenceable(4) %0)
  %47 = load i32, ptr %0, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %0, align 4, !tbaa !5
  %49 = icmp slt i32 %47, 200
  br i1 %49, label %46, label %43, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %65

.lr.ph:                                           ; preds = %43, %.lr.ph
  %storemerge80105 = phi i32 [ %59, %.lr.ph ], [ 0, %43 ]
  %50 = sext i32 %storemerge80105 to i64
  %51 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %50
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %51)
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100001 x i32], ptr @seq, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %56
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %58 = load i32, ptr %1, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %1, align 4, !tbaa !5
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !14

62:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  %63 = load i32, ptr @m, align 4, !tbaa !5
  %64 = add nsw i32 %63, -1
  store i32 %64, ptr @m, align 4, !tbaa !5
  %.not110 = icmp eq i32 %63, 0
  br i1 %.not110, label %._crit_edge113, label %.lr.ph112

65:                                               ; preds = %._crit_edge, %82
  %indvars.iv115 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next116, %82 ]
  %66 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %indvars.iv115
  %67 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #7
  %68 = trunc i64 %67 to i32
  %69 = icmp sgt i32 %68, 499
  br i1 %69, label %70, label %78

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %indvars.iv115
  store i32 %72, ptr %73, align 4, !tbaa !5
  store i32 %72, ptr %2, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %75
  %77 = trunc nuw nsw i64 %indvars.iv115 to i32
  call void @_Z5buildiPi(i32 noundef %77, ptr noundef nonnull %76)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %66) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @que, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %82

78:                                               ; preds = %65
  %79 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #7
  %.not94 = icmp eq i64 %79, 0
  br i1 %.not94, label %80, label %82

80:                                               ; preds = %78
  %81 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %indvars.iv115
  store i32 -1, ptr %81, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %70, %80, %78
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %exitcond118.not = icmp eq i64 %indvars.iv.next116, 100001
  br i1 %exitcond118.not, label %62, label %65, !llvm.loop !15

.lr.ph112:                                        ; preds = %62, %.critedge98
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %7)
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = xor i32 %84, %83
  store i32 %85, ptr %6, align 4, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = xor i32 %86, %83
  store i32 %87, ptr %7, align 4, !tbaa !5
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = icmp eq i32 %88, 1
  br i1 %89, label %90, label %296

90:                                               ; preds = %.lr.ph112
  %91 = icmp eq i32 %84, %86
  br i1 %91, label %.critedge98, label %92, !llvm.loop !16

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %93 = icmp slt i32 %85, 100001
  br i1 %93, label %94, label %.thread102

94:                                               ; preds = %92
  %95 = sext i32 %85 to i64
  %96 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  store i32 %97, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %98 = icmp slt i32 %87, 100001
  br i1 %98, label %99, label %.thread

.thread102:                                       ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  br label %.critedge96

99:                                               ; preds = %94
  %100 = sext i32 %87 to i64
  %101 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  store i32 %102, ptr %9, align 4, !tbaa !5
  %103 = icmp eq i32 %97, -1
  br i1 %103, label %.critedge96, label %105, !llvm.loop !16

.thread:                                          ; preds = %94
  %104 = icmp eq i32 %97, -1
  br i1 %104, label %.critedge96, label %.thread..thread99_crit_edge, !llvm.loop !16

.thread..thread99_crit_edge:                      ; preds = %.thread
  %.pre122 = zext nneg i32 %87 to i64
  br label %.thread99

105:                                              ; preds = %99
  %106 = icmp eq i32 %102, -1
  br i1 %106, label %.thread99, label %108

.thread99:                                        ; preds = %.thread..thread99_crit_edge, %105
  %.pre-phi = phi i64 [ %.pre122, %.thread..thread99_crit_edge ], [ %100, %105 ]
  store i32 -1, ptr %96, align 4, !tbaa !5
  %107 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %.pre-phi
  store i32 %97, ptr %107, align 4, !tbaa !5
  br label %.critedge96, !llvm.loop !16

108:                                              ; preds = %105
  %109 = sext i32 %97 to i64
  %110 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %109
  %111 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #7
  %112 = trunc i64 %111 to i32
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %.not87 = icmp eq i32 %116, -1
  %117 = select i1 %.not87, i32 0, i32 500
  %118 = add nsw i32 %117, %112
  %119 = load i32, ptr %9, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %120
  %122 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  %123 = trunc i64 %122 to i32
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %.not88 = icmp eq i32 %127, -1
  %128 = select i1 %.not88, i32 0, i32 500
  %129 = add nsw i32 %128, %123
  %130 = icmp sgt i32 %118, %129
  br i1 %130, label %131, label %132

131:                                              ; preds = %108
  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) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #7
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %131, %108
  %133 = phi i32 [ %.pre, %131 ], [ %124, %108 ]
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %135
  store i32 -1, ptr %136, align 4, !tbaa !5
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %138
  store i32 %133, ptr %139, align 4, !tbaa !5
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [100001 x i32], ptr @dsu, i64 0, i64 %141
  store i32 %133, ptr %142, align 4, !tbaa !5
  %143 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %141
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %.not89 = icmp eq i32 %144, -1
  br i1 %.not89, label %174, label %145

145:                                              ; preds = %132
  %146 = sext i32 %133 to i64
  %147 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %.not90 = icmp eq i32 %148, -1
  br i1 %.not90, label %174, label %149

149:                                              ; preds = %145
  %150 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %151 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %153
  %155 = call ptr @_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr %150, ptr %151, ptr noundef nonnull align 4 dereferenceable(4) %154)
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  %156 = load i32, ptr %8, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %157
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @pool, ptr noundef nonnull align 4 dereferenceable(4) %158)
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %160
  store i32 -1, ptr %161, align 4, !tbaa !5
  %162 = load i32, ptr %9, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %166
  call void @_Z5buildiPi(i32 noundef %162, ptr noundef nonnull %167)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %168 = load i32, ptr %8, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %169
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %170) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %172
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %173) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %264

174:                                              ; preds = %145, %132
  %175 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %141
  %176 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #7
  %177 = trunc i64 %176 to i32
  %178 = load i32, ptr %9, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %179
  %181 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %180) #7
  %182 = trunc i64 %181 to i32
  %183 = add nsw i32 %182, %177
  %184 = icmp sgt i32 %183, 499
  br i1 %184, label %185, label %205

185:                                              ; preds = %174
  %186 = load i32, ptr %9, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = icmp eq i32 %189, -1
  br i1 %190, label %191, label %194

191:                                              ; preds = %185
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  %193 = load i32, ptr %192, align 4, !tbaa !5
  store i32 %193, ptr %188, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) @pool) #7
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @que, ptr noundef nonnull align 4 dereferenceable(4) %188)
  %.pre119 = load i32, ptr %9, align 4, !tbaa !5
  %.pre120 = load i32, ptr %188, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %191, %185
  %195 = phi i32 [ %.pre120, %191 ], [ %189, %185 ]
  %196 = phi i32 [ %.pre119, %191 ], [ %186, %185 ]
  %197 = sext i32 %195 to i64
  %198 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %197
  call void @_Z5buildiPi(i32 noundef %196, ptr noundef nonnull %198)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %12, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %199 = load i32, ptr %8, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %200
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %201) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %13, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  %202 = load i32, ptr %9, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %203
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %204) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %264

205:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %206 = load i32, ptr %8, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %207
  %209 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %208) #7
  store ptr %209, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %210 = load i32, ptr %9, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %211
  %213 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #7
  store ptr %213, ptr %16, align 8
  br label %214

214:                                              ; preds = %.backedge, %205
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %215 = load i32, ptr %8, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %216
  %218 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %217) #7
  store ptr %218, ptr %17, align 8
  %219 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  br i1 %219, label %.critedge, label %220

220:                                              ; preds = %214
  %221 = load i32, ptr %9, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %222
  %224 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %223) #7
  store ptr %224, ptr %18, align 8
  %225 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br i1 %225, label %233, label %226

226:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %23, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %228
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %229) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  %230 = load i32, ptr %9, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %231
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %232) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %264

.critedge:                                        ; preds = %214
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %233

233:                                              ; preds = %.critedge, %220
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %234 = load i32, ptr %9, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %235
  %237 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %236) #7
  store ptr %237, ptr %19, align 8
  %238 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  br i1 %238, label %.critedge3, label %239

239:                                              ; preds = %233
  %240 = load i32, ptr %8, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %241
  %243 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %242) #7
  store ptr %243, ptr %20, align 8
  %244 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %244, label %245, label %.critedge5

245:                                              ; preds = %239
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = icmp slt i32 %247, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br i1 %250, label %251, label %257

.critedge3:                                       ; preds = %233
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %251

251:                                              ; preds = %.critedge3, %245
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %252 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #7
  store ptr %252, ptr %21, align 8
  %253 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %253)
          to label %254 unwind label %255

254:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %.backedge

255:                                              ; preds = %251
  %256 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %263

.critedge5:                                       ; preds = %239
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  br label %257

257:                                              ; preds = %.critedge5, %245
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %258 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0) #7
  store ptr %258, ptr %22, align 8
  %259 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %259)
          to label %260 unwind label %261

260:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %.backedge

.backedge:                                        ; preds = %260, %254
  br label %214, !llvm.loop !17

261:                                              ; preds = %257
  %262 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %263

263:                                              ; preds = %261, %255
  %.pn = phi { ptr, i32 } [ %256, %255 ], [ %262, %261 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn

264:                                              ; preds = %194, %226, %149
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %265 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  store ptr %265, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %266 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  store ptr %266, ptr %25, align 8
  %267 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br i1 %267, label %.lr.ph108, label %._crit_edge109

._crit_edge109:                                   ; preds = %292, %264
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %.critedge98

.lr.ph108:                                        ; preds = %264, %292
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = load i32, ptr %8, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !5
  %.not92 = icmp eq i32 %269, %273
  br i1 %.not92, label %292, label %274

274:                                              ; preds = %.lr.ph108
  %275 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %276 = load i32, ptr %275, align 4, !tbaa !5
  %277 = load i32, ptr %9, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %.not93 = icmp eq i32 %276, %280
  br i1 %.not93, label %292, label %281

281:                                              ; preds = %274
  %282 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %283 = load i32, ptr %282, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = load i32, ptr %9, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %284, i64 %286
  %288 = load i32, ptr %8, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %284, i64 %289
  %291 = load i32, ptr %290, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %287, i32 noundef %291)
  br label %292

292:                                              ; preds = %.lr.ph108, %274, %281
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %294 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @que) #7
  store ptr %294, ptr %25, align 8
  %295 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br i1 %295, label %.lr.ph108, label %._crit_edge109, !llvm.loop !18

296:                                              ; preds = %.lr.ph112
  %297 = icmp slt i32 %85, 100001
  br i1 %297, label %298, label %302

298:                                              ; preds = %296
  %299 = sext i32 %85 to i64
  %300 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %299
  %301 = load i32, ptr %300, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %296, %298
  %303 = phi i32 [ %301, %298 ], [ -1, %296 ]
  %304 = icmp slt i32 %87, 100001
  br i1 %304, label %305, label %.thread100

305:                                              ; preds = %302
  %306 = sext i32 %87 to i64
  %307 = getelementptr inbounds [100001 x i32], ptr @idx, i64 0, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !5
  %309 = icmp eq i32 %303, -1
  %310 = icmp eq i32 %308, -1
  %or.cond = select i1 %309, i1 true, i1 %310
  br i1 %or.cond, label %.thread100, label %311

.thread100:                                       ; preds = %302, %305
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @_ZN6fastIO7printlnEPc(ptr noundef nonnull @.str)
  br label %.critedge98, !llvm.loop !16

311:                                              ; preds = %305
  %312 = icmp eq i32 %303, %308
  br i1 %312, label %313, label %314

313:                                              ; preds = %311
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @_ZN6fastIO7printlnEi(i32 noundef 0)
  br label %.critedge98, !llvm.loop !16

314:                                              ; preds = %311
  store i32 1061109567, ptr %4, align 4, !tbaa !5
  %315 = sext i32 %303 to i64
  %316 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %.not81 = icmp eq i32 %317, -1
  br i1 %.not81, label %._crit_edge121, label %318

._crit_edge121:                                   ; preds = %314
  %.pre123 = sext i32 %308 to i64
  br label %323

318:                                              ; preds = %314
  %319 = sext i32 %317 to i64
  %320 = sext i32 %308 to i64
  %321 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %319, i64 %320
  %322 = load i32, ptr %321, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %322)
  br label %323

323:                                              ; preds = %._crit_edge121, %318
  %.pre-phi124 = phi i64 [ %.pre123, %._crit_edge121 ], [ %320, %318 ]
  %324 = getelementptr inbounds [100001 x i32], ptr @Ref, i64 0, i64 %.pre-phi124
  %325 = load i32, ptr %324, align 4, !tbaa !5
  %.not82 = icmp eq i32 %325, -1
  br i1 %.not82, label %330, label %326

326:                                              ; preds = %323
  %327 = sext i32 %325 to i64
  %328 = getelementptr inbounds [201 x [100001 x i32]], ptr @f, i64 0, i64 %327, i64 %315
  %329 = load i32, ptr %328, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %329)
  br label %330

330:                                              ; preds = %326, %323
  %331 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %315
  %332 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %331) #7
  %.not83 = icmp eq i64 %332, 0
  br i1 %.not83, label %370, label %333

333:                                              ; preds = %330
  %334 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @pos, i64 0, i64 %.pre-phi124
  %335 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #7
  %.not84 = icmp eq i64 %335, 0
  br i1 %.not84, label %370, label %336

336:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %337 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %331) #7
  store ptr %337, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %338 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #7
  store ptr %338, ptr %27, align 8
  br label %339

339:                                              ; preds = %.backedge126, %336
  %.062 = phi i32 [ -1, %336 ], [ %.062.be, %.backedge126 ]
  %.0 = phi i32 [ -1, %336 ], [ %.0.be, %.backedge126 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  %340 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %331) #7
  store ptr %340, ptr %28, align 8
  %341 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  br i1 %341, label %.critedge8, label %342

342:                                              ; preds = %339
  %343 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #7
  store ptr %343, ptr %29, align 8
  %344 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br i1 %344, label %346, label %345

345:                                              ; preds = %342
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %370

.critedge8:                                       ; preds = %339
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br label %346

346:                                              ; preds = %.critedge8, %342
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  %347 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %334) #7
  store ptr %347, ptr %30, align 8
  %348 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %30) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  br i1 %348, label %.critedge10, label %349

349:                                              ; preds = %346
  %350 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %331) #7
  store ptr %350, ptr %31, align 8
  %351 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %31) #7
  br i1 %351, label %352, label %.critedge12

352:                                              ; preds = %349
  %353 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  %354 = load i32, ptr %353, align 4, !tbaa !5
  %355 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  %356 = load i32, ptr %355, align 4, !tbaa !5
  %357 = icmp slt i32 %354, %356
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  br i1 %357, label %358, label %364

.critedge10:                                      ; preds = %346
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  br label %358

358:                                              ; preds = %.critedge10, %352
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #7
  %359 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef 0) #7
  store ptr %359, ptr %32, align 8
  %360 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  %361 = load i32, ptr %360, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  %.not86 = icmp eq i32 %.0, -1
  br i1 %.not86, label %.backedge126, label %362

362:                                              ; preds = %358
  %363 = sub nsw i32 %361, %.0
  br label %.sink.split

.critedge12:                                      ; preds = %349
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  br label %364

364:                                              ; preds = %.critedge12, %352
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  %365 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %27, i32 noundef 0) #7
  store ptr %365, ptr %33, align 8
  %366 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  %367 = load i32, ptr %366, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  %.not85 = icmp eq i32 %.062, -1
  br i1 %.not85, label %.backedge126, label %368

368:                                              ; preds = %364
  %369 = sub nsw i32 %367, %.062
  br label %.sink.split

.sink.split:                                      ; preds = %362, %368
  %.sink = phi i32 [ %369, %368 ], [ %363, %362 ]
  %.163.ph = phi i32 [ %.062, %368 ], [ %361, %362 ]
  %.1.ph = phi i32 [ %367, %368 ], [ %.0, %362 ]
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %.sink)
  br label %.backedge126

.backedge126:                                     ; preds = %.sink.split, %364, %358
  %.062.be = phi i32 [ %361, %358 ], [ -1, %364 ], [ %.163.ph, %.sink.split ]
  %.0.be = phi i32 [ -1, %358 ], [ %367, %364 ], [ %.1.ph, %.sink.split ]
  br label %339, !llvm.loop !19

370:                                              ; preds = %345, %333, %330
  %371 = load i32, ptr %4, align 4, !tbaa !5
  call void @_ZN6fastIO7printlnEi(i32 noundef %371)
  br label %.critedge98

.critedge96:                                      ; preds = %.thread102, %.thread, %99, %.thread99
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %.critedge98

.critedge98:                                      ; preds = %.thread100, %313, %._crit_edge109, %370, %.critedge96, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %372 = load i32, ptr @m, align 4, !tbaa !5
  %373 = add nsw i32 %372, -1
  store i32 %373, ptr @m, align 4, !tbaa !5
  %.not = icmp eq i32 %372, 0
  br i1 %.not, label %._crit_edge113, label %.lr.ph112

._crit_edge113:                                   ; preds = %.critedge98, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  ret i32 0
}

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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO7printlnEi(i32 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass