; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/1024_KUPC2015 (I)

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

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

@N = external dso_local global i32, align 4
@a = external dso_local global [210 x [210 x i8]], align 16
@b = external dso_local global [210 x [210 x i8]], align 16
@V = external dso_local global [210 x %"class.std::vector"], align 16
@W = external dso_local global [210 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %25

25:                                               ; preds = %386, %0
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr i8, ptr %27, i64 -24
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr %26, i64 %29
  %31 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %30)
  br i1 %31, label %32, label %35

32:                                               ; preds = %25
  %33 = load i32, ptr @N, align 4, !tbaa !8
  %34 = icmp sgt i32 %33, 0
  br label %35

35:                                               ; preds = %32, %25
  %36 = phi i1 [ false, %25 ], [ %34, %32 ]
  br i1 %36, label %37, label %387

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %38

38:                                               ; preds = %85, %37
  %39 = load i32, ptr %2, align 4, !tbaa !8
  %40 = load i32, ptr @N, align 4, !tbaa !8
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  store i32 4, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %88

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

44:                                               ; preds = %81, %43
  %45 = load i32, ptr %4, align 4, !tbaa !8
  %46 = load i32, ptr %2, align 4, !tbaa !8
  %47 = icmp sle i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 7, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %84

49:                                               ; preds = %44
  %50 = load i32, ptr %2, align 4, !tbaa !8
  %51 = load i32, ptr %4, align 4, !tbaa !8
  %52 = icmp eq i32 %50, %51
  br i1 %52, label %53, label %60

53:                                               ; preds = %49
  %54 = load i32, ptr %2, align 4, !tbaa !8
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %55
  %57 = load i32, ptr %4, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [210 x i8], ptr %56, i64 0, i64 %58
  store i8 35, ptr %59, align 1, !tbaa !11
  br label %80

60:                                               ; preds = %49
  %61 = load i32, ptr %4, align 4, !tbaa !8
  %62 = load i32, ptr %2, align 4, !tbaa !8
  %63 = sub nsw i32 %62, 1
  %64 = icmp eq i32 %61, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %60
  %66 = load i32, ptr %2, align 4, !tbaa !8
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %67
  %69 = load i32, ptr %4, align 4, !tbaa !8
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [210 x i8], ptr %68, i64 0, i64 %70
  store i8 64, ptr %71, align 1, !tbaa !11
  br label %79

72:                                               ; preds = %60
  %73 = load i32, ptr %2, align 4, !tbaa !8
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %74
  %76 = load i32, ptr %4, align 4, !tbaa !8
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [210 x i8], ptr %75, i64 0, i64 %77
  store i8 111, ptr %78, align 1, !tbaa !11
  br label %79

79:                                               ; preds = %72, %65
  br label %80

80:                                               ; preds = %79, %53
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %4, align 4, !tbaa !8
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %4, align 4, !tbaa !8
  br label %44, !llvm.loop !12

84:                                               ; preds = %48
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %2, align 4, !tbaa !8
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %2, align 4, !tbaa !8
  br label %38, !llvm.loop !14

88:                                               ; preds = %42
  store i8 64, ptr getelementptr inbounds ([210 x [210 x i8]], ptr @a, i64 0, i64 2), align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %89 = load i32, ptr @N, align 4, !tbaa !8
  %90 = sub nsw i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !8
  br label %91

91:                                               ; preds = %119, %88
  %92 = load i32, ptr %5, align 4, !tbaa !8
  %93 = icmp sge i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %122

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

96:                                               ; preds = %114, %95
  %97 = load i32, ptr %6, align 4, !tbaa !8
  %98 = load i32, ptr @N, align 4, !tbaa !8
  %99 = load i32, ptr %5, align 4, !tbaa !8
  %100 = sub nsw i32 %98, %99
  %101 = icmp slt i32 %97, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %96
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %117

103:                                              ; preds = %96
  %104 = load i32, ptr %5, align 4, !tbaa !8
  %105 = load i32, ptr %6, align 4, !tbaa !8
  %106 = add nsw i32 %104, %105
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %107
  %109 = load i32, ptr %6, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [210 x i8], ptr %108, i64 0, i64 %110
  %112 = load i8, ptr %111, align 1, !tbaa !11
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %112)
  br label %114

114:                                              ; preds = %103
  %115 = load i32, ptr %6, align 4, !tbaa !8
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !8
  br label %96, !llvm.loop !15

117:                                              ; preds = %102
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %119

119:                                              ; preds = %117
  %120 = load i32, ptr %5, align 4, !tbaa !8
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr %5, align 4, !tbaa !8
  br label %91, !llvm.loop !16

122:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %123 = load i32, ptr @N, align 4, !tbaa !8
  %124 = sub nsw i32 %123, 1
  store i32 %124, ptr %7, align 4, !tbaa !8
  br label %125

125:                                              ; preds = %165, %122
  %126 = load i32, ptr %7, align 4, !tbaa !8
  %127 = icmp sge i32 %126, 0
  br i1 %127, label %129, label %128

128:                                              ; preds = %125
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %169

129:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  %130 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %131 unwind label %139

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

132:                                              ; preds = %157, %131
  %133 = load i32, ptr %11, align 4, !tbaa !8
  %134 = load i32, ptr @N, align 4, !tbaa !8
  %135 = load i32, ptr %7, align 4, !tbaa !8
  %136 = sub nsw i32 %134, %135
  %137 = icmp slt i32 %133, %136
  br i1 %137, label %143, label %138

138:                                              ; preds = %132
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %164

139:                                              ; preds = %129
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  br label %168

143:                                              ; preds = %132
  %144 = load i32, ptr %11, align 4, !tbaa !8
  %145 = sext i32 %144 to i64
  %146 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %145)
          to label %147 unwind label %160

147:                                              ; preds = %143
  %148 = load i8, ptr %146, align 1, !tbaa !11
  %149 = load i32, ptr %7, align 4, !tbaa !8
  %150 = load i32, ptr %11, align 4, !tbaa !8
  %151 = add nsw i32 %149, %150
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [210 x [210 x i8]], ptr @b, i64 0, i64 %152
  %154 = load i32, ptr %11, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [210 x i8], ptr %153, i64 0, i64 %155
  store i8 %148, ptr %156, align 1, !tbaa !11
  br label %157

157:                                              ; preds = %147
  %158 = load i32, ptr %11, align 4, !tbaa !8
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %11, align 4, !tbaa !8
  br label %132, !llvm.loop !17

160:                                              ; preds = %143
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %168

164:                                              ; preds = %138
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %7, align 4, !tbaa !8
  %167 = add nsw i32 %166, -1
  store i32 %167, ptr %7, align 4, !tbaa !8
  br label %125, !llvm.loop !18

168:                                              ; preds = %160, %139
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %389

169:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %170

170:                                              ; preds = %203, %169
  %171 = load i32, ptr %12, align 4, !tbaa !8
  %172 = load i32, ptr @N, align 4, !tbaa !8
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %206

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

176:                                              ; preds = %199, %175
  %177 = load i32, ptr %13, align 4, !tbaa !8
  %178 = load i32, ptr %12, align 4, !tbaa !8
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %202

181:                                              ; preds = %176
  %182 = load i32, ptr %12, align 4, !tbaa !8
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [210 x [210 x i8]], ptr @b, i64 0, i64 %183
  %185 = load i32, ptr %13, align 4, !tbaa !8
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [210 x i8], ptr %184, i64 0, i64 %186
  %188 = load i8, ptr %187, align 1, !tbaa !11
  %189 = sext i8 %188 to i32
  %190 = icmp eq i32 %189, 64
  br i1 %190, label %191, label %198

191:                                              ; preds = %181
  %192 = load i32, ptr %12, align 4, !tbaa !8
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %193
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %194, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %195 = load i32, ptr %13, align 4, !tbaa !8
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %196
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %197, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br label %198

198:                                              ; preds = %191, %181
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %13, align 4, !tbaa !8
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %13, align 4, !tbaa !8
  br label %176, !llvm.loop !19

202:                                              ; preds = %180
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %12, align 4, !tbaa !8
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %12, align 4, !tbaa !8
  br label %170, !llvm.loop !20

206:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  store i8 1, ptr %16, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %207

207:                                              ; preds = %231, %206
  %208 = load i32, ptr %17, align 4, !tbaa !8
  %209 = load i32, ptr @N, align 4, !tbaa !8
  %210 = icmp slt i32 %208, %209
  br i1 %210, label %212, label %211

211:                                              ; preds = %207
  store i32 28, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %234

212:                                              ; preds = %207
  %213 = load i32, ptr %17, align 4, !tbaa !8
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %214
  %216 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #7
  %217 = trunc i64 %216 to i32
  %218 = icmp eq i32 %217, 2
  br i1 %218, label %219, label %221

219:                                              ; preds = %212
  %220 = load i32, ptr %17, align 4, !tbaa !8
  store i32 %220, ptr %14, align 4, !tbaa !8
  br label %221

221:                                              ; preds = %219, %212
  %222 = load i32, ptr %17, align 4, !tbaa !8
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %223
  %225 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %224) #7
  %226 = trunc i64 %225 to i32
  %227 = icmp eq i32 %226, 0
  br i1 %227, label %228, label %230

228:                                              ; preds = %221
  %229 = load i32, ptr %17, align 4, !tbaa !8
  store i32 %229, ptr %15, align 4, !tbaa !8
  br label %230

230:                                              ; preds = %228, %221
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %17, align 4, !tbaa !8
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %17, align 4, !tbaa !8
  br label %207, !llvm.loop !23

234:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %235 = load i32, ptr %14, align 4, !tbaa !8
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %236
  store ptr %237, ptr %18, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %238 = load ptr, ptr %18, align 8, !tbaa !24
  %239 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %238) #7
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %239, ptr %240, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %241 = load ptr, ptr %18, align 8, !tbaa !24
  %242 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %241) #7
  %243 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %242, ptr %243, align 8
  br label %244

244:                                              ; preds = %255, %234
  %245 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  br i1 %245, label %247, label %246

246:                                              ; preds = %244
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %257

247:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  %249 = load i32, ptr %248, align 4, !tbaa !8
  store i32 %249, ptr %21, align 4, !tbaa !8
  %250 = load i32, ptr %21, align 4, !tbaa !8
  %251 = load i32, ptr %15, align 4, !tbaa !8
  %252 = icmp eq i32 %250, %251
  br i1 %252, label %253, label %254

253:                                              ; preds = %247
  store i8 0, ptr %16, align 1, !tbaa !21
  br label %254

254:                                              ; preds = %253, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %255

255:                                              ; preds = %254
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br label %244

257:                                              ; preds = %246
  %258 = load i8, ptr %16, align 1, !tbaa !21, !range !26, !noundef !27
  %259 = trunc i8 %258 to i1
  br i1 %259, label %260, label %309

260:                                              ; preds = %257
  %261 = load i32, ptr %14, align 4, !tbaa !8
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %262
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %263, i64 noundef 0) #7
  %265 = load i32, ptr %264, align 4, !tbaa !8
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %266
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %267, i64 noundef 0) #7
  %269 = load i32, ptr %268, align 4, !tbaa !8
  %270 = load i32, ptr %14, align 4, !tbaa !8
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %271
  %273 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %272, i64 noundef 1) #7
  %274 = load i32, ptr %273, align 4, !tbaa !8
  %275 = icmp ne i32 %269, %274
  br i1 %275, label %276, label %285

276:                                              ; preds = %260
  %277 = load i32, ptr %14, align 4, !tbaa !8
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %278
  %280 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %279, i64 noundef 0) #7
  %281 = load i32, ptr %14, align 4, !tbaa !8
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %282
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef 1) #7
  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) %280, ptr noundef nonnull align 4 dereferenceable(4) %284) #7
  br label %285

285:                                              ; preds = %276, %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %286 = load i32, ptr %14, align 4, !tbaa !8
  store i32 %286, ptr %22, align 4, !tbaa !8
  br label %287

287:                                              ; preds = %307, %285
  %288 = load i32, ptr @N, align 4, !tbaa !8
  %289 = icmp sgt i32 %288, 0
  br i1 %289, label %290, label %308

290:                                              ; preds = %287
  %291 = load i32, ptr %22, align 4, !tbaa !8
  %292 = add nsw i32 %291, 1
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %292)
  %294 = load i32, ptr @N, align 4, !tbaa !8
  %295 = add nsw i32 %294, -1
  store i32 %295, ptr @N, align 4, !tbaa !8
  %296 = load i32, ptr @N, align 4, !tbaa !8
  %297 = icmp sgt i32 %296, 0
  br i1 %297, label %298, label %305

298:                                              ; preds = %290
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %300 = load i32, ptr %22, align 4, !tbaa !8
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %301
  %303 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %302, i64 noundef 0) #7
  %304 = load i32, ptr %303, align 4, !tbaa !8
  store i32 %304, ptr %22, align 4, !tbaa !8
  br label %307

305:                                              ; preds = %290
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %307

307:                                              ; preds = %305, %298
  br label %287, !llvm.loop !28

308:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %386

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

310:                                              ; preds = %334, %309
  %311 = load i32, ptr %23, align 4, !tbaa !8
  %312 = load i32, ptr @N, align 4, !tbaa !8
  %313 = icmp slt i32 %311, %312
  br i1 %313, label %315, label %314

314:                                              ; preds = %310
  store i32 35, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %337

315:                                              ; preds = %310
  %316 = load i32, ptr %23, align 4, !tbaa !8
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %317
  %319 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %318) #7
  %320 = trunc i64 %319 to i32
  %321 = icmp eq i32 %320, 2
  br i1 %321, label %322, label %324

322:                                              ; preds = %315
  %323 = load i32, ptr %23, align 4, !tbaa !8
  store i32 %323, ptr %14, align 4, !tbaa !8
  br label %324

324:                                              ; preds = %322, %315
  %325 = load i32, ptr %23, align 4, !tbaa !8
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %326
  %328 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %327) #7
  %329 = trunc i64 %328 to i32
  %330 = icmp eq i32 %329, 0
  br i1 %330, label %331, label %333

331:                                              ; preds = %324
  %332 = load i32, ptr %23, align 4, !tbaa !8
  store i32 %332, ptr %15, align 4, !tbaa !8
  br label %333

333:                                              ; preds = %331, %324
  br label %334

334:                                              ; preds = %333
  %335 = load i32, ptr %23, align 4, !tbaa !8
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %23, align 4, !tbaa !8
  br label %310, !llvm.loop !29

337:                                              ; preds = %314
  %338 = load i32, ptr %14, align 4, !tbaa !8
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %339
  %341 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %340, i64 noundef 0) #7
  %342 = load i32, ptr %341, align 4, !tbaa !8
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %343
  %345 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %344, i64 noundef 0) #7
  %346 = load i32, ptr %345, align 4, !tbaa !8
  %347 = load i32, ptr %14, align 4, !tbaa !8
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %348
  %350 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %349, i64 noundef 1) #7
  %351 = load i32, ptr %350, align 4, !tbaa !8
  %352 = icmp ne i32 %346, %351
  br i1 %352, label %353, label %362

353:                                              ; preds = %337
  %354 = load i32, ptr %14, align 4, !tbaa !8
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %355
  %357 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %356, i64 noundef 0) #7
  %358 = load i32, ptr %14, align 4, !tbaa !8
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %359
  %361 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %360, i64 noundef 1) #7
  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) %357, ptr noundef nonnull align 4 dereferenceable(4) %361) #7
  br label %362

362:                                              ; preds = %353, %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %363 = load i32, ptr %14, align 4, !tbaa !8
  store i32 %363, ptr %24, align 4, !tbaa !8
  br label %364

364:                                              ; preds = %384, %362
  %365 = load i32, ptr @N, align 4, !tbaa !8
  %366 = icmp sgt i32 %365, 0
  br i1 %366, label %367, label %385

367:                                              ; preds = %364
  %368 = load i32, ptr %24, align 4, !tbaa !8
  %369 = add nsw i32 %368, 1
  %370 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %369)
  %371 = load i32, ptr @N, align 4, !tbaa !8
  %372 = add nsw i32 %371, -1
  store i32 %372, ptr @N, align 4, !tbaa !8
  %373 = load i32, ptr @N, align 4, !tbaa !8
  %374 = icmp sgt i32 %373, 0
  br i1 %374, label %375, label %382

375:                                              ; preds = %367
  %376 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %377 = load i32, ptr %24, align 4, !tbaa !8
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %378
  %380 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef 0) #7
  %381 = load i32, ptr %380, align 4, !tbaa !8
  store i32 %381, ptr %24, align 4, !tbaa !8
  br label %384

382:                                              ; preds = %367
  %383 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %384

384:                                              ; preds = %382, %375
  br label %364, !llvm.loop !30

385:                                              ; preds = %364
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %386

386:                                              ; preds = %385, %308
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %25, !llvm.loop !31

387:                                              ; preds = %35
  %388 = load i32, ptr %1, align 4
  ret i32 %388

389:                                              ; preds = %168
  %390 = load ptr, ptr %9, align 8
  %391 = load i32, ptr %10, align 4
  %392 = insertvalue { ptr, i32 } poison, ptr %390, 0
  %393 = insertvalue { ptr, i32 } %392, i32 %391, 1
  resume { ptr, i32 } %393
}

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #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) #4

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

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

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


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

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

@N = external dso_local global i32, align 4
@a = external dso_local local_unnamed_addr global [210 x [210 x i8]], align 16
@b = external dso_local local_unnamed_addr global [210 x [210 x i8]], align 16
@V = external dso_local global [210 x %"class.std::vector"], align 16
@W = external dso_local global [210 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr %6, i64 %9
  %11 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %10)
  %12 = load i32, ptr @N, align 4
  %13 = icmp sgt i32 %12, 0
  %14 = select i1 %11, i1 %13, i1 false
  br i1 %14, label %.preheader97, label %._crit_edge147

.preheader97:                                     ; preds = %0, %.loopexit
  %15 = phi i32 [ %187, %.loopexit ], [ %12, %0 ]
  %.073146 = phi i32 [ %.5, %.loopexit ], [ undef, %0 ]
  %.075145 = phi i32 [ %.580, %.loopexit ], [ undef, %0 ]
  %wide.trip.count162 = zext nneg i32 %15 to i64
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader97, %23
  %indvars.iv157 = phi i64 [ 0, %.preheader97 ], [ %indvars.iv.next158, %23 ]
  %indvars.iv155 = phi i64 [ 1, %.preheader97 ], [ %indvars.iv.next156, %23 ]
  %16 = add nuw i64 %indvars.iv157, 4294967295
  %17 = and i64 %16, 4294967295
  %18 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %indvars.iv157, i64 %17
  %19 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %indvars.iv157, i64 %indvars.iv157
  br label %24

20:                                               ; preds = %23
  store i8 64, ptr getelementptr inbounds (i8, ptr @a, i64 420), align 4, !tbaa !8
  %21 = icmp sgt i32 %15, 0
  br i1 %21, label %.preheader93.preheader, label %._crit_edge111.thread

.preheader93.preheader:                           ; preds = %20
  %22 = zext nneg i32 %15 to i64
  br label %.preheader93

23:                                               ; preds = %32
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next158, %wide.trip.count162
  br i1 %exitcond163.not, label %20, label %.preheader94, !llvm.loop !10

24:                                               ; preds = %.preheader94, %32
  %indvars.iv = phi i64 [ 0, %.preheader94 ], [ %indvars.iv.next, %32 ]
  %25 = icmp eq i64 %indvars.iv157, %indvars.iv
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  store i8 35, ptr %19, align 1, !tbaa !8
  br label %32

27:                                               ; preds = %24
  %28 = icmp eq i64 %indvars.iv, %17
  br i1 %28, label %29, label %30

29:                                               ; preds = %27
  store i8 64, ptr %18, align 1, !tbaa !8
  br label %32

30:                                               ; preds = %27
  %31 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %indvars.iv157, i64 %indvars.iv
  store i8 111, ptr %31, align 1, !tbaa !8
  br label %32

32:                                               ; preds = %26, %30, %29
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv155
  br i1 %exitcond.not, label %23, label %24, !llvm.loop !12

.preheader93:                                     ; preds = %.preheader93.preheader, %._crit_edge
  %indvars.iv167 = phi i64 [ %22, %.preheader93.preheader ], [ %indvars.iv.next168, %._crit_edge ]
  %indvars.iv.next168 = add nsw i64 %indvars.iv167, -1
  %33 = load i32, ptr @N, align 4, !tbaa !13
  %34 = sext i32 %33 to i64
  %.not148 = icmp sgt i64 %indvars.iv167, %34
  br i1 %.not148, label %._crit_edge, label %.lr.ph

._crit_edge103:                                   ; preds = %._crit_edge
  %.pre = load i32, ptr @N, align 4, !tbaa !13
  %35 = icmp sgt i32 %.pre, 0
  br i1 %35, label %.lr.ph110.preheader, label %._crit_edge111.thread

.lr.ph110.preheader:                              ; preds = %._crit_edge103
  %36 = zext nneg i32 %.pre to i64
  br label %.lr.ph110

._crit_edge:                                      ; preds = %.lr.ph, %.preheader93
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %38 = icmp sgt i64 %indvars.iv167, 1
  br i1 %38, label %.preheader93, label %._crit_edge103, !llvm.loop !15

.lr.ph:                                           ; preds = %.preheader93, %.lr.ph
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %.lr.ph ], [ 0, %.preheader93 ]
  %39 = add nsw i64 %indvars.iv164, %indvars.iv.next168
  %40 = getelementptr inbounds [210 x [210 x i8]], ptr @a, i64 0, i64 %39, i64 %indvars.iv164
  %41 = load i8, ptr %40, align 1, !tbaa !8
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %41)
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %43 = load i32, ptr @N, align 4, !tbaa !13
  %44 = sext i32 %43 to i64
  %45 = sub nsw i64 %44, %indvars.iv.next168
  %46 = icmp slt i64 %indvars.iv.next165, %45
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge111.thread:                            ; preds = %._crit_edge103, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  br label %._crit_edge118.thread

._crit_edge111:                                   ; preds = %._crit_edge106
  %.pre182 = load i32, ptr @N, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !13
  %47 = icmp sgt i32 %.pre182, 0
  br i1 %47, label %.lr.ph117, label %._crit_edge118.thread

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %._crit_edge106
  %indvars.iv173 = phi i64 [ %36, %.lr.ph110.preheader ], [ %indvars.iv.next174, %._crit_edge106 ]
  %indvars.iv.next174 = add nsw i64 %indvars.iv173, -1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %.preheader unwind label %52

.preheader:                                       ; preds = %.lr.ph110
  %49 = load i32, ptr @N, align 4, !tbaa !13
  %50 = sext i32 %49 to i64
  %.not149 = icmp sgt i64 %indvars.iv173, %50
  br i1 %.not149, label %._crit_edge106, label %.lr.ph105

._crit_edge106:                                   ; preds = %.lr.ph105, %.preheader
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  %51 = icmp sgt i64 %indvars.iv173, 1
  br i1 %51, label %.lr.ph110, label %._crit_edge111, !llvm.loop !17

52:                                               ; preds = %.lr.ph110
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %53

.lr.ph105:                                        ; preds = %.preheader, %.lr.ph105
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %.lr.ph105 ], [ 0, %.preheader ]
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv170)
  %55 = load i8, ptr %54, align 1, !tbaa !8
  %56 = add nsw i64 %indvars.iv170, %indvars.iv.next174
  %57 = getelementptr inbounds [210 x [210 x i8]], ptr @b, i64 0, i64 %56, i64 %indvars.iv170
  store i8 %55, ptr %57, align 1, !tbaa !8
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %58 = load i32, ptr @N, align 4, !tbaa !13
  %59 = sext i32 %58 to i64
  %60 = sub nsw i64 %59, %indvars.iv.next174
  %61 = icmp slt i64 %indvars.iv.next171, %60
  br i1 %61, label %.lr.ph105, label %._crit_edge106, !llvm.loop !18

._crit_edge118.thread:                            ; preds = %._crit_edge111, %._crit_edge111.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %._crit_edge124

._crit_edge118:                                   ; preds = %._crit_edge115
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %62 = icmp sgt i32 %66, 0
  br i1 %62, label %.lr.ph123, label %._crit_edge124

.lr.ph117:                                        ; preds = %._crit_edge111, %._crit_edge115
  %63 = phi i32 [ %66, %._crit_edge115 ], [ %.pre182, %._crit_edge111 ]
  %64 = phi i32 [ %67, %._crit_edge115 ], [ 0, %._crit_edge111 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 0, ptr %3, align 4, !tbaa !13
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph114, label %._crit_edge115

._crit_edge115.loopexit:                          ; preds = %80
  %.pre185 = load i32, ptr @N, align 4, !tbaa !13
  br label %._crit_edge115

._crit_edge115:                                   ; preds = %._crit_edge115.loopexit, %.lr.ph117
  %66 = phi i32 [ %63, %.lr.ph117 ], [ %.pre185, %._crit_edge115.loopexit ]
  %.lcssa = phi i32 [ %64, %.lr.ph117 ], [ %81, %._crit_edge115.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %67 = add nsw i32 %.lcssa, 1
  store i32 %67, ptr %2, align 4, !tbaa !13
  %68 = icmp slt i32 %67, %66
  br i1 %68, label %.lr.ph117, label %._crit_edge118, !llvm.loop !19

.lr.ph114:                                        ; preds = %.lr.ph117, %80
  %69 = phi i32 [ %81, %80 ], [ %64, %.lr.ph117 ]
  %storemerge89112 = phi i32 [ %83, %80 ], [ 0, %.lr.ph117 ]
  %70 = sext i32 %69 to i64
  %71 = sext i32 %storemerge89112 to i64
  %72 = getelementptr inbounds [210 x [210 x i8]], ptr @b, i64 0, i64 %70, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !8
  %74 = icmp eq i8 %73, 64
  br i1 %74, label %75, label %80

75:                                               ; preds = %.lr.ph114
  %76 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %70
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %76, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %77 = load i32, ptr %3, align 4, !tbaa !13
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %78
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.pre183 = load i32, ptr %3, align 4, !tbaa !13
  %.pre184 = load i32, ptr %2, align 4, !tbaa !13
  br label %80

80:                                               ; preds = %.lr.ph114, %75
  %81 = phi i32 [ %69, %.lr.ph114 ], [ %.pre184, %75 ]
  %82 = phi i32 [ %storemerge89112, %.lr.ph114 ], [ %.pre183, %75 ]
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %3, align 4, !tbaa !13
  %84 = icmp slt i32 %83, %81
  br i1 %84, label %.lr.ph114, label %._crit_edge115.loopexit, !llvm.loop !20

._crit_edge124:                                   ; preds = %.lr.ph123, %._crit_edge118.thread, %._crit_edge118
  %.176.lcssa = phi i32 [ %.075145, %._crit_edge118 ], [ %.075145, %._crit_edge118.thread ], [ %spec.select, %.lr.ph123 ]
  %.174.lcssa = phi i32 [ %.073146, %._crit_edge118 ], [ %.073146, %._crit_edge118.thread ], [ %.2, %.lr.ph123 ]
  %85 = sext i32 %.176.lcssa to i64
  %86 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %87 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #7
  store ptr %87, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %88 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #7
  store ptr %88, ptr %5, align 8
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %89, label %.lr.ph129, label %.critedge

.lr.ph123:                                        ; preds = %._crit_edge118, %.lr.ph123
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %.lr.ph123 ], [ 0, %._crit_edge118 ]
  %.174120 = phi i32 [ %.2, %.lr.ph123 ], [ %.073146, %._crit_edge118 ]
  %.176119 = phi i32 [ %spec.select, %.lr.ph123 ], [ %.075145, %._crit_edge118 ]
  %90 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %indvars.iv176
  %91 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #7
  %92 = and i64 %91, 4294967295
  %93 = icmp eq i64 %92, 2
  %94 = trunc nuw nsw i64 %indvars.iv176 to i32
  %spec.select = select i1 %93, i32 %94, i32 %.176119
  %95 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #7
  %96 = and i64 %95, 4294967295
  %97 = icmp eq i64 %96, 0
  %.2 = select i1 %97, i32 %94, i32 %.174120
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %98 = load i32, ptr @N, align 4, !tbaa !13
  %99 = sext i32 %98 to i64
  %100 = icmp slt i64 %indvars.iv.next177, %99
  br i1 %100, label %.lr.ph123, label %._crit_edge124, !llvm.loop !21

._crit_edge130:                                   ; preds = %.lr.ph129
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br i1 %spec.select91, label %108, label %.preheader96

.preheader96:                                     ; preds = %._crit_edge130
  %101 = load i32, ptr @N, align 4, !tbaa !13
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph135, label %._crit_edge136

.lr.ph129:                                        ; preds = %._crit_edge124, %.lr.ph129
  %.071127 = phi i1 [ %spec.select91, %.lr.ph129 ], [ true, %._crit_edge124 ]
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %104 = load i32, ptr %103, align 4, !tbaa !13
  %105 = icmp ne i32 %104, %.174.lcssa
  %spec.select91 = select i1 %105, i1 %.071127, i1 false
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %107 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  br i1 %107, label %.lr.ph129, label %._crit_edge130

.critedge:                                        ; preds = %._crit_edge124
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %108

108:                                              ; preds = %.critedge, %._crit_edge130
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef 0) #7
  %110 = load i32, ptr %109, align 4, !tbaa !13
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %111
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef 0) #7
  %114 = load i32, ptr %113, align 4, !tbaa !13
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef 1) #7
  %116 = load i32, ptr %115, align 4, !tbaa !13
  %.not88 = icmp eq i32 %114, %116
  br i1 %.not88, label %120, label %117

117:                                              ; preds = %108
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef 0) #7
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef 1) #7
  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) %118, ptr noundef nonnull align 4 dereferenceable(4) %119) #7
  br label %120

120:                                              ; preds = %117, %108
  %121 = load i32, ptr @N, align 4, !tbaa !13
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %.lr.ph144, label %.loopexit

.lr.ph144:                                        ; preds = %120, %136
  %.067142 = phi i32 [ %.168, %136 ], [ %.176.lcssa, %120 ]
  %123 = add nsw i32 %.067142, 1
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %123)
  %125 = load i32, ptr @N, align 4, !tbaa !13
  %126 = add nsw i32 %125, -1
  store i32 %126, ptr @N, align 4, !tbaa !13
  %127 = icmp sgt i32 %125, 1
  br i1 %127, label %128, label %134

128:                                              ; preds = %.lr.ph144
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %130 = sext i32 %.067142 to i64
  %131 = getelementptr inbounds [210 x %"class.std::vector"], ptr @V, i64 0, i64 %130
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef 0) #7
  %133 = load i32, ptr %132, align 4, !tbaa !13
  br label %136

134:                                              ; preds = %.lr.ph144
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %136

136:                                              ; preds = %134, %128
  %.168 = phi i32 [ %133, %128 ], [ %.067142, %134 ]
  %137 = load i32, ptr @N, align 4, !tbaa !13
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %.lr.ph144, label %.loopexit, !llvm.loop !22

._crit_edge136.loopexit:                          ; preds = %.lr.ph135
  %.pre186 = sext i32 %spec.select92 to i64
  br label %._crit_edge136

._crit_edge136:                                   ; preds = %._crit_edge136.loopexit, %.preheader96
  %.pre-phi = phi i64 [ %.pre186, %._crit_edge136.loopexit ], [ %85, %.preheader96 ]
  %.378.lcssa = phi i32 [ %spec.select92, %._crit_edge136.loopexit ], [ %.176.lcssa, %.preheader96 ]
  %.3.lcssa = phi i32 [ %.4, %._crit_edge136.loopexit ], [ %.174.lcssa, %.preheader96 ]
  %139 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %.pre-phi
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef 0) #7
  %141 = load i32, ptr %140, align 4, !tbaa !13
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %142
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef 0) #7
  %145 = load i32, ptr %144, align 4, !tbaa !13
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef 1) #7
  %147 = load i32, ptr %146, align 4, !tbaa !13
  %.not = icmp eq i32 %145, %147
  br i1 %.not, label %162, label %159

.lr.ph135:                                        ; preds = %.preheader96, %.lr.ph135
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %.lr.ph135 ], [ 0, %.preheader96 ]
  %.3133 = phi i32 [ %.4, %.lr.ph135 ], [ %.174.lcssa, %.preheader96 ]
  %.378132 = phi i32 [ %spec.select92, %.lr.ph135 ], [ %.176.lcssa, %.preheader96 ]
  %148 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %indvars.iv179
  %149 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #7
  %150 = and i64 %149, 4294967295
  %151 = icmp eq i64 %150, 2
  %152 = trunc nuw nsw i64 %indvars.iv179 to i32
  %spec.select92 = select i1 %151, i32 %152, i32 %.378132
  %153 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #7
  %154 = and i64 %153, 4294967295
  %155 = icmp eq i64 %154, 0
  %.4 = select i1 %155, i32 %152, i32 %.3133
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %156 = load i32, ptr @N, align 4, !tbaa !13
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next180, %157
  br i1 %158, label %.lr.ph135, label %._crit_edge136.loopexit, !llvm.loop !23

159:                                              ; preds = %._crit_edge136
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef 0) #7
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef 1) #7
  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) %160, ptr noundef nonnull align 4 dereferenceable(4) %161) #7
  br label %162

162:                                              ; preds = %159, %._crit_edge136
  %163 = load i32, ptr @N, align 4, !tbaa !13
  %164 = icmp sgt i32 %163, 0
  br i1 %164, label %.lr.ph141, label %.loopexit

.lr.ph141:                                        ; preds = %162, %178
  %.0139 = phi i32 [ %.1, %178 ], [ %.378.lcssa, %162 ]
  %165 = add nsw i32 %.0139, 1
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %165)
  %167 = load i32, ptr @N, align 4, !tbaa !13
  %168 = add nsw i32 %167, -1
  store i32 %168, ptr @N, align 4, !tbaa !13
  %169 = icmp sgt i32 %167, 1
  br i1 %169, label %170, label %176

170:                                              ; preds = %.lr.ph141
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %172 = sext i32 %.0139 to i64
  %173 = getelementptr inbounds [210 x %"class.std::vector"], ptr @W, i64 0, i64 %172
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef 0) #7
  %175 = load i32, ptr %174, align 4, !tbaa !13
  br label %178

176:                                              ; preds = %.lr.ph141
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %178

178:                                              ; preds = %176, %170
  %.1 = phi i32 [ %175, %170 ], [ %.0139, %176 ]
  %179 = load i32, ptr @N, align 4, !tbaa !13
  %180 = icmp sgt i32 %179, 0
  br i1 %180, label %.lr.ph141, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %178, %136, %162, %120
  %.580 = phi i32 [ %.176.lcssa, %120 ], [ %.378.lcssa, %162 ], [ %.176.lcssa, %136 ], [ %.378.lcssa, %178 ]
  %.5 = phi i32 [ %.174.lcssa, %120 ], [ %.3.lcssa, %162 ], [ %.174.lcssa, %136 ], [ %.3.lcssa, %178 ]
  %181 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = getelementptr i8, ptr %182, i64 -24
  %184 = load i64, ptr %183, align 8
  %185 = getelementptr inbounds i8, ptr %181, i64 %184
  %186 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %185)
  %187 = load i32, ptr @N, align 4
  %188 = icmp sgt i32 %187, 0
  %189 = select i1 %186, i1 %188, i1 false
  br i1 %189, label %.preheader97, label %._crit_edge147, !llvm.loop !25

._crit_edge147:                                   ; preds = %.loopexit, %0
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(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_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) 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 #4

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


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