; LLVM IR from DionysiosB/CodeForces :: 0500-0599 (508A-PashaAndPixels)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"class.std::allocator" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 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 i64, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::allocator.4", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca %"struct.std::_Bit_reference", align 8
  %19 = alloca %"struct.std::_Bit_reference", align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca %"struct.std::_Bit_reference", align 8
  %25 = alloca %"struct.std::_Bit_reference", align 8
  %26 = alloca %"struct.std::_Bit_reference", align 8
  %27 = alloca %"struct.std::_Bit_reference", align 8
  %28 = alloca %"struct.std::_Bit_reference", align 8
  %29 = alloca %"struct.std::_Bit_reference", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  %31 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  %32 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %32, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %33 unwind label %40

33:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @_ZNSaISt6vectorIbSaIbEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %31, ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %34 unwind label %44

34:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 1, ptr %13, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %329, %34
  %36 = load i64, ptr %13, align 8, !tbaa !5
  %37 = load i64, ptr %4, align 8, !tbaa !5
  %38 = icmp sle i64 %36, %37
  br i1 %38, label %49, label %39

39:                                               ; preds = %35
  store i32 2, ptr %14, align 4
  br label %333

40:                                               ; preds = %0
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %9, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %10, align 4
  br label %48

44:                                               ; preds = %33
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %9, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #5
  br label %48

48:                                               ; preds = %44, %40
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  br label %344

49:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %50 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %15, ptr noundef %16)
          to label %51 unwind label %112

51:                                               ; preds = %49
  %52 = load i64, ptr %15, align 8, !tbaa !5
  %53 = add nsw i64 %52, -1
  store i64 %53, ptr %15, align 8, !tbaa !5
  %54 = load i64, ptr %16, align 8, !tbaa !5
  %55 = add nsw i64 %54, -1
  store i64 %55, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %56 = load i64, ptr %15, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %56) #5
  %58 = load i64, ptr %16, align 8, !tbaa !5
  %59 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %57, i64 noundef %58)
          to label %60 unwind label %116

60:                                               ; preds = %51
  %61 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %62 = extractvalue { ptr, i64 } %59, 0
  store ptr %62, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %64 = extractvalue { ptr, i64 } %59, 1
  store i64 %64, ptr %63, align 8
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext true) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  %66 = load i64, ptr %15, align 8, !tbaa !5
  %67 = icmp sgt i64 %66, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  br i1 %67, label %68, label %108

68:                                               ; preds = %60
  %69 = load i64, ptr %16, align 8, !tbaa !5
  %70 = icmp sgt i64 %69, 0
  br i1 %70, label %71, label %108

71:                                               ; preds = %68
  %72 = load i64, ptr %15, align 8, !tbaa !5
  %73 = sub nsw i64 %72, 1
  %74 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %73) #5
  %75 = load i64, ptr %16, align 8, !tbaa !5
  %76 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %74, i64 noundef %75)
          to label %77 unwind label %120

77:                                               ; preds = %71
  %78 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %79 = extractvalue { ptr, i64 } %76, 0
  store ptr %79, ptr %78, align 8
  %80 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %81 = extractvalue { ptr, i64 } %76, 1
  store i64 %81, ptr %80, align 8
  %82 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br i1 %82, label %83, label %108

83:                                               ; preds = %77
  %84 = load i64, ptr %15, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %84) #5
  %86 = load i64, ptr %16, align 8, !tbaa !5
  %87 = sub nsw i64 %86, 1
  %88 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %85, i64 noundef %87)
          to label %89 unwind label %124

89:                                               ; preds = %83
  %90 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %91 = extractvalue { ptr, i64 } %88, 0
  store ptr %91, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %93 = extractvalue { ptr, i64 } %88, 1
  store i64 %93, ptr %92, align 8
  %94 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br i1 %94, label %95, label %108

95:                                               ; preds = %89
  %96 = load i64, ptr %15, align 8, !tbaa !5
  %97 = sub nsw i64 %96, 1
  %98 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %97) #5
  %99 = load i64, ptr %16, align 8, !tbaa !5
  %100 = sub nsw i64 %99, 1
  %101 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %98, i64 noundef %100)
          to label %102 unwind label %128

102:                                              ; preds = %95
  %103 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %104 = extractvalue { ptr, i64 } %101, 0
  store ptr %104, ptr %103, align 8
  %105 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %106 = extractvalue { ptr, i64 } %101, 1
  store i64 %106, ptr %105, align 8
  %107 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  br label %108

108:                                              ; preds = %102, %89, %77, %68, %60
  %109 = phi i1 [ false, %89 ], [ false, %77 ], [ false, %68 ], [ false, %60 ], [ %107, %102 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br i1 %109, label %110, label %134

110:                                              ; preds = %108
  %111 = load i64, ptr %13, align 8, !tbaa !5
  store i64 %111, ptr %12, align 8, !tbaa !5
  store i32 2, ptr %14, align 4
  br label %326

112:                                              ; preds = %49
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  br label %332

116:                                              ; preds = %51
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %9, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %332

120:                                              ; preds = %71
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %9, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %10, align 4
  br label %133

124:                                              ; preds = %83
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %9, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %10, align 4
  br label %132

128:                                              ; preds = %95
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %132

132:                                              ; preds = %128, %124
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %133

133:                                              ; preds = %132, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %332

134:                                              ; preds = %108
  %135 = load i64, ptr %15, align 8, !tbaa !5
  %136 = icmp sgt i64 %135, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  br i1 %136, label %137, label %179

137:                                              ; preds = %134
  %138 = load i64, ptr %16, align 8, !tbaa !5
  %139 = load i64, ptr %3, align 8, !tbaa !5
  %140 = sub nsw i64 %139, 1
  %141 = icmp slt i64 %138, %140
  br i1 %141, label %142, label %179

142:                                              ; preds = %137
  %143 = load i64, ptr %15, align 8, !tbaa !5
  %144 = sub nsw i64 %143, 1
  %145 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %144) #5
  %146 = load i64, ptr %16, align 8, !tbaa !5
  %147 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %145, i64 noundef %146)
          to label %148 unwind label %183

148:                                              ; preds = %142
  %149 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %150 = extractvalue { ptr, i64 } %147, 0
  store ptr %150, ptr %149, align 8
  %151 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %152 = extractvalue { ptr, i64 } %147, 1
  store i64 %152, ptr %151, align 8
  %153 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br i1 %153, label %154, label %179

154:                                              ; preds = %148
  %155 = load i64, ptr %15, align 8, !tbaa !5
  %156 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %155) #5
  %157 = load i64, ptr %16, align 8, !tbaa !5
  %158 = add nsw i64 %157, 1
  %159 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %156, i64 noundef %158)
          to label %160 unwind label %187

160:                                              ; preds = %154
  %161 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %162 = extractvalue { ptr, i64 } %159, 0
  store ptr %162, ptr %161, align 8
  %163 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %164 = extractvalue { ptr, i64 } %159, 1
  store i64 %164, ptr %163, align 8
  %165 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  br i1 %165, label %166, label %179

166:                                              ; preds = %160
  %167 = load i64, ptr %15, align 8, !tbaa !5
  %168 = sub nsw i64 %167, 1
  %169 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %168) #5
  %170 = load i64, ptr %16, align 8, !tbaa !5
  %171 = add nsw i64 %170, 1
  %172 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %169, i64 noundef %171)
          to label %173 unwind label %191

173:                                              ; preds = %166
  %174 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %175 = extractvalue { ptr, i64 } %172, 0
  store ptr %175, ptr %174, align 8
  %176 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %177 = extractvalue { ptr, i64 } %172, 1
  store i64 %177, ptr %176, align 8
  %178 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  br label %179

179:                                              ; preds = %173, %160, %148, %137, %134
  %180 = phi i1 [ false, %160 ], [ false, %148 ], [ false, %137 ], [ false, %134 ], [ %178, %173 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br i1 %180, label %181, label %197

181:                                              ; preds = %179
  %182 = load i64, ptr %13, align 8, !tbaa !5
  store i64 %182, ptr %12, align 8, !tbaa !5
  store i32 2, ptr %14, align 4
  br label %326

183:                                              ; preds = %142
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %9, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %10, align 4
  br label %196

187:                                              ; preds = %154
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %9, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %10, align 4
  br label %195

191:                                              ; preds = %166
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %9, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br label %195

195:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %196

196:                                              ; preds = %195, %183
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %332

197:                                              ; preds = %179
  %198 = load i64, ptr %15, align 8, !tbaa !5
  %199 = load i64, ptr %2, align 8, !tbaa !5
  %200 = sub nsw i64 %199, 1
  %201 = icmp slt i64 %198, %200
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  br i1 %201, label %202, label %242

202:                                              ; preds = %197
  %203 = load i64, ptr %16, align 8, !tbaa !5
  %204 = icmp sgt i64 %203, 0
  br i1 %204, label %205, label %242

205:                                              ; preds = %202
  %206 = load i64, ptr %15, align 8, !tbaa !5
  %207 = add nsw i64 %206, 1
  %208 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %207) #5
  %209 = load i64, ptr %16, align 8, !tbaa !5
  %210 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %208, i64 noundef %209)
          to label %211 unwind label %246

211:                                              ; preds = %205
  %212 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %213 = extractvalue { ptr, i64 } %210, 0
  store ptr %213, ptr %212, align 8
  %214 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %215 = extractvalue { ptr, i64 } %210, 1
  store i64 %215, ptr %214, align 8
  %216 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  br i1 %216, label %217, label %242

217:                                              ; preds = %211
  %218 = load i64, ptr %15, align 8, !tbaa !5
  %219 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %218) #5
  %220 = load i64, ptr %16, align 8, !tbaa !5
  %221 = sub nsw i64 %220, 1
  %222 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %219, i64 noundef %221)
          to label %223 unwind label %250

223:                                              ; preds = %217
  %224 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %225 = extractvalue { ptr, i64 } %222, 0
  store ptr %225, ptr %224, align 8
  %226 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %227 = extractvalue { ptr, i64 } %222, 1
  store i64 %227, ptr %226, align 8
  %228 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  br i1 %228, label %229, label %242

229:                                              ; preds = %223
  %230 = load i64, ptr %15, align 8, !tbaa !5
  %231 = add nsw i64 %230, 1
  %232 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %231) #5
  %233 = load i64, ptr %16, align 8, !tbaa !5
  %234 = sub nsw i64 %233, 1
  %235 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %232, i64 noundef %234)
          to label %236 unwind label %254

236:                                              ; preds = %229
  %237 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %238 = extractvalue { ptr, i64 } %235, 0
  store ptr %238, ptr %237, align 8
  %239 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %240 = extractvalue { ptr, i64 } %235, 1
  store i64 %240, ptr %239, align 8
  %241 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  br label %242

242:                                              ; preds = %236, %223, %211, %202, %197
  %243 = phi i1 [ false, %223 ], [ false, %211 ], [ false, %202 ], [ false, %197 ], [ %241, %236 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br i1 %243, label %244, label %260

244:                                              ; preds = %242
  %245 = load i64, ptr %13, align 8, !tbaa !5
  store i64 %245, ptr %12, align 8, !tbaa !5
  store i32 2, ptr %14, align 4
  br label %326

246:                                              ; preds = %205
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %9, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %10, align 4
  br label %259

250:                                              ; preds = %217
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %9, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %10, align 4
  br label %258

254:                                              ; preds = %229
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %9, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %258

258:                                              ; preds = %254, %250
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %259

259:                                              ; preds = %258, %246
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br label %332

260:                                              ; preds = %242
  %261 = load i64, ptr %15, align 8, !tbaa !5
  %262 = load i64, ptr %2, align 8, !tbaa !5
  %263 = sub nsw i64 %262, 1
  %264 = icmp slt i64 %261, %263
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  br i1 %264, label %265, label %307

265:                                              ; preds = %260
  %266 = load i64, ptr %16, align 8, !tbaa !5
  %267 = load i64, ptr %3, align 8, !tbaa !5
  %268 = sub nsw i64 %267, 1
  %269 = icmp slt i64 %266, %268
  br i1 %269, label %270, label %307

270:                                              ; preds = %265
  %271 = load i64, ptr %15, align 8, !tbaa !5
  %272 = add nsw i64 %271, 1
  %273 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %272) #5
  %274 = load i64, ptr %16, align 8, !tbaa !5
  %275 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %273, i64 noundef %274)
          to label %276 unwind label %311

276:                                              ; preds = %270
  %277 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %278 = extractvalue { ptr, i64 } %275, 0
  store ptr %278, ptr %277, align 8
  %279 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %280 = extractvalue { ptr, i64 } %275, 1
  store i64 %280, ptr %279, align 8
  %281 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  br i1 %281, label %282, label %307

282:                                              ; preds = %276
  %283 = load i64, ptr %15, align 8, !tbaa !5
  %284 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %283) #5
  %285 = load i64, ptr %16, align 8, !tbaa !5
  %286 = add nsw i64 %285, 1
  %287 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %284, i64 noundef %286)
          to label %288 unwind label %315

288:                                              ; preds = %282
  %289 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %290 = extractvalue { ptr, i64 } %287, 0
  store ptr %290, ptr %289, align 8
  %291 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %292 = extractvalue { ptr, i64 } %287, 1
  store i64 %292, ptr %291, align 8
  %293 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #5
  br i1 %293, label %294, label %307

294:                                              ; preds = %288
  %295 = load i64, ptr %15, align 8, !tbaa !5
  %296 = add nsw i64 %295, 1
  %297 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %296) #5
  %298 = load i64, ptr %16, align 8, !tbaa !5
  %299 = add nsw i64 %298, 1
  %300 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %297, i64 noundef %299)
          to label %301 unwind label %319

301:                                              ; preds = %294
  %302 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %303 = extractvalue { ptr, i64 } %300, 0
  store ptr %303, ptr %302, align 8
  %304 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %305 = extractvalue { ptr, i64 } %300, 1
  store i64 %305, ptr %304, align 8
  %306 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %29) #5
  br label %307

307:                                              ; preds = %301, %288, %276, %265, %260
  %308 = phi i1 [ false, %288 ], [ false, %276 ], [ false, %265 ], [ false, %260 ], [ %306, %301 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  br i1 %308, label %309, label %325

309:                                              ; preds = %307
  %310 = load i64, ptr %13, align 8, !tbaa !5
  store i64 %310, ptr %12, align 8, !tbaa !5
  store i32 2, ptr %14, align 4
  br label %326

311:                                              ; preds = %270
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %9, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %10, align 4
  br label %324

315:                                              ; preds = %282
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %9, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %10, align 4
  br label %323

319:                                              ; preds = %294
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %9, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  br label %323

323:                                              ; preds = %319, %315
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br label %324

324:                                              ; preds = %323, %311
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  br label %332

325:                                              ; preds = %307
  store i32 0, ptr %14, align 4
  br label %326

326:                                              ; preds = %325, %309, %244, %181, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %327 = load i32, ptr %14, align 4
  switch i32 %327, label %333 [
    i32 0, label %328
  ]

328:                                              ; preds = %326
  br label %329

329:                                              ; preds = %328
  %330 = load i64, ptr %13, align 8, !tbaa !5
  %331 = add nsw i64 %330, 1
  store i64 %331, ptr %13, align 8, !tbaa !5
  br label %35, !llvm.loop !11

332:                                              ; preds = %324, %259, %196, %133, %116, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %343

333:                                              ; preds = %326, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %334

334:                                              ; preds = %333
  %335 = load i64, ptr %12, align 8, !tbaa !5
  %336 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %335)
          to label %337 unwind label %339

337:                                              ; preds = %334
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  %338 = load i32, ptr %1, align 4
  ret i32 %338

339:                                              ; preds = %334
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %9, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %10, align 4
  br label %343

343:                                              ; preds = %339, %332
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %344

344:                                              ; preds = %343, %48
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 %345

345:                                              ; preds = %344
  %346 = load ptr, ptr %9, align 8
  %347 = load i32, ptr %10, align 4
  %348 = insertvalue { ptr, i32 } poison, ptr %346, 0
  %349 = insertvalue { ptr, i32 } %348, i32 %347, 1
  resume { ptr, i32 } %349
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(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 = { "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 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.4" = type { i8 }
%"class.std::allocator" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 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 i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::allocator.4", align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.std::_Bit_reference", align 8
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %"struct.std::_Bit_reference", align 8
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca %"struct.std::_Bit_reference", align 8
  %19 = alloca %"struct.std::_Bit_reference", align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %25 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  %26 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %5, i64 noundef %26, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %27 unwind label %43

27:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaISt6vectorIbSaIbEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIS_IbSaIbEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %25, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %28 unwind label %45

28:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  %29 = load i64, ptr %3, align 8, !tbaa !5
  %.not66 = icmp slt i64 %29, 1
  br i1 %.not66, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %28
  %30 = getelementptr inbounds i8, ptr %11, i64 8
  %31 = getelementptr inbounds i8, ptr %12, i64 8
  %32 = getelementptr inbounds i8, ptr %13, i64 8
  %33 = getelementptr inbounds i8, ptr %14, i64 8
  %34 = getelementptr inbounds i8, ptr %15, i64 8
  %35 = getelementptr inbounds i8, ptr %16, i64 8
  %36 = getelementptr inbounds i8, ptr %17, i64 8
  %37 = getelementptr inbounds i8, ptr %18, i64 8
  %38 = getelementptr inbounds i8, ptr %19, i64 8
  %39 = getelementptr inbounds i8, ptr %20, i64 8
  %40 = getelementptr inbounds i8, ptr %21, i64 8
  %41 = getelementptr inbounds i8, ptr %22, i64 8
  %42 = getelementptr inbounds i8, ptr %23, i64 8
  br label %48

43:                                               ; preds = %0
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %27
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #5
  br label %47

47:                                               ; preds = %45, %43
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %249

48:                                               ; preds = %.lr.ph, %244
  %.01967 = phi i64 [ 1, %.lr.ph ], [ %245, %244 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %50 = load i64, ptr %9, align 8, !tbaa !5
  %51 = add nsw i64 %50, -1
  store i64 %51, ptr %9, align 8, !tbaa !5
  %52 = load i64, ptr %10, align 8, !tbaa !5
  %53 = add nsw i64 %52, -1
  store i64 %53, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %54 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %51) #5
  %55 = load i64, ptr %10, align 8, !tbaa !5
  %56 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %54, i64 noundef %55)
          to label %57 unwind label %95

57:                                               ; preds = %48
  %58 = extractvalue { ptr, i64 } %56, 0
  store ptr %58, ptr %11, align 8
  %59 = extractvalue { ptr, i64 } %56, 1
  store i64 %59, ptr %30, align 8
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext true) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  %61 = load i64, ptr %9, align 8, !tbaa !5
  %62 = icmp sgt i64 %61, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %63 = load i64, ptr %10, align 8
  %64 = icmp sgt i64 %63, 0
  %or.cond = select i1 %62, i1 %64, i1 false
  br i1 %or.cond, label %65, label %.critedge

65:                                               ; preds = %57
  %66 = add nsw i64 %61, -1
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %66) #5
  %68 = load i64, ptr %10, align 8, !tbaa !5
  %69 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %67, i64 noundef %68)
          to label %70 unwind label %97

70:                                               ; preds = %65
  %71 = extractvalue { ptr, i64 } %69, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i64 } %69, 1
  store i64 %72, ptr %31, align 8
  %73 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br i1 %73, label %74, label %.critedge

74:                                               ; preds = %70
  %75 = load i64, ptr %9, align 8, !tbaa !5
  %76 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %75) #5
  %77 = load i64, ptr %10, align 8, !tbaa !5
  %78 = add nsw i64 %77, -1
  %79 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %76, i64 noundef %78)
          to label %80 unwind label %99

80:                                               ; preds = %74
  %81 = extractvalue { ptr, i64 } %79, 0
  store ptr %81, ptr %13, align 8
  %82 = extractvalue { ptr, i64 } %79, 1
  store i64 %82, ptr %32, align 8
  %83 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br i1 %83, label %84, label %.critedge

84:                                               ; preds = %80
  %85 = load i64, ptr %9, align 8, !tbaa !5
  %86 = add nsw i64 %85, -1
  %87 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %86) #5
  %88 = load i64, ptr %10, align 8, !tbaa !5
  %89 = add nsw i64 %88, -1
  %90 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %87, i64 noundef %89)
          to label %91 unwind label %101

91:                                               ; preds = %84
  %92 = extractvalue { ptr, i64 } %90, 0
  store ptr %92, ptr %14, align 8
  %93 = extractvalue { ptr, i64 } %90, 1
  store i64 %93, ptr %33, align 8
  %94 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br i1 %94, label %.thread, label %105

95:                                               ; preds = %48
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  br label %247

97:                                               ; preds = %65
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %104

99:                                               ; preds = %74
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %84
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br label %103

103:                                              ; preds = %101, %99
  %.pn36 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br label %104

104:                                              ; preds = %103, %97
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %103 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %247

.critedge:                                        ; preds = %57, %70, %80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %105

105:                                              ; preds = %.critedge, %91
  %106 = load i64, ptr %9, align 8, !tbaa !5
  %107 = icmp sgt i64 %106, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  br i1 %107, label %108, label %.critedge3

108:                                              ; preds = %105
  %109 = load i64, ptr %10, align 8, !tbaa !5
  %110 = load i64, ptr %2, align 8, !tbaa !5
  %111 = add nsw i64 %110, -1
  %112 = icmp slt i64 %109, %111
  br i1 %112, label %113, label %.critedge3

113:                                              ; preds = %108
  %114 = add nsw i64 %106, -1
  %115 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %114) #5
  %116 = load i64, ptr %10, align 8, !tbaa !5
  %117 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %115, i64 noundef %116)
          to label %118 unwind label %143

118:                                              ; preds = %113
  %119 = extractvalue { ptr, i64 } %117, 0
  store ptr %119, ptr %15, align 8
  %120 = extractvalue { ptr, i64 } %117, 1
  store i64 %120, ptr %34, align 8
  %121 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br i1 %121, label %122, label %.critedge3

122:                                              ; preds = %118
  %123 = load i64, ptr %9, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %123) #5
  %125 = load i64, ptr %10, align 8, !tbaa !5
  %126 = add nsw i64 %125, 1
  %127 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %124, i64 noundef %126)
          to label %128 unwind label %145

128:                                              ; preds = %122
  %129 = extractvalue { ptr, i64 } %127, 0
  store ptr %129, ptr %16, align 8
  %130 = extractvalue { ptr, i64 } %127, 1
  store i64 %130, ptr %35, align 8
  %131 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br i1 %131, label %132, label %.critedge3

132:                                              ; preds = %128
  %133 = load i64, ptr %9, align 8, !tbaa !5
  %134 = add nsw i64 %133, -1
  %135 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %134) #5
  %136 = load i64, ptr %10, align 8, !tbaa !5
  %137 = add nsw i64 %136, 1
  %138 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %135, i64 noundef %137)
          to label %139 unwind label %147

139:                                              ; preds = %132
  %140 = extractvalue { ptr, i64 } %138, 0
  store ptr %140, ptr %17, align 8
  %141 = extractvalue { ptr, i64 } %138, 1
  store i64 %141, ptr %36, align 8
  %142 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br i1 %142, label %.thread, label %151

143:                                              ; preds = %113
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %150

145:                                              ; preds = %122
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %149

147:                                              ; preds = %132
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br label %149

149:                                              ; preds = %147, %145
  %.pn39 = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  br label %150

150:                                              ; preds = %149, %143
  %.pn39.pn = phi { ptr, i32 } [ %.pn39, %149 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %247

.critedge3:                                       ; preds = %105, %108, %118, %128
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %151

151:                                              ; preds = %.critedge3, %139
  %152 = load i64, ptr %9, align 8, !tbaa !5
  %153 = load i64, ptr %1, align 8, !tbaa !5
  %154 = add nsw i64 %153, -1
  %155 = icmp slt i64 %152, %154
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #5
  %156 = load i64, ptr %10, align 8
  %157 = icmp sgt i64 %156, 0
  %or.cond5 = select i1 %155, i1 %157, i1 false
  br i1 %or.cond5, label %158, label %.critedge7

158:                                              ; preds = %151
  %159 = add nsw i64 %152, 1
  %160 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %159) #5
  %161 = load i64, ptr %10, align 8, !tbaa !5
  %162 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %160, i64 noundef %161)
          to label %163 unwind label %188

163:                                              ; preds = %158
  %164 = extractvalue { ptr, i64 } %162, 0
  store ptr %164, ptr %18, align 8
  %165 = extractvalue { ptr, i64 } %162, 1
  store i64 %165, ptr %37, align 8
  %166 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br i1 %166, label %167, label %.critedge7

167:                                              ; preds = %163
  %168 = load i64, ptr %9, align 8, !tbaa !5
  %169 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %168) #5
  %170 = load i64, ptr %10, align 8, !tbaa !5
  %171 = add nsw i64 %170, -1
  %172 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %169, i64 noundef %171)
          to label %173 unwind label %190

173:                                              ; preds = %167
  %174 = extractvalue { ptr, i64 } %172, 0
  store ptr %174, ptr %19, align 8
  %175 = extractvalue { ptr, i64 } %172, 1
  store i64 %175, ptr %38, align 8
  %176 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  br i1 %176, label %177, label %.critedge7

177:                                              ; preds = %173
  %178 = load i64, ptr %9, align 8, !tbaa !5
  %179 = add nsw i64 %178, 1
  %180 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %179) #5
  %181 = load i64, ptr %10, align 8, !tbaa !5
  %182 = add nsw i64 %181, -1
  %183 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %180, i64 noundef %182)
          to label %184 unwind label %192

184:                                              ; preds = %177
  %185 = extractvalue { ptr, i64 } %183, 0
  store ptr %185, ptr %20, align 8
  %186 = extractvalue { ptr, i64 } %183, 1
  store i64 %186, ptr %39, align 8
  %187 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  br i1 %187, label %.thread, label %196

188:                                              ; preds = %158
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %195

190:                                              ; preds = %167
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %194

192:                                              ; preds = %177
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  br label %194

194:                                              ; preds = %192, %190
  %.pn42 = phi { ptr, i32 } [ %193, %192 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  br label %195

195:                                              ; preds = %194, %188
  %.pn42.pn = phi { ptr, i32 } [ %.pn42, %194 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  br label %247

.critedge7:                                       ; preds = %151, %163, %173
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  br label %196

196:                                              ; preds = %.critedge7, %184
  %197 = load i64, ptr %9, align 8, !tbaa !5
  %198 = load i64, ptr %1, align 8, !tbaa !5
  %199 = add nsw i64 %198, -1
  %200 = icmp slt i64 %197, %199
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #5
  br i1 %200, label %201, label %.critedge9

201:                                              ; preds = %196
  %202 = load i64, ptr %10, align 8, !tbaa !5
  %203 = load i64, ptr %2, align 8, !tbaa !5
  %204 = add nsw i64 %203, -1
  %205 = icmp slt i64 %202, %204
  br i1 %205, label %206, label %.critedge9

206:                                              ; preds = %201
  %207 = add nsw i64 %197, 1
  %208 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %207) #5
  %209 = load i64, ptr %10, align 8, !tbaa !5
  %210 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %208, i64 noundef %209)
          to label %211 unwind label %236

211:                                              ; preds = %206
  %212 = extractvalue { ptr, i64 } %210, 0
  store ptr %212, ptr %21, align 8
  %213 = extractvalue { ptr, i64 } %210, 1
  store i64 %213, ptr %40, align 8
  %214 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br i1 %214, label %215, label %.critedge9

215:                                              ; preds = %211
  %216 = load i64, ptr %9, align 8, !tbaa !5
  %217 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %216) #5
  %218 = load i64, ptr %10, align 8, !tbaa !5
  %219 = add nsw i64 %218, 1
  %220 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %217, i64 noundef %219)
          to label %221 unwind label %238

221:                                              ; preds = %215
  %222 = extractvalue { ptr, i64 } %220, 0
  store ptr %222, ptr %22, align 8
  %223 = extractvalue { ptr, i64 } %220, 1
  store i64 %223, ptr %41, align 8
  %224 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #5
  br i1 %224, label %225, label %.critedge9

225:                                              ; preds = %221
  %226 = load i64, ptr %9, align 8, !tbaa !5
  %227 = add nsw i64 %226, 1
  %228 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %227) #5
  %229 = load i64, ptr %10, align 8, !tbaa !5
  %230 = add nsw i64 %229, 1
  %231 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %228, i64 noundef %230)
          to label %232 unwind label %240

232:                                              ; preds = %225
  %233 = extractvalue { ptr, i64 } %231, 0
  store ptr %233, ptr %23, align 8
  %234 = extractvalue { ptr, i64 } %231, 1
  store i64 %234, ptr %42, align 8
  %235 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  br i1 %235, label %.thread, label %244

236:                                              ; preds = %206
  %237 = landingpad { ptr, i32 }
          cleanup
  br label %243

238:                                              ; preds = %215
  %239 = landingpad { ptr, i32 }
          cleanup
  br label %242

240:                                              ; preds = %225
  %241 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #5
  br label %242

242:                                              ; preds = %240, %238
  %.pn45 = phi { ptr, i32 } [ %241, %240 ], [ %239, %238 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  br label %243

243:                                              ; preds = %242, %236
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %242 ], [ %237, %236 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  br label %247

.critedge9:                                       ; preds = %196, %201, %211, %221
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  br label %244

.thread:                                          ; preds = %91, %139, %184, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %.loopexit

244:                                              ; preds = %.critedge9, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %245 = add nuw nsw i64 %.01967, 1
  %246 = load i64, ptr %3, align 8, !tbaa !5
  %.not.not = icmp slt i64 %.01967, %246
  br i1 %.not.not, label %48, label %.loopexit, !llvm.loop !11

247:                                              ; preds = %243, %195, %150, %104, %95
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %243 ], [ %.pn42.pn, %195 ], [ %.pn39.pn, %150 ], [ %.pn36.pn, %104 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %249

.loopexit:                                        ; preds = %244, %28, %.thread
  %.2 = phi i64 [ %.01967, %.thread ], [ 0, %28 ], [ 0, %244 ]
  %248 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.2)
  call void @_ZNSt6vectorIS_IbSaIbEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0

249:                                              ; preds = %247, %47
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %247 ], [ %.pn, %47 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn45.pn.pn.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIbSaIbEEED2Ev(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 = { 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 #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 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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