; LLVM IR from kazunetakahashi/atcoder :: 2017/0317_ABC055 (D)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.3" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@N = external dso_local global i32, align 4
@_Z1TB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@X = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3addbbb(i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checkSt6vectorIbSaIbEE(ptr noundef) #1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca i8, align 1
  %6 = alloca [4 x %"class.std::vector"], align 16
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::initializer_list", align 8
  %9 = alloca [2 x i8], align 1
  %10 = alloca %"class.std::allocator.3", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [2 x i8], align 1
  %15 = alloca %"class.std::allocator.3", align 1
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [2 x i8], align 1
  %18 = alloca %"class.std::allocator.3", align 1
  %19 = alloca %"class.std::initializer_list", align 8
  %20 = alloca [2 x i8], align 1
  %21 = alloca %"class.std::allocator.3", align 1
  %22 = alloca i1, align 1
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %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 %"class.std::vector", align 8
  %30 = alloca %"class.std::vector", align 8
  store i32 0, ptr %1, align 4
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %32 = call 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) %31, ptr noundef nonnull align 8 dereferenceable(32) @_Z1TB5cxx11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store ptr @_Z1TB5cxx11, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %33 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1TB5cxx11) #7
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %35 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1TB5cxx11) #7
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  br label %37

37:                                               ; preds = %46, %0
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %38, label %40, label %39

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %48

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %42 = load i8, ptr %41, align 1, !tbaa !9
  store i8 %42, ptr %5, align 1, !tbaa !9
  %43 = load i8, ptr %5, align 1, !tbaa !9
  %44 = sext i8 %43 to i32
  %45 = icmp eq i32 %44, 111
  call void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) @X, i1 noundef zeroext %45)
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  br label %46

46:                                               ; preds = %40
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br label %37

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 160, ptr %6) #7
  store i1 true, ptr %22, align 1
  store ptr %6, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #7
  store i8 1, ptr %9, align 1, !tbaa !10
  %49 = getelementptr inbounds i8, ptr %9, i64 1
  store i8 1, ptr %49, align 1, !tbaa !10
  %50 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 0
  store ptr %9, ptr %50, align 8, !tbaa !12
  %51 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 1
  store i64 2, ptr %51, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  %52 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %55 = load i64, ptr %54, align 8
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr %53, i64 %55, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %56 unwind label %88

56:                                               ; preds = %48
  %57 = getelementptr inbounds %"class.std::vector", ptr %6, i64 1
  store ptr %57, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #7
  store i8 1, ptr %14, align 1, !tbaa !10
  %58 = getelementptr inbounds i8, ptr %14, i64 1
  store i8 0, ptr %58, align 1, !tbaa !10
  %59 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %59, align 8, !tbaa !12
  %60 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 2, ptr %60, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  %61 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %64 = load i64, ptr %63, align 8
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %57, ptr %62, i64 %64, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %65 unwind label %92

65:                                               ; preds = %56
  %66 = getelementptr inbounds %"class.std::vector", ptr %6, i64 2
  store ptr %66, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #7
  store i8 0, ptr %17, align 1, !tbaa !10
  %67 = getelementptr inbounds i8, ptr %17, i64 1
  store i8 1, ptr %67, align 1, !tbaa !10
  %68 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 0
  store ptr %17, ptr %68, align 8, !tbaa !12
  %69 = getelementptr inbounds %"class.std::initializer_list", ptr %16, i32 0, i32 1
  store i64 2, ptr %69, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  %70 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %73 = load i64, ptr %72, align 8
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %66, ptr %71, i64 %73, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %74 unwind label %96

74:                                               ; preds = %65
  %75 = getelementptr inbounds %"class.std::vector", ptr %6, i64 3
  store ptr %75, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #7
  store i8 0, ptr %20, align 1, !tbaa !10
  %76 = getelementptr inbounds i8, ptr %20, i64 1
  store i8 0, ptr %76, align 1, !tbaa !10
  %77 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 0
  store ptr %20, ptr %77, align 8, !tbaa !12
  %78 = getelementptr inbounds %"class.std::initializer_list", ptr %19, i32 0, i32 1
  store i64 2, ptr %78, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  %79 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %82 = load i64, ptr %81, align 8
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %75, ptr %80, i64 %82, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %83 unwind label %100

83:                                               ; preds = %74
  store i1 false, ptr %22, align 1
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #7
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #7
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #7
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !16
  br label %84

84:                                               ; preds = %207, %83
  %85 = load i32, ptr %23, align 4, !tbaa !16
  %86 = icmp slt i32 %85, 4
  br i1 %86, label %117, label %87

87:                                               ; preds = %84
  store i32 4, ptr %24, align 4
  br label %210

88:                                               ; preds = %48
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %11, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %12, align 4
  br label %106

92:                                               ; preds = %56
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  br label %105

96:                                               ; preds = %65
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %11, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %12, align 4
  br label %104

100:                                              ; preds = %74
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #7
  br label %104

104:                                              ; preds = %100, %96
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #7
  br label %105

105:                                              ; preds = %104, %92
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #7
  br label %106

106:                                              ; preds = %105, %88
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #7
  %107 = load i1, ptr %22, align 1
  br i1 %107, label %108, label %116

108:                                              ; preds = %106
  %109 = load ptr, ptr %7, align 8
  %110 = icmp eq ptr %6, %109
  br i1 %110, label %115, label %111

111:                                              ; preds = %111, %108
  %112 = phi ptr [ %109, %108 ], [ %113, %111 ]
  %113 = getelementptr inbounds %"class.std::vector", ptr %112, i64 -1
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %113) #7
  %114 = icmp eq ptr %113, %6
  br i1 %114, label %115, label %111

115:                                              ; preds = %111, %108
  br label %116

116:                                              ; preds = %115, %106
  br label %241

117:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 1, ptr %25, align 4, !tbaa !16
  br label %118

118:                                              ; preds = %164, %117
  %119 = load i32, ptr %25, align 4, !tbaa !16
  %120 = load i32, ptr @N, align 4, !tbaa !16
  %121 = sub nsw i32 %120, 1
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %118
  store i32 7, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %181

124:                                              ; preds = %118
  %125 = load i32, ptr %23, align 4, !tbaa !16
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [4 x %"class.std::vector"], ptr %6, i64 0, i64 %126
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %128 = load i32, ptr %23, align 4, !tbaa !16
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [4 x %"class.std::vector"], ptr %6, i64 0, i64 %129
  %131 = load i32, ptr %25, align 4, !tbaa !16
  %132 = sub nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %130, i64 noundef %133)
          to label %135 unwind label %167

135:                                              ; preds = %124
  %136 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %137 = extractvalue { ptr, i64 } %134, 0
  store ptr %137, ptr %136, align 8
  %138 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %139 = extractvalue { ptr, i64 } %134, 1
  store i64 %139, ptr %138, align 8
  %140 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %141 = load i32, ptr %23, align 4, !tbaa !16
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [4 x %"class.std::vector"], ptr %6, i64 0, i64 %142
  %144 = load i32, ptr %25, align 4, !tbaa !16
  %145 = sext i32 %144 to i64
  %146 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %143, i64 noundef %145)
          to label %147 unwind label %171

147:                                              ; preds = %135
  %148 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %149 = extractvalue { ptr, i64 } %146, 0
  store ptr %149, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %151 = extractvalue { ptr, i64 } %146, 1
  store i64 %151, ptr %150, align 8
  %152 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %153 = load i32, ptr %25, align 4, !tbaa !16
  %154 = sext i32 %153 to i64
  %155 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) @X, i64 noundef %154)
          to label %156 unwind label %175

156:                                              ; preds = %147
  %157 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %158 = extractvalue { ptr, i64 } %155, 0
  store ptr %158, ptr %157, align 8
  %159 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %160 = extractvalue { ptr, i64 } %155, 1
  store i64 %160, ptr %159, align 8
  %161 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  %162 = call noundef zeroext i1 @_Z3addbbb(i1 noundef zeroext %140, i1 noundef zeroext %152, i1 noundef zeroext %161)
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %127, i1 noundef zeroext %162)
          to label %163 unwind label %175

163:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %25, align 4, !tbaa !16
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %25, align 4, !tbaa !16
  br label %118, !llvm.loop !18

167:                                              ; preds = %124
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %11, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %12, align 4
  br label %180

171:                                              ; preds = %135
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %11, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %12, align 4
  br label %179

175:                                              ; preds = %156, %147
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %11, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  br label %179

179:                                              ; preds = %175, %171
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %180

180:                                              ; preds = %179, %167
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %212

181:                                              ; preds = %123
  %182 = load i32, ptr %23, align 4, !tbaa !16
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [4 x %"class.std::vector"], ptr %6, i64 0, i64 %183
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef nonnull align 8 dereferenceable(40) %184)
          to label %185 unwind label %194

185:                                              ; preds = %181
  %186 = invoke noundef zeroext i1 @_Z5checkSt6vectorIbSaIbEE(ptr noundef %29)
          to label %187 unwind label %198

187:                                              ; preds = %185
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %29) #7
  br i1 %186, label %188, label %206

188:                                              ; preds = %187
  %189 = load i32, ptr %23, align 4, !tbaa !16
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [4 x %"class.std::vector"], ptr %6, i64 0, i64 %190
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull align 8 dereferenceable(40) %191)
          to label %192 unwind label %194

192:                                              ; preds = %188
  invoke void @_Z5flushSt6vectorIbSaIbEE(ptr noundef %30)
          to label %193 unwind label %202

193:                                              ; preds = %192
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #7
  store i32 0, ptr %1, align 4
  store i32 1, ptr %24, align 4
  br label %210

194:                                              ; preds = %188, %181
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %11, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %12, align 4
  br label %212

198:                                              ; preds = %185
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %11, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %12, align 4
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %29) #7
  br label %212

202:                                              ; preds = %192
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %11, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %12, align 4
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #7
  br label %212

206:                                              ; preds = %187
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %23, align 4, !tbaa !16
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %23, align 4, !tbaa !16
  br label %84, !llvm.loop !20

210:                                              ; preds = %193, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  %211 = load i32, ptr %24, align 4
  switch i32 %211, label %218 [
    i32 4, label %213
  ]

212:                                              ; preds = %202, %198, %194, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %233

213:                                              ; preds = %210
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %215 unwind label %229

215:                                              ; preds = %213
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %217 unwind label %229

217:                                              ; preds = %215
  store i32 0, ptr %24, align 4
  br label %218

218:                                              ; preds = %217, %210
  %219 = getelementptr inbounds [4 x %"class.std::vector"], ptr %6, i32 0, i32 0
  %220 = getelementptr inbounds %"class.std::vector", ptr %219, i64 4
  br label %221

221:                                              ; preds = %221, %218
  %222 = phi ptr [ %220, %218 ], [ %223, %221 ]
  %223 = getelementptr inbounds %"class.std::vector", ptr %222, i64 -1
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %223) #7
  %224 = icmp eq ptr %223, %219
  br i1 %224, label %225, label %221

225:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 160, ptr %6) #7
  %226 = load i32, ptr %24, align 4
  switch i32 %226, label %247 [
    i32 0, label %227
    i32 1, label %227
  ]

227:                                              ; preds = %225, %225
  %228 = load i32, ptr %1, align 4
  ret i32 %228

229:                                              ; preds = %215, %213
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %11, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %12, align 4
  br label %233

233:                                              ; preds = %229, %212
  %234 = getelementptr inbounds [4 x %"class.std::vector"], ptr %6, i32 0, i32 0
  %235 = getelementptr inbounds %"class.std::vector", ptr %234, i64 4
  br label %236

236:                                              ; preds = %236, %233
  %237 = phi ptr [ %235, %233 ], [ %238, %236 ]
  %238 = getelementptr inbounds %"class.std::vector", ptr %237, i64 -1
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %238) #7
  %239 = icmp eq ptr %238, %234
  br i1 %239, label %240, label %236

240:                                              ; preds = %236
  br label %241

241:                                              ; preds = %240, %116
  call void @llvm.lifetime.end.p0(i64 160, ptr %6) #7
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %11, align 8
  %244 = load i32, ptr %12, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246

247:                                              ; preds = %225
  unreachable
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #1 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator.3" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@N = external dso_local global i32, align 4
@_Z1TB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@X = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3addbbb(i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checkSt6vectorIbSaIbEE(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #1 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 #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca [4 x %"class.std::vector"], align 16
  %4 = alloca [2 x i8], align 1
  %5 = alloca %"class.std::allocator.3", align 1
  %6 = alloca [2 x i8], align 1
  %7 = alloca %"class.std::allocator.3", align 1
  %8 = alloca [2 x i8], align 1
  %9 = alloca %"class.std::allocator.3", align 1
  %10 = alloca [2 x i8], align 1
  %11 = alloca %"class.std::allocator.3", align 1
  %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 %"class.std::vector", align 8
  %16 = alloca %"class.std::vector", align 8
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %18 = tail call 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) %17, ptr noundef nonnull align 8 dereferenceable(32) @_Z1TB5cxx11)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %19 = tail call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1TB5cxx11) #7
  store ptr %19, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %20 = tail call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1TB5cxx11) #7
  store ptr %20, ptr %2, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #7
  store i8 1, ptr %4, align 1, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %4, i64 1
  store i8 1, ptr %22, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr nonnull %4, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %28 unwind label %.thread

.lr.ph:                                           ; preds = %0, %.lr.ph
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = icmp eq i8 %24, 111
  call void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) @X, i1 noundef zeroext %25)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  %27 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  br i1 %27, label %.lr.ph, label %._crit_edge

28:                                               ; preds = %._crit_edge
  %29 = getelementptr inbounds i8, ptr %3, i64 40
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #7
  store i8 1, ptr %6, align 1, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %6, i64 1
  store i8 0, ptr %30, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr nonnull %6, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %31 unwind label %125

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %3, i64 80
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #7
  store i8 0, ptr %8, align 1, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %8, i64 1
  store i8 1, ptr %33, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr nonnull %8, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %34 unwind label %127

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %3, i64 120
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %10) #7
  store i8 0, ptr %10, align 1, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %10, i64 1
  store i8 0, ptr %36, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt6vectorIbSaIbEEC2ESt16initializer_listIbERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %35, ptr nonnull %10, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %.preheader unwind label %129

.preheader:                                       ; preds = %34
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %10) #7
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #7
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #7
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #7
  %37 = getelementptr inbounds i8, ptr %12, i64 8
  %38 = getelementptr inbounds i8, ptr %13, i64 8
  %39 = getelementptr inbounds i8, ptr %14, i64 8
  %40 = load i32, ptr @N, align 4, !tbaa !10
  %41 = icmp sgt i32 %40, 2
  br i1 %41, label %.lr.ph57, label %._crit_edge58

.preheader.1:                                     ; preds = %161
  %42 = load i32, ptr @N, align 4, !tbaa !10
  %43 = icmp sgt i32 %42, 2
  br i1 %43, label %.lr.ph57.1, label %._crit_edge58.1

.lr.ph57.1:                                       ; preds = %.preheader.1, %61
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %61 ], [ 1, %.preheader.1 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %44 = add nsw i64 %indvars.iv.1, -1
  %45 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %29, i64 noundef %44)
          to label %46 unwind label %.loopexit.split-lp69.loopexit

46:                                               ; preds = %.lr.ph57.1
  %47 = extractvalue { ptr, i64 } %45, 0
  store ptr %47, ptr %12, align 8
  %48 = extractvalue { ptr, i64 } %45, 1
  store i64 %48, ptr %37, align 8
  %49 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %50 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %29, i64 noundef %indvars.iv.1)
          to label %51 unwind label %.loopexit.split-lp73.loopexit

51:                                               ; preds = %46
  %52 = extractvalue { ptr, i64 } %50, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i64 } %50, 1
  store i64 %53, ptr %38, align 8
  %54 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %55 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) @X, i64 noundef %indvars.iv.1)
          to label %56 unwind label %.loopexit.split-lp78.loopexit

56:                                               ; preds = %51
  %57 = extractvalue { ptr, i64 } %55, 0
  store ptr %57, ptr %14, align 8
  %58 = extractvalue { ptr, i64 } %55, 1
  store i64 %58, ptr %39, align 8
  %59 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %60 = call noundef zeroext i1 @_Z3addbbb(i1 noundef zeroext %49, i1 noundef zeroext %54, i1 noundef zeroext %59)
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %29, i1 noundef zeroext %60)
          to label %61 unwind label %.loopexit.split-lp78.loopexit

61:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %62 = load i32, ptr @N, align 4, !tbaa !10
  %63 = add nsw i32 %62, -1
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next.1, %64
  br i1 %65, label %.lr.ph57.1, label %._crit_edge58.1, !llvm.loop !12

._crit_edge58.1:                                  ; preds = %61, %.preheader.1
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %66 unwind label %.loopexit52

66:                                               ; preds = %._crit_edge58.1
  %67 = invoke noundef zeroext i1 @_Z5checkSt6vectorIbSaIbEE(ptr noundef nonnull %15)
          to label %68 unwind label %165

68:                                               ; preds = %66
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br i1 %67, label %162, label %.preheader.2

.preheader.2:                                     ; preds = %68
  %69 = load i32, ptr @N, align 4, !tbaa !10
  %70 = icmp sgt i32 %69, 2
  br i1 %70, label %.lr.ph57.2, label %._crit_edge58.2

.lr.ph57.2:                                       ; preds = %.preheader.2, %88
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %88 ], [ 1, %.preheader.2 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %71 = add nsw i64 %indvars.iv.2, -1
  %72 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %32, i64 noundef %71)
          to label %73 unwind label %.loopexit.split-lp69.loopexit.split-lp.loopexit

73:                                               ; preds = %.lr.ph57.2
  %74 = extractvalue { ptr, i64 } %72, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i64 } %72, 1
  store i64 %75, ptr %37, align 8
  %76 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %77 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %32, i64 noundef %indvars.iv.2)
          to label %78 unwind label %.loopexit.split-lp73.loopexit.split-lp.loopexit

78:                                               ; preds = %73
  %79 = extractvalue { ptr, i64 } %77, 0
  store ptr %79, ptr %13, align 8
  %80 = extractvalue { ptr, i64 } %77, 1
  store i64 %80, ptr %38, align 8
  %81 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %82 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) @X, i64 noundef %indvars.iv.2)
          to label %83 unwind label %.loopexit.split-lp78.loopexit.split-lp.loopexit

83:                                               ; preds = %78
  %84 = extractvalue { ptr, i64 } %82, 0
  store ptr %84, ptr %14, align 8
  %85 = extractvalue { ptr, i64 } %82, 1
  store i64 %85, ptr %39, align 8
  %86 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %87 = call noundef zeroext i1 @_Z3addbbb(i1 noundef zeroext %76, i1 noundef zeroext %81, i1 noundef zeroext %86)
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %32, i1 noundef zeroext %87)
          to label %88 unwind label %.loopexit.split-lp78.loopexit.split-lp.loopexit

88:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %89 = load i32, ptr @N, align 4, !tbaa !10
  %90 = add nsw i32 %89, -1
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next.2, %91
  br i1 %92, label %.lr.ph57.2, label %._crit_edge58.2, !llvm.loop !12

._crit_edge58.2:                                  ; preds = %88, %.preheader.2
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %32)
          to label %93 unwind label %.loopexit52

93:                                               ; preds = %._crit_edge58.2
  %94 = invoke noundef zeroext i1 @_Z5checkSt6vectorIbSaIbEE(ptr noundef nonnull %15)
          to label %95 unwind label %165

95:                                               ; preds = %93
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br i1 %94, label %162, label %.preheader.3

.preheader.3:                                     ; preds = %95
  %96 = load i32, ptr @N, align 4, !tbaa !10
  %97 = icmp sgt i32 %96, 2
  br i1 %97, label %.lr.ph57.3, label %._crit_edge58.3

.lr.ph57.3:                                       ; preds = %.preheader.3, %115
  %indvars.iv.3 = phi i64 [ %indvars.iv.next.3, %115 ], [ 1, %.preheader.3 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %98 = add nsw i64 %indvars.iv.3, -1
  %99 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %35, i64 noundef %98)
          to label %100 unwind label %.loopexit.split-lp69.loopexit.split-lp.loopexit.split-lp

100:                                              ; preds = %.lr.ph57.3
  %101 = extractvalue { ptr, i64 } %99, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i64 } %99, 1
  store i64 %102, ptr %37, align 8
  %103 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %104 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %35, i64 noundef %indvars.iv.3)
          to label %105 unwind label %.loopexit.split-lp73.loopexit.split-lp.loopexit.split-lp

105:                                              ; preds = %100
  %106 = extractvalue { ptr, i64 } %104, 0
  store ptr %106, ptr %13, align 8
  %107 = extractvalue { ptr, i64 } %104, 1
  store i64 %107, ptr %38, align 8
  %108 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %109 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) @X, i64 noundef %indvars.iv.3)
          to label %110 unwind label %.loopexit.split-lp78.loopexit.split-lp.loopexit.split-lp

110:                                              ; preds = %105
  %111 = extractvalue { ptr, i64 } %109, 0
  store ptr %111, ptr %14, align 8
  %112 = extractvalue { ptr, i64 } %109, 1
  store i64 %112, ptr %39, align 8
  %113 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %114 = call noundef zeroext i1 @_Z3addbbb(i1 noundef zeroext %103, i1 noundef zeroext %108, i1 noundef zeroext %113)
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %35, i1 noundef zeroext %114)
          to label %115 unwind label %.loopexit.split-lp78.loopexit.split-lp.loopexit.split-lp

115:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %116 = load i32, ptr @N, align 4, !tbaa !10
  %117 = add nsw i32 %116, -1
  %118 = sext i32 %117 to i64
  %119 = icmp slt i64 %indvars.iv.next.3, %118
  br i1 %119, label %.lr.ph57.3, label %._crit_edge58.3, !llvm.loop !12

._crit_edge58.3:                                  ; preds = %115, %.preheader.3
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %35)
          to label %120 unwind label %.loopexit52

120:                                              ; preds = %._crit_edge58.3
  %121 = invoke noundef zeroext i1 @_Z5checkSt6vectorIbSaIbEE(ptr noundef nonnull %15)
          to label %122 unwind label %165

122:                                              ; preds = %120
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br i1 %121, label %162, label %.critedge

.critedge:                                        ; preds = %122
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %169 unwind label %175

.thread:                                          ; preds = %._crit_edge
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #7
  br label %.loopexit

125:                                              ; preds = %28
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %132

127:                                              ; preds = %31
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %131

129:                                              ; preds = %34
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %10) #7
  br label %131

131:                                              ; preds = %129, %127
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  %.028 = phi ptr [ %35, %129 ], [ %32, %127 ]
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #7
  br label %132

132:                                              ; preds = %125, %131
  %.pn.pn = phi { ptr, i32 } [ %.pn, %131 ], [ %126, %125 ]
  %.1 = phi ptr [ %.028, %131 ], [ %29, %125 ]
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #7
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #7
  br label %133

133:                                              ; preds = %132, %133
  %134 = phi ptr [ %135, %133 ], [ %.1, %132 ]
  %135 = getelementptr inbounds i8, ptr %134, i64 -40
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %135) #7
  %136 = icmp eq ptr %135, %3
  br i1 %136, label %.loopexit, label %133

._crit_edge58:                                    ; preds = %154, %.preheader
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %159 unwind label %.loopexit52

.lr.ph57:                                         ; preds = %.preheader, %154
  %indvars.iv = phi i64 [ %indvars.iv.next, %154 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %137 = add nsw i64 %indvars.iv, -1
  %138 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %137)
          to label %139 unwind label %.loopexit68

139:                                              ; preds = %.lr.ph57
  %140 = extractvalue { ptr, i64 } %138, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i64 } %138, 1
  store i64 %141, ptr %37, align 8
  %142 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %143 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %indvars.iv)
          to label %144 unwind label %.loopexit72

144:                                              ; preds = %139
  %145 = extractvalue { ptr, i64 } %143, 0
  store ptr %145, ptr %13, align 8
  %146 = extractvalue { ptr, i64 } %143, 1
  store i64 %146, ptr %38, align 8
  %147 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %148 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) @X, i64 noundef %indvars.iv)
          to label %149 unwind label %.loopexit77

149:                                              ; preds = %144
  %150 = extractvalue { ptr, i64 } %148, 0
  store ptr %150, ptr %14, align 8
  %151 = extractvalue { ptr, i64 } %148, 1
  store i64 %151, ptr %39, align 8
  %152 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  %153 = call noundef zeroext i1 @_Z3addbbb(i1 noundef zeroext %142, i1 noundef zeroext %147, i1 noundef zeroext %152)
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %3, i1 noundef zeroext %153)
          to label %154 unwind label %.loopexit77

154:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %155 = load i32, ptr @N, align 4, !tbaa !10
  %156 = add nsw i32 %155, -1
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next, %157
  br i1 %158, label %.lr.ph57, label %._crit_edge58, !llvm.loop !12

.loopexit68:                                      ; preds = %.lr.ph57
  %lpad.loopexit70 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp69

.loopexit.split-lp69.loopexit:                    ; preds = %.lr.ph57.1
  %lpad.loopexit82 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp69

.loopexit.split-lp69.loopexit.split-lp.loopexit:  ; preds = %.lr.ph57.2
  %lpad.loopexit91 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp69

.loopexit.split-lp69.loopexit.split-lp.loopexit.split-lp: ; preds = %.lr.ph57.3
  %lpad.loopexit.split-lp92 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp69

.loopexit72:                                      ; preds = %139
  %lpad.loopexit74 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp73

.loopexit.split-lp73.loopexit:                    ; preds = %46
  %lpad.loopexit85 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp73

.loopexit.split-lp73.loopexit.split-lp.loopexit:  ; preds = %73
  %lpad.loopexit94 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp73

.loopexit.split-lp73.loopexit.split-lp.loopexit.split-lp: ; preds = %100
  %lpad.loopexit.split-lp95 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp73

.loopexit77:                                      ; preds = %144, %149
  %lpad.loopexit79 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp78

.loopexit.split-lp78.loopexit:                    ; preds = %56, %51
  %lpad.loopexit88 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp78

.loopexit.split-lp78.loopexit.split-lp.loopexit:  ; preds = %78, %83
  %lpad.loopexit97 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp78

.loopexit.split-lp78.loopexit.split-lp.loopexit.split-lp: ; preds = %105, %110
  %lpad.loopexit.split-lp98 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp78

.loopexit.split-lp78:                             ; preds = %.loopexit.split-lp78.loopexit, %.loopexit.split-lp78.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp78.loopexit.split-lp.loopexit, %.loopexit77
  %lpad.phi81 = phi { ptr, i32 } [ %lpad.loopexit79, %.loopexit77 ], [ %lpad.loopexit88, %.loopexit.split-lp78.loopexit ], [ %lpad.loopexit97, %.loopexit.split-lp78.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp98, %.loopexit.split-lp78.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %.loopexit.split-lp73

.loopexit.split-lp73:                             ; preds = %.loopexit72, %.loopexit.split-lp73.loopexit.split-lp.loopexit, %.loopexit.split-lp73.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp73.loopexit, %.loopexit.split-lp78
  %.pn44 = phi { ptr, i32 } [ %lpad.phi81, %.loopexit.split-lp78 ], [ %lpad.loopexit74, %.loopexit72 ], [ %lpad.loopexit85, %.loopexit.split-lp73.loopexit ], [ %lpad.loopexit94, %.loopexit.split-lp73.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp95, %.loopexit.split-lp73.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %.loopexit.split-lp69

.loopexit.split-lp69:                             ; preds = %.loopexit68, %.loopexit.split-lp69.loopexit.split-lp.loopexit, %.loopexit.split-lp69.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp69.loopexit, %.loopexit.split-lp73
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %.loopexit.split-lp73 ], [ %lpad.loopexit70, %.loopexit68 ], [ %lpad.loopexit82, %.loopexit.split-lp69.loopexit ], [ %lpad.loopexit91, %.loopexit.split-lp69.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp92, %.loopexit.split-lp69.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %.loopexit.loopexit

159:                                              ; preds = %._crit_edge58
  %160 = invoke noundef zeroext i1 @_Z5checkSt6vectorIbSaIbEE(ptr noundef nonnull %15)
          to label %161 unwind label %165

161:                                              ; preds = %159
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br i1 %160, label %162, label %.preheader.1

162:                                              ; preds = %122, %95, %68, %161
  %.lcssa62 = phi ptr [ %3, %161 ], [ %29, %68 ], [ %32, %95 ], [ %35, %122 ]
  invoke void @_ZNSt6vectorIbSaIbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(40) %.lcssa62)
          to label %163 unwind label %.loopexit.split-lp

163:                                              ; preds = %162
  invoke void @_Z5flushSt6vectorIbSaIbEE(ptr noundef nonnull %16)
          to label %164 unwind label %167

164:                                              ; preds = %163
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  br label %171

.loopexit52:                                      ; preds = %._crit_edge58.3, %._crit_edge58.2, %._crit_edge58.1, %._crit_edge58
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

.loopexit.split-lp:                               ; preds = %162
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

165:                                              ; preds = %120, %93, %66, %159
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br label %.loopexit.loopexit

167:                                              ; preds = %163
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  br label %.loopexit.loopexit

169:                                              ; preds = %.critedge
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %171 unwind label %175

171:                                              ; preds = %164, %169
  %172 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %172) #7
  %173 = getelementptr inbounds i8, ptr %3, i64 80
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %173) #7
  %174 = getelementptr inbounds i8, ptr %3, i64 40
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %174) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #7
  ret i32 0

175:                                              ; preds = %169, %.critedge
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %.loopexit52, %.loopexit.split-lp, %.loopexit.split-lp69, %165, %167, %175
  %.pn44.pn.pn.pn = phi { ptr, i32 } [ %176, %175 ], [ %.pn44.pn, %.loopexit.split-lp69 ], [ %168, %167 ], [ %166, %165 ], [ %lpad.loopexit, %.loopexit52 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  %177 = getelementptr inbounds i8, ptr %3, i64 120
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %177) #7
  %178 = getelementptr inbounds i8, ptr %3, i64 80
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %178) #7
  %179 = getelementptr inbounds i8, ptr %3, i64 40
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %179) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  br label %.loopexit

.loopexit:                                        ; preds = %133, %.loopexit.loopexit, %.thread
  %.pn44.pn.pn.pn.pn = phi { ptr, i32 } [ %124, %.thread ], [ %.pn44.pn.pn.pn, %.loopexit.loopexit ], [ %.pn.pn, %133 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn44.pn.pn.pn.pn
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass