; LLVM IR from DionysiosB/CodeForces :: 0700-0799 (747B-MammothsGenomeDecoding)

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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca i1, align 1
  %23 = alloca i1, align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %26 unwind label %33

26:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = udiv i64 %27, 4
  store i64 %28, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 1, ptr %11, align 1, !tbaa !9
  %29 = load i64, ptr %2, align 8, !tbaa !5
  %30 = urem i64 %29, 4
  %31 = icmp ugt i64 %30, 0
  br i1 %31, label %32, label %37

32:                                               ; preds = %26
  store i8 0, ptr %11, align 1, !tbaa !9
  br label %95

33:                                               ; preds = %0
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %4, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %5, align 4
  br label %245

37:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %91, %37
  %39 = load i64, ptr %12, align 8, !tbaa !5
  %40 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %94

43:                                               ; preds = %38
  %44 = load i64, ptr %12, align 8, !tbaa !5
  %45 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %44)
          to label %46 unwind label %53

46:                                               ; preds = %43
  %47 = load i8, ptr %45, align 1, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = icmp eq i32 %48, 65
  br i1 %49, label %50, label %57

50:                                               ; preds = %46
  %51 = load i64, ptr %6, align 8, !tbaa !5
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %6, align 8, !tbaa !5
  br label %90

53:                                               ; preds = %77, %67, %57, %43
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %4, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %244

57:                                               ; preds = %46
  %58 = load i64, ptr %12, align 8, !tbaa !5
  %59 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %58)
          to label %60 unwind label %53

60:                                               ; preds = %57
  %61 = load i8, ptr %59, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = icmp eq i32 %62, 67
  br i1 %63, label %64, label %67

64:                                               ; preds = %60
  %65 = load i64, ptr %7, align 8, !tbaa !5
  %66 = add nsw i64 %65, 1
  store i64 %66, ptr %7, align 8, !tbaa !5
  br label %89

67:                                               ; preds = %60
  %68 = load i64, ptr %12, align 8, !tbaa !5
  %69 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %68)
          to label %70 unwind label %53

70:                                               ; preds = %67
  %71 = load i8, ptr %69, align 1, !tbaa !11
  %72 = sext i8 %71 to i32
  %73 = icmp eq i32 %72, 71
  br i1 %73, label %74, label %77

74:                                               ; preds = %70
  %75 = load i64, ptr %8, align 8, !tbaa !5
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %8, align 8, !tbaa !5
  br label %88

77:                                               ; preds = %70
  %78 = load i64, ptr %12, align 8, !tbaa !5
  %79 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %78)
          to label %80 unwind label %53

80:                                               ; preds = %77
  %81 = load i8, ptr %79, align 1, !tbaa !11
  %82 = sext i8 %81 to i32
  %83 = icmp eq i32 %82, 84
  br i1 %83, label %84, label %87

84:                                               ; preds = %80
  %85 = load i64, ptr %9, align 8, !tbaa !5
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %9, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %84, %80
  br label %88

88:                                               ; preds = %87, %74
  br label %89

89:                                               ; preds = %88, %64
  br label %90

90:                                               ; preds = %89, %50
  br label %91

91:                                               ; preds = %90
  %92 = load i64, ptr %12, align 8, !tbaa !5
  %93 = add i64 %92, 1
  store i64 %93, ptr %12, align 8, !tbaa !5
  br label %38, !llvm.loop !12

94:                                               ; preds = %42
  br label %95

95:                                               ; preds = %94, %32
  %96 = load i64, ptr %6, align 8, !tbaa !5
  %97 = load i64, ptr %10, align 8, !tbaa !5
  %98 = icmp sgt i64 %96, %97
  br i1 %98, label %111, label %99

99:                                               ; preds = %95
  %100 = load i64, ptr %7, align 8, !tbaa !5
  %101 = load i64, ptr %10, align 8, !tbaa !5
  %102 = icmp sgt i64 %100, %101
  br i1 %102, label %111, label %103

103:                                              ; preds = %99
  %104 = load i64, ptr %8, align 8, !tbaa !5
  %105 = load i64, ptr %10, align 8, !tbaa !5
  %106 = icmp sgt i64 %104, %105
  br i1 %106, label %111, label %107

107:                                              ; preds = %103
  %108 = load i64, ptr %9, align 8, !tbaa !5
  %109 = load i64, ptr %10, align 8, !tbaa !5
  %110 = icmp sgt i64 %108, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %107, %103, %99, %95
  store i8 0, ptr %11, align 1, !tbaa !9
  br label %112

112:                                              ; preds = %111, %107
  %113 = load i8, ptr %11, align 1, !tbaa !9, !range !14, !noundef !15
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %205

115:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %116 = load i64, ptr %10, align 8, !tbaa !5
  %117 = load i64, ptr %6, align 8, !tbaa !5
  %118 = sub nsw i64 %116, %117
  store i64 %118, ptr %6, align 8, !tbaa !5
  %119 = load i64, ptr %10, align 8, !tbaa !5
  %120 = load i64, ptr %7, align 8, !tbaa !5
  %121 = sub nsw i64 %119, %120
  store i64 %121, ptr %7, align 8, !tbaa !5
  %122 = load i64, ptr %10, align 8, !tbaa !5
  %123 = load i64, ptr %8, align 8, !tbaa !5
  %124 = sub nsw i64 %122, %123
  store i64 %124, ptr %8, align 8, !tbaa !5
  %125 = load i64, ptr %10, align 8, !tbaa !5
  %126 = load i64, ptr %9, align 8, !tbaa !5
  %127 = sub nsw i64 %125, %126
  store i64 %127, ptr %9, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %133, %115
  %129 = load i64, ptr %6, align 8, !tbaa !5
  %130 = add nsw i64 %129, -1
  store i64 %130, ptr %6, align 8, !tbaa !5
  %131 = icmp ne i64 %129, 0
  br i1 %131, label %132, label %138

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 65, ptr %14, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %133 unwind label %134

133:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %128, !llvm.loop !16

134:                                              ; preds = %132
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %4, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %204

138:                                              ; preds = %128
  br label %139

139:                                              ; preds = %144, %138
  %140 = load i64, ptr %7, align 8, !tbaa !5
  %141 = add nsw i64 %140, -1
  store i64 %141, ptr %7, align 8, !tbaa !5
  %142 = icmp ne i64 %140, 0
  br i1 %142, label %143, label %149

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  store i8 67, ptr %15, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %144 unwind label %145

144:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %139, !llvm.loop !17

145:                                              ; preds = %143
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %4, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %204

149:                                              ; preds = %139
  br label %150

150:                                              ; preds = %155, %149
  %151 = load i64, ptr %8, align 8, !tbaa !5
  %152 = add nsw i64 %151, -1
  store i64 %152, ptr %8, align 8, !tbaa !5
  %153 = icmp ne i64 %151, 0
  br i1 %153, label %154, label %160

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 71, ptr %16, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %155 unwind label %156

155:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %150, !llvm.loop !18

156:                                              ; preds = %154
  %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 1, ptr %16) #6
  br label %204

160:                                              ; preds = %150
  br label %161

161:                                              ; preds = %166, %160
  %162 = load i64, ptr %9, align 8, !tbaa !5
  %163 = add nsw i64 %162, -1
  store i64 %163, ptr %9, align 8, !tbaa !5
  %164 = icmp ne i64 %162, 0
  br i1 %164, label %165, label %171

165:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  store i8 84, ptr %17, align 1, !tbaa !11
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %166 unwind label %167

166:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %161, !llvm.loop !19

167:                                              ; preds = %165
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %4, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  br label %204

171:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !20
  br label %172

172:                                              ; preds = %200, %171
  %173 = load i32, ptr %19, align 4, !tbaa !20
  %174 = sext i32 %173 to i64
  %175 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %176 = icmp ult i64 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %203

178:                                              ; preds = %172
  %179 = load i32, ptr %19, align 4, !tbaa !20
  %180 = sext i32 %179 to i64
  %181 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %180)
          to label %182 unwind label %187

182:                                              ; preds = %178
  %183 = load i8, ptr %181, align 1, !tbaa !11
  %184 = sext i8 %183 to i32
  %185 = icmp ne i32 %184, 63
  br i1 %185, label %186, label %191

186:                                              ; preds = %182
  br label %200

187:                                              ; preds = %191, %178
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %4, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %204

191:                                              ; preds = %182
  %192 = load i64, ptr %18, align 8, !tbaa !5
  %193 = add i64 %192, 1
  store i64 %193, ptr %18, align 8, !tbaa !5
  %194 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %192) #6
  %195 = load i8, ptr %194, align 1, !tbaa !11
  %196 = load i32, ptr %19, align 4, !tbaa !20
  %197 = sext i32 %196 to i64
  %198 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %197)
          to label %199 unwind label %187

199:                                              ; preds = %191
  store i8 %195, ptr %198, align 1, !tbaa !11
  br label %200

200:                                              ; preds = %199, %186
  %201 = load i32, ptr %19, align 4, !tbaa !20
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %19, align 4, !tbaa !20
  br label %172, !llvm.loop !22

203:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %205

204:                                              ; preds = %187, %167, %156, %145, %134
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %244

205:                                              ; preds = %203, %112
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  %206 = load i8, ptr %11, align 1, !tbaa !9, !range !14, !noundef !15
  %207 = trunc i8 %206 to i1
  store i1 false, ptr %22, align 1
  store i1 false, ptr %23, align 1
  br i1 %207, label %208, label %210

208:                                              ; preds = %205
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %209 unwind label %224

209:                                              ; preds = %208
  br label %212

210:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  store i1 true, ptr %22, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  store i1 true, ptr %23, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %211 unwind label %228

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211, %209
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %214 unwind label %232

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

216:                                              ; preds = %214
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  %217 = load i1, ptr %23, align 1
  br i1 %217, label %218, label %219

218:                                              ; preds = %216
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  br label %219

219:                                              ; preds = %218, %216
  %220 = load i1, ptr %22, align 1
  br i1 %220, label %221, label %222

221:                                              ; preds = %219
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %222

222:                                              ; preds = %221, %219
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %223 = load i32, ptr %1, align 4
  ret i32 %223

224:                                              ; preds = %208
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %4, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %5, align 4
  br label %243

228:                                              ; preds = %210
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %4, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %5, align 4
  br label %236

232:                                              ; preds = %214, %212
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %4, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %236

236:                                              ; preds = %232, %228
  %237 = load i1, ptr %23, align 1
  br i1 %237, label %238, label %239

238:                                              ; preds = %236
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  br label %239

239:                                              ; preds = %238, %236
  %240 = load i1, ptr %22, align 1
  br i1 %240, label %241, label %242

241:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %242

242:                                              ; preds = %241, %239
  br label %243

243:                                              ; preds = %242, %224
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %244

244:                                              ; preds = %243, %204, %53
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %245

245:                                              ; preds = %244, %33
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %246

246:                                              ; preds = %245
  %247 = load ptr, ptr %4, align 8
  %248 = load i32, ptr %5, align 4
  %249 = insertvalue { ptr, i32 } poison, ptr %247, 0
  %250 = insertvalue { ptr, i32 } %249, i32 %248, 1
  resume { ptr, i32 } %250
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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) #3 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

; 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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

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


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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERm(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %11 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %12 unwind label %17

12:                                               ; preds = %0
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = lshr i64 %13, 2
  %15 = and i64 %13, 3
  %.not = icmp ne i64 %15, 0
  br i1 %.not, label %.loopexit, label %.preheader113

.preheader113:                                    ; preds = %12
  %16 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %.not133 = icmp eq i64 %16, 0
  br i1 %.not133, label %.loopexit, label %.lr.ph

17:                                               ; preds = %0
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %103

.lr.ph:                                           ; preds = %.preheader113, %41
  %.048118 = phi i64 [ %42, %41 ], [ 0, %.preheader113 ]
  %.051117 = phi i64 [ %.152, %41 ], [ 0, %.preheader113 ]
  %.053116 = phi i64 [ %.154, %41 ], [ 0, %.preheader113 ]
  %.057115 = phi i64 [ %.158, %41 ], [ 0, %.preheader113 ]
  %.061114 = phi i64 [ %.162, %41 ], [ 0, %.preheader113 ]
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.048118)
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = icmp eq i8 %20, 65
  br i1 %21, label %22, label %24

22:                                               ; preds = %.lr.ph
  %23 = add nsw i64 %.061114, 1
  br label %41

24:                                               ; preds = %.lr.ph
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.048118)
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = icmp eq i8 %26, 67
  br i1 %27, label %28, label %30

28:                                               ; preds = %24
  %29 = add nsw i64 %.057115, 1
  br label %41

30:                                               ; preds = %24
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.048118)
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = icmp eq i8 %32, 71
  br i1 %33, label %34, label %36

34:                                               ; preds = %30
  %35 = add nsw i64 %.053116, 1
  br label %41

36:                                               ; preds = %30
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.048118)
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = icmp eq i8 %38, 84
  %40 = zext i1 %39 to i64
  %spec.select = add nsw i64 %.051117, %40
  br label %41

41:                                               ; preds = %36, %22, %34, %28
  %.162 = phi i64 [ %23, %22 ], [ %.061114, %28 ], [ %.061114, %34 ], [ %.061114, %36 ]
  %.158 = phi i64 [ %.057115, %22 ], [ %29, %28 ], [ %.057115, %34 ], [ %.057115, %36 ]
  %.154 = phi i64 [ %.053116, %22 ], [ %.053116, %28 ], [ %35, %34 ], [ %.053116, %36 ]
  %.152 = phi i64 [ %.051117, %22 ], [ %.051117, %28 ], [ %.051117, %34 ], [ %spec.select, %36 ]
  %42 = add nuw i64 %.048118, 1
  %43 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %.lr.ph, label %.loopexit, !llvm.loop !10

.loopexit:                                        ; preds = %41, %.preheader113, %12
  %.263 = phi i64 [ 0, %12 ], [ 0, %.preheader113 ], [ %.162, %41 ]
  %.259 = phi i64 [ 0, %12 ], [ 0, %.preheader113 ], [ %.158, %41 ]
  %.255 = phi i64 [ 0, %12 ], [ 0, %.preheader113 ], [ %.154, %41 ]
  %.2 = phi i64 [ 0, %12 ], [ 0, %.preheader113 ], [ %.152, %41 ]
  %45 = icmp sgt i64 %.263, %14
  %46 = icmp sgt i64 %.259, %14
  %or.cond.not102.not109 = select i1 %45, i1 true, i1 %46
  %47 = icmp sgt i64 %.255, %14
  %or.cond87.not99.not106 = select i1 %or.cond.not102.not109, i1 true, i1 %47
  %48 = icmp sgt i64 %.2, %14
  %or.cond88.not.not104 = select i1 %or.cond87.not99.not106, i1 true, i1 %48
  %spec.select93.not = or i1 %.not, %or.cond88.not.not104
  br i1 %spec.select93.not, label %90, label %49

49:                                               ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIcSaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not76122 = icmp eq i64 %14, %.263
  br i1 %.not76122, label %.preheader112, label %.lr.ph123.preheader

.lr.ph123.preheader:                              ; preds = %49
  %50 = xor i64 %.263, -1
  %51 = add i64 %14, %50
  br label %.lr.ph123

.preheader112:                                    ; preds = %55, %49
  %.not77124 = icmp eq i64 %14, %.259
  br i1 %.not77124, label %.preheader111, label %.lr.ph125.preheader

.lr.ph125.preheader:                              ; preds = %.preheader112
  %52 = xor i64 %.259, -1
  %53 = add i64 %14, %52
  br label %.lr.ph125

.lr.ph123:                                        ; preds = %.lr.ph123.preheader, %55
  %54 = phi i64 [ %56, %55 ], [ %51, %.lr.ph123.preheader ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  store i8 65, ptr %4, align 1, !tbaa !9
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %55 unwind label %57

55:                                               ; preds = %.lr.ph123
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %56 = add nsw i64 %54, -1
  %.not76 = icmp eq i64 %54, 0
  br i1 %.not76, label %.preheader112, label %.lr.ph123, !llvm.loop !12

57:                                               ; preds = %.lr.ph123
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %89

.preheader111:                                    ; preds = %62, %.preheader112
  %.not78126 = icmp eq i64 %14, %.255
  br i1 %.not78126, label %.preheader110, label %.lr.ph127.preheader

.lr.ph127.preheader:                              ; preds = %.preheader111
  %59 = xor i64 %.255, -1
  %60 = add i64 %14, %59
  br label %.lr.ph127

.lr.ph125:                                        ; preds = %.lr.ph125.preheader, %62
  %61 = phi i64 [ %63, %62 ], [ %53, %.lr.ph125.preheader ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  store i8 67, ptr %5, align 1, !tbaa !9
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %62 unwind label %64

62:                                               ; preds = %.lr.ph125
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %63 = add nsw i64 %61, -1
  %.not77 = icmp eq i64 %61, 0
  br i1 %.not77, label %.preheader111, label %.lr.ph125, !llvm.loop !13

64:                                               ; preds = %.lr.ph125
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %89

.preheader110:                                    ; preds = %69, %.preheader111
  %.not79128 = icmp eq i64 %14, %.2
  br i1 %.not79128, label %.preheader, label %.lr.ph129.preheader

.lr.ph129.preheader:                              ; preds = %.preheader110
  %66 = xor i64 %.2, -1
  %67 = add i64 %14, %66
  br label %.lr.ph129

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %69
  %68 = phi i64 [ %70, %69 ], [ %60, %.lr.ph127.preheader ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  store i8 71, ptr %6, align 1, !tbaa !9
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %69 unwind label %71

69:                                               ; preds = %.lr.ph127
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %70 = add nsw i64 %68, -1
  %.not78 = icmp eq i64 %68, 0
  br i1 %.not78, label %.preheader110, label %.lr.ph127, !llvm.loop !14

71:                                               ; preds = %.lr.ph127
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %89

.preheader:                                       ; preds = %75, %.preheader110
  %73 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %.not134 = icmp eq i64 %73, 0
  br i1 %.not134, label %._crit_edge, label %.lr.ph132

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %75
  %74 = phi i64 [ %76, %75 ], [ %67, %.lr.ph129.preheader ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  store i8 84, ptr %7, align 1, !tbaa !9
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %75 unwind label %77

75:                                               ; preds = %.lr.ph129
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %76 = add nsw i64 %74, -1
  %.not79 = icmp eq i64 %74, 0
  br i1 %.not79, label %.preheader, label %.lr.ph129, !llvm.loop !15

77:                                               ; preds = %.lr.ph129
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %89

.lr.ph132:                                        ; preds = %.preheader, %86
  %indvars.iv = phi i64 [ %indvars.iv.next, %86 ], [ 0, %.preheader ]
  %.046130 = phi i64 [ %.147, %86 ], [ 0, %.preheader ]
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %80 = load i8, ptr %79, align 1, !tbaa !9
  %.not82 = icmp eq i8 %80, 63
  br i1 %.not82, label %81, label %86

81:                                               ; preds = %.lr.ph132
  %82 = add i64 %.046130, 1
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIcSaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.046130) #6
  %84 = load i8, ptr %83, align 1, !tbaa !9
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  store i8 %84, ptr %85, align 1, !tbaa !9
  br label %86

86:                                               ; preds = %.lr.ph132, %81
  %.147 = phi i64 [ %.046130, %.lr.ph132 ], [ %82, %81 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %87 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %88 = icmp ugt i64 %87, %indvars.iv.next
  br i1 %88, label %.lr.ph132, label %._crit_edge, !llvm.loop !16

89:                                               ; preds = %77, %71, %64, %57
  %.pn83 = phi { ptr, i32 } [ %58, %57 ], [ %65, %64 ], [ %72, %71 ], [ %78, %77 ]
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %103

._crit_edge:                                      ; preds = %86, %.preheader
  call void @_ZNSt6vectorIcSaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %91 unwind label %97

90:                                               ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %91 unwind label %.thread

91:                                               ; preds = %90, %._crit_edge
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %93 unwind label %100

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %95 unwind label %100

95:                                               ; preds = %93
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br i1 %spec.select93.not, label %96, label %.critedge90

96:                                               ; preds = %95
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  br label %.critedge90

.critedge90:                                      ; preds = %95, %96
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

97:                                               ; preds = %._crit_edge
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge92

.thread:                                          ; preds = %90
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %102

100:                                              ; preds = %91, %93
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br i1 %spec.select93.not, label %102, label %.critedge92

102:                                              ; preds = %.thread, %100
  %.pn96 = phi { ptr, i32 } [ %99, %.thread ], [ %101, %100 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  br label %.critedge92

.critedge92:                                      ; preds = %100, %102, %97
  %.pn.pn = phi { ptr, i32 } [ %.pn96, %102 ], [ %98, %97 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %103

103:                                              ; preds = %89, %.critedge92, %17
  %.pn83.pn.pn = phi { ptr, i32 } [ %18, %17 ], [ %.pn83, %89 ], [ %.pn.pn, %.critedge92 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn83.pn.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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 #3 align 2

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

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

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

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

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

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

; 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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

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


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