; LLVM IR from Tunghohin/Competitive_Coding :: Codeforces/cf1562_B.ll (Z5solvev)

; 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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

14:                                               ; preds = %0
  %15 = 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) %13, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %16 unwind label %22

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  store i8 1, ptr %5, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %84, %16
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = load i32, ptr %1, align 4, !tbaa !9
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %26, label %21

21:                                               ; preds = %17
  store i32 2, ptr %7, align 4
  br label %87

22:                                               ; preds = %14, %0
  %23 = landingpad { ptr, i32 }
          cleanup
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %3, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %4, align 4
  br label %441

26:                                               ; preds = %17
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %28)
          to label %30 unwind label %79

30:                                               ; preds = %26
  %31 = load i8, ptr %29, align 1, !tbaa !11
  %32 = sext i8 %31 to i32
  %33 = sub nsw i32 %32, 48
  %34 = srem i32 %33, 2
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %45

36:                                               ; preds = %30
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %38)
          to label %40 unwind label %79

40:                                               ; preds = %36
  %41 = load i8, ptr %39, align 1, !tbaa !11
  %42 = sext i8 %41 to i32
  %43 = sub nsw i32 %42, 48
  %44 = icmp ne i32 %43, 2
  br i1 %44, label %63, label %45

45:                                               ; preds = %40, %30
  %46 = load i32, ptr %6, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %47)
          to label %49 unwind label %79

49:                                               ; preds = %45
  %50 = load i8, ptr %48, align 1, !tbaa !11
  %51 = sext i8 %50 to i32
  %52 = sub nsw i32 %51, 48
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %63, label %54

54:                                               ; preds = %49
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %56)
          to label %58 unwind label %79

58:                                               ; preds = %54
  %59 = load i8, ptr %57, align 1, !tbaa !11
  %60 = sext i8 %59 to i32
  %61 = sub nsw i32 %60, 48
  %62 = icmp eq i32 %61, 9
  br i1 %62, label %63, label %83

63:                                               ; preds = %58, %49, %40
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
          to label %65 unwind label %79

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %64, i8 noundef signext 10)
          to label %67 unwind label %79

67:                                               ; preds = %65
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %69)
          to label %71 unwind label %79

71:                                               ; preds = %67
  %72 = load i8, ptr %70, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = sub nsw i32 %73, 48
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %74)
          to label %76 unwind label %79

76:                                               ; preds = %71
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %75, i8 noundef signext 10)
          to label %78 unwind label %79

78:                                               ; preds = %76
  store i8 0, ptr %5, align 1, !tbaa !5
  store i32 2, ptr %7, align 4
  br label %87

79:                                               ; preds = %76, %71, %67, %65, %63, %54, %45, %36, %26
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %3, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %440

83:                                               ; preds = %58
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %6, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %6, align 4, !tbaa !9
  br label %17, !llvm.loop !12

87:                                               ; preds = %78, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %88

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %435, %88
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = load i32, ptr %1, align 4, !tbaa !9
  %92 = sub nsw i32 %91, 1
  %93 = icmp slt i32 %90, %92
  br i1 %93, label %94, label %97

94:                                               ; preds = %89
  %95 = load i8, ptr %5, align 1, !tbaa !5, !range !14, !noundef !15
  %96 = trunc i8 %95 to i1
  br label %97

97:                                               ; preds = %94, %89
  %98 = phi i1 [ false, %89 ], [ %96, %94 ]
  br i1 %98, label %100, label %99

99:                                               ; preds = %97
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %439

100:                                              ; preds = %97
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %102)
          to label %104 unwind label %120

104:                                              ; preds = %100
  %105 = load i8, ptr %103, align 1, !tbaa !11
  %106 = sext i8 %105 to i32
  %107 = sub nsw i32 %106, 48
  %108 = icmp eq i32 %107, 2
  br i1 %108, label %109, label %186

109:                                              ; preds = %104
  %110 = load i8, ptr %5, align 1, !tbaa !5, !range !14, !noundef !15
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %186

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %9, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %181, %112
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %1, align 4, !tbaa !9
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %124, label %119

119:                                              ; preds = %115
  store i32 8, ptr %7, align 4
  br label %184

120:                                              ; preds = %350, %268, %186, %100
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %3, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %4, align 4
  br label %438

124:                                              ; preds = %115
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %126)
          to label %128 unwind label %176

128:                                              ; preds = %124
  %129 = load i8, ptr %127, align 1, !tbaa !11
  %130 = sext i8 %129 to i32
  %131 = sub nsw i32 %130, 48
  %132 = icmp eq i32 %131, 2
  br i1 %132, label %151, label %133

133:                                              ; preds = %128
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %135)
          to label %137 unwind label %176

137:                                              ; preds = %133
  %138 = load i8, ptr %136, align 1, !tbaa !11
  %139 = sext i8 %138 to i32
  %140 = sub nsw i32 %139, 48
  %141 = icmp eq i32 %140, 5
  br i1 %141, label %151, label %142

142:                                              ; preds = %137
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %144)
          to label %146 unwind label %176

146:                                              ; preds = %142
  %147 = load i8, ptr %145, align 1, !tbaa !11
  %148 = sext i8 %147 to i32
  %149 = sub nsw i32 %148, 48
  %150 = icmp eq i32 %149, 7
  br i1 %150, label %151, label %180

151:                                              ; preds = %146, %137, %128
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %153 unwind label %176

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %152, i8 noundef signext 10)
          to label %155 unwind label %176

155:                                              ; preds = %153
  %156 = load i32, ptr %8, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %157)
          to label %159 unwind label %176

159:                                              ; preds = %155
  %160 = load i8, ptr %158, align 1, !tbaa !11
  %161 = sext i8 %160 to i32
  %162 = sub nsw i32 %161, 48
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %162)
          to label %164 unwind label %176

164:                                              ; preds = %159
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %166)
          to label %168 unwind label %176

168:                                              ; preds = %164
  %169 = load i8, ptr %167, align 1, !tbaa !11
  %170 = sext i8 %169 to i32
  %171 = sub nsw i32 %170, 48
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %163, i32 noundef %171)
          to label %173 unwind label %176

173:                                              ; preds = %168
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %172, i8 noundef signext 10)
          to label %175 unwind label %176

175:                                              ; preds = %173
  store i8 0, ptr %5, align 1, !tbaa !5
  store i32 8, ptr %7, align 4
  br label %184

176:                                              ; preds = %173, %168, %164, %159, %155, %153, %151, %142, %133, %124
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %3, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %438

180:                                              ; preds = %146
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %9, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %9, align 4, !tbaa !9
  br label %115, !llvm.loop !16

184:                                              ; preds = %175, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185, %109, %104
  %187 = load i32, ptr %8, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %188)
          to label %190 unwind label %120

190:                                              ; preds = %186
  %191 = load i8, ptr %189, align 1, !tbaa !11
  %192 = sext i8 %191 to i32
  %193 = sub nsw i32 %192, 48
  %194 = icmp eq i32 %193, 3
  br i1 %194, label %195, label %268

195:                                              ; preds = %190
  %196 = load i8, ptr %5, align 1, !tbaa !5, !range !14, !noundef !15
  %197 = trunc i8 %196 to i1
  br i1 %197, label %198, label %268

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %199 = load i32, ptr %8, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %10, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %263, %198
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = load i32, ptr %1, align 4, !tbaa !9
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  store i32 11, ptr %7, align 4
  br label %266

206:                                              ; preds = %201
  %207 = load i32, ptr %10, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %208)
          to label %210 unwind label %258

210:                                              ; preds = %206
  %211 = load i8, ptr %209, align 1, !tbaa !11
  %212 = sext i8 %211 to i32
  %213 = sub nsw i32 %212, 48
  %214 = icmp eq i32 %213, 5
  br i1 %214, label %233, label %215

215:                                              ; preds = %210
  %216 = load i32, ptr %10, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %217)
          to label %219 unwind label %258

219:                                              ; preds = %215
  %220 = load i8, ptr %218, align 1, !tbaa !11
  %221 = sext i8 %220 to i32
  %222 = sub nsw i32 %221, 48
  %223 = icmp eq i32 %222, 2
  br i1 %223, label %233, label %224

224:                                              ; preds = %219
  %225 = load i32, ptr %10, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %226)
          to label %228 unwind label %258

228:                                              ; preds = %224
  %229 = load i8, ptr %227, align 1, !tbaa !11
  %230 = sext i8 %229 to i32
  %231 = sub nsw i32 %230, 48
  %232 = icmp eq i32 %231, 3
  br i1 %232, label %233, label %262

233:                                              ; preds = %228, %219, %210
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %235 unwind label %258

235:                                              ; preds = %233
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %234, i8 noundef signext 10)
          to label %237 unwind label %258

237:                                              ; preds = %235
  %238 = load i32, ptr %8, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %239)
          to label %241 unwind label %258

241:                                              ; preds = %237
  %242 = load i8, ptr %240, align 1, !tbaa !11
  %243 = sext i8 %242 to i32
  %244 = sub nsw i32 %243, 48
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %244)
          to label %246 unwind label %258

246:                                              ; preds = %241
  %247 = load i32, ptr %10, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %248)
          to label %250 unwind label %258

250:                                              ; preds = %246
  %251 = load i8, ptr %249, align 1, !tbaa !11
  %252 = sext i8 %251 to i32
  %253 = sub nsw i32 %252, 48
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %245, i32 noundef %253)
          to label %255 unwind label %258

255:                                              ; preds = %250
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %254, i8 noundef signext 10)
          to label %257 unwind label %258

257:                                              ; preds = %255
  store i8 0, ptr %5, align 1, !tbaa !5
  store i32 11, ptr %7, align 4
  br label %266

258:                                              ; preds = %255, %250, %246, %241, %237, %235, %233, %224, %215, %206
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %3, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %438

262:                                              ; preds = %228
  br label %263

263:                                              ; preds = %262
  %264 = load i32, ptr %10, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %10, align 4, !tbaa !9
  br label %201, !llvm.loop !17

266:                                              ; preds = %257, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %267

267:                                              ; preds = %266
  br label %434

268:                                              ; preds = %195, %190
  %269 = load i32, ptr %8, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %270)
          to label %272 unwind label %120

272:                                              ; preds = %268
  %273 = load i8, ptr %271, align 1, !tbaa !11
  %274 = sext i8 %273 to i32
  %275 = sub nsw i32 %274, 48
  %276 = icmp eq i32 %275, 5
  br i1 %276, label %277, label %350

277:                                              ; preds = %272
  %278 = load i8, ptr %5, align 1, !tbaa !5, !range !14, !noundef !15
  %279 = trunc i8 %278 to i1
  br i1 %279, label %280, label %350

280:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %281 = load i32, ptr %8, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %11, align 4, !tbaa !9
  br label %283

283:                                              ; preds = %345, %280
  %284 = load i32, ptr %11, align 4, !tbaa !9
  %285 = load i32, ptr %1, align 4, !tbaa !9
  %286 = icmp slt i32 %284, %285
  br i1 %286, label %288, label %287

287:                                              ; preds = %283
  store i32 14, ptr %7, align 4
  br label %348

288:                                              ; preds = %283
  %289 = load i32, ptr %11, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %290)
          to label %292 unwind label %340

292:                                              ; preds = %288
  %293 = load i8, ptr %291, align 1, !tbaa !11
  %294 = sext i8 %293 to i32
  %295 = sub nsw i32 %294, 48
  %296 = icmp eq i32 %295, 5
  br i1 %296, label %315, label %297

297:                                              ; preds = %292
  %298 = load i32, ptr %11, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %299)
          to label %301 unwind label %340

301:                                              ; preds = %297
  %302 = load i8, ptr %300, align 1, !tbaa !11
  %303 = sext i8 %302 to i32
  %304 = sub nsw i32 %303, 48
  %305 = icmp eq i32 %304, 2
  br i1 %305, label %315, label %306

306:                                              ; preds = %301
  %307 = load i32, ptr %11, align 4, !tbaa !9
  %308 = sext i32 %307 to i64
  %309 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %308)
          to label %310 unwind label %340

310:                                              ; preds = %306
  %311 = load i8, ptr %309, align 1, !tbaa !11
  %312 = sext i8 %311 to i32
  %313 = sub nsw i32 %312, 48
  %314 = icmp eq i32 %313, 7
  br i1 %314, label %315, label %344

315:                                              ; preds = %310, %301, %292
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %317 unwind label %340

317:                                              ; preds = %315
  %318 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %316, i8 noundef signext 10)
          to label %319 unwind label %340

319:                                              ; preds = %317
  %320 = load i32, ptr %8, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %321)
          to label %323 unwind label %340

323:                                              ; preds = %319
  %324 = load i8, ptr %322, align 1, !tbaa !11
  %325 = sext i8 %324 to i32
  %326 = sub nsw i32 %325, 48
  %327 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %326)
          to label %328 unwind label %340

328:                                              ; preds = %323
  %329 = load i32, ptr %11, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  %331 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %330)
          to label %332 unwind label %340

332:                                              ; preds = %328
  %333 = load i8, ptr %331, align 1, !tbaa !11
  %334 = sext i8 %333 to i32
  %335 = sub nsw i32 %334, 48
  %336 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %327, i32 noundef %335)
          to label %337 unwind label %340

337:                                              ; preds = %332
  %338 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %336, i8 noundef signext 10)
          to label %339 unwind label %340

339:                                              ; preds = %337
  store i8 0, ptr %5, align 1, !tbaa !5
  store i32 14, ptr %7, align 4
  br label %348

340:                                              ; preds = %337, %332, %328, %323, %319, %317, %315, %306, %297, %288
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %3, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %438

344:                                              ; preds = %310
  br label %345

345:                                              ; preds = %344
  %346 = load i32, ptr %11, align 4, !tbaa !9
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr %11, align 4, !tbaa !9
  br label %283, !llvm.loop !18

348:                                              ; preds = %339, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %349

349:                                              ; preds = %348
  br label %433

350:                                              ; preds = %277, %272
  %351 = load i32, ptr %8, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %352)
          to label %354 unwind label %120

354:                                              ; preds = %350
  %355 = load i8, ptr %353, align 1, !tbaa !11
  %356 = sext i8 %355 to i32
  %357 = sub nsw i32 %356, 48
  %358 = icmp eq i32 %357, 7
  br i1 %358, label %359, label %432

359:                                              ; preds = %354
  %360 = load i8, ptr %5, align 1, !tbaa !5, !range !14, !noundef !15
  %361 = trunc i8 %360 to i1
  br i1 %361, label %362, label %432

362:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %363 = load i32, ptr %8, align 4, !tbaa !9
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %12, align 4, !tbaa !9
  br label %365

365:                                              ; preds = %427, %362
  %366 = load i32, ptr %12, align 4, !tbaa !9
  %367 = load i32, ptr %1, align 4, !tbaa !9
  %368 = icmp slt i32 %366, %367
  br i1 %368, label %370, label %369

369:                                              ; preds = %365
  store i32 17, ptr %7, align 4
  br label %430

370:                                              ; preds = %365
  %371 = load i32, ptr %12, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %372)
          to label %374 unwind label %422

374:                                              ; preds = %370
  %375 = load i8, ptr %373, align 1, !tbaa !11
  %376 = sext i8 %375 to i32
  %377 = sub nsw i32 %376, 48
  %378 = icmp eq i32 %377, 7
  br i1 %378, label %397, label %379

379:                                              ; preds = %374
  %380 = load i32, ptr %12, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %381)
          to label %383 unwind label %422

383:                                              ; preds = %379
  %384 = load i8, ptr %382, align 1, !tbaa !11
  %385 = sext i8 %384 to i32
  %386 = sub nsw i32 %385, 48
  %387 = icmp eq i32 %386, 2
  br i1 %387, label %397, label %388

388:                                              ; preds = %383
  %389 = load i32, ptr %12, align 4, !tbaa !9
  %390 = sext i32 %389 to i64
  %391 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %390)
          to label %392 unwind label %422

392:                                              ; preds = %388
  %393 = load i8, ptr %391, align 1, !tbaa !11
  %394 = sext i8 %393 to i32
  %395 = sub nsw i32 %394, 48
  %396 = icmp eq i32 %395, 5
  br i1 %396, label %397, label %426

397:                                              ; preds = %392, %383, %374
  %398 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %399 unwind label %422

399:                                              ; preds = %397
  %400 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %398, i8 noundef signext 10)
          to label %401 unwind label %422

401:                                              ; preds = %399
  %402 = load i32, ptr %8, align 4, !tbaa !9
  %403 = sext i32 %402 to i64
  %404 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %403)
          to label %405 unwind label %422

405:                                              ; preds = %401
  %406 = load i8, ptr %404, align 1, !tbaa !11
  %407 = sext i8 %406 to i32
  %408 = sub nsw i32 %407, 48
  %409 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %408)
          to label %410 unwind label %422

410:                                              ; preds = %405
  %411 = load i32, ptr %12, align 4, !tbaa !9
  %412 = sext i32 %411 to i64
  %413 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %412)
          to label %414 unwind label %422

414:                                              ; preds = %410
  %415 = load i8, ptr %413, align 1, !tbaa !11
  %416 = sext i8 %415 to i32
  %417 = sub nsw i32 %416, 48
  %418 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %409, i32 noundef %417)
          to label %419 unwind label %422

419:                                              ; preds = %414
  %420 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %418, i8 noundef signext 10)
          to label %421 unwind label %422

421:                                              ; preds = %419
  store i8 0, ptr %5, align 1, !tbaa !5
  store i32 17, ptr %7, align 4
  br label %430

422:                                              ; preds = %419, %414, %410, %405, %401, %399, %397, %388, %379, %370
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %3, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %438

426:                                              ; preds = %392
  br label %427

427:                                              ; preds = %426
  %428 = load i32, ptr %12, align 4, !tbaa !9
  %429 = add nsw i32 %428, 1
  store i32 %429, ptr %12, align 4, !tbaa !9
  br label %365, !llvm.loop !19

430:                                              ; preds = %421, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %431

431:                                              ; preds = %430
  br label %432

432:                                              ; preds = %431, %359, %354
  br label %433

433:                                              ; preds = %432, %349
  br label %434

434:                                              ; preds = %433, %267
  br label %435

435:                                              ; preds = %434
  %436 = load i32, ptr %8, align 4, !tbaa !9
  %437 = add nsw i32 %436, 1
  store i32 %437, ptr %8, align 4, !tbaa !9
  br label %89, !llvm.loop !20

438:                                              ; preds = %422, %340, %258, %176, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %440

439:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void

440:                                              ; preds = %438, %79
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %441

441:                                              ; preds = %440, %22
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %442

442:                                              ; preds = %441
  %443 = load ptr, ptr %3, align 8
  %444 = load i32, ptr %4, align 4
  %445 = insertvalue { ptr, i32 } poison, ptr %443, 0
  %446 = insertvalue { ptr, i32 } %445, i32 %444, 1
  resume { ptr, i32 } %446
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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)) #3

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

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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 = distinct !{!20, !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] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  %3 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %4 unwind label %12

4:                                                ; preds = %0
  %5 = 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) %3, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.preheader72 unwind label %12

.preheader72:                                     ; preds = %4
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

8:                                                ; preds = %25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = icmp slt i64 %indvars.iv.next, %10
  br i1 %11, label %.lr.ph, label %.loopexit73, !llvm.loop !9

12:                                               ; preds = %4, %0
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %210

.lr.ph:                                           ; preds = %.preheader72, %8
  %indvars.iv = phi i64 [ %indvars.iv.next, %8 ], [ 0, %.preheader72 ]
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %15 = load i8, ptr %14, align 1, !tbaa !11
  %16 = and i8 %15, 1
  %17 = icmp eq i8 %16, 0
  br i1 %17, label %18, label %21

18:                                               ; preds = %.lr.ph
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %20 = load i8, ptr %19, align 1, !tbaa !11
  %.not = icmp eq i8 %20, 50
  br i1 %.not, label %21, label %29

21:                                               ; preds = %18, %.lr.ph
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %23 = load i8, ptr %22, align 1, !tbaa !11
  %24 = icmp eq i8 %23, 49
  br i1 %24, label %29, label %25

25:                                               ; preds = %21
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %27 = load i8, ptr %26, align 1, !tbaa !11
  %28 = icmp eq i8 %27, 57
  br i1 %28, label %29, label %8

29:                                               ; preds = %25, %21, %18
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
          to label %31 unwind label %41

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %30, i8 noundef signext 10)
          to label %33 unwind label %41

33:                                               ; preds = %31
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = sext i8 %35 to i32
  %37 = add nsw i32 %36, -48
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %37)
          to label %39 unwind label %41

39:                                               ; preds = %33
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %38, i8 noundef signext 10)
          to label %._crit_edge unwind label %41

41:                                               ; preds = %39, %33, %31, %29
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %210

.loopexit73:                                      ; preds = %8
  %43 = icmp sgt i32 %9, 1
  br i1 %43, label %.lr.ph81, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %200, %159, %118, %39, %.preheader72, %.loopexit73
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret void

.lr.ph81:                                         ; preds = %.loopexit73, %.loopexit
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %.loopexit ], [ 0, %.loopexit73 ]
  %.179 = phi i8 [ %.3, %.loopexit ], [ 1, %.loopexit73 ]
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = icmp eq i8 %45, 50
  br i1 %46, label %.preheader70, label %.loopexit71

.preheader70:                                     ; preds = %.lr.ph81, %58
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %58 ], [ %indvars.iv90, %.lr.ph81 ]
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next93, %48
  br i1 %49, label %50, label %.loopexit71

50:                                               ; preds = %.preheader70
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next93)
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = icmp eq i8 %52, 50
  br i1 %53, label %62, label %54

54:                                               ; preds = %50
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next93)
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = icmp eq i8 %56, 53
  br i1 %57, label %62, label %58

58:                                               ; preds = %54
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next93)
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = icmp eq i8 %60, 55
  br i1 %61, label %62, label %.preheader70, !llvm.loop !12

62:                                               ; preds = %58, %54, %50
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %64 unwind label %80

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %63, i8 noundef signext 10)
          to label %66 unwind label %80

66:                                               ; preds = %64
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %68 = load i8, ptr %67, align 1, !tbaa !11
  %69 = sext i8 %68 to i32
  %70 = add nsw i32 %69, -48
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %70)
          to label %72 unwind label %80

72:                                               ; preds = %66
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next93)
  %74 = load i8, ptr %73, align 1, !tbaa !11
  %75 = sext i8 %74 to i32
  %76 = add nsw i32 %75, -48
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %71, i32 noundef %76)
          to label %78 unwind label %80

78:                                               ; preds = %72
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %77, i8 noundef signext 10)
          to label %.loopexit71 unwind label %80

80:                                               ; preds = %78, %72, %66, %64, %62
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %210

.loopexit71:                                      ; preds = %.preheader70, %78, %.lr.ph81
  %.3 = phi i8 [ %.179, %.lr.ph81 ], [ 0, %78 ], [ %.179, %.preheader70 ]
  %82 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = icmp eq i8 %83, 51
  br i1 %84, label %85, label %122

85:                                               ; preds = %.loopexit71
  %86 = trunc nuw i8 %.3 to i1
  br i1 %86, label %.preheader, label %122

.preheader:                                       ; preds = %85, %98
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %98 ], [ %indvars.iv90, %85 ]
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next102, %88
  br i1 %89, label %90, label %.loopexit

90:                                               ; preds = %.preheader
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next102)
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = icmp eq i8 %92, 53
  br i1 %93, label %102, label %94

94:                                               ; preds = %90
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next102)
  %96 = load i8, ptr %95, align 1, !tbaa !11
  %97 = icmp eq i8 %96, 50
  br i1 %97, label %102, label %98

98:                                               ; preds = %94
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next102)
  %100 = load i8, ptr %99, align 1, !tbaa !11
  %101 = icmp eq i8 %100, 51
  br i1 %101, label %102, label %.preheader, !llvm.loop !13

102:                                              ; preds = %98, %94, %90
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %104 unwind label %120

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %103, i8 noundef signext 10)
          to label %106 unwind label %120

106:                                              ; preds = %104
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %108 = load i8, ptr %107, align 1, !tbaa !11
  %109 = sext i8 %108 to i32
  %110 = add nsw i32 %109, -48
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %110)
          to label %112 unwind label %120

112:                                              ; preds = %106
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next102)
  %114 = load i8, ptr %113, align 1, !tbaa !11
  %115 = sext i8 %114 to i32
  %116 = add nsw i32 %115, -48
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %111, i32 noundef %116)
          to label %118 unwind label %120

118:                                              ; preds = %112
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %117, i8 noundef signext 10)
          to label %._crit_edge unwind label %120

120:                                              ; preds = %118, %112, %106, %104, %102
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %210

122:                                              ; preds = %85, %.loopexit71
  %123 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %124 = load i8, ptr %123, align 1, !tbaa !11
  %125 = icmp eq i8 %124, 53
  br i1 %125, label %126, label %163

126:                                              ; preds = %122
  %127 = trunc nuw i8 %.3 to i1
  br i1 %127, label %.preheader66, label %163

.preheader66:                                     ; preds = %126, %139
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %139 ], [ %indvars.iv90, %126 ]
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %128 = load i32, ptr %1, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = icmp slt i64 %indvars.iv.next99, %129
  br i1 %130, label %131, label %.loopexit

131:                                              ; preds = %.preheader66
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next99)
  %133 = load i8, ptr %132, align 1, !tbaa !11
  %134 = icmp eq i8 %133, 53
  br i1 %134, label %143, label %135

135:                                              ; preds = %131
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next99)
  %137 = load i8, ptr %136, align 1, !tbaa !11
  %138 = icmp eq i8 %137, 50
  br i1 %138, label %143, label %139

139:                                              ; preds = %135
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next99)
  %141 = load i8, ptr %140, align 1, !tbaa !11
  %142 = icmp eq i8 %141, 55
  br i1 %142, label %143, label %.preheader66, !llvm.loop !14

143:                                              ; preds = %139, %135, %131
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %145 unwind label %161

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %144, i8 noundef signext 10)
          to label %147 unwind label %161

147:                                              ; preds = %145
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %149 = load i8, ptr %148, align 1, !tbaa !11
  %150 = sext i8 %149 to i32
  %151 = add nsw i32 %150, -48
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %151)
          to label %153 unwind label %161

153:                                              ; preds = %147
  %154 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next99)
  %155 = load i8, ptr %154, align 1, !tbaa !11
  %156 = sext i8 %155 to i32
  %157 = add nsw i32 %156, -48
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %152, i32 noundef %157)
          to label %159 unwind label %161

159:                                              ; preds = %153
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %158, i8 noundef signext 10)
          to label %._crit_edge unwind label %161

161:                                              ; preds = %159, %153, %147, %145, %143
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %210

163:                                              ; preds = %126, %122
  %164 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %165 = load i8, ptr %164, align 1, !tbaa !11
  %166 = icmp eq i8 %165, 55
  br i1 %166, label %167, label %.loopexit

167:                                              ; preds = %163
  %168 = trunc nuw i8 %.3 to i1
  br i1 %168, label %.preheader68, label %.loopexit

.preheader68:                                     ; preds = %167, %180
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %180 ], [ %indvars.iv90, %167 ]
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %169 = load i32, ptr %1, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = icmp slt i64 %indvars.iv.next96, %170
  br i1 %171, label %172, label %.loopexit

172:                                              ; preds = %.preheader68
  %173 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next96)
  %174 = load i8, ptr %173, align 1, !tbaa !11
  %175 = icmp eq i8 %174, 55
  br i1 %175, label %184, label %176

176:                                              ; preds = %172
  %177 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next96)
  %178 = load i8, ptr %177, align 1, !tbaa !11
  %179 = icmp eq i8 %178, 50
  br i1 %179, label %184, label %180

180:                                              ; preds = %176
  %181 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next96)
  %182 = load i8, ptr %181, align 1, !tbaa !11
  %183 = icmp eq i8 %182, 53
  br i1 %183, label %184, label %.preheader68, !llvm.loop !15

184:                                              ; preds = %180, %176, %172
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %186 unwind label %202

186:                                              ; preds = %184
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %185, i8 noundef signext 10)
          to label %188 unwind label %202

188:                                              ; preds = %186
  %189 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv90)
  %190 = load i8, ptr %189, align 1, !tbaa !11
  %191 = sext i8 %190 to i32
  %192 = add nsw i32 %191, -48
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %192)
          to label %194 unwind label %202

194:                                              ; preds = %188
  %195 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv.next96)
  %196 = load i8, ptr %195, align 1, !tbaa !11
  %197 = sext i8 %196 to i32
  %198 = add nsw i32 %197, -48
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %193, i32 noundef %198)
          to label %200 unwind label %202

200:                                              ; preds = %194
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %199, i8 noundef signext 10)
          to label %._crit_edge unwind label %202

202:                                              ; preds = %200, %194, %188, %186, %184
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %210

.loopexit:                                        ; preds = %.preheader68, %.preheader66, %.preheader, %163, %167
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %204 = load i32, ptr %1, align 4, !tbaa !5
  %205 = add nsw i32 %204, -1
  %206 = sext i32 %205 to i64
  %207 = icmp slt i64 %indvars.iv.next91, %206
  %208 = trunc nuw i8 %.3 to i1
  %209 = select i1 %207, i1 %208, i1 false
  br i1 %209, label %.lr.ph81, label %._crit_edge, !llvm.loop !16

210:                                              ; preds = %41, %202, %161, %120, %80, %12
  %.pn.pn.pn = phi { ptr, i32 } [ %13, %12 ], [ %42, %41 ], [ %121, %120 ], [ %162, %161 ], [ %203, %202 ], [ %81, %80 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 #3

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

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { 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 #5 = { nounwind }

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

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


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