; LLVM IR from DionysiosB/CodeForces :: 1400-1499 (1421B-PuttingBricksInTheWall)

; 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_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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %14

14:                                               ; preds = %359, %0
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = add nsw i64 %15, -1
  store i64 %16, ptr %2, align 8, !tbaa !5
  %17 = icmp ne i64 %15, 0
  br i1 %17, label %18, label %365

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  %20 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %21 unwind label %27

21:                                               ; preds = %18
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %36, %21
  %23 = load i64, ptr %8, align 8, !tbaa !5
  %24 = load i64, ptr %3, align 8, !tbaa !5
  %25 = icmp slt i64 %23, %24
  br i1 %25, label %31, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %43

27:                                               ; preds = %18
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %6, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %7, align 4
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %364

31:                                               ; preds = %22
  %32 = load i64, ptr %8, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %32) #5
  %34 = 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) %33)
          to label %35 unwind label %39

35:                                               ; preds = %31
  br label %36

36:                                               ; preds = %35
  %37 = load i64, ptr %8, align 8, !tbaa !5
  %38 = add nsw i64 %37, 1
  store i64 %38, ptr %8, align 8, !tbaa !5
  br label %22, !llvm.loop !9

39:                                               ; preds = %31
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %6, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %363

43:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %45 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %44, i64 noundef 1)
          to label %46 unwind label %94

46:                                               ; preds = %43
  %47 = load i8, ptr %45, align 1, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = sub nsw i32 %48, 48
  %50 = sext i32 %49 to i64
  store i64 %50, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %51 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #5
  %52 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %51, i64 noundef 0)
          to label %53 unwind label %98

53:                                               ; preds = %46
  %54 = load i8, ptr %52, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = sub nsw i32 %55, 48
  %57 = sext i32 %56 to i64
  store i64 %57, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %58 = load i64, ptr %3, align 8, !tbaa !5
  %59 = sub nsw i64 %58, 2
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %59) #5
  %61 = load i64, ptr %3, align 8, !tbaa !5
  %62 = sub nsw i64 %61, 1
  %63 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %60, i64 noundef %62)
          to label %64 unwind label %102

64:                                               ; preds = %53
  %65 = load i8, ptr %63, align 1, !tbaa !11
  %66 = sext i8 %65 to i32
  %67 = sub nsw i32 %66, 48
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %69 = load i64, ptr %3, align 8, !tbaa !5
  %70 = sub nsw i64 %69, 1
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %70) #5
  %72 = load i64, ptr %3, align 8, !tbaa !5
  %73 = sub nsw i64 %72, 2
  %74 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %71, i64 noundef %73)
          to label %75 unwind label %106

75:                                               ; preds = %64
  %76 = load i8, ptr %74, align 1, !tbaa !11
  %77 = sext i8 %76 to i32
  %78 = sub nsw i32 %77, 48
  %79 = sext i32 %78 to i64
  store i64 %79, ptr %12, align 8, !tbaa !5
  %80 = load i64, ptr %9, align 8, !tbaa !5
  %81 = icmp eq i64 %80, 0
  br i1 %81, label %82, label %110

82:                                               ; preds = %75
  %83 = load i64, ptr %10, align 8, !tbaa !5
  %84 = icmp eq i64 %83, 0
  br i1 %84, label %85, label %110

85:                                               ; preds = %82
  %86 = load i64, ptr %11, align 8, !tbaa !5
  %87 = icmp eq i64 %86, 0
  br i1 %87, label %88, label %110

88:                                               ; preds = %85
  %89 = load i64, ptr %12, align 8, !tbaa !5
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %91, label %110

91:                                               ; preds = %88
  %92 = invoke i32 (ptr, ...) @printf(ptr noundef @.str)
          to label %93 unwind label %106

93:                                               ; preds = %91
  br label %110

94:                                               ; preds = %43
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %6, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %7, align 4
  br label %362

98:                                               ; preds = %46
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  br label %361

102:                                              ; preds = %53
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %6, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %7, align 4
  br label %360

106:                                              ; preds = %356, %338, %320, %305, %290, %272, %254, %239, %224, %206, %188, %173, %158, %140, %122, %91, %64
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %6, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %360

110:                                              ; preds = %93, %88, %85, %82, %75
  %111 = load i64, ptr %9, align 8, !tbaa !5
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %128

113:                                              ; preds = %110
  %114 = load i64, ptr %10, align 8, !tbaa !5
  %115 = icmp eq i64 %114, 0
  br i1 %115, label %116, label %128

116:                                              ; preds = %113
  %117 = load i64, ptr %11, align 8, !tbaa !5
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %119, label %128

119:                                              ; preds = %116
  %120 = load i64, ptr %12, align 8, !tbaa !5
  %121 = icmp eq i64 %120, 1
  br i1 %121, label %122, label %128

122:                                              ; preds = %119
  %123 = load i64, ptr %3, align 8, !tbaa !5
  %124 = sub nsw i64 %123, 1
  %125 = load i64, ptr %3, align 8, !tbaa !5
  %126 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %124, i64 noundef %125)
          to label %127 unwind label %106

127:                                              ; preds = %122
  br label %128

128:                                              ; preds = %127, %119, %116, %113, %110
  %129 = load i64, ptr %9, align 8, !tbaa !5
  %130 = icmp eq i64 %129, 0
  br i1 %130, label %131, label %146

131:                                              ; preds = %128
  %132 = load i64, ptr %10, align 8, !tbaa !5
  %133 = icmp eq i64 %132, 0
  br i1 %133, label %134, label %146

134:                                              ; preds = %131
  %135 = load i64, ptr %11, align 8, !tbaa !5
  %136 = icmp eq i64 %135, 1
  br i1 %136, label %137, label %146

137:                                              ; preds = %134
  %138 = load i64, ptr %12, align 8, !tbaa !5
  %139 = icmp eq i64 %138, 0
  br i1 %139, label %140, label %146

140:                                              ; preds = %137
  %141 = load i64, ptr %3, align 8, !tbaa !5
  %142 = load i64, ptr %3, align 8, !tbaa !5
  %143 = sub nsw i64 %142, 1
  %144 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %141, i64 noundef %143)
          to label %145 unwind label %106

145:                                              ; preds = %140
  br label %146

146:                                              ; preds = %145, %137, %134, %131, %128
  %147 = load i64, ptr %9, align 8, !tbaa !5
  %148 = icmp eq i64 %147, 0
  br i1 %148, label %149, label %161

149:                                              ; preds = %146
  %150 = load i64, ptr %10, align 8, !tbaa !5
  %151 = icmp eq i64 %150, 0
  br i1 %151, label %152, label %161

152:                                              ; preds = %149
  %153 = load i64, ptr %11, align 8, !tbaa !5
  %154 = icmp eq i64 %153, 1
  br i1 %154, label %155, label %161

155:                                              ; preds = %152
  %156 = load i64, ptr %12, align 8, !tbaa !5
  %157 = icmp eq i64 %156, 1
  br i1 %157, label %158, label %161

158:                                              ; preds = %155
  %159 = invoke i32 @puts(ptr noundef @.str.2)
          to label %160 unwind label %106

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %155, %152, %149, %146
  %162 = load i64, ptr %9, align 8, !tbaa !5
  %163 = icmp eq i64 %162, 0
  br i1 %163, label %164, label %176

164:                                              ; preds = %161
  %165 = load i64, ptr %10, align 8, !tbaa !5
  %166 = icmp eq i64 %165, 1
  br i1 %166, label %167, label %176

167:                                              ; preds = %164
  %168 = load i64, ptr %11, align 8, !tbaa !5
  %169 = icmp eq i64 %168, 0
  br i1 %169, label %170, label %176

170:                                              ; preds = %167
  %171 = load i64, ptr %12, align 8, !tbaa !5
  %172 = icmp eq i64 %171, 0
  br i1 %172, label %173, label %176

173:                                              ; preds = %170
  %174 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3)
          to label %175 unwind label %106

175:                                              ; preds = %173
  br label %176

176:                                              ; preds = %175, %170, %167, %164, %161
  %177 = load i64, ptr %9, align 8, !tbaa !5
  %178 = icmp eq i64 %177, 0
  br i1 %178, label %179, label %194

179:                                              ; preds = %176
  %180 = load i64, ptr %10, align 8, !tbaa !5
  %181 = icmp eq i64 %180, 1
  br i1 %181, label %182, label %194

182:                                              ; preds = %179
  %183 = load i64, ptr %11, align 8, !tbaa !5
  %184 = icmp eq i64 %183, 0
  br i1 %184, label %185, label %194

185:                                              ; preds = %182
  %186 = load i64, ptr %12, align 8, !tbaa !5
  %187 = icmp eq i64 %186, 1
  br i1 %187, label %188, label %194

188:                                              ; preds = %185
  %189 = load i64, ptr %3, align 8, !tbaa !5
  %190 = load i64, ptr %3, align 8, !tbaa !5
  %191 = sub nsw i64 %190, 1
  %192 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %189, i64 noundef %191)
          to label %193 unwind label %106

193:                                              ; preds = %188
  br label %194

194:                                              ; preds = %193, %185, %182, %179, %176
  %195 = load i64, ptr %9, align 8, !tbaa !5
  %196 = icmp eq i64 %195, 0
  br i1 %196, label %197, label %212

197:                                              ; preds = %194
  %198 = load i64, ptr %10, align 8, !tbaa !5
  %199 = icmp eq i64 %198, 1
  br i1 %199, label %200, label %212

200:                                              ; preds = %197
  %201 = load i64, ptr %11, align 8, !tbaa !5
  %202 = icmp eq i64 %201, 1
  br i1 %202, label %203, label %212

203:                                              ; preds = %200
  %204 = load i64, ptr %12, align 8, !tbaa !5
  %205 = icmp eq i64 %204, 0
  br i1 %205, label %206, label %212

206:                                              ; preds = %203
  %207 = load i64, ptr %3, align 8, !tbaa !5
  %208 = load i64, ptr %3, align 8, !tbaa !5
  %209 = sub nsw i64 %208, 1
  %210 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %207, i64 noundef %209)
          to label %211 unwind label %106

211:                                              ; preds = %206
  br label %212

212:                                              ; preds = %211, %203, %200, %197, %194
  %213 = load i64, ptr %9, align 8, !tbaa !5
  %214 = icmp eq i64 %213, 0
  br i1 %214, label %215, label %227

215:                                              ; preds = %212
  %216 = load i64, ptr %10, align 8, !tbaa !5
  %217 = icmp eq i64 %216, 1
  br i1 %217, label %218, label %227

218:                                              ; preds = %215
  %219 = load i64, ptr %11, align 8, !tbaa !5
  %220 = icmp eq i64 %219, 1
  br i1 %220, label %221, label %227

221:                                              ; preds = %218
  %222 = load i64, ptr %12, align 8, !tbaa !5
  %223 = icmp eq i64 %222, 1
  br i1 %223, label %224, label %227

224:                                              ; preds = %221
  %225 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6)
          to label %226 unwind label %106

226:                                              ; preds = %224
  br label %227

227:                                              ; preds = %226, %221, %218, %215, %212
  %228 = load i64, ptr %9, align 8, !tbaa !5
  %229 = icmp eq i64 %228, 1
  br i1 %229, label %230, label %242

230:                                              ; preds = %227
  %231 = load i64, ptr %10, align 8, !tbaa !5
  %232 = icmp eq i64 %231, 0
  br i1 %232, label %233, label %242

233:                                              ; preds = %230
  %234 = load i64, ptr %11, align 8, !tbaa !5
  %235 = icmp eq i64 %234, 0
  br i1 %235, label %236, label %242

236:                                              ; preds = %233
  %237 = load i64, ptr %12, align 8, !tbaa !5
  %238 = icmp eq i64 %237, 0
  br i1 %238, label %239, label %242

239:                                              ; preds = %236
  %240 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6)
          to label %241 unwind label %106

241:                                              ; preds = %239
  br label %242

242:                                              ; preds = %241, %236, %233, %230, %227
  %243 = load i64, ptr %9, align 8, !tbaa !5
  %244 = icmp eq i64 %243, 1
  br i1 %244, label %245, label %260

245:                                              ; preds = %242
  %246 = load i64, ptr %10, align 8, !tbaa !5
  %247 = icmp eq i64 %246, 0
  br i1 %247, label %248, label %260

248:                                              ; preds = %245
  %249 = load i64, ptr %11, align 8, !tbaa !5
  %250 = icmp eq i64 %249, 0
  br i1 %250, label %251, label %260

251:                                              ; preds = %248
  %252 = load i64, ptr %12, align 8, !tbaa !5
  %253 = icmp eq i64 %252, 1
  br i1 %253, label %254, label %260

254:                                              ; preds = %251
  %255 = load i64, ptr %3, align 8, !tbaa !5
  %256 = load i64, ptr %3, align 8, !tbaa !5
  %257 = sub nsw i64 %256, 1
  %258 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %255, i64 noundef %257)
          to label %259 unwind label %106

259:                                              ; preds = %254
  br label %260

260:                                              ; preds = %259, %251, %248, %245, %242
  %261 = load i64, ptr %9, align 8, !tbaa !5
  %262 = icmp eq i64 %261, 1
  br i1 %262, label %263, label %278

263:                                              ; preds = %260
  %264 = load i64, ptr %10, align 8, !tbaa !5
  %265 = icmp eq i64 %264, 0
  br i1 %265, label %266, label %278

266:                                              ; preds = %263
  %267 = load i64, ptr %11, align 8, !tbaa !5
  %268 = icmp eq i64 %267, 1
  br i1 %268, label %269, label %278

269:                                              ; preds = %266
  %270 = load i64, ptr %12, align 8, !tbaa !5
  %271 = icmp eq i64 %270, 0
  br i1 %271, label %272, label %278

272:                                              ; preds = %269
  %273 = load i64, ptr %3, align 8, !tbaa !5
  %274 = load i64, ptr %3, align 8, !tbaa !5
  %275 = sub nsw i64 %274, 1
  %276 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %273, i64 noundef %275)
          to label %277 unwind label %106

277:                                              ; preds = %272
  br label %278

278:                                              ; preds = %277, %269, %266, %263, %260
  %279 = load i64, ptr %9, align 8, !tbaa !5
  %280 = icmp eq i64 %279, 1
  br i1 %280, label %281, label %293

281:                                              ; preds = %278
  %282 = load i64, ptr %10, align 8, !tbaa !5
  %283 = icmp eq i64 %282, 0
  br i1 %283, label %284, label %293

284:                                              ; preds = %281
  %285 = load i64, ptr %11, align 8, !tbaa !5
  %286 = icmp eq i64 %285, 1
  br i1 %286, label %287, label %293

287:                                              ; preds = %284
  %288 = load i64, ptr %12, align 8, !tbaa !5
  %289 = icmp eq i64 %288, 1
  br i1 %289, label %290, label %293

290:                                              ; preds = %287
  %291 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3)
          to label %292 unwind label %106

292:                                              ; preds = %290
  br label %293

293:                                              ; preds = %292, %287, %284, %281, %278
  %294 = load i64, ptr %9, align 8, !tbaa !5
  %295 = icmp eq i64 %294, 1
  br i1 %295, label %296, label %308

296:                                              ; preds = %293
  %297 = load i64, ptr %10, align 8, !tbaa !5
  %298 = icmp eq i64 %297, 1
  br i1 %298, label %299, label %308

299:                                              ; preds = %296
  %300 = load i64, ptr %11, align 8, !tbaa !5
  %301 = icmp eq i64 %300, 0
  br i1 %301, label %302, label %308

302:                                              ; preds = %299
  %303 = load i64, ptr %12, align 8, !tbaa !5
  %304 = icmp eq i64 %303, 0
  br i1 %304, label %305, label %308

305:                                              ; preds = %302
  %306 = invoke i32 @puts(ptr noundef @.str.2)
          to label %307 unwind label %106

307:                                              ; preds = %305
  br label %308

308:                                              ; preds = %307, %302, %299, %296, %293
  %309 = load i64, ptr %9, align 8, !tbaa !5
  %310 = icmp eq i64 %309, 1
  br i1 %310, label %311, label %326

311:                                              ; preds = %308
  %312 = load i64, ptr %10, align 8, !tbaa !5
  %313 = icmp eq i64 %312, 1
  br i1 %313, label %314, label %326

314:                                              ; preds = %311
  %315 = load i64, ptr %11, align 8, !tbaa !5
  %316 = icmp eq i64 %315, 0
  br i1 %316, label %317, label %326

317:                                              ; preds = %314
  %318 = load i64, ptr %12, align 8, !tbaa !5
  %319 = icmp eq i64 %318, 1
  br i1 %319, label %320, label %326

320:                                              ; preds = %317
  %321 = load i64, ptr %3, align 8, !tbaa !5
  %322 = load i64, ptr %3, align 8, !tbaa !5
  %323 = sub nsw i64 %322, 1
  %324 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %321, i64 noundef %323)
          to label %325 unwind label %106

325:                                              ; preds = %320
  br label %326

326:                                              ; preds = %325, %317, %314, %311, %308
  %327 = load i64, ptr %9, align 8, !tbaa !5
  %328 = icmp eq i64 %327, 1
  br i1 %328, label %329, label %344

329:                                              ; preds = %326
  %330 = load i64, ptr %10, align 8, !tbaa !5
  %331 = icmp eq i64 %330, 1
  br i1 %331, label %332, label %344

332:                                              ; preds = %329
  %333 = load i64, ptr %11, align 8, !tbaa !5
  %334 = icmp eq i64 %333, 1
  br i1 %334, label %335, label %344

335:                                              ; preds = %332
  %336 = load i64, ptr %12, align 8, !tbaa !5
  %337 = icmp eq i64 %336, 0
  br i1 %337, label %338, label %344

338:                                              ; preds = %335
  %339 = load i64, ptr %3, align 8, !tbaa !5
  %340 = sub nsw i64 %339, 1
  %341 = load i64, ptr %3, align 8, !tbaa !5
  %342 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %340, i64 noundef %341)
          to label %343 unwind label %106

343:                                              ; preds = %338
  br label %344

344:                                              ; preds = %343, %335, %332, %329, %326
  %345 = load i64, ptr %9, align 8, !tbaa !5
  %346 = icmp eq i64 %345, 1
  br i1 %346, label %347, label %359

347:                                              ; preds = %344
  %348 = load i64, ptr %10, align 8, !tbaa !5
  %349 = icmp eq i64 %348, 1
  br i1 %349, label %350, label %359

350:                                              ; preds = %347
  %351 = load i64, ptr %11, align 8, !tbaa !5
  %352 = icmp eq i64 %351, 1
  br i1 %352, label %353, label %359

353:                                              ; preds = %350
  %354 = load i64, ptr %12, align 8, !tbaa !5
  %355 = icmp eq i64 %354, 1
  br i1 %355, label %356, label %359

356:                                              ; preds = %353
  %357 = invoke i32 (ptr, ...) @printf(ptr noundef @.str)
          to label %358 unwind label %106

358:                                              ; preds = %356
  br label %359

359:                                              ; preds = %358, %353, %350, %347, %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %14, !llvm.loop !12

360:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %361

361:                                              ; preds = %360, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %362

362:                                              ; preds = %361, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %363

363:                                              ; preds = %362, %39
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %364

364:                                              ; preds = %363, %27
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %366

365:                                              ; preds = %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  ret i32 0

366:                                              ; preds = %364
  %367 = load ptr, ptr %6, align 8
  %368 = load i32, ptr %7, align 4
  %369 = insertvalue { ptr, i32 } poison, ptr %367, 0
  %370 = insertvalue { ptr, i32 } %369, i32 %368, 1
  resume { ptr, i32 } %370
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

declare i32 @puts(ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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


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

%"class.std::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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 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 i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = add nsw i64 %6, -1
  store i64 %7, ptr %1, align 8, !tbaa !5
  %.not187 = icmp eq i64 %6, 0
  br i1 %.not187, label %._crit_edge190, label %.lr.ph189

.lr.ph189:                                        ; preds = %0, %134
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %9 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2EmRKS6_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %9, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %10 unwind label %15

10:                                               ; preds = %.lr.ph189
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %11 = load i64, ptr %2, align 8, !tbaa !5
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %19, %10
  %13 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %14 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef 1)
          to label %25 unwind label %60

15:                                               ; preds = %.lr.ph189
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %138

.lr.ph:                                           ; preds = %10, %19
  %.0168186 = phi i64 [ %20, %19 ], [ 0, %10 ]
  %17 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0168186) #6
  %18 = 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) %17)
          to label %19 unwind label %23

19:                                               ; preds = %.lr.ph
  %20 = add nuw nsw i64 %.0168186, 1
  %21 = load i64, ptr %2, align 8, !tbaa !5
  %22 = icmp slt i64 %20, %21
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !9

23:                                               ; preds = %.lr.ph
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %137

25:                                               ; preds = %._crit_edge
  %26 = load i8, ptr %14, align 1, !tbaa !11
  %27 = sext i8 %26 to i64
  %28 = add nsw i64 %27, -48
  %29 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  %30 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %29, i64 noundef 0)
          to label %31 unwind label %62

31:                                               ; preds = %25
  %32 = load i8, ptr %30, align 1, !tbaa !11
  %33 = sext i8 %32 to i64
  %34 = add nsw i64 %33, -48
  %35 = load i64, ptr %2, align 8, !tbaa !5
  %36 = add nsw i64 %35, -2
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %36) #6
  %38 = load i64, ptr %2, align 8, !tbaa !5
  %39 = add nsw i64 %38, -1
  %40 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef %39)
          to label %41 unwind label %64

41:                                               ; preds = %31
  %42 = load i8, ptr %40, align 1, !tbaa !11
  %43 = sext i8 %42 to i64
  %44 = add nsw i64 %43, -48
  %45 = load i64, ptr %2, align 8, !tbaa !5
  %46 = add nsw i64 %45, -1
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %46) #6
  %48 = load i64, ptr %2, align 8, !tbaa !5
  %49 = add nsw i64 %48, -2
  %50 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %47, i64 noundef %49)
          to label %51 unwind label %66

51:                                               ; preds = %41
  %52 = load i8, ptr %50, align 1, !tbaa !11
  %53 = sext i8 %52 to i64
  %54 = add nsw i64 %53, -48
  %55 = icmp eq i64 %28, 0
  %56 = icmp eq i64 %34, 0
  %or.cond = select i1 %55, i1 %56, i1 false
  %57 = icmp eq i64 %44, 0
  %or.cond3 = select i1 %or.cond, i1 %57, i1 false
  %58 = icmp eq i64 %54, 0
  %or.cond5 = select i1 %or.cond3, i1 %58, i1 false
  br i1 %or.cond5, label %.thread, label %68

.thread:                                          ; preds = %51
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %.thread193

60:                                               ; preds = %._crit_edge
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %137

62:                                               ; preds = %25
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %137

64:                                               ; preds = %31
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %137

66:                                               ; preds = %41
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %137

68:                                               ; preds = %51
  %69 = icmp eq i64 %54, 1
  %or.cond11 = select i1 %or.cond3, i1 %69, i1 false
  br i1 %or.cond11, label %70, label %74

70:                                               ; preds = %68
  %71 = load i64, ptr %2, align 8, !tbaa !5
  %72 = add nsw i64 %71, -1
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %72, i64 noundef %71)
  br label %.thread193

74:                                               ; preds = %68
  %75 = icmp eq i64 %44, 1
  %or.cond15 = select i1 %or.cond, i1 %75, i1 false
  %or.cond17 = select i1 %or.cond15, i1 %58, i1 false
  br i1 %or.cond17, label %76, label %.thread176

76:                                               ; preds = %74
  %77 = load i64, ptr %2, align 8, !tbaa !5
  %78 = add nsw i64 %77, -1
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %77, i64 noundef %78)
  br label %.thread176

.thread193:                                       ; preds = %70, %.thread
  %.ph = xor i1 %or.cond5, true
  br label %87

.thread176:                                       ; preds = %76, %74
  %or.cond15179 = phi i1 [ true, %76 ], [ %or.cond15, %74 ]
  %80 = phi i1 [ true, %76 ], [ %75, %74 ]
  %or.cond23 = select i1 %or.cond15179, i1 %69, i1 false
  br i1 %or.cond23, label %81, label %83

81:                                               ; preds = %.thread176
  %82 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %83

83:                                               ; preds = %81, %.thread176
  %84 = icmp eq i64 %34, 1
  %or.cond25 = select i1 %55, i1 %84, i1 false
  %or.cond27 = select i1 %or.cond25, i1 %57, i1 false
  %or.cond29 = select i1 %or.cond27, i1 %58, i1 false
  br i1 %or.cond29, label %85, label %87

85:                                               ; preds = %83
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %87

87:                                               ; preds = %.thread193, %85, %83
  %or.cond27198 = phi i1 [ false, %.thread193 ], [ %or.cond27, %85 ], [ %or.cond27, %83 ]
  %or.cond25197 = phi i1 [ false, %.thread193 ], [ %or.cond25, %85 ], [ %or.cond25, %83 ]
  %88 = phi i1 [ false, %.thread193 ], [ %84, %85 ], [ %84, %83 ]
  %89 = phi i1 [ false, %.thread193 ], [ %80, %85 ], [ %80, %83 ]
  %90 = phi i1 [ %.ph, %.thread193 ], [ %69, %85 ], [ %69, %83 ]
  %or.cond35 = select i1 %or.cond27198, i1 %90, i1 false
  br i1 %or.cond35, label %91, label %95

91:                                               ; preds = %87
  %92 = load i64, ptr %2, align 8, !tbaa !5
  %93 = add nsw i64 %92, -1
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %92, i64 noundef %93)
  br label %95

95:                                               ; preds = %91, %87
  %or.cond39 = select i1 %or.cond25197, i1 %89, i1 false
  %or.cond41 = select i1 %or.cond39, i1 %58, i1 false
  br i1 %or.cond41, label %96, label %100

96:                                               ; preds = %95
  %97 = load i64, ptr %2, align 8, !tbaa !5
  %98 = add nsw i64 %97, -1
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %97, i64 noundef %98)
  br label %100

100:                                              ; preds = %96, %95
  %or.cond47 = select i1 %or.cond39, i1 %90, i1 false
  br i1 %or.cond47, label %.sink.split, label %101

101:                                              ; preds = %100
  %102 = icmp eq i64 %28, 1
  %or.cond49 = select i1 %102, i1 %56, i1 false
  %or.cond51 = select i1 %or.cond49, i1 %57, i1 false
  %or.cond53 = select i1 %or.cond51, i1 %58, i1 false
  br i1 %or.cond53, label %103, label %105

103:                                              ; preds = %101
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %105

105:                                              ; preds = %103, %101
  %or.cond51185 = phi i1 [ true, %103 ], [ %or.cond51, %101 ]
  %or.cond49184 = phi i1 [ true, %103 ], [ %or.cond49, %101 ]
  %106 = phi i1 [ true, %103 ], [ %102, %101 ]
  %or.cond59 = select i1 %or.cond51185, i1 %90, i1 false
  br i1 %or.cond59, label %107, label %111

107:                                              ; preds = %105
  %108 = load i64, ptr %2, align 8, !tbaa !5
  %109 = add nsw i64 %108, -1
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %108, i64 noundef %109)
  br label %111

111:                                              ; preds = %107, %105
  %or.cond63 = select i1 %or.cond49184, i1 %89, i1 false
  %or.cond65 = select i1 %or.cond63, i1 %58, i1 false
  br i1 %or.cond65, label %112, label %116

112:                                              ; preds = %111
  %113 = load i64, ptr %2, align 8, !tbaa !5
  %114 = add nsw i64 %113, -1
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %113, i64 noundef %114)
  br label %116

116:                                              ; preds = %112, %111
  %or.cond71 = select i1 %or.cond63, i1 %90, i1 false
  br i1 %or.cond71, label %117, label %119

117:                                              ; preds = %116
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %119

119:                                              ; preds = %117, %116
  %or.cond73 = select i1 %106, i1 %88, i1 false
  %or.cond75 = select i1 %or.cond73, i1 %57, i1 false
  %or.cond77 = select i1 %or.cond75, i1 %58, i1 false
  br i1 %or.cond77, label %120, label %122

120:                                              ; preds = %119
  %121 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %122

122:                                              ; preds = %120, %119
  %or.cond83 = select i1 %or.cond75, i1 %90, i1 false
  br i1 %or.cond83, label %123, label %127

123:                                              ; preds = %122
  %124 = load i64, ptr %2, align 8, !tbaa !5
  %125 = add nsw i64 %124, -1
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %124, i64 noundef %125)
  br label %127

127:                                              ; preds = %123, %122
  %or.cond87 = select i1 %or.cond73, i1 %89, i1 false
  %or.cond89 = select i1 %or.cond87, i1 %58, i1 false
  br i1 %or.cond89, label %128, label %132

128:                                              ; preds = %127
  %129 = load i64, ptr %2, align 8, !tbaa !5
  %130 = add nsw i64 %129, -1
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %130, i64 noundef %129)
  br label %132

132:                                              ; preds = %128, %127
  %or.cond95 = select i1 %or.cond87, i1 %90, i1 false
  br i1 %or.cond95, label %.sink.split, label %134

.sink.split:                                      ; preds = %132, %100
  %.str.6.sink = phi ptr [ @.str.6, %100 ], [ @.str, %132 ]
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink)
  br label %134

134:                                              ; preds = %.sink.split, %132
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %135 = load i64, ptr %1, align 8, !tbaa !5
  %136 = add nsw i64 %135, -1
  store i64 %136, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %135, 0
  br i1 %.not, label %._crit_edge190, label %.lr.ph189, !llvm.loop !12

137:                                              ; preds = %60, %64, %66, %62, %23
  %.pn172 = phi { ptr, i32 } [ %24, %23 ], [ %61, %60 ], [ %63, %62 ], [ %67, %66 ], [ %65, %64 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %138

138:                                              ; preds = %137, %15
  %.pn172.pn = phi { ptr, i32 } [ %.pn172, %137 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn172.pn

._crit_edge190:                                   ; preds = %134, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress 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 #2 align 2

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass