; LLVM IR from eyangch/competitive-programming :: USACOtraining/2.2 (lamps)

; 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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.3 }
%union.anon.3 = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@__const.main.b = external hidden unnamed_addr constant [4 x [6 x i8]], align 16
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.main.l = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.3 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.4 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.5 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6), ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::basic_ifstream", align 8
  %3 = alloca %"class.std::basic_ofstream", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::set", align 8
  %11 = alloca [4 x [6 x i8]], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca [6 x i8], align 1
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca i32, align 4
  %29 = alloca [6 x i8], align 1
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca %"class.std::vector", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"struct.std::pair", align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca [6 x i8], align 1
  %37 = alloca %"class.std::vector", align 8
  %38 = alloca %"class.std::vector", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"struct.std::pair", align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca [6 x i8], align 1
  %45 = alloca %"class.std::vector", align 8
  %46 = alloca %"class.std::vector", align 8
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"struct.std::pair", align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca [6 x i8], align 1
  %54 = alloca %"class.std::vector", align 8
  %55 = alloca %"class.std::vector", align 8
  %56 = alloca %"class.std::__cxx11::basic_string", align 8
  %57 = alloca %"struct.std::pair", align 8
  %58 = alloca ptr, align 8
  %59 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %60 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %61 = alloca %"class.std::__cxx11::basic_string", align 8
  %62 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #8
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef @.str.1, i32 noundef 16)
          to label %63 unwind label %75

63:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #8
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.b, i64 24, i1 false)
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %65 unwind label %79

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %67 unwind label %79

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %98, %67
  br label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %71 unwind label %83

71:                                               ; preds = %69
  %72 = load i32, ptr %12, align 4, !tbaa !5
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %87

74:                                               ; preds = %71
  store i32 3, ptr %13, align 4
  br label %96

75:                                               ; preds = %0
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %4, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %5, align 4
  br label %574

79:                                               ; preds = %567, %565, %65, %63
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %4, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %5, align 4
  br label %573

83:                                               ; preds = %93, %69
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %4, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %573

87:                                               ; preds = %71
  %88 = load i32, ptr %12, align 4, !tbaa !5
  %89 = srem i32 %88, 6
  store i32 %89, ptr %12, align 4, !tbaa !5
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  store i32 6, ptr %12, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %92, %87
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %94 unwind label %83

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  store i32 0, ptr %13, align 4
  br label %96

96:                                               ; preds = %95, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %97 = load i32, ptr %13, align 4
  switch i32 %97, label %580 [
    i32 0, label %98
    i32 3, label %99
  ]

98:                                               ; preds = %96
  br label %68, !llvm.loop !9

99:                                               ; preds = %96
  br label %100

100:                                              ; preds = %122, %99
  br label %101

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %103 unwind label %107

103:                                              ; preds = %101
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = icmp eq i32 %104, -1
  br i1 %105, label %106, label %111

106:                                              ; preds = %103
  store i32 5, ptr %13, align 4
  br label %120

107:                                              ; preds = %117, %101
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %4, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %573

111:                                              ; preds = %103
  %112 = load i32, ptr %14, align 4, !tbaa !5
  %113 = srem i32 %112, 6
  store i32 %113, ptr %14, align 4, !tbaa !5
  %114 = load i32, ptr %14, align 4, !tbaa !5
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %111
  store i32 6, ptr %14, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %116, %111
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %118 unwind label %107

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  store i32 0, ptr %13, align 4
  br label %120

120:                                              ; preds = %119, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %121 = load i32, ptr %13, align 4
  switch i32 %121, label %580 [
    i32 0, label %122
    i32 5, label %123
  ]

122:                                              ; preds = %120
  br label %100, !llvm.loop !11

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store ptr %8, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %124 = load ptr, ptr %15, align 8, !tbaa !12
  %125 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %125, ptr %126, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %127 = load ptr, ptr %15, align 8, !tbaa !12
  %128 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #8
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  br label %130

130:                                              ; preds = %172, %123
  %131 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %131, label %133, label %132

132:                                              ; preds = %130
  store i32 6, ptr %13, align 4
  br label %174

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %135 = load i32, ptr %134, align 4, !tbaa !5
  store i32 %135, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store ptr %9, ptr %19, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %136 = load ptr, ptr %19, align 8, !tbaa !12
  %137 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %139 = load ptr, ptr %19, align 8, !tbaa !12
  %140 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %139) #8
  %141 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %140, ptr %141, align 8
  br label %142

142:                                              ; preds = %164, %133
  %143 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br i1 %143, label %145, label %144

144:                                              ; preds = %142
  store i32 8, ptr %13, align 4
  br label %166

145:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %147 = load i32, ptr %146, align 4, !tbaa !5
  store i32 %147, ptr %22, align 4, !tbaa !5
  %148 = load i32, ptr %18, align 4, !tbaa !5
  %149 = load i32, ptr %22, align 4, !tbaa !5
  %150 = icmp eq i32 %148, %149
  br i1 %150, label %151, label %160

151:                                              ; preds = %145
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef @.str.2)
          to label %153 unwind label %156

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %155 unwind label %156

155:                                              ; preds = %153
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %161

156:                                              ; preds = %153, %151
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %4, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %573

160:                                              ; preds = %145
  store i32 0, ptr %13, align 4
  br label %161

161:                                              ; preds = %160, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %162 = load i32, ptr %13, align 4
  switch i32 %162, label %166 [
    i32 0, label %163
  ]

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %142

166:                                              ; preds = %161, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %167 = load i32, ptr %13, align 4
  switch i32 %167, label %169 [
    i32 8, label %168
  ]

168:                                              ; preds = %166
  store i32 0, ptr %13, align 4
  br label %169

169:                                              ; preds = %168, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  %170 = load i32, ptr %13, align 4
  switch i32 %170, label %174 [
    i32 0, label %171
  ]

171:                                              ; preds = %169
  br label %172

172:                                              ; preds = %171
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %130

174:                                              ; preds = %169, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %175 = load i32, ptr %13, align 4
  switch i32 %175, label %571 [
    i32 6, label %176
  ]

176:                                              ; preds = %174
  %177 = load i32, ptr %7, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, -1
  br i1 %178, label %179, label %215

179:                                              ; preds = %176
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = icmp ne i32 %180, 1
  br i1 %181, label %182, label %215

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 6, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 @__const.main.l, i64 6, i1 false)
  %183 = getelementptr inbounds [6 x i8], ptr %23, i64 0, i64 0
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %184 unwind label %196

184:                                              ; preds = %182
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %185 unwind label %200

185:                                              ; preds = %184
  %186 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef %183, ptr noundef %24, ptr noundef %25)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br i1 %186, label %187, label %213

187:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #8
  %188 = getelementptr inbounds [6 x i8], ptr %23, i64 0, i64 0
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef %188)
          to label %189 unwind label %204

189:                                              ; preds = %187
  %190 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %191 unwind label %208

191:                                              ; preds = %189
  %192 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %193 = extractvalue { ptr, i8 } %190, 0
  store ptr %193, ptr %192, align 8
  %194 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %195 = extractvalue { ptr, i8 } %190, 1
  store i8 %195, ptr %194, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  br label %213

196:                                              ; preds = %182
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %4, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %5, align 4
  br label %214

200:                                              ; preds = %184
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %4, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %5, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br label %214

204:                                              ; preds = %187
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %4, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %5, align 4
  br label %212

208:                                              ; preds = %189
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %4, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  br label %212

212:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  br label %214

213:                                              ; preds = %191, %185
  call void @llvm.lifetime.end.p0(i64 6, ptr %23) #8
  br label %215

214:                                              ; preds = %212, %200, %196
  call void @llvm.lifetime.end.p0(i64 6, ptr %23) #8
  br label %573

215:                                              ; preds = %213, %179, %176
  %216 = load i32, ptr %7, align 4, !tbaa !5
  %217 = icmp sgt i32 %216, 0
  br i1 %217, label %218, label %267

218:                                              ; preds = %215
  %219 = load i32, ptr %7, align 4, !tbaa !5
  %220 = icmp ne i32 %219, 2
  br i1 %220, label %221, label %267

221:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %262, %221
  %223 = load i32, ptr %28, align 4, !tbaa !5
  %224 = icmp slt i32 %223, 4
  br i1 %224, label %226, label %225

225:                                              ; preds = %222
  store i32 10, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %266

226:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 6, ptr %29) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %29, ptr align 1 @__const.main.l.3, i64 6, i1 false)
  %227 = load i32, ptr %28, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %228
  %230 = getelementptr inbounds [6 x i8], ptr %229, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %29, ptr noundef %230)
  %231 = getelementptr inbounds [6 x i8], ptr %29, i64 0, i64 0
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %232 unwind label %244

232:                                              ; preds = %226
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %233 unwind label %248

233:                                              ; preds = %232
  %234 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef %231, ptr noundef %30, ptr noundef %31)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  br i1 %234, label %235, label %261

235:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #8
  %236 = getelementptr inbounds [6 x i8], ptr %29, i64 0, i64 0
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef %236)
          to label %237 unwind label %252

237:                                              ; preds = %235
  %238 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %239 unwind label %256

239:                                              ; preds = %237
  %240 = getelementptr inbounds { ptr, i8 }, ptr %33, i32 0, i32 0
  %241 = extractvalue { ptr, i8 } %238, 0
  store ptr %241, ptr %240, align 8
  %242 = getelementptr inbounds { ptr, i8 }, ptr %33, i32 0, i32 1
  %243 = extractvalue { ptr, i8 } %238, 1
  store i8 %243, ptr %242, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  br label %261

244:                                              ; preds = %226
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %4, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %5, align 4
  br label %265

248:                                              ; preds = %232
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %4, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %5, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #8
  br label %265

252:                                              ; preds = %235
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %4, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %5, align 4
  br label %260

256:                                              ; preds = %237
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %4, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #8
  br label %260

260:                                              ; preds = %256, %252
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  br label %265

261:                                              ; preds = %239, %233
  call void @llvm.lifetime.end.p0(i64 6, ptr %29) #8
  br label %262

262:                                              ; preds = %261
  %263 = load i32, ptr %28, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %28, align 4, !tbaa !5
  br label %222, !llvm.loop !14

265:                                              ; preds = %260, %248, %244
  call void @llvm.lifetime.end.p0(i64 6, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %573

266:                                              ; preds = %225
  br label %267

267:                                              ; preds = %266, %218, %215
  %268 = load i32, ptr %7, align 4, !tbaa !5
  %269 = icmp sgt i32 %268, 1
  br i1 %269, label %270, label %334

270:                                              ; preds = %267
  %271 = load i32, ptr %7, align 4, !tbaa !5
  %272 = icmp ne i32 %271, 3
  br i1 %272, label %273, label %334

273:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %330, %273
  %275 = load i32, ptr %34, align 4, !tbaa !5
  %276 = icmp slt i32 %275, 4
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  store i32 13, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %333

278:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %279 = load i32, ptr %34, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %35, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %325, %278
  %282 = load i32, ptr %35, align 4, !tbaa !5
  %283 = icmp slt i32 %282, 4
  br i1 %283, label %285, label %284

284:                                              ; preds = %281
  store i32 16, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %329

285:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 6, ptr %36) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %36, ptr align 1 @__const.main.l.4, i64 6, i1 false)
  %286 = load i32, ptr %34, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %287
  %289 = getelementptr inbounds [6 x i8], ptr %288, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %36, ptr noundef %289)
  %290 = load i32, ptr %35, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %291
  %293 = getelementptr inbounds [6 x i8], ptr %292, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %36, ptr noundef %293)
  %294 = getelementptr inbounds [6 x i8], ptr %36, i64 0, i64 0
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %295 unwind label %307

295:                                              ; preds = %285
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %296 unwind label %311

296:                                              ; preds = %295
  %297 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef %294, ptr noundef %37, ptr noundef %38)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  br i1 %297, label %298, label %324

298:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #8
  %299 = getelementptr inbounds [6 x i8], ptr %36, i64 0, i64 0
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %39, ptr noundef %299)
          to label %300 unwind label %315

300:                                              ; preds = %298
  %301 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %302 unwind label %319

302:                                              ; preds = %300
  %303 = getelementptr inbounds { ptr, i8 }, ptr %40, i32 0, i32 0
  %304 = extractvalue { ptr, i8 } %301, 0
  store ptr %304, ptr %303, align 8
  %305 = getelementptr inbounds { ptr, i8 }, ptr %40, i32 0, i32 1
  %306 = extractvalue { ptr, i8 } %301, 1
  store i8 %306, ptr %305, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #8
  br label %324

307:                                              ; preds = %285
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %4, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %5, align 4
  br label %328

311:                                              ; preds = %295
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %4, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %5, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  br label %328

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

319:                                              ; preds = %300
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %4, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #8
  br label %323

323:                                              ; preds = %319, %315
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #8
  br label %328

324:                                              ; preds = %302, %296
  call void @llvm.lifetime.end.p0(i64 6, ptr %36) #8
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %35, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %35, align 4, !tbaa !5
  br label %281, !llvm.loop !15

328:                                              ; preds = %323, %311, %307
  call void @llvm.lifetime.end.p0(i64 6, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %573

329:                                              ; preds = %284
  br label %330

330:                                              ; preds = %329
  %331 = load i32, ptr %34, align 4, !tbaa !5
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %34, align 4, !tbaa !5
  br label %274, !llvm.loop !16

333:                                              ; preds = %277
  br label %334

334:                                              ; preds = %333, %270, %267
  %335 = load i32, ptr %7, align 4, !tbaa !5
  %336 = icmp sgt i32 %335, 2
  br i1 %336, label %337, label %416

337:                                              ; preds = %334
  %338 = load i32, ptr %7, align 4, !tbaa !5
  %339 = icmp ne i32 %338, 4
  br i1 %339, label %340, label %416

340:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %341

341:                                              ; preds = %412, %340
  %342 = load i32, ptr %41, align 4, !tbaa !5
  %343 = icmp slt i32 %342, 4
  br i1 %343, label %345, label %344

344:                                              ; preds = %341
  store i32 19, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %415

345:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %346 = load i32, ptr %41, align 4, !tbaa !5
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr %42, align 4, !tbaa !5
  br label %348

348:                                              ; preds = %408, %345
  %349 = load i32, ptr %42, align 4, !tbaa !5
  %350 = icmp slt i32 %349, 4
  br i1 %350, label %352, label %351

351:                                              ; preds = %348
  store i32 22, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %411

352:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %353 = load i32, ptr %42, align 4, !tbaa !5
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %43, align 4, !tbaa !5
  br label %355

355:                                              ; preds = %403, %352
  %356 = load i32, ptr %43, align 4, !tbaa !5
  %357 = icmp slt i32 %356, 4
  br i1 %357, label %359, label %358

358:                                              ; preds = %355
  store i32 25, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %407

359:                                              ; preds = %355
  call void @llvm.lifetime.start.p0(i64 6, ptr %44) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %44, ptr align 1 @__const.main.l.5, i64 6, i1 false)
  %360 = load i32, ptr %41, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %361
  %363 = getelementptr inbounds [6 x i8], ptr %362, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %44, ptr noundef %363)
  %364 = load i32, ptr %42, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %365
  %367 = getelementptr inbounds [6 x i8], ptr %366, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %44, ptr noundef %367)
  %368 = load i32, ptr %43, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %369
  %371 = getelementptr inbounds [6 x i8], ptr %370, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %44, ptr noundef %371)
  %372 = getelementptr inbounds [6 x i8], ptr %44, i64 0, i64 0
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %373 unwind label %385

373:                                              ; preds = %359
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %374 unwind label %389

374:                                              ; preds = %373
  %375 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef %372, ptr noundef %45, ptr noundef %46)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #8
  br i1 %375, label %376, label %402

376:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #8
  %377 = getelementptr inbounds [6 x i8], ptr %44, i64 0, i64 0
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %47, ptr noundef %377)
          to label %378 unwind label %393

378:                                              ; preds = %376
  %379 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %380 unwind label %397

380:                                              ; preds = %378
  %381 = getelementptr inbounds { ptr, i8 }, ptr %48, i32 0, i32 0
  %382 = extractvalue { ptr, i8 } %379, 0
  store ptr %382, ptr %381, align 8
  %383 = getelementptr inbounds { ptr, i8 }, ptr %48, i32 0, i32 1
  %384 = extractvalue { ptr, i8 } %379, 1
  store i8 %384, ptr %383, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #8
  br label %402

385:                                              ; preds = %359
  %386 = landingpad { ptr, i32 }
          cleanup
  %387 = extractvalue { ptr, i32 } %386, 0
  store ptr %387, ptr %4, align 8
  %388 = extractvalue { ptr, i32 } %386, 1
  store i32 %388, ptr %5, align 4
  br label %406

389:                                              ; preds = %373
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %4, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %5, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %45) #8
  br label %406

393:                                              ; preds = %376
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %4, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %5, align 4
  br label %401

397:                                              ; preds = %378
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %4, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #8
  br label %401

401:                                              ; preds = %397, %393
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #8
  br label %406

402:                                              ; preds = %380, %374
  call void @llvm.lifetime.end.p0(i64 6, ptr %44) #8
  br label %403

403:                                              ; preds = %402
  %404 = load i32, ptr %43, align 4, !tbaa !5
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %43, align 4, !tbaa !5
  br label %355, !llvm.loop !17

406:                                              ; preds = %401, %389, %385
  call void @llvm.lifetime.end.p0(i64 6, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %573

407:                                              ; preds = %358
  br label %408

408:                                              ; preds = %407
  %409 = load i32, ptr %42, align 4, !tbaa !5
  %410 = add nsw i32 %409, 1
  store i32 %410, ptr %42, align 4, !tbaa !5
  br label %348, !llvm.loop !18

411:                                              ; preds = %351
  br label %412

412:                                              ; preds = %411
  %413 = load i32, ptr %41, align 4, !tbaa !5
  %414 = add nsw i32 %413, 1
  store i32 %414, ptr %41, align 4, !tbaa !5
  br label %341, !llvm.loop !19

415:                                              ; preds = %344
  br label %416

416:                                              ; preds = %415, %337, %334
  %417 = load i32, ptr %7, align 4, !tbaa !5
  %418 = icmp sgt i32 %417, 3
  br i1 %418, label %419, label %513

419:                                              ; preds = %416
  %420 = load i32, ptr %7, align 4, !tbaa !5
  %421 = icmp ne i32 %420, 5
  br i1 %421, label %422, label %513

422:                                              ; preds = %419
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  store i32 0, ptr %49, align 4, !tbaa !5
  br label %423

423:                                              ; preds = %509, %422
  %424 = load i32, ptr %49, align 4, !tbaa !5
  %425 = icmp slt i32 %424, 4
  br i1 %425, label %427, label %426

426:                                              ; preds = %423
  store i32 28, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  br label %512

427:                                              ; preds = %423
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %428 = load i32, ptr %49, align 4, !tbaa !5
  %429 = add nsw i32 %428, 1
  store i32 %429, ptr %50, align 4, !tbaa !5
  br label %430

430:                                              ; preds = %505, %427
  %431 = load i32, ptr %50, align 4, !tbaa !5
  %432 = icmp slt i32 %431, 4
  br i1 %432, label %434, label %433

433:                                              ; preds = %430
  store i32 31, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %508

434:                                              ; preds = %430
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %435 = load i32, ptr %50, align 4, !tbaa !5
  %436 = add nsw i32 %435, 1
  store i32 %436, ptr %51, align 4, !tbaa !5
  br label %437

437:                                              ; preds = %501, %434
  %438 = load i32, ptr %51, align 4, !tbaa !5
  %439 = icmp slt i32 %438, 4
  br i1 %439, label %441, label %440

440:                                              ; preds = %437
  store i32 34, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %504

441:                                              ; preds = %437
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %442 = load i32, ptr %51, align 4, !tbaa !5
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %52, align 4, !tbaa !5
  br label %444

444:                                              ; preds = %496, %441
  %445 = load i32, ptr %52, align 4, !tbaa !5
  %446 = icmp slt i32 %445, 4
  br i1 %446, label %448, label %447

447:                                              ; preds = %444
  store i32 37, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %500

448:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 6, ptr %53) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %53, ptr align 1 @__const.main.l.6, i64 6, i1 false)
  %449 = load i32, ptr %49, align 4, !tbaa !5
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %450
  %452 = getelementptr inbounds [6 x i8], ptr %451, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %53, ptr noundef %452)
  %453 = load i32, ptr %50, align 4, !tbaa !5
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %454
  %456 = getelementptr inbounds [6 x i8], ptr %455, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %53, ptr noundef %456)
  %457 = load i32, ptr %51, align 4, !tbaa !5
  %458 = sext i32 %457 to i64
  %459 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %458
  %460 = getelementptr inbounds [6 x i8], ptr %459, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %53, ptr noundef %460)
  %461 = load i32, ptr %52, align 4, !tbaa !5
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds [4 x [6 x i8]], ptr %11, i64 0, i64 %462
  %464 = getelementptr inbounds [6 x i8], ptr %463, i64 0, i64 0
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %53, ptr noundef %464)
  %465 = getelementptr inbounds [6 x i8], ptr %53, i64 0, i64 0
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %466 unwind label %478

466:                                              ; preds = %448
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %467 unwind label %482

467:                                              ; preds = %466
  %468 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef %465, ptr noundef %54, ptr noundef %55)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  br i1 %468, label %469, label %495

469:                                              ; preds = %467
  call void @llvm.lifetime.start.p0(i64 32, ptr %56) #8
  %470 = getelementptr inbounds [6 x i8], ptr %53, i64 0, i64 0
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %56, ptr noundef %470)
          to label %471 unwind label %486

471:                                              ; preds = %469
  %472 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %473 unwind label %490

473:                                              ; preds = %471
  %474 = getelementptr inbounds { ptr, i8 }, ptr %57, i32 0, i32 0
  %475 = extractvalue { ptr, i8 } %472, 0
  store ptr %475, ptr %474, align 8
  %476 = getelementptr inbounds { ptr, i8 }, ptr %57, i32 0, i32 1
  %477 = extractvalue { ptr, i8 } %472, 1
  store i8 %477, ptr %476, align 8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #8
  br label %495

478:                                              ; preds = %448
  %479 = landingpad { ptr, i32 }
          cleanup
  %480 = extractvalue { ptr, i32 } %479, 0
  store ptr %480, ptr %4, align 8
  %481 = extractvalue { ptr, i32 } %479, 1
  store i32 %481, ptr %5, align 4
  br label %499

482:                                              ; preds = %466
  %483 = landingpad { ptr, i32 }
          cleanup
  %484 = extractvalue { ptr, i32 } %483, 0
  store ptr %484, ptr %4, align 8
  %485 = extractvalue { ptr, i32 } %483, 1
  store i32 %485, ptr %5, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  br label %499

486:                                              ; preds = %469
  %487 = landingpad { ptr, i32 }
          cleanup
  %488 = extractvalue { ptr, i32 } %487, 0
  store ptr %488, ptr %4, align 8
  %489 = extractvalue { ptr, i32 } %487, 1
  store i32 %489, ptr %5, align 4
  br label %494

490:                                              ; preds = %471
  %491 = landingpad { ptr, i32 }
          cleanup
  %492 = extractvalue { ptr, i32 } %491, 0
  store ptr %492, ptr %4, align 8
  %493 = extractvalue { ptr, i32 } %491, 1
  store i32 %493, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #8
  br label %494

494:                                              ; preds = %490, %486
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #8
  br label %499

495:                                              ; preds = %473, %467
  call void @llvm.lifetime.end.p0(i64 6, ptr %53) #8
  br label %496

496:                                              ; preds = %495
  %497 = load i32, ptr %52, align 4, !tbaa !5
  %498 = add nsw i32 %497, 1
  store i32 %498, ptr %52, align 4, !tbaa !5
  br label %444, !llvm.loop !20

499:                                              ; preds = %494, %482, %478
  call void @llvm.lifetime.end.p0(i64 6, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  br label %573

500:                                              ; preds = %447
  br label %501

501:                                              ; preds = %500
  %502 = load i32, ptr %51, align 4, !tbaa !5
  %503 = add nsw i32 %502, 1
  store i32 %503, ptr %51, align 4, !tbaa !5
  br label %437, !llvm.loop !21

504:                                              ; preds = %440
  br label %505

505:                                              ; preds = %504
  %506 = load i32, ptr %50, align 4, !tbaa !5
  %507 = add nsw i32 %506, 1
  store i32 %507, ptr %50, align 4, !tbaa !5
  br label %430, !llvm.loop !22

508:                                              ; preds = %433
  br label %509

509:                                              ; preds = %508
  %510 = load i32, ptr %49, align 4, !tbaa !5
  %511 = add nsw i32 %510, 1
  store i32 %511, ptr %49, align 4, !tbaa !5
  br label %423, !llvm.loop !23

512:                                              ; preds = %426
  br label %513

513:                                              ; preds = %512, %419, %416
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  store ptr %10, ptr %58, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %514 = load ptr, ptr %58, align 8, !tbaa !12
  %515 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %514) #8
  %516 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %59, i32 0, i32 0
  store ptr %515, ptr %516, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %517 = load ptr, ptr %58, align 8, !tbaa !12
  %518 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %517) #8
  %519 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %60, i32 0, i32 0
  store ptr %518, ptr %519, align 8
  br label %520

520:                                              ; preds = %554, %513
  %521 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %60) #8
  br i1 %521, label %523, label %522

522:                                              ; preds = %520
  store i32 40, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  br label %562

523:                                              ; preds = %520
  call void @llvm.lifetime.start.p0(i64 32, ptr %61) #8
  %524 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef nonnull align 8 dereferenceable(32) %524)
          to label %525 unwind label %531

525:                                              ; preds = %523
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  store i32 0, ptr %62, align 4, !tbaa !5
  br label %526

526:                                              ; preds = %544, %525
  %527 = load i32, ptr %62, align 4, !tbaa !5
  %528 = load i32, ptr %6, align 4, !tbaa !5
  %529 = icmp slt i32 %527, %528
  br i1 %529, label %535, label %530

530:                                              ; preds = %526
  store i32 42, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  br label %551

531:                                              ; preds = %523
  %532 = landingpad { ptr, i32 }
          cleanup
  %533 = extractvalue { ptr, i32 } %532, 0
  store ptr %533, ptr %4, align 8
  %534 = extractvalue { ptr, i32 } %532, 1
  store i32 %534, ptr %5, align 4
  br label %561

535:                                              ; preds = %526
  %536 = load i32, ptr %62, align 4, !tbaa !5
  %537 = srem i32 %536, 6
  %538 = sext i32 %537 to i64
  %539 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %61, i64 noundef %538)
          to label %540 unwind label %547

540:                                              ; preds = %535
  %541 = load i8, ptr %539, align 1, !tbaa !24
  %542 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %3, i8 noundef signext %541)
          to label %543 unwind label %547

543:                                              ; preds = %540
  br label %544

544:                                              ; preds = %543
  %545 = load i32, ptr %62, align 4, !tbaa !5
  %546 = add nsw i32 %545, 1
  store i32 %546, ptr %62, align 4, !tbaa !5
  br label %526, !llvm.loop !25

547:                                              ; preds = %540, %535
  %548 = landingpad { ptr, i32 }
          cleanup
  %549 = extractvalue { ptr, i32 } %548, 0
  store ptr %549, ptr %4, align 8
  %550 = extractvalue { ptr, i32 } %548, 1
  store i32 %550, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  br label %560

551:                                              ; preds = %530
  %552 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %553 unwind label %556

553:                                              ; preds = %551
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %61) #8
  br label %554

554:                                              ; preds = %553
  %555 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #8
  br label %520

556:                                              ; preds = %551
  %557 = landingpad { ptr, i32 }
          cleanup
  %558 = extractvalue { ptr, i32 } %557, 0
  store ptr %558, ptr %4, align 8
  %559 = extractvalue { ptr, i32 } %557, 1
  store i32 %559, ptr %5, align 4
  br label %560

560:                                              ; preds = %556, %547
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #8
  br label %561

561:                                              ; preds = %560, %531
  call void @llvm.lifetime.end.p0(i64 32, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  br label %573

562:                                              ; preds = %522
  %563 = call noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  %564 = icmp eq i64 %563, 0
  br i1 %564, label %565, label %570

565:                                              ; preds = %562
  %566 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef @.str.2)
          to label %567 unwind label %79

567:                                              ; preds = %565
  %568 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %566, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %569 unwind label %79

569:                                              ; preds = %567
  br label %570

570:                                              ; preds = %569, %562
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %571

571:                                              ; preds = %570, %174
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #8
  %572 = load i32, ptr %1, align 4
  ret i32 %572

573:                                              ; preds = %561, %499, %406, %328, %265, %214, %156, %107, %83, %79
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #8
  br label %574

574:                                              ; preds = %573, %75
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #8
  br label %575

575:                                              ; preds = %574
  %576 = load ptr, ptr %4, align 8
  %577 = load i32, ptr %5, align 4
  %578 = insertvalue { ptr, i32 } poison, ptr %576, 0
  %579 = insertvalue { ptr, i32 } %578, i32 %577, 1
  resume { ptr, i32 } %579

580:                                              ; preds = %120, %96
  unreachable
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

; Function Attrs: 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) #7

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #0 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { "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 = { 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 #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !10}


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

%"class.std::__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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.3 }
%union.anon.3 = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@__const.main.b = external hidden unnamed_addr constant [4 x [6 x i8]], align 16
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@__const.main.l = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.3 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.4 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.5 = external hidden unnamed_addr constant [6 x i8], align 1
@__const.main.l.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6), ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::basic_ifstream", align 8
  %2 = alloca %"class.std::basic_ofstream", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::set", align 8
  %8 = alloca [4 x [6 x i8]], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca [6 x i8], align 1
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca [6 x i8], align 1
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca [6 x i8], align 1
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca [6 x i8], align 1
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca [6 x i8], align 1
  %32 = alloca %"class.std::vector", align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %36 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %1) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #8
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %2, ptr noundef nonnull @.str.1, i32 noundef 16)
          to label %38 unwind label %45

38:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %8, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.b, i64 24, i1 false)
  %39 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %40 unwind label %47

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.preheader159 unwind label %47

.preheader159:                                    ; preds = %40, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %43 unwind label %49

43:                                               ; preds = %.preheader159
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %.not142 = icmp eq i32 %44, -1
  br i1 %.not142, label %.preheader158, label %51

45:                                               ; preds = %0
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %305

47:                                               ; preds = %301, %299, %40, %38
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %304

49:                                               ; preds = %51, %.preheader159
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %304

51:                                               ; preds = %43
  %52 = srem i32 %44, 6
  %53 = icmp eq i32 %52, 0
  %spec.store.select = select i1 %53, i32 6, i32 %52
  store i32 %spec.store.select, ptr %9, align 4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %54 unwind label %49

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %.preheader159

.preheader158:                                    ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %55

55:                                               ; preds = %.preheader158, %65
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %57 unwind label %60

57:                                               ; preds = %55
  %58 = load i32, ptr %10, align 4, !tbaa !5
  %59 = icmp eq i32 %58, -1
  br i1 %59, label %66, label %62

60:                                               ; preds = %62, %55
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %304

62:                                               ; preds = %57
  %63 = srem i32 %58, 6
  %64 = icmp eq i32 %63, 0
  %spec.store.select4 = select i1 %64, i32 6, i32 %63
  store i32 %spec.store.select4, ptr %10, align 4
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %65 unwind label %60

65:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %55

66:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %67 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %67, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %68 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  store ptr %68, ptr %12, align 8
  %69 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %69, label %.lr.ph162, label %.loopexit

.lr.ph162:                                        ; preds = %66, %._crit_edge
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %71 = load i32, ptr %70, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %72 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  store ptr %72, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %73 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  store ptr %73, ptr %14, align 8
  %74 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %74, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph162, %.critedge
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %.not = icmp eq i32 %71, %76
  br i1 %.not, label %77, label %.critedge

77:                                               ; preds = %.lr.ph
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.2)
          to label %79 unwind label %81

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %87 unwind label %81

81:                                               ; preds = %79, %77
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %304

.critedge:                                        ; preds = %.lr.ph
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %84, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.critedge, %.lr.ph162
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %86 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %86, label %.lr.ph162, label %.loopexit

87:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %303

.loopexit:                                        ; preds = %._crit_edge, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %88 = load i32, ptr %4, align 4
  %89 = icmp sgt i32 %88, -1
  %90 = icmp ne i32 %88, 1
  %or.cond = and i1 %89, %90
  br i1 %or.cond, label %91, label %110

91:                                               ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %15) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %15, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l, i64 6, i1 false)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %92 unwind label %99

92:                                               ; preds = %91
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %93 unwind label %101

93:                                               ; preds = %92
  %94 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br i1 %94, label %95, label %108

95:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull %15)
          to label %96 unwind label %103

96:                                               ; preds = %95
  %97 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %98 unwind label %105

98:                                               ; preds = %96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br label %108

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

101:                                              ; preds = %92
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  br label %109

103:                                              ; preds = %95
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %96
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %107

107:                                              ; preds = %105, %103
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br label %109

108:                                              ; preds = %98, %93
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %15) #8
  %.pre = load i32, ptr %4, align 4
  br label %110

109:                                              ; preds = %107, %101, %99
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %15) #8
  br label %304

110:                                              ; preds = %108, %.loopexit
  %111 = phi i32 [ %.pre, %108 ], [ %88, %.loopexit ]
  %112 = icmp sgt i32 %111, 0
  %113 = icmp ne i32 %111, 2
  %or.cond8 = and i1 %112, %113
  br i1 %or.cond8, label %.preheader156.preheader, label %.loopexit157

.preheader156.preheader:                          ; preds = %110
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.3, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull %8)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %114 unwind label %121

114:                                              ; preds = %.preheader156.preheader
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %115 unwind label %123

115:                                              ; preds = %114
  %116 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br i1 %116, label %117, label %.preheader156.1

117:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull %19)
          to label %118 unwind label %125

118:                                              ; preds = %117
  %119 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %120 unwind label %127

120:                                              ; preds = %118
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %.preheader156.1

121:                                              ; preds = %.preheader156.3, %.preheader156.2, %.preheader156.1, %.preheader156.preheader
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %154

123:                                              ; preds = %147, %139, %131, %114
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br label %154

125:                                              ; preds = %150, %142, %134, %117
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %151, %143, %135, %118
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  br label %129

129:                                              ; preds = %127, %125
  %.pn129 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %154

.preheader156.1:                                  ; preds = %120, %115
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.3, i64 6, i1 false)
  %130 = getelementptr inbounds i8, ptr %8, i64 6
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull %130)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %131 unwind label %121

131:                                              ; preds = %.preheader156.1
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %132 unwind label %123

132:                                              ; preds = %131
  %133 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br i1 %133, label %134, label %.preheader156.2

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull %19)
          to label %135 unwind label %125

135:                                              ; preds = %134
  %136 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %137 unwind label %127

137:                                              ; preds = %135
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %.preheader156.2

.preheader156.2:                                  ; preds = %137, %132
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.3, i64 6, i1 false)
  %138 = getelementptr inbounds i8, ptr %8, i64 12
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull %138)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %139 unwind label %121

139:                                              ; preds = %.preheader156.2
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %140 unwind label %123

140:                                              ; preds = %139
  %141 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br i1 %141, label %142, label %.preheader156.3

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull %19)
          to label %143 unwind label %125

143:                                              ; preds = %142
  %144 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %145 unwind label %127

145:                                              ; preds = %143
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %.preheader156.3

.preheader156.3:                                  ; preds = %145, %140
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.3, i64 6, i1 false)
  %146 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %19, ptr noundef nonnull %146)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %147 unwind label %121

147:                                              ; preds = %.preheader156.3
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %148 unwind label %123

148:                                              ; preds = %147
  %149 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br i1 %149, label %150, label %.loopexit157.loopexit

150:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull %19)
          to label %151 unwind label %125

151:                                              ; preds = %150
  %152 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %153 unwind label %127

153:                                              ; preds = %151
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  br label %.loopexit157.loopexit

.loopexit157.loopexit:                            ; preds = %153, %148
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %19) #8
  %.pre434 = load i32, ptr %4, align 4
  br label %.loopexit157

154:                                              ; preds = %129, %123, %121
  %.pn129.pn = phi { ptr, i32 } [ %.pn129, %129 ], [ %124, %123 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %19) #8
  br label %304

.loopexit157:                                     ; preds = %.loopexit157.loopexit, %110
  %155 = phi i32 [ %.pre434, %.loopexit157.loopexit ], [ %111, %110 ]
  %156 = icmp sgt i32 %155, 1
  %157 = icmp ne i32 %155, 3
  %or.cond10 = and i1 %156, %157
  br i1 %or.cond10, label %.lr.ph166, label %.loopexit155

.lr.ph166.1:                                      ; preds = %210, %205
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %23) #8
  %158 = getelementptr inbounds i8, ptr %8, i64 6
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.4, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %158)
  %159 = getelementptr inbounds i8, ptr %8, i64 12
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %159)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %160 unwind label %.loopexit.split-lp.loopexit

160:                                              ; preds = %.lr.ph166.1
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %161 unwind label %.loopexit.split-lp202.loopexit

161:                                              ; preds = %160
  %162 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br i1 %162, label %163, label %167

163:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull %23)
          to label %164 unwind label %.loopexit.split-lp207.loopexit

164:                                              ; preds = %163
  %165 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %166 unwind label %.loopexit.split-lp212.loopexit

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

167:                                              ; preds = %166, %161
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.4, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %158)
  %168 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %168)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %169 unwind label %.loopexit.split-lp.loopexit

169:                                              ; preds = %167
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %170 unwind label %.loopexit.split-lp202.loopexit

170:                                              ; preds = %169
  %171 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br i1 %171, label %172, label %.lr.ph166.2

172:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull %23)
          to label %173 unwind label %.loopexit.split-lp207.loopexit

173:                                              ; preds = %172
  %174 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %175 unwind label %.loopexit.split-lp212.loopexit

175:                                              ; preds = %173
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %.lr.ph166.2

.lr.ph166.2:                                      ; preds = %175, %170
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %23) #8
  %176 = getelementptr inbounds i8, ptr %8, i64 12
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.4, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %176)
  %177 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %177)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %178 unwind label %.loopexit.split-lp.loopexit.split-lp

178:                                              ; preds = %.lr.ph166.2
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %179 unwind label %.loopexit.split-lp202.loopexit.split-lp

179:                                              ; preds = %178
  %180 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br i1 %180, label %181, label %.loopexit153.3

181:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull %23)
          to label %182 unwind label %.loopexit.split-lp207.loopexit.split-lp

182:                                              ; preds = %181
  %183 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %184 unwind label %.loopexit.split-lp212.loopexit.split-lp

184:                                              ; preds = %182
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %.loopexit153.3

.loopexit153.3:                                   ; preds = %179, %184
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %23) #8
  %.pre435.pre = load i32, ptr %4, align 4
  br label %.loopexit155

.lr.ph166:                                        ; preds = %.loopexit157
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.4, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %8)
  %185 = getelementptr inbounds i8, ptr %8, i64 6
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %185)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %186 unwind label %.loopexit200

186:                                              ; preds = %.lr.ph166
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %187 unwind label %.loopexit201

187:                                              ; preds = %186
  %188 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br i1 %188, label %189, label %193

189:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull %23)
          to label %190 unwind label %.loopexit206

190:                                              ; preds = %189
  %191 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %192 unwind label %.loopexit211

192:                                              ; preds = %190
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %193

.loopexit200:                                     ; preds = %202, %193, %.lr.ph166
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %167, %.lr.ph166.1
  %lpad.loopexit216 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.loopexit201:                                     ; preds = %204, %195, %186
  %lpad.loopexit203 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp202

.loopexit.split-lp202.loopexit:                   ; preds = %169, %160
  %lpad.loopexit219 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp202

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

.loopexit.split-lp202:                            ; preds = %.loopexit.split-lp202.loopexit, %.loopexit.split-lp202.loopexit.split-lp, %.loopexit201
  %lpad.phi205 = phi { ptr, i32 } [ %lpad.loopexit203, %.loopexit201 ], [ %lpad.loopexit219, %.loopexit.split-lp202.loopexit ], [ %lpad.loopexit230, %.loopexit.split-lp202.loopexit.split-lp ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br label %.loopexit.split-lp

.loopexit206:                                     ; preds = %207, %198, %189
  %lpad.loopexit208 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp207

.loopexit.split-lp207.loopexit:                   ; preds = %172, %163
  %lpad.loopexit221 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp207

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

.loopexit211:                                     ; preds = %208, %199, %190
  %lpad.loopexit213 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp212

.loopexit.split-lp212.loopexit:                   ; preds = %173, %164
  %lpad.loopexit224 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp212

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

.loopexit.split-lp212:                            ; preds = %.loopexit.split-lp212.loopexit, %.loopexit.split-lp212.loopexit.split-lp, %.loopexit211
  %lpad.phi215 = phi { ptr, i32 } [ %lpad.loopexit213, %.loopexit211 ], [ %lpad.loopexit224, %.loopexit.split-lp212.loopexit ], [ %lpad.loopexit235, %.loopexit.split-lp212.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  br label %.loopexit.split-lp207

.loopexit.split-lp207:                            ; preds = %.loopexit206, %.loopexit.split-lp207.loopexit.split-lp, %.loopexit.split-lp207.loopexit, %.loopexit.split-lp212
  %.pn126 = phi { ptr, i32 } [ %lpad.phi215, %.loopexit.split-lp212 ], [ %lpad.loopexit208, %.loopexit206 ], [ %lpad.loopexit221, %.loopexit.split-lp207.loopexit ], [ %lpad.loopexit233, %.loopexit.split-lp207.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %.loopexit.split-lp

193:                                              ; preds = %192, %187
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.4, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %8)
  %194 = getelementptr inbounds i8, ptr %8, i64 12
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %194)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %195 unwind label %.loopexit200

195:                                              ; preds = %193
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %196 unwind label %.loopexit201

196:                                              ; preds = %195
  %197 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br i1 %197, label %198, label %202

198:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull %23)
          to label %199 unwind label %.loopexit206

199:                                              ; preds = %198
  %200 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %201 unwind label %.loopexit211

201:                                              ; preds = %199
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %202

202:                                              ; preds = %201, %196
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.4, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %8)
  %203 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %23, ptr noundef nonnull %203)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %204 unwind label %.loopexit200

204:                                              ; preds = %202
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %205 unwind label %.loopexit201

205:                                              ; preds = %204
  %206 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  br i1 %206, label %207, label %.lr.ph166.1

207:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull %23)
          to label %208 unwind label %.loopexit206

208:                                              ; preds = %207
  %209 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %210 unwind label %.loopexit211

210:                                              ; preds = %208
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %.lr.ph166.1

.loopexit.split-lp:                               ; preds = %.loopexit200, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %.loopexit.split-lp207, %.loopexit.split-lp202
  %.pn126.pn = phi { ptr, i32 } [ %.pn126, %.loopexit.split-lp207 ], [ %lpad.phi205, %.loopexit.split-lp202 ], [ %lpad.loopexit, %.loopexit200 ], [ %lpad.loopexit216, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit227, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %23) #8
  br label %304

.loopexit155:                                     ; preds = %.loopexit153.3, %.loopexit157
  %211 = phi i32 [ %.pre435.pre, %.loopexit153.3 ], [ %155, %.loopexit157 ]
  %212 = icmp sgt i32 %211, 2
  %213 = icmp ne i32 %211, 4
  %or.cond12 = and i1 %212, %213
  br i1 %or.cond12, label %.lr.ph170, label %.loopexit152

.lr.ph170.1:                                      ; preds = %227, %232
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %27) #8
  %214 = getelementptr inbounds i8, ptr %8, i64 6
  %215 = getelementptr inbounds i8, ptr %8, i64 12
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.5, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %214)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %215)
  %216 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %216)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %217 unwind label %.loopexit.split-lp253

217:                                              ; preds = %.lr.ph170.1
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %218 unwind label %.loopexit.split-lp258

218:                                              ; preds = %217
  %219 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull %29)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br i1 %219, label %220, label %.loopexit150.3

220:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull %27)
          to label %221 unwind label %.loopexit.split-lp263

221:                                              ; preds = %220
  %222 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %223 unwind label %.loopexit.split-lp268

223:                                              ; preds = %221
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #8
  br label %.loopexit150.3

.loopexit150.3:                                   ; preds = %218, %223
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %27) #8
  %.pre436 = load i32, ptr %4, align 4
  br label %.loopexit152

.lr.ph170.1297:                                   ; preds = %250, %245
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %27) #8
  %224 = getelementptr inbounds i8, ptr %8, i64 12
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.5, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %8)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %224)
  %225 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %225)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %226 unwind label %.loopexit252.loopexit.split-lp

226:                                              ; preds = %.lr.ph170.1297
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %227 unwind label %.loopexit257.loopexit.split-lp

227:                                              ; preds = %226
  %228 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull %29)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br i1 %228, label %229, label %.lr.ph170.1

229:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull %27)
          to label %230 unwind label %.loopexit262.loopexit.split-lp

230:                                              ; preds = %229
  %231 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %232 unwind label %.loopexit267.loopexit.split-lp

232:                                              ; preds = %230
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #8
  br label %.lr.ph170.1

.lr.ph170:                                        ; preds = %.loopexit155
  %233 = getelementptr inbounds i8, ptr %8, i64 6
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.5, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %8)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %233)
  %234 = getelementptr inbounds i8, ptr %8, i64 12
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %234)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %235 unwind label %.loopexit252.loopexit

235:                                              ; preds = %.lr.ph170
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %236 unwind label %.loopexit257.loopexit

236:                                              ; preds = %235
  %237 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull %29)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br i1 %237, label %238, label %242

238:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull %27)
          to label %239 unwind label %.loopexit262.loopexit

239:                                              ; preds = %238
  %240 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %241 unwind label %.loopexit267.loopexit

241:                                              ; preds = %239
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #8
  br label %242

.loopexit252.loopexit:                            ; preds = %242, %.lr.ph170
  %lpad.loopexit303 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit252

.loopexit252.loopexit.split-lp:                   ; preds = %.lr.ph170.1297
  %lpad.loopexit315 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit252

.loopexit.split-lp253:                            ; preds = %.lr.ph170.1
  %lpad.loopexit272 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit252

.loopexit257.loopexit:                            ; preds = %244, %235
  %lpad.loopexit306 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit257

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

.loopexit.split-lp258:                            ; preds = %217
  %lpad.loopexit275 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit257

.loopexit257:                                     ; preds = %.loopexit257.loopexit, %.loopexit257.loopexit.split-lp, %.loopexit.split-lp258
  %lpad.phi261 = phi { ptr, i32 } [ %lpad.loopexit275, %.loopexit.split-lp258 ], [ %lpad.loopexit306, %.loopexit257.loopexit ], [ %lpad.loopexit318, %.loopexit257.loopexit.split-lp ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br label %.loopexit252

.loopexit262.loopexit:                            ; preds = %247, %238
  %lpad.loopexit309 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit262

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

.loopexit.split-lp263:                            ; preds = %220
  %lpad.loopexit278 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit262

.loopexit267.loopexit:                            ; preds = %248, %239
  %lpad.loopexit312 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit267

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

.loopexit.split-lp268:                            ; preds = %221
  %lpad.loopexit281 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit267

.loopexit267:                                     ; preds = %.loopexit267.loopexit, %.loopexit267.loopexit.split-lp, %.loopexit.split-lp268
  %lpad.phi271 = phi { ptr, i32 } [ %lpad.loopexit281, %.loopexit.split-lp268 ], [ %lpad.loopexit312, %.loopexit267.loopexit ], [ %lpad.loopexit324, %.loopexit267.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  br label %.loopexit262

.loopexit262:                                     ; preds = %.loopexit.split-lp263, %.loopexit262.loopexit.split-lp, %.loopexit262.loopexit, %.loopexit267
  %.pn123 = phi { ptr, i32 } [ %lpad.phi271, %.loopexit267 ], [ %lpad.loopexit278, %.loopexit.split-lp263 ], [ %lpad.loopexit309, %.loopexit262.loopexit ], [ %lpad.loopexit321, %.loopexit262.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #8
  br label %.loopexit252

242:                                              ; preds = %241, %236
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.5, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %8)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %233)
  %243 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %27, ptr noundef nonnull %243)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %244 unwind label %.loopexit252.loopexit

244:                                              ; preds = %242
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %245 unwind label %.loopexit257.loopexit

245:                                              ; preds = %244
  %246 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef nonnull %29)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  br i1 %246, label %247, label %.lr.ph170.1297

247:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull %27)
          to label %248 unwind label %.loopexit262.loopexit

248:                                              ; preds = %247
  %249 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %250 unwind label %.loopexit267.loopexit

250:                                              ; preds = %248
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #8
  br label %.lr.ph170.1297

.loopexit252:                                     ; preds = %.loopexit.split-lp253, %.loopexit252.loopexit.split-lp, %.loopexit252.loopexit, %.loopexit262, %.loopexit257
  %.pn123.pn = phi { ptr, i32 } [ %.pn123, %.loopexit262 ], [ %lpad.phi261, %.loopexit257 ], [ %lpad.loopexit272, %.loopexit.split-lp253 ], [ %lpad.loopexit303, %.loopexit252.loopexit ], [ %lpad.loopexit315, %.loopexit252.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %27) #8
  br label %304

.loopexit152:                                     ; preds = %.loopexit150.3, %.loopexit155
  %251 = phi i32 [ %.pre436, %.loopexit150.3 ], [ %211, %.loopexit155 ]
  %252 = icmp sgt i32 %251, 3
  %253 = icmp ne i32 %251, 5
  %or.cond14 = and i1 %252, %253
  br i1 %or.cond14, label %.lr.ph177, label %.loopexit148

.loopexit146.3:                                   ; preds = %258, %263
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %31) #8
  br label %.loopexit148

.lr.ph177:                                        ; preds = %.loopexit152
  %254 = getelementptr inbounds i8, ptr %8, i64 6
  %255 = getelementptr inbounds i8, ptr %8, i64 12
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %31) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %31, ptr noundef nonnull align 1 dereferenceable(6) @__const.main.l.6, i64 6, i1 false)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %31, ptr noundef nonnull %8)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %31, ptr noundef nonnull %254)
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %31, ptr noundef nonnull %255)
  %256 = getelementptr inbounds i8, ptr %8, i64 18
  call void @_Z8pressBtnRA6_bPb(ptr noundef nonnull align 1 dereferenceable(6) %31, ptr noundef nonnull %256)
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %257 unwind label %264

257:                                              ; preds = %.lr.ph177
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %258 unwind label %265

258:                                              ; preds = %257
  %259 = call noundef zeroext i1 @_Z5worksPbSt6vectorIiSaIiEES2_(ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  br i1 %259, label %260, label %.loopexit146.3

260:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #8
  invoke void @_Z3b2sB5cxx11Pb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %34, ptr noundef nonnull %31)
          to label %261 unwind label %266

261:                                              ; preds = %260
  %262 = invoke { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %263 unwind label %267

263:                                              ; preds = %261
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #8
  br label %.loopexit146.3

264:                                              ; preds = %.lr.ph177
  %lpad.loopexit407 = landingpad { ptr, i32 }
          cleanup
  br label %269

265:                                              ; preds = %257
  %lpad.loopexit410 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  br label %269

266:                                              ; preds = %260
  %lpad.loopexit413 = landingpad { ptr, i32 }
          cleanup
  br label %268

267:                                              ; preds = %261
  %lpad.loopexit416 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  br label %268

268:                                              ; preds = %267, %266
  %.pn120 = phi { ptr, i32 } [ %lpad.loopexit416, %267 ], [ %lpad.loopexit413, %266 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #8
  br label %269

269:                                              ; preds = %268, %265, %264
  %.pn120.pn = phi { ptr, i32 } [ %.pn120, %268 ], [ %lpad.loopexit410, %265 ], [ %lpad.loopexit407, %264 ]
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %31) #8
  br label %304

.loopexit148:                                     ; preds = %.loopexit146.3, %.loopexit152
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #8
  %270 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %270, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #8
  %271 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  store ptr %271, ptr %36, align 8
  %272 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  br i1 %272, label %.lr.ph189, label %._crit_edge190

._crit_edge190:                                   ; preds = %292, %.loopexit148
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #8
  %273 = call noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  %274 = icmp eq i64 %273, 0
  br i1 %274, label %299, label %303

.lr.ph189:                                        ; preds = %.loopexit148, %292
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %37) #8
  %275 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %275)
          to label %.preheader unwind label %279

.preheader:                                       ; preds = %.lr.ph189
  %276 = load i32, ptr %3, align 4, !tbaa !5
  %277 = icmp sgt i32 %276, 0
  br i1 %277, label %.lr.ph186, label %._crit_edge187

._crit_edge187:                                   ; preds = %286, %.preheader
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %292 unwind label %295

279:                                              ; preds = %.lr.ph189
  %280 = landingpad { ptr, i32 }
          cleanup
  br label %298

.lr.ph186:                                        ; preds = %.preheader, %286
  %.0185 = phi i32 [ %287, %286 ], [ 0, %.preheader ]
  %281 = urem i32 %.0185, 6
  %282 = zext nneg i32 %281 to i64
  %283 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %37, i64 noundef %282)
  %284 = load i8, ptr %283, align 1, !tbaa !9
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %2, i8 noundef signext %284)
          to label %286 unwind label %290

286:                                              ; preds = %.lr.ph186
  %287 = add nuw nsw i32 %.0185, 1
  %288 = load i32, ptr %3, align 4, !tbaa !5
  %289 = icmp slt i32 %287, %288
  br i1 %289, label %.lr.ph186, label %._crit_edge187, !llvm.loop !10

290:                                              ; preds = %.lr.ph186
  %291 = landingpad { ptr, i32 }
          cleanup
  br label %297

292:                                              ; preds = %._crit_edge187
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %37) #8
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  %294 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #8
  br i1 %294, label %.lr.ph189, label %._crit_edge190

295:                                              ; preds = %._crit_edge187
  %296 = landingpad { ptr, i32 }
          cleanup
  br label %297

297:                                              ; preds = %295, %290
  %.pn117 = phi { ptr, i32 } [ %291, %290 ], [ %296, %295 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  br label %298

298:                                              ; preds = %297, %279
  %.pn117.pn = phi { ptr, i32 } [ %.pn117, %297 ], [ %280, %279 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #8
  br label %304

299:                                              ; preds = %._crit_edge190
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.2)
          to label %301 unwind label %47

301:                                              ; preds = %299
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %303 unwind label %47

303:                                              ; preds = %87, %._crit_edge190, %301
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #8
  ret i32 0

304:                                              ; preds = %298, %269, %.loopexit252, %.loopexit.split-lp, %154, %109, %81, %60, %49, %47
  %.pn129.pn.pn = phi { ptr, i32 } [ %.pn129.pn, %154 ], [ %.pn126.pn, %.loopexit.split-lp ], [ %.pn123.pn, %.loopexit252 ], [ %.pn120.pn, %269 ], [ %.pn117.pn, %298 ], [ %48, %47 ], [ %.pn.pn, %109 ], [ %82, %81 ], [ %61, %60 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #8
  br label %305

305:                                              ; preds = %304, %45
  %.pn129.pn.pn.pn = phi { ptr, i32 } [ %.pn129.pn.pn, %304 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn129.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 #6

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE6insertEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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


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