; LLVM IR from eyangch/competitive-programming :: Codeforces/1617 (d)

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

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@V = external dso_local global [10000 x i64], align 16
@A = external dso_local global [10000 x i64], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3qryxxx(i64 noundef, i64 noundef, i64 noundef) #0

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

; 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() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca [4 x i64], align 16
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %23 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  %28 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %30

30:                                               ; preds = %368, %0
  %31 = load i64, ptr @T, align 8, !tbaa !8
  %32 = add nsw i64 %31, -1
  store i64 %32, ptr @T, align 8, !tbaa !8
  %33 = icmp ne i64 %31, 0
  br i1 %33, label %34, label %370

34:                                               ; preds = %30
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %36

36:                                               ; preds = %51, %34
  %37 = load i64, ptr %2, align 8, !tbaa !8
  %38 = load i64, ptr @N, align 8, !tbaa !8
  %39 = icmp slt i64 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %54

41:                                               ; preds = %36
  %42 = load i64, ptr %2, align 8, !tbaa !8
  %43 = load i64, ptr %2, align 8, !tbaa !8
  %44 = add nsw i64 %43, 1
  %45 = load i64, ptr %2, align 8, !tbaa !8
  %46 = add nsw i64 %45, 2
  %47 = call noundef i64 @_Z3qryxxx(i64 noundef %42, i64 noundef %44, i64 noundef %46)
  %48 = load i64, ptr %2, align 8, !tbaa !8
  %49 = sdiv i64 %48, 3
  %50 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %49
  store i64 %47, ptr %50, align 8, !tbaa !8
  br label %51

51:                                               ; preds = %41
  %52 = load i64, ptr %2, align 8, !tbaa !8
  %53 = add nsw i64 %52, 3
  store i64 %53, ptr %2, align 8, !tbaa !8
  br label %36, !llvm.loop !11

54:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store i64 -1, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 -1, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store i64 1, ptr %5, align 8, !tbaa !8
  br label %55

55:                                               ; preds = %134, %54
  %56 = load i64, ptr %5, align 8, !tbaa !8
  %57 = load i64, ptr @N, align 8, !tbaa !8
  %58 = sdiv i64 %57, 3
  %59 = icmp slt i64 %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  store i32 7, ptr %6, align 4
  br label %137

61:                                               ; preds = %55
  %62 = load i64, ptr %5, align 8, !tbaa !8
  %63 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !8
  %65 = load i64, ptr %5, align 8, !tbaa !8
  %66 = sub nsw i64 %65, 1
  %67 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !8
  %69 = icmp ne i64 %64, %68
  br i1 %69, label %70, label %133

70:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  %71 = load i64, ptr %5, align 8, !tbaa !8
  %72 = sub nsw i64 %71, 1
  %73 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !8
  store i64 %74, ptr %7, align 8, !tbaa !8
  %75 = getelementptr inbounds i64, ptr %7, i64 1
  %76 = load i64, ptr %5, align 8, !tbaa !8
  %77 = mul nsw i64 %76, 3
  %78 = sub nsw i64 %77, 2
  %79 = load i64, ptr %5, align 8, !tbaa !8
  %80 = mul nsw i64 %79, 3
  %81 = sub nsw i64 %80, 1
  %82 = load i64, ptr %5, align 8, !tbaa !8
  %83 = mul nsw i64 %82, 3
  %84 = call noundef i64 @_Z3qryxxx(i64 noundef %78, i64 noundef %81, i64 noundef %83)
  store i64 %84, ptr %75, align 8, !tbaa !8
  %85 = getelementptr inbounds i64, ptr %7, i64 2
  %86 = load i64, ptr %5, align 8, !tbaa !8
  %87 = mul nsw i64 %86, 3
  %88 = sub nsw i64 %87, 1
  %89 = load i64, ptr %5, align 8, !tbaa !8
  %90 = mul nsw i64 %89, 3
  %91 = load i64, ptr %5, align 8, !tbaa !8
  %92 = mul nsw i64 %91, 3
  %93 = add nsw i64 %92, 1
  %94 = call noundef i64 @_Z3qryxxx(i64 noundef %88, i64 noundef %90, i64 noundef %93)
  store i64 %94, ptr %85, align 8, !tbaa !8
  %95 = getelementptr inbounds i64, ptr %7, i64 3
  %96 = load i64, ptr %5, align 8, !tbaa !8
  %97 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !8
  store i64 %98, ptr %95, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store i64 0, ptr %8, align 8, !tbaa !8
  br label %99

99:                                               ; preds = %129, %70
  %100 = load i64, ptr %8, align 8, !tbaa !8
  %101 = icmp slt i64 %100, 3
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %132

103:                                              ; preds = %99
  %104 = load i64, ptr %8, align 8, !tbaa !8
  %105 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !8
  %107 = load i64, ptr %8, align 8, !tbaa !8
  %108 = add nsw i64 %107, 1
  %109 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !8
  %111 = icmp ne i64 %106, %110
  br i1 %111, label %112, label %128

112:                                              ; preds = %103
  %113 = load i64, ptr %5, align 8, !tbaa !8
  %114 = sub nsw i64 %113, 1
  %115 = mul nsw i64 %114, 3
  %116 = load i64, ptr %8, align 8, !tbaa !8
  %117 = add nsw i64 %115, %116
  store i64 %117, ptr %4, align 8, !tbaa !8
  %118 = load i64, ptr %5, align 8, !tbaa !8
  %119 = mul nsw i64 %118, 3
  %120 = load i64, ptr %8, align 8, !tbaa !8
  %121 = add nsw i64 %119, %120
  store i64 %121, ptr %3, align 8, !tbaa !8
  %122 = load i64, ptr %8, align 8, !tbaa !8
  %123 = getelementptr inbounds [4 x i64], ptr %7, i64 0, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !8
  %125 = icmp ne i64 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %112
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  br label %127

127:                                              ; preds = %126, %112
  br label %128

128:                                              ; preds = %127, %103
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %8, align 8, !tbaa !8
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr %8, align 8, !tbaa !8
  br label %99, !llvm.loop !13

132:                                              ; preds = %102
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %137

133:                                              ; preds = %61
  br label %134

134:                                              ; preds = %133
  %135 = load i64, ptr %5, align 8, !tbaa !8
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %5, align 8, !tbaa !8
  br label %55, !llvm.loop !14

137:                                              ; preds = %132, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %138

138:                                              ; preds = %137
  %139 = load i64, ptr %3, align 8, !tbaa !8
  %140 = xor i64 %139, -1
  %141 = load i64, ptr %4, align 8, !tbaa !8
  %142 = xor i64 %141, -1
  %143 = or i64 %140, %142
  %144 = icmp ne i64 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %138
  br label %148

146:                                              ; preds = %138
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

147:                                              ; No predecessors!
  br label %148

148:                                              ; preds = %147, %145
  %149 = load i64, ptr %3, align 8, !tbaa !8
  %150 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %149
  store i64 1, ptr %150, align 8, !tbaa !8
  %151 = load i64, ptr %4, align 8, !tbaa !8
  %152 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %151
  store i64 0, ptr %152, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %153

153:                                              ; preds = %305, %148
  %154 = load i64, ptr %9, align 8, !tbaa !8
  %155 = load i64, ptr @N, align 8, !tbaa !8
  %156 = sdiv i64 %155, 3
  %157 = icmp slt i64 %154, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %153
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %308

159:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %160 = load i64, ptr %9, align 8, !tbaa !8
  %161 = mul nsw i64 %160, 3
  store i64 %161, ptr %10, align 8, !tbaa !8
  %162 = load i64, ptr %3, align 8, !tbaa !8
  %163 = load i64, ptr %10, align 8, !tbaa !8
  %164 = icmp sge i64 %162, %163
  br i1 %164, label %165, label %170

165:                                              ; preds = %159
  %166 = load i64, ptr %3, align 8, !tbaa !8
  %167 = load i64, ptr %10, align 8, !tbaa !8
  %168 = add nsw i64 %167, 3
  %169 = icmp slt i64 %166, %168
  br i1 %169, label %179, label %170

170:                                              ; preds = %165, %159
  %171 = load i64, ptr %4, align 8, !tbaa !8
  %172 = load i64, ptr %10, align 8, !tbaa !8
  %173 = icmp sge i64 %171, %172
  br i1 %173, label %174, label %212

174:                                              ; preds = %170
  %175 = load i64, ptr %4, align 8, !tbaa !8
  %176 = load i64, ptr %10, align 8, !tbaa !8
  %177 = add nsw i64 %176, 3
  %178 = icmp slt i64 %175, %177
  br i1 %178, label %179, label %212

179:                                              ; preds = %174, %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %180

180:                                              ; preds = %208, %179
  %181 = load i64, ptr %11, align 8, !tbaa !8
  %182 = icmp slt i64 %181, 3
  br i1 %182, label %184, label %183

183:                                              ; preds = %180
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %211

184:                                              ; preds = %180
  %185 = load i64, ptr %10, align 8, !tbaa !8
  %186 = load i64, ptr %11, align 8, !tbaa !8
  %187 = add nsw i64 %185, %186
  %188 = load i64, ptr %3, align 8, !tbaa !8
  %189 = icmp eq i64 %187, %188
  br i1 %189, label %196, label %190

190:                                              ; preds = %184
  %191 = load i64, ptr %10, align 8, !tbaa !8
  %192 = load i64, ptr %11, align 8, !tbaa !8
  %193 = add nsw i64 %191, %192
  %194 = load i64, ptr %4, align 8, !tbaa !8
  %195 = icmp eq i64 %193, %194
  br i1 %195, label %196, label %197

196:                                              ; preds = %190, %184
  br label %208

197:                                              ; preds = %190
  %198 = load i64, ptr %10, align 8, !tbaa !8
  %199 = load i64, ptr %11, align 8, !tbaa !8
  %200 = add nsw i64 %198, %199
  %201 = load i64, ptr %3, align 8, !tbaa !8
  %202 = load i64, ptr %4, align 8, !tbaa !8
  %203 = call noundef i64 @_Z3qryxxx(i64 noundef %200, i64 noundef %201, i64 noundef %202)
  %204 = load i64, ptr %10, align 8, !tbaa !8
  %205 = load i64, ptr %11, align 8, !tbaa !8
  %206 = add nsw i64 %204, %205
  %207 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %206
  store i64 %203, ptr %207, align 8, !tbaa !8
  br label %208

208:                                              ; preds = %197, %196
  %209 = load i64, ptr %11, align 8, !tbaa !8
  %210 = add nsw i64 %209, 1
  store i64 %210, ptr %11, align 8, !tbaa !8
  br label %180, !llvm.loop !15

211:                                              ; preds = %183
  store i32 15, ptr %6, align 4
  br label %302

212:                                              ; preds = %174, %170
  %213 = load i64, ptr %9, align 8, !tbaa !8
  %214 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !8
  %216 = icmp ne i64 %215, 0
  br i1 %216, label %217, label %259

217:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %218 = load i64, ptr %4, align 8, !tbaa !8
  %219 = load i64, ptr %10, align 8, !tbaa !8
  %220 = load i64, ptr %10, align 8, !tbaa !8
  %221 = add nsw i64 %220, 1
  %222 = call noundef i64 @_Z3qryxxx(i64 noundef %218, i64 noundef %219, i64 noundef %221)
  store i64 %222, ptr %12, align 8, !tbaa !8
  %223 = load i64, ptr %12, align 8, !tbaa !8
  %224 = icmp ne i64 %223, 0
  br i1 %224, label %225, label %239

225:                                              ; preds = %217
  %226 = load i64, ptr %10, align 8, !tbaa !8
  %227 = add nsw i64 %226, 1
  %228 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %227
  store i64 1, ptr %228, align 8, !tbaa !8
  %229 = load i64, ptr %10, align 8, !tbaa !8
  %230 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %229
  store i64 1, ptr %230, align 8, !tbaa !8
  %231 = load i64, ptr %4, align 8, !tbaa !8
  %232 = load i64, ptr %3, align 8, !tbaa !8
  %233 = load i64, ptr %10, align 8, !tbaa !8
  %234 = add nsw i64 %233, 2
  %235 = call noundef i64 @_Z3qryxxx(i64 noundef %231, i64 noundef %232, i64 noundef %234)
  %236 = load i64, ptr %10, align 8, !tbaa !8
  %237 = add nsw i64 %236, 2
  %238 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %237
  store i64 %235, ptr %238, align 8, !tbaa !8
  br label %258

239:                                              ; preds = %217
  %240 = load i64, ptr %10, align 8, !tbaa !8
  %241 = add nsw i64 %240, 2
  %242 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %241
  store i64 1, ptr %242, align 8, !tbaa !8
  %243 = load i64, ptr %4, align 8, !tbaa !8
  %244 = load i64, ptr %3, align 8, !tbaa !8
  %245 = load i64, ptr %10, align 8, !tbaa !8
  %246 = call noundef i64 @_Z3qryxxx(i64 noundef %243, i64 noundef %244, i64 noundef %245)
  %247 = load i64, ptr %10, align 8, !tbaa !8
  %248 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %247
  store i64 %246, ptr %248, align 8, !tbaa !8
  %249 = load i64, ptr %10, align 8, !tbaa !8
  %250 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %249
  %251 = load i64, ptr %250, align 8, !tbaa !8
  %252 = icmp ne i64 %251, 0
  %253 = xor i1 %252, true
  %254 = zext i1 %253 to i64
  %255 = load i64, ptr %10, align 8, !tbaa !8
  %256 = add nsw i64 %255, 1
  %257 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %256
  store i64 %254, ptr %257, align 8, !tbaa !8
  br label %258

258:                                              ; preds = %239, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %301

259:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %260 = load i64, ptr %3, align 8, !tbaa !8
  %261 = load i64, ptr %10, align 8, !tbaa !8
  %262 = load i64, ptr %10, align 8, !tbaa !8
  %263 = add nsw i64 %262, 1
  %264 = call noundef i64 @_Z3qryxxx(i64 noundef %260, i64 noundef %261, i64 noundef %263)
  store i64 %264, ptr %13, align 8, !tbaa !8
  %265 = load i64, ptr %13, align 8, !tbaa !8
  %266 = icmp ne i64 %265, 0
  br i1 %266, label %267, label %286

267:                                              ; preds = %259
  %268 = load i64, ptr %10, align 8, !tbaa !8
  %269 = add nsw i64 %268, 2
  %270 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %269
  store i64 0, ptr %270, align 8, !tbaa !8
  %271 = load i64, ptr %4, align 8, !tbaa !8
  %272 = load i64, ptr %3, align 8, !tbaa !8
  %273 = load i64, ptr %10, align 8, !tbaa !8
  %274 = call noundef i64 @_Z3qryxxx(i64 noundef %271, i64 noundef %272, i64 noundef %273)
  %275 = load i64, ptr %10, align 8, !tbaa !8
  %276 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %275
  store i64 %274, ptr %276, align 8, !tbaa !8
  %277 = load i64, ptr %10, align 8, !tbaa !8
  %278 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %277
  %279 = load i64, ptr %278, align 8, !tbaa !8
  %280 = icmp ne i64 %279, 0
  %281 = xor i1 %280, true
  %282 = zext i1 %281 to i64
  %283 = load i64, ptr %10, align 8, !tbaa !8
  %284 = add nsw i64 %283, 1
  %285 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %284
  store i64 %282, ptr %285, align 8, !tbaa !8
  br label %300

286:                                              ; preds = %259
  %287 = load i64, ptr %10, align 8, !tbaa !8
  %288 = add nsw i64 %287, 1
  %289 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %288
  store i64 0, ptr %289, align 8, !tbaa !8
  %290 = load i64, ptr %10, align 8, !tbaa !8
  %291 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %290
  store i64 0, ptr %291, align 8, !tbaa !8
  %292 = load i64, ptr %4, align 8, !tbaa !8
  %293 = load i64, ptr %3, align 8, !tbaa !8
  %294 = load i64, ptr %10, align 8, !tbaa !8
  %295 = add nsw i64 %294, 2
  %296 = call noundef i64 @_Z3qryxxx(i64 noundef %292, i64 noundef %293, i64 noundef %295)
  %297 = load i64, ptr %10, align 8, !tbaa !8
  %298 = add nsw i64 %297, 2
  %299 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %298
  store i64 %296, ptr %299, align 8, !tbaa !8
  br label %300

300:                                              ; preds = %286, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %301

301:                                              ; preds = %300, %258
  store i32 0, ptr %6, align 4
  br label %302

302:                                              ; preds = %301, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %303 = load i32, ptr %6, align 4
  switch i32 %303, label %377 [
    i32 0, label %304
    i32 15, label %305
  ]

304:                                              ; preds = %302
  br label %305

305:                                              ; preds = %304, %302
  %306 = load i64, ptr %9, align 8, !tbaa !8
  %307 = add nsw i64 %306, 1
  store i64 %307, ptr %9, align 8, !tbaa !8
  br label %153, !llvm.loop !16

308:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 0, ptr %15, align 8, !tbaa !8
  br label %309

309:                                              ; preds = %328, %308
  %310 = load i64, ptr %15, align 8, !tbaa !8
  %311 = load i64, ptr @N, align 8, !tbaa !8
  %312 = icmp slt i64 %310, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %309
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %331

314:                                              ; preds = %309
  %315 = load i64, ptr %15, align 8, !tbaa !8
  %316 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %315
  %317 = load i64, ptr %316, align 8, !tbaa !8
  %318 = icmp ne i64 %317, 0
  br i1 %318, label %327, label %319

319:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %320 = load i64, ptr %15, align 8, !tbaa !8
  %321 = add nsw i64 %320, 1
  store i64 %321, ptr %16, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %322 unwind label %323

322:                                              ; preds = %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %327

323:                                              ; preds = %319
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %17, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %369

327:                                              ; preds = %322, %314
  br label %328

328:                                              ; preds = %327
  %329 = load i64, ptr %15, align 8, !tbaa !8
  %330 = add nsw i64 %329, 1
  store i64 %330, ptr %15, align 8, !tbaa !8
  br label %309, !llvm.loop !17

331:                                              ; preds = %313
  %332 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %333 unwind label %346

333:                                              ; preds = %331
  %334 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  %335 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %332, i64 noundef %334)
          to label %336 unwind label %346

336:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store ptr %14, ptr %19, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %337 = load ptr, ptr %19, align 8, !tbaa !18
  %338 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %337) #8
  %339 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %338, ptr %339, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %340 = load ptr, ptr %19, align 8, !tbaa !18
  %341 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %340) #8
  %342 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %341, ptr %342, align 8
  br label %343

343:                                              ; preds = %358, %336
  %344 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br i1 %344, label %350, label %345

345:                                              ; preds = %343
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %364

346:                                              ; preds = %366, %364, %333, %331
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %17, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %18, align 4
  br label %369

350:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %352 = load i64, ptr %351, align 8, !tbaa !8
  store i64 %352, ptr %22, align 8, !tbaa !8
  %353 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 32)
          to label %354 unwind label %360

354:                                              ; preds = %350
  %355 = load i64, ptr %22, align 8, !tbaa !8
  %356 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %353, i64 noundef %355)
          to label %357 unwind label %360

357:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %358

358:                                              ; preds = %357
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %343

360:                                              ; preds = %354, %350
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %17, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %369

364:                                              ; preds = %345
  %365 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %366 unwind label %346

366:                                              ; preds = %364
  %367 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
          to label %368 unwind label %346

368:                                              ; preds = %366
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %30, !llvm.loop !20

369:                                              ; preds = %360, %346, %323
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %372

370:                                              ; preds = %30
  %371 = load i32, ptr %1, align 4
  ret i32 %371

372:                                              ; preds = %369
  %373 = load ptr, ptr %17, align 8
  %374 = load i32, ptr %18, align 4
  %375 = insertvalue { ptr, i32 } poison, ptr %373, 0
  %376 = insertvalue { ptr, i32 } %375, i32 %374, 1
  resume { ptr, i32 } %376

377:                                              ; preds = %302
  unreachable
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@V = external dso_local local_unnamed_addr global [10000 x i64], align 16
@A = external dso_local local_unnamed_addr global [10000 x i64], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3qryxxx(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #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: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; 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 #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  %12 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %14 = load i64, ptr @T, align 8, !tbaa !8
  %15 = add nsw i64 %14, -1
  store i64 %15, ptr @T, align 8, !tbaa !8
  %.not129 = icmp eq i64 %14, 0
  br i1 %.not129, label %._crit_edge132, label %.lr.ph131

.lr.ph131:                                        ; preds = %0, %183
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %17 = load i64, ptr @N, align 8, !tbaa !8
  %18 = icmp sgt i64 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.lr.ph131
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  store i64 -1, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store i64 -1, ptr %2, align 8, !tbaa !8
  br label %.loopexit107

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  store i64 -1, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store i64 -1, ptr %2, align 8, !tbaa !8
  %19 = icmp sgt i64 %27, 5
  br i1 %19, label %.lr.ph115.preheader, label %.loopexit107

.lr.ph115.preheader:                              ; preds = %._crit_edge
  %20 = udiv i64 %27, 3
  %.pre = load i64, ptr @V, align 16, !tbaa !8
  br label %.lr.ph115

.lr.ph:                                           ; preds = %.lr.ph131, %.lr.ph
  %.0112 = phi i64 [ %26, %.lr.ph ], [ 0, %.lr.ph131 ]
  %21 = add nuw nsw i64 %.0112, 1
  %22 = add nuw nsw i64 %.0112, 2
  %23 = call noundef i64 @_Z3qryxxx(i64 noundef %.0112, i64 noundef %21, i64 noundef %22)
  %24 = udiv i64 %.0112, 3
  %25 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %24
  store i64 %23, ptr %25, align 8, !tbaa !8
  %26 = add nuw nsw i64 %.0112, 3
  %27 = load i64, ptr @N, align 8, !tbaa !8
  %28 = icmp slt i64 %26, %27
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.lr.ph115:                                        ; preds = %.lr.ph115.preheader, %54
  %.078113 = phi i64 [ %55, %54 ], [ 1, %.lr.ph115.preheader ]
  %29 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %.078113
  %30 = load i64, ptr %29, align 8, !tbaa !8
  %.not91 = icmp eq i64 %30, %.pre
  br i1 %.not91, label %54, label %31

31:                                               ; preds = %.lr.ph115
  %32 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %.078113
  %33 = mul nuw nsw i64 %.078113, 3
  %34 = add nsw i64 %33, -2
  %35 = add nsw i64 %33, -1
  %36 = call noundef i64 @_Z3qryxxx(i64 noundef %34, i64 noundef %35, i64 noundef %33)
  %37 = add nuw nsw i64 %33, 1
  %38 = call noundef i64 @_Z3qryxxx(i64 noundef %35, i64 noundef %33, i64 noundef %37)
  %39 = load i64, ptr %32, align 8, !tbaa !8
  %40 = mul i64 %.078113, 3
  %.not102 = icmp eq i64 %.pre, %36
  br i1 %.not102, label %44, label %41

41:                                               ; preds = %31
  %42 = add i64 %40, -3
  store i64 %42, ptr %2, align 8, !tbaa !8
  store i64 %33, ptr %1, align 8, !tbaa !8
  %.not103 = icmp eq i64 %.pre, 0
  br i1 %.not103, label %44, label %43

43:                                               ; preds = %41
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  br label %44

44:                                               ; preds = %31, %43, %41
  %.not102.1 = icmp eq i64 %36, %38
  br i1 %.not102.1, label %48, label %45

45:                                               ; preds = %44
  %46 = add i64 %40, -2
  store i64 %46, ptr %2, align 8, !tbaa !8
  store i64 %37, ptr %1, align 8, !tbaa !8
  %.not103.1 = icmp eq i64 %36, 0
  br i1 %.not103.1, label %48, label %47

47:                                               ; preds = %45
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  br label %48

48:                                               ; preds = %47, %45, %44
  %.not102.2 = icmp eq i64 %38, %39
  br i1 %.not102.2, label %53, label %49

49:                                               ; preds = %48
  %50 = add i64 %40, -1
  store i64 %50, ptr %2, align 8, !tbaa !8
  %51 = add nuw nsw i64 %33, 2
  store i64 %51, ptr %1, align 8, !tbaa !8
  %.not103.2 = icmp eq i64 %38, 0
  br i1 %.not103.2, label %53, label %52

52:                                               ; preds = %49
  call void @_ZSt4swapIxENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  br label %53

53:                                               ; preds = %52, %49, %48
  %.pre143 = load i64, ptr %1, align 8, !tbaa !8
  %.pre144 = load i64, ptr %2, align 8, !tbaa !8
  br label %.loopexit107

54:                                               ; preds = %.lr.ph115
  %55 = add nuw nsw i64 %.078113, 1
  %exitcond.not = icmp eq i64 %55, %20
  br i1 %exitcond.not, label %.loopexit107, label %.lr.ph115, !llvm.loop !13

.loopexit107:                                     ; preds = %54, %._crit_edge.thread, %._crit_edge, %53
  %56 = phi i64 [ -1, %._crit_edge ], [ %.pre144, %53 ], [ -1, %._crit_edge.thread ], [ -1, %54 ]
  %57 = phi i64 [ -1, %._crit_edge ], [ %.pre143, %53 ], [ -1, %._crit_edge.thread ], [ -1, %54 ]
  %.demorgan = and i64 %56, %57
  %.not92 = icmp eq i64 %.demorgan, -1
  br i1 %.not92, label %58, label %59

58:                                               ; preds = %.loopexit107
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

59:                                               ; preds = %.loopexit107
  %60 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %57
  store i64 1, ptr %60, align 8, !tbaa !8
  %61 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %56
  store i64 0, ptr %61, align 8, !tbaa !8
  %62 = load i64, ptr @N, align 8, !tbaa !8
  %63 = icmp sgt i64 %62, 2
  br i1 %63, label %.lr.ph120, label %._crit_edge121

._crit_edge121:                                   ; preds = %.loopexit, %59
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %64 = load i64, ptr @N, align 8, !tbaa !8
  %65 = icmp sgt i64 %64, 0
  br i1 %65, label %.lr.ph124, label %._crit_edge125

.lr.ph120:                                        ; preds = %59, %.loopexit
  %.084118 = phi i64 [ %145, %.loopexit ], [ 0, %59 ]
  %66 = mul nuw nsw i64 %.084118, 3
  %67 = load i64, ptr %1, align 8, !tbaa !8
  %.not95 = icmp sge i64 %67, %66
  %68 = add nuw nsw i64 %66, 3
  %69 = icmp slt i64 %67, %68
  %or.cond = select i1 %.not95, i1 %69, i1 false
  br i1 %or.cond, label %73, label %70

70:                                               ; preds = %.lr.ph120
  %71 = load i64, ptr %2, align 8, !tbaa !8
  %.not96 = icmp sge i64 %71, %66
  %72 = icmp slt i64 %71, %68
  %or.cond106 = select i1 %.not96, i1 %72, i1 false
  br i1 %or.cond106, label %73, label %106

73:                                               ; preds = %70, %.lr.ph120
  %74 = icmp eq i64 %66, %67
  br i1 %74, label %.thread, label %76

.thread:                                          ; preds = %73
  %75 = add nuw nsw i64 %66, 1
  br label %87

76:                                               ; preds = %73
  %77 = load i64, ptr %2, align 8, !tbaa !8
  %78 = icmp eq i64 %66, %77
  br i1 %78, label %82, label %79

79:                                               ; preds = %76
  %80 = call noundef i64 @_Z3qryxxx(i64 noundef %66, i64 noundef %67, i64 noundef %77)
  %81 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %66
  store i64 %80, ptr %81, align 8, !tbaa !8
  %.pre145 = load i64, ptr %1, align 8, !tbaa !8
  br label %82

82:                                               ; preds = %76, %79
  %83 = phi i64 [ %67, %76 ], [ %.pre145, %79 ]
  %84 = add nuw nsw i64 %66, 1
  %85 = icmp eq i64 %84, %83
  br i1 %85, label %.thread150, label %87

.thread150:                                       ; preds = %82
  %86 = add nuw nsw i64 %66, 2
  br label %99

87:                                               ; preds = %.thread, %82
  %88 = phi i64 [ %75, %.thread ], [ %84, %82 ]
  %89 = phi i64 [ %66, %.thread ], [ %83, %82 ]
  %90 = load i64, ptr %2, align 8, !tbaa !8
  %91 = icmp eq i64 %88, %90
  br i1 %91, label %95, label %92

92:                                               ; preds = %87
  %93 = call noundef i64 @_Z3qryxxx(i64 noundef %88, i64 noundef %89, i64 noundef %90)
  %94 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %88
  store i64 %93, ptr %94, align 8, !tbaa !8
  %.pre146 = load i64, ptr %1, align 8, !tbaa !8
  br label %95

95:                                               ; preds = %92, %87
  %96 = phi i64 [ %.pre146, %92 ], [ %89, %87 ]
  %97 = add nuw nsw i64 %66, 2
  %98 = icmp eq i64 %97, %96
  br i1 %98, label %.loopexit, label %99

99:                                               ; preds = %.thread150, %95
  %100 = phi i64 [ %86, %.thread150 ], [ %97, %95 ]
  %101 = phi i64 [ %84, %.thread150 ], [ %96, %95 ]
  %102 = load i64, ptr %2, align 8, !tbaa !8
  %103 = icmp eq i64 %100, %102
  br i1 %103, label %.loopexit, label %104

104:                                              ; preds = %99
  %105 = call noundef i64 @_Z3qryxxx(i64 noundef %100, i64 noundef %101, i64 noundef %102)
  br label %.loopexit.sink.split

106:                                              ; preds = %70
  %107 = getelementptr inbounds [10000 x i64], ptr @V, i64 0, i64 %.084118
  %108 = load i64, ptr %107, align 8, !tbaa !8
  %.not97 = icmp eq i64 %108, 0
  %109 = add nuw nsw i64 %66, 1
  br i1 %.not97, label %127, label %110

110:                                              ; preds = %106
  %111 = call noundef i64 @_Z3qryxxx(i64 noundef %71, i64 noundef %66, i64 noundef %109)
  %.not100 = icmp eq i64 %111, 0
  br i1 %.not100, label %119, label %112

112:                                              ; preds = %110
  %113 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %109
  store i64 1, ptr %113, align 8, !tbaa !8
  %114 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %66
  store i64 1, ptr %114, align 8, !tbaa !8
  %115 = load i64, ptr %2, align 8, !tbaa !8
  %116 = load i64, ptr %1, align 8, !tbaa !8
  %117 = add nuw nsw i64 %66, 2
  %118 = call noundef i64 @_Z3qryxxx(i64 noundef %115, i64 noundef %116, i64 noundef %117)
  br label %.loopexit.sink.split

119:                                              ; preds = %110
  %120 = add nuw nsw i64 %66, 2
  %121 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %120
  store i64 1, ptr %121, align 8, !tbaa !8
  %122 = load i64, ptr %2, align 8, !tbaa !8
  %123 = load i64, ptr %1, align 8, !tbaa !8
  %124 = call noundef i64 @_Z3qryxxx(i64 noundef %122, i64 noundef %123, i64 noundef %66)
  %125 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %66
  store i64 %124, ptr %125, align 8, !tbaa !8
  %.not101 = icmp eq i64 %124, 0
  %126 = zext i1 %.not101 to i64
  br label %.loopexit.sink.split

127:                                              ; preds = %106
  %128 = call noundef i64 @_Z3qryxxx(i64 noundef %67, i64 noundef %66, i64 noundef %109)
  %.not98 = icmp eq i64 %128, 0
  br i1 %.not98, label %137, label %129

129:                                              ; preds = %127
  %130 = add nuw nsw i64 %66, 2
  %131 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %130
  store i64 0, ptr %131, align 8, !tbaa !8
  %132 = load i64, ptr %2, align 8, !tbaa !8
  %133 = load i64, ptr %1, align 8, !tbaa !8
  %134 = call noundef i64 @_Z3qryxxx(i64 noundef %132, i64 noundef %133, i64 noundef %66)
  %135 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %66
  store i64 %134, ptr %135, align 8, !tbaa !8
  %.not99 = icmp eq i64 %134, 0
  %136 = zext i1 %.not99 to i64
  br label %.loopexit.sink.split

137:                                              ; preds = %127
  %138 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %109
  store i64 0, ptr %138, align 8, !tbaa !8
  %139 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %66
  store i64 0, ptr %139, align 8, !tbaa !8
  %140 = load i64, ptr %2, align 8, !tbaa !8
  %141 = load i64, ptr %1, align 8, !tbaa !8
  %142 = add nuw nsw i64 %66, 2
  %143 = call noundef i64 @_Z3qryxxx(i64 noundef %140, i64 noundef %141, i64 noundef %142)
  br label %.loopexit.sink.split

.loopexit.sink.split:                             ; preds = %129, %137, %112, %119, %104
  %.sink156 = phi i64 [ %100, %104 ], [ %109, %119 ], [ %117, %112 ], [ %142, %137 ], [ %109, %129 ]
  %.sink = phi i64 [ %105, %104 ], [ %126, %119 ], [ %118, %112 ], [ %143, %137 ], [ %136, %129 ]
  %144 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %.sink156
  store i64 %.sink, ptr %144, align 8, !tbaa !8
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.sink.split, %95, %99
  %145 = add nuw nsw i64 %.084118, 1
  %146 = load i64, ptr @N, align 8, !tbaa !8
  %147 = sdiv i64 %146, 3
  %148 = icmp slt i64 %145, %147
  br i1 %148, label %.lr.ph120, label %._crit_edge121, !llvm.loop !14

._crit_edge125:                                   ; preds = %158, %._crit_edge121
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %161 unwind label %169

.lr.ph124:                                        ; preds = %._crit_edge121, %158
  %150 = phi i64 [ %159, %158 ], [ %64, %._crit_edge121 ]
  %.081122 = phi i64 [ %.pre-phi, %158 ], [ 0, %._crit_edge121 ]
  %151 = getelementptr inbounds [10000 x i64], ptr @A, i64 0, i64 %.081122
  %152 = load i64, ptr %151, align 8, !tbaa !8
  %.not93 = icmp eq i64 %152, 0
  br i1 %.not93, label %153, label %.lr.ph124._crit_edge

.lr.ph124._crit_edge:                             ; preds = %.lr.ph124
  %.pre148 = add nuw nsw i64 %.081122, 1
  br label %158

153:                                              ; preds = %.lr.ph124
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %154 = add nuw nsw i64 %.081122, 1
  store i64 %154, ptr %4, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %155 unwind label %156

155:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %.pre147 = load i64, ptr @N, align 8, !tbaa !8
  br label %158

156:                                              ; preds = %153
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %186

158:                                              ; preds = %.lr.ph124._crit_edge, %155
  %.pre-phi = phi i64 [ %.pre148, %.lr.ph124._crit_edge ], [ %154, %155 ]
  %159 = phi i64 [ %150, %.lr.ph124._crit_edge ], [ %.pre147, %155 ]
  %160 = icmp slt i64 %.pre-phi, %159
  br i1 %160, label %.lr.ph124, label %._crit_edge125, !llvm.loop !15

161:                                              ; preds = %._crit_edge125
  %162 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %149, i64 noundef %162)
          to label %164 unwind label %169

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %165 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %165, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %166 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %166, ptr %6, align 8
  %167 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %167, label %.lr.ph127, label %._crit_edge128

._crit_edge128:                                   ; preds = %176, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
          to label %181 unwind label %169

169:                                              ; preds = %181, %._crit_edge128, %161, %._crit_edge125
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %186

.lr.ph127:                                        ; preds = %164, %176
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %172 = load i64, ptr %171, align 8, !tbaa !8
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 32)
          to label %174 unwind label %179

174:                                              ; preds = %.lr.ph127
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %173, i64 noundef %172)
          to label %176 unwind label %179

176:                                              ; preds = %174
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %178 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %178, label %.lr.ph127, label %._crit_edge128

179:                                              ; preds = %174, %.lr.ph127
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %186

181:                                              ; preds = %._crit_edge128
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
          to label %183 unwind label %169

183:                                              ; preds = %181
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  %184 = load i64, ptr @T, align 8, !tbaa !8
  %185 = add nsw i64 %184, -1
  store i64 %185, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %184, 0
  br i1 %.not, label %._crit_edge132, label %.lr.ph131, !llvm.loop !16

186:                                              ; preds = %179, %169, %156
  %.pn = phi { ptr, i32 } [ %157, %156 ], [ %180, %179 ], [ %170, %169 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn

._crit_edge132:                                   ; preds = %183, %0
  ret i32 0
}

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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


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