; LLVM IR from DionysiosB/CodeForces :: 1600-1699 (1609B-WilliamTheVigilant)

; 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 norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  store i32 0, ptr %1, align 4
  %11 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %14 = 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) %4)
          to label %15 unwind label %21

15:                                               ; preds = %0
  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 2, ptr %8, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %53, %15
  %17 = load i64, ptr %8, align 8, !tbaa !5
  %18 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %19 = icmp ult i64 %17, %18
  br i1 %19, label %25, label %20

20:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %60

21:                                               ; preds = %0
  %22 = landingpad { ptr, i32 }
          cleanup
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %5, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %6, align 4
  br label %415

25:                                               ; preds = %16
  %26 = load i64, ptr %8, align 8, !tbaa !5
  %27 = sub nsw i64 %26, 2
  %28 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %27)
          to label %29 unwind label %56

29:                                               ; preds = %25
  %30 = load i8, ptr %28, align 1, !tbaa !9
  %31 = sext i8 %30 to i32
  %32 = icmp eq i32 %31, 97
  br i1 %32, label %33, label %48

33:                                               ; preds = %29
  %34 = load i64, ptr %8, align 8, !tbaa !5
  %35 = sub nsw i64 %34, 1
  %36 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %35)
          to label %37 unwind label %56

37:                                               ; preds = %33
  %38 = load i8, ptr %36, align 1, !tbaa !9
  %39 = sext i8 %38 to i32
  %40 = icmp eq i32 %39, 98
  br i1 %40, label %41, label %48

41:                                               ; preds = %37
  %42 = load i64, ptr %8, align 8, !tbaa !5
  %43 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %42)
          to label %44 unwind label %56

44:                                               ; preds = %41
  %45 = load i8, ptr %43, align 1, !tbaa !9
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %46, 99
  br label %48

48:                                               ; preds = %44, %37, %29
  %49 = phi i1 [ false, %37 ], [ false, %29 ], [ %47, %44 ]
  %50 = zext i1 %49 to i64
  %51 = load i64, ptr %7, align 8, !tbaa !5
  %52 = add nsw i64 %51, %50
  store i64 %52, ptr %7, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %48
  %54 = load i64, ptr %8, align 8, !tbaa !5
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %8, align 8, !tbaa !5
  br label %16, !llvm.loop !10

56:                                               ; preds = %41, %33, %25
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %5, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %414

60:                                               ; preds = %20
  br label %61

61:                                               ; preds = %411, %60
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %63 = add nsw i64 %62, -1
  store i64 %63, ptr %3, align 8, !tbaa !5
  %64 = icmp ne i64 %62, 0
  br i1 %64, label %65, label %412

65:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %67 unwind label %113

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %69 unwind label %113

69:                                               ; preds = %67
  %70 = load i64, ptr %9, align 8, !tbaa !5
  %71 = add nsw i64 %70, -1
  store i64 %71, ptr %9, align 8, !tbaa !5
  %72 = load i64, ptr %9, align 8, !tbaa !5
  %73 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %72)
          to label %74 unwind label %113

74:                                               ; preds = %69
  %75 = load i8, ptr %73, align 1, !tbaa !9
  %76 = sext i8 %75 to i32
  %77 = load i8, ptr %10, align 1, !tbaa !9
  %78 = sext i8 %77 to i32
  %79 = icmp ne i32 %76, %78
  br i1 %79, label %80, label %180

80:                                               ; preds = %74
  %81 = load i8, ptr %10, align 1, !tbaa !9
  %82 = sext i8 %81 to i32
  %83 = icmp eq i32 %82, 97
  br i1 %83, label %84, label %180

84:                                               ; preds = %80
  %85 = load i64, ptr %9, align 8, !tbaa !5
  %86 = icmp sge i64 %85, 2
  br i1 %86, label %87, label %117

87:                                               ; preds = %84
  %88 = load i64, ptr %9, align 8, !tbaa !5
  %89 = sub nsw i64 %88, 2
  %90 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %89)
          to label %91 unwind label %113

91:                                               ; preds = %87
  %92 = load i8, ptr %90, align 1, !tbaa !9
  %93 = sext i8 %92 to i32
  %94 = icmp eq i32 %93, 97
  br i1 %94, label %95, label %117

95:                                               ; preds = %91
  %96 = load i64, ptr %9, align 8, !tbaa !5
  %97 = sub nsw i64 %96, 1
  %98 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %97)
          to label %99 unwind label %113

99:                                               ; preds = %95
  %100 = load i8, ptr %98, align 1, !tbaa !9
  %101 = sext i8 %100 to i32
  %102 = icmp eq i32 %101, 98
  br i1 %102, label %103, label %117

103:                                              ; preds = %99
  %104 = load i64, ptr %9, align 8, !tbaa !5
  %105 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %104)
          to label %106 unwind label %113

106:                                              ; preds = %103
  %107 = load i8, ptr %105, align 1, !tbaa !9
  %108 = sext i8 %107 to i32
  %109 = icmp eq i32 %108, 99
  br i1 %109, label %110, label %117

110:                                              ; preds = %106
  %111 = load i64, ptr %7, align 8, !tbaa !5
  %112 = add nsw i64 %111, -1
  store i64 %112, ptr %7, align 8, !tbaa !5
  br label %117

113:                                              ; preds = %409, %406, %393, %385, %377, %370, %359, %347, %339, %325, %317, %310, %292, %280, %268, %260, %253, %242, %234, %227, %212, %204, %196, %180, %168, %160, %151, %140, %128, %120, %103, %95, %87, %69, %67, %65
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %414

117:                                              ; preds = %110, %106, %99, %91, %84
  %118 = load i64, ptr %9, align 8, !tbaa !5
  %119 = icmp sge i64 %118, 1
  br i1 %119, label %120, label %151

120:                                              ; preds = %117
  %121 = load i64, ptr %9, align 8, !tbaa !5
  %122 = sub nsw i64 %121, 1
  %123 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %122)
          to label %124 unwind label %113

124:                                              ; preds = %120
  %125 = load i8, ptr %123, align 1, !tbaa !9
  %126 = sext i8 %125 to i32
  %127 = icmp eq i32 %126, 97
  br i1 %127, label %128, label %151

128:                                              ; preds = %124
  %129 = load i64, ptr %9, align 8, !tbaa !5
  %130 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %129)
          to label %131 unwind label %113

131:                                              ; preds = %128
  %132 = load i8, ptr %130, align 1, !tbaa !9
  %133 = sext i8 %132 to i32
  %134 = icmp eq i32 %133, 98
  br i1 %134, label %135, label %151

135:                                              ; preds = %131
  %136 = load i64, ptr %9, align 8, !tbaa !5
  %137 = add nsw i64 %136, 1
  %138 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %139 = icmp ult i64 %137, %138
  br i1 %139, label %140, label %151

140:                                              ; preds = %135
  %141 = load i64, ptr %9, align 8, !tbaa !5
  %142 = add nsw i64 %141, 1
  %143 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %142)
          to label %144 unwind label %113

144:                                              ; preds = %140
  %145 = load i8, ptr %143, align 1, !tbaa !9
  %146 = sext i8 %145 to i32
  %147 = icmp eq i32 %146, 99
  br i1 %147, label %148, label %151

148:                                              ; preds = %144
  %149 = load i64, ptr %7, align 8, !tbaa !5
  %150 = add nsw i64 %149, -1
  store i64 %150, ptr %7, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %148, %144, %135, %131, %124, %117
  %152 = load i8, ptr %10, align 1, !tbaa !9
  %153 = load i64, ptr %9, align 8, !tbaa !5
  %154 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %153)
          to label %155 unwind label %113

155:                                              ; preds = %151
  store i8 %152, ptr %154, align 1, !tbaa !9
  %156 = load i64, ptr %9, align 8, !tbaa !5
  %157 = add nsw i64 %156, 2
  %158 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %159 = icmp ult i64 %157, %158
  br i1 %159, label %160, label %179

160:                                              ; preds = %155
  %161 = load i64, ptr %9, align 8, !tbaa !5
  %162 = add nsw i64 %161, 1
  %163 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %162)
          to label %164 unwind label %113

164:                                              ; preds = %160
  %165 = load i8, ptr %163, align 1, !tbaa !9
  %166 = sext i8 %165 to i32
  %167 = icmp eq i32 %166, 98
  br i1 %167, label %168, label %179

168:                                              ; preds = %164
  %169 = load i64, ptr %9, align 8, !tbaa !5
  %170 = add nsw i64 %169, 2
  %171 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %170)
          to label %172 unwind label %113

172:                                              ; preds = %168
  %173 = load i8, ptr %171, align 1, !tbaa !9
  %174 = sext i8 %173 to i32
  %175 = icmp eq i32 %174, 99
  br i1 %175, label %176, label %179

176:                                              ; preds = %172
  %177 = load i64, ptr %7, align 8, !tbaa !5
  %178 = add nsw i64 %177, 1
  store i64 %178, ptr %7, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %176, %172, %164, %155
  br label %406

180:                                              ; preds = %80, %74
  %181 = load i64, ptr %9, align 8, !tbaa !5
  %182 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %181)
          to label %183 unwind label %113

183:                                              ; preds = %180
  %184 = load i8, ptr %182, align 1, !tbaa !9
  %185 = sext i8 %184 to i32
  %186 = load i8, ptr %10, align 1, !tbaa !9
  %187 = sext i8 %186 to i32
  %188 = icmp ne i32 %185, %187
  br i1 %188, label %189, label %292

189:                                              ; preds = %183
  %190 = load i8, ptr %10, align 1, !tbaa !9
  %191 = sext i8 %190 to i32
  %192 = icmp eq i32 %191, 98
  br i1 %192, label %193, label %292

193:                                              ; preds = %189
  %194 = load i64, ptr %9, align 8, !tbaa !5
  %195 = icmp sge i64 %194, 2
  br i1 %195, label %196, label %222

196:                                              ; preds = %193
  %197 = load i64, ptr %9, align 8, !tbaa !5
  %198 = sub nsw i64 %197, 2
  %199 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %198)
          to label %200 unwind label %113

200:                                              ; preds = %196
  %201 = load i8, ptr %199, align 1, !tbaa !9
  %202 = sext i8 %201 to i32
  %203 = icmp eq i32 %202, 97
  br i1 %203, label %204, label %222

204:                                              ; preds = %200
  %205 = load i64, ptr %9, align 8, !tbaa !5
  %206 = sub nsw i64 %205, 1
  %207 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %206)
          to label %208 unwind label %113

208:                                              ; preds = %204
  %209 = load i8, ptr %207, align 1, !tbaa !9
  %210 = sext i8 %209 to i32
  %211 = icmp eq i32 %210, 98
  br i1 %211, label %212, label %222

212:                                              ; preds = %208
  %213 = load i64, ptr %9, align 8, !tbaa !5
  %214 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %213)
          to label %215 unwind label %113

215:                                              ; preds = %212
  %216 = load i8, ptr %214, align 1, !tbaa !9
  %217 = sext i8 %216 to i32
  %218 = icmp eq i32 %217, 99
  br i1 %218, label %219, label %222

219:                                              ; preds = %215
  %220 = load i64, ptr %7, align 8, !tbaa !5
  %221 = add nsw i64 %220, -1
  store i64 %221, ptr %7, align 8, !tbaa !5
  br label %222

222:                                              ; preds = %219, %215, %208, %200, %193
  %223 = load i64, ptr %9, align 8, !tbaa !5
  %224 = add nsw i64 %223, 2
  %225 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %226 = icmp ult i64 %224, %225
  br i1 %226, label %227, label %253

227:                                              ; preds = %222
  %228 = load i64, ptr %9, align 8, !tbaa !5
  %229 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %228)
          to label %230 unwind label %113

230:                                              ; preds = %227
  %231 = load i8, ptr %229, align 1, !tbaa !9
  %232 = sext i8 %231 to i32
  %233 = icmp eq i32 %232, 97
  br i1 %233, label %234, label %253

234:                                              ; preds = %230
  %235 = load i64, ptr %9, align 8, !tbaa !5
  %236 = add nsw i64 %235, 1
  %237 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %236)
          to label %238 unwind label %113

238:                                              ; preds = %234
  %239 = load i8, ptr %237, align 1, !tbaa !9
  %240 = sext i8 %239 to i32
  %241 = icmp eq i32 %240, 98
  br i1 %241, label %242, label %253

242:                                              ; preds = %238
  %243 = load i64, ptr %9, align 8, !tbaa !5
  %244 = add nsw i64 %243, 2
  %245 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %244)
          to label %246 unwind label %113

246:                                              ; preds = %242
  %247 = load i8, ptr %245, align 1, !tbaa !9
  %248 = sext i8 %247 to i32
  %249 = icmp eq i32 %248, 99
  br i1 %249, label %250, label %253

250:                                              ; preds = %246
  %251 = load i64, ptr %7, align 8, !tbaa !5
  %252 = add nsw i64 %251, -1
  store i64 %252, ptr %7, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %250, %246, %238, %230, %222
  %254 = load i8, ptr %10, align 1, !tbaa !9
  %255 = load i64, ptr %9, align 8, !tbaa !5
  %256 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %255)
          to label %257 unwind label %113

257:                                              ; preds = %253
  store i8 %254, ptr %256, align 1, !tbaa !9
  %258 = load i64, ptr %9, align 8, !tbaa !5
  %259 = icmp sge i64 %258, 1
  br i1 %259, label %260, label %291

260:                                              ; preds = %257
  %261 = load i64, ptr %9, align 8, !tbaa !5
  %262 = sub nsw i64 %261, 1
  %263 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %262)
          to label %264 unwind label %113

264:                                              ; preds = %260
  %265 = load i8, ptr %263, align 1, !tbaa !9
  %266 = sext i8 %265 to i32
  %267 = icmp eq i32 %266, 97
  br i1 %267, label %268, label %291

268:                                              ; preds = %264
  %269 = load i64, ptr %9, align 8, !tbaa !5
  %270 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %269)
          to label %271 unwind label %113

271:                                              ; preds = %268
  %272 = load i8, ptr %270, align 1, !tbaa !9
  %273 = sext i8 %272 to i32
  %274 = icmp eq i32 %273, 98
  br i1 %274, label %275, label %291

275:                                              ; preds = %271
  %276 = load i64, ptr %9, align 8, !tbaa !5
  %277 = add nsw i64 %276, 1
  %278 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %279 = icmp ult i64 %277, %278
  br i1 %279, label %280, label %291

280:                                              ; preds = %275
  %281 = load i64, ptr %9, align 8, !tbaa !5
  %282 = add nsw i64 %281, 1
  %283 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %282)
          to label %284 unwind label %113

284:                                              ; preds = %280
  %285 = load i8, ptr %283, align 1, !tbaa !9
  %286 = sext i8 %285 to i32
  %287 = icmp eq i32 %286, 99
  br i1 %287, label %288, label %291

288:                                              ; preds = %284
  %289 = load i64, ptr %7, align 8, !tbaa !5
  %290 = add nsw i64 %289, 1
  store i64 %290, ptr %7, align 8, !tbaa !5
  br label %291

291:                                              ; preds = %288, %284, %275, %271, %264, %257
  br label %405

292:                                              ; preds = %189, %183
  %293 = load i64, ptr %9, align 8, !tbaa !5
  %294 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %293)
          to label %295 unwind label %113

295:                                              ; preds = %292
  %296 = load i8, ptr %294, align 1, !tbaa !9
  %297 = sext i8 %296 to i32
  %298 = load i8, ptr %10, align 1, !tbaa !9
  %299 = sext i8 %298 to i32
  %300 = icmp ne i32 %297, %299
  br i1 %300, label %301, label %404

301:                                              ; preds = %295
  %302 = load i8, ptr %10, align 1, !tbaa !9
  %303 = sext i8 %302 to i32
  %304 = icmp eq i32 %303, 99
  br i1 %304, label %305, label %404

305:                                              ; preds = %301
  %306 = load i64, ptr %9, align 8, !tbaa !5
  %307 = add nsw i64 %306, 2
  %308 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %309 = icmp ult i64 %307, %308
  br i1 %309, label %310, label %336

310:                                              ; preds = %305
  %311 = load i64, ptr %9, align 8, !tbaa !5
  %312 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %311)
          to label %313 unwind label %113

313:                                              ; preds = %310
  %314 = load i8, ptr %312, align 1, !tbaa !9
  %315 = sext i8 %314 to i32
  %316 = icmp eq i32 %315, 97
  br i1 %316, label %317, label %336

317:                                              ; preds = %313
  %318 = load i64, ptr %9, align 8, !tbaa !5
  %319 = add nsw i64 %318, 1
  %320 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %319)
          to label %321 unwind label %113

321:                                              ; preds = %317
  %322 = load i8, ptr %320, align 1, !tbaa !9
  %323 = sext i8 %322 to i32
  %324 = icmp eq i32 %323, 98
  br i1 %324, label %325, label %336

325:                                              ; preds = %321
  %326 = load i64, ptr %9, align 8, !tbaa !5
  %327 = add nsw i64 %326, 2
  %328 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %327)
          to label %329 unwind label %113

329:                                              ; preds = %325
  %330 = load i8, ptr %328, align 1, !tbaa !9
  %331 = sext i8 %330 to i32
  %332 = icmp eq i32 %331, 99
  br i1 %332, label %333, label %336

333:                                              ; preds = %329
  %334 = load i64, ptr %7, align 8, !tbaa !5
  %335 = add nsw i64 %334, -1
  store i64 %335, ptr %7, align 8, !tbaa !5
  br label %336

336:                                              ; preds = %333, %329, %321, %313, %305
  %337 = load i64, ptr %9, align 8, !tbaa !5
  %338 = icmp sge i64 %337, 1
  br i1 %338, label %339, label %370

339:                                              ; preds = %336
  %340 = load i64, ptr %9, align 8, !tbaa !5
  %341 = sub nsw i64 %340, 1
  %342 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %341)
          to label %343 unwind label %113

343:                                              ; preds = %339
  %344 = load i8, ptr %342, align 1, !tbaa !9
  %345 = sext i8 %344 to i32
  %346 = icmp eq i32 %345, 97
  br i1 %346, label %347, label %370

347:                                              ; preds = %343
  %348 = load i64, ptr %9, align 8, !tbaa !5
  %349 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %348)
          to label %350 unwind label %113

350:                                              ; preds = %347
  %351 = load i8, ptr %349, align 1, !tbaa !9
  %352 = sext i8 %351 to i32
  %353 = icmp eq i32 %352, 98
  br i1 %353, label %354, label %370

354:                                              ; preds = %350
  %355 = load i64, ptr %9, align 8, !tbaa !5
  %356 = add nsw i64 %355, 1
  %357 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %358 = icmp ult i64 %356, %357
  br i1 %358, label %359, label %370

359:                                              ; preds = %354
  %360 = load i64, ptr %9, align 8, !tbaa !5
  %361 = add nsw i64 %360, 1
  %362 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %361)
          to label %363 unwind label %113

363:                                              ; preds = %359
  %364 = load i8, ptr %362, align 1, !tbaa !9
  %365 = sext i8 %364 to i32
  %366 = icmp eq i32 %365, 99
  br i1 %366, label %367, label %370

367:                                              ; preds = %363
  %368 = load i64, ptr %7, align 8, !tbaa !5
  %369 = add nsw i64 %368, -1
  store i64 %369, ptr %7, align 8, !tbaa !5
  br label %370

370:                                              ; preds = %367, %363, %354, %350, %343, %336
  %371 = load i8, ptr %10, align 1, !tbaa !9
  %372 = load i64, ptr %9, align 8, !tbaa !5
  %373 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %372)
          to label %374 unwind label %113

374:                                              ; preds = %370
  store i8 %371, ptr %373, align 1, !tbaa !9
  %375 = load i64, ptr %9, align 8, !tbaa !5
  %376 = icmp sge i64 %375, 2
  br i1 %376, label %377, label %403

377:                                              ; preds = %374
  %378 = load i64, ptr %9, align 8, !tbaa !5
  %379 = sub nsw i64 %378, 2
  %380 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %379)
          to label %381 unwind label %113

381:                                              ; preds = %377
  %382 = load i8, ptr %380, align 1, !tbaa !9
  %383 = sext i8 %382 to i32
  %384 = icmp eq i32 %383, 97
  br i1 %384, label %385, label %403

385:                                              ; preds = %381
  %386 = load i64, ptr %9, align 8, !tbaa !5
  %387 = sub nsw i64 %386, 1
  %388 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %387)
          to label %389 unwind label %113

389:                                              ; preds = %385
  %390 = load i8, ptr %388, align 1, !tbaa !9
  %391 = sext i8 %390 to i32
  %392 = icmp eq i32 %391, 98
  br i1 %392, label %393, label %403

393:                                              ; preds = %389
  %394 = load i64, ptr %9, align 8, !tbaa !5
  %395 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %394)
          to label %396 unwind label %113

396:                                              ; preds = %393
  %397 = load i8, ptr %395, align 1, !tbaa !9
  %398 = sext i8 %397 to i32
  %399 = icmp eq i32 %398, 99
  br i1 %399, label %400, label %403

400:                                              ; preds = %396
  %401 = load i64, ptr %7, align 8, !tbaa !5
  %402 = add nsw i64 %401, 1
  store i64 %402, ptr %7, align 8, !tbaa !5
  br label %403

403:                                              ; preds = %400, %396, %389, %381, %374
  br label %404

404:                                              ; preds = %403, %301, %295
  br label %405

405:                                              ; preds = %404, %291
  br label %406

406:                                              ; preds = %405, %179
  %407 = load i64, ptr %7, align 8, !tbaa !5
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %407)
          to label %409 unwind label %113

409:                                              ; preds = %406
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %411 unwind label %113

411:                                              ; preds = %409
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %61, !llvm.loop !12

412:                                              ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %413 = load i32, ptr %1, align 4
  ret i32 %413

414:                                              ; preds = %113, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %415

415:                                              ; preds = %414, %21
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %416

416:                                              ; preds = %415
  %417 = load ptr, ptr %5, align 8
  %418 = load i32, ptr %6, align 4
  %419 = insertvalue { ptr, i32 } poison, ptr %417, 0
  %420 = insertvalue { ptr, i32 } %419, i32 %418, 1
  resume { ptr, i32 } %420
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 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) #3 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 #4 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #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}


; 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca i64, align 8
  %5 = alloca i8, align 1
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %9 = 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 %.preheader44 unwind label %14

.preheader44:                                     ; preds = %0
  %10 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %11 = icmp ugt i64 %10, 2
  br i1 %11, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %29, %.preheader44
  %.026.lcssa = phi i64 [ 0, %.preheader44 ], [ %32, %29 ]
  %12 = load i64, ptr %2, align 8, !tbaa !5
  %13 = add nsw i64 %12, -1
  store i64 %13, ptr %2, align 8, !tbaa !5
  %.not47 = icmp eq i64 %12, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph49

14:                                               ; preds = %0
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %260

.lr.ph:                                           ; preds = %.preheader44, %29
  %.046 = phi i64 [ %33, %29 ], [ 2, %.preheader44 ]
  %.02645 = phi i64 [ %32, %29 ], [ 0, %.preheader44 ]
  %16 = add nsw i64 %.046, -2
  %17 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %16)
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %19 = icmp eq i8 %18, 97
  br i1 %19, label %20, label %29

20:                                               ; preds = %.lr.ph
  %21 = add nsw i64 %.046, -1
  %22 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %21)
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %24 = icmp eq i8 %23, 98
  br i1 %24, label %25, label %29

25:                                               ; preds = %20
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.046)
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = icmp eq i8 %27, 99
  br label %29

29:                                               ; preds = %25, %20, %.lr.ph
  %30 = phi i1 [ false, %20 ], [ false, %.lr.ph ], [ %28, %25 ]
  %31 = zext i1 %30 to i64
  %32 = add nuw nsw i64 %.02645, %31
  %33 = add nuw nsw i64 %.046, 1
  %34 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %.lr.ph, label %.preheader, !llvm.loop !10

.lr.ph49:                                         ; preds = %.preheader, %257
  %.148 = phi i64 [ %.8, %257 ], [ %.026.lcssa, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  %36 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %37 unwind label %67

37:                                               ; preds = %.lr.ph49
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %39 unwind label %67

39:                                               ; preds = %37
  %40 = load i64, ptr %4, align 8, !tbaa !5
  %41 = add nsw i64 %40, -1
  store i64 %41, ptr %4, align 8, !tbaa !5
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %41)
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = load i8, ptr %5, align 1
  %45 = icmp eq i8 %44, 97
  %46 = icmp ne i8 %43, 97
  %or.cond = and i1 %46, %45
  %47 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %or.cond, label %48, label %108

48:                                               ; preds = %39
  %49 = icmp sgt i64 %47, 1
  br i1 %49, label %50, label %69

50:                                               ; preds = %48
  %51 = add nsw i64 %47, -2
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %51)
  %53 = load i8, ptr %52, align 1, !tbaa !9
  %54 = icmp eq i8 %53, 97
  br i1 %54, label %55, label %thread-pre-split

55:                                               ; preds = %50
  %56 = load i64, ptr %4, align 8, !tbaa !5
  %57 = add nsw i64 %56, -1
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %57)
  %59 = load i8, ptr %58, align 1, !tbaa !9
  %60 = icmp eq i8 %59, 98
  br i1 %60, label %61, label %thread-pre-split

61:                                               ; preds = %55
  %62 = load i64, ptr %4, align 8, !tbaa !5
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %62)
  %64 = load i8, ptr %63, align 1, !tbaa !9
  %65 = icmp eq i8 %64, 99
  %66 = sext i1 %65 to i64
  %spec.select = add nsw i64 %.148, %66
  br label %thread-pre-split

67:                                               ; preds = %255, %253, %37, %.lr.ph49
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %260

thread-pre-split:                                 ; preds = %50, %55, %61
  %.2.ph = phi i64 [ %spec.select, %61 ], [ %.148, %50 ], [ %.148, %55 ]
  %.pr = load i64, ptr %4, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %thread-pre-split, %48
  %70 = phi i64 [ %.pr, %thread-pre-split ], [ %47, %48 ]
  %.2 = phi i64 [ %.2.ph, %thread-pre-split ], [ %.148, %48 ]
  %71 = icmp sgt i64 %70, 0
  br i1 %71, label %72, label %91

72:                                               ; preds = %69
  %73 = add nsw i64 %70, -1
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %73)
  %75 = load i8, ptr %74, align 1, !tbaa !9
  %76 = icmp eq i8 %75, 97
  %.pre59 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %76, label %77, label %91

77:                                               ; preds = %72
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.pre59)
  %79 = load i8, ptr %78, align 1, !tbaa !9
  %80 = icmp eq i8 %79, 98
  %.pre58 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %80, label %81, label %91

81:                                               ; preds = %77
  %82 = add nsw i64 %.pre58, 1
  %83 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %84 = icmp ult i64 %82, %83
  %.pre57 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %84, label %85, label %91

85:                                               ; preds = %81
  %86 = add nsw i64 %.pre57, 1
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %86)
  %88 = load i8, ptr %87, align 1, !tbaa !9
  %89 = icmp eq i8 %88, 99
  %90 = sext i1 %89 to i64
  %spec.select36 = add nsw i64 %.2, %90
  %.pre56 = load i64, ptr %4, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %85, %81, %77, %72, %69
  %92 = phi i64 [ %.pre57, %81 ], [ %.pre58, %77 ], [ %.pre59, %72 ], [ %70, %69 ], [ %.pre56, %85 ]
  %.3 = phi i64 [ %.2, %81 ], [ %.2, %77 ], [ %.2, %72 ], [ %.2, %69 ], [ %spec.select36, %85 ]
  %93 = load i8, ptr %5, align 1, !tbaa !9
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %92)
  store i8 %93, ptr %94, align 1, !tbaa !9
  %95 = load i64, ptr %4, align 8, !tbaa !5
  %96 = add nsw i64 %95, 2
  %97 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %98 = icmp ult i64 %96, %97
  br i1 %98, label %99, label %253

99:                                               ; preds = %91
  %100 = load i64, ptr %4, align 8, !tbaa !5
  %101 = add nsw i64 %100, 1
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %101)
  %103 = load i8, ptr %102, align 1, !tbaa !9
  %104 = icmp eq i8 %103, 98
  br i1 %104, label %105, label %253

105:                                              ; preds = %99
  %106 = load i64, ptr %4, align 8, !tbaa !5
  %107 = add nsw i64 %106, 2
  br label %.sink.split

108:                                              ; preds = %39
  %109 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %47)
  %110 = load i8, ptr %109, align 1, !tbaa !9
  %111 = load i8, ptr %5, align 1
  %112 = icmp eq i8 %111, 98
  %113 = icmp ne i8 %110, 98
  %or.cond5 = and i1 %113, %112
  %114 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %or.cond5, label %115, label %179

115:                                              ; preds = %108
  %116 = icmp sgt i64 %114, 1
  br i1 %116, label %117, label %132

117:                                              ; preds = %115
  %118 = add nsw i64 %114, -2
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %118)
  %120 = load i8, ptr %119, align 1, !tbaa !9
  %121 = icmp eq i8 %120, 97
  %.pre55 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %121, label %122, label %132

122:                                              ; preds = %117
  %123 = add nsw i64 %.pre55, -1
  %124 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %123)
  %125 = load i8, ptr %124, align 1, !tbaa !9
  %126 = icmp eq i8 %125, 98
  %.pre54 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %126, label %127, label %132

127:                                              ; preds = %122
  %128 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.pre54)
  %129 = load i8, ptr %128, align 1, !tbaa !9
  %130 = icmp eq i8 %129, 99
  %131 = sext i1 %130 to i64
  %spec.select38 = add nsw i64 %.148, %131
  %.pre53 = load i64, ptr %4, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %127, %122, %117, %115
  %133 = phi i64 [ %.pre54, %122 ], [ %.pre55, %117 ], [ %114, %115 ], [ %.pre53, %127 ]
  %.4 = phi i64 [ %.148, %122 ], [ %.148, %117 ], [ %.148, %115 ], [ %spec.select38, %127 ]
  %134 = add nsw i64 %133, 2
  %135 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %137, label %155

137:                                              ; preds = %132
  %138 = load i64, ptr %4, align 8, !tbaa !5
  %139 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %138)
  %140 = load i8, ptr %139, align 1, !tbaa !9
  %141 = icmp eq i8 %140, 97
  br i1 %141, label %142, label %155

142:                                              ; preds = %137
  %143 = load i64, ptr %4, align 8, !tbaa !5
  %144 = add nsw i64 %143, 1
  %145 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %144)
  %146 = load i8, ptr %145, align 1, !tbaa !9
  %147 = icmp eq i8 %146, 98
  br i1 %147, label %148, label %155

148:                                              ; preds = %142
  %149 = load i64, ptr %4, align 8, !tbaa !5
  %150 = add nsw i64 %149, 2
  %151 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %150)
  %152 = load i8, ptr %151, align 1, !tbaa !9
  %153 = icmp eq i8 %152, 99
  %154 = sext i1 %153 to i64
  %spec.select39 = add nsw i64 %.4, %154
  br label %155

155:                                              ; preds = %148, %142, %137, %132
  %.5 = phi i64 [ %.4, %142 ], [ %.4, %137 ], [ %.4, %132 ], [ %spec.select39, %148 ]
  %156 = load i8, ptr %5, align 1, !tbaa !9
  %157 = load i64, ptr %4, align 8, !tbaa !5
  %158 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %157)
  store i8 %156, ptr %158, align 1, !tbaa !9
  %159 = load i64, ptr %4, align 8, !tbaa !5
  %160 = icmp sgt i64 %159, 0
  br i1 %160, label %161, label %253

161:                                              ; preds = %155
  %162 = add nsw i64 %159, -1
  %163 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %162)
  %164 = load i8, ptr %163, align 1, !tbaa !9
  %165 = icmp eq i8 %164, 97
  br i1 %165, label %166, label %253

166:                                              ; preds = %161
  %167 = load i64, ptr %4, align 8, !tbaa !5
  %168 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %167)
  %169 = load i8, ptr %168, align 1, !tbaa !9
  %170 = icmp eq i8 %169, 98
  br i1 %170, label %171, label %253

171:                                              ; preds = %166
  %172 = load i64, ptr %4, align 8, !tbaa !5
  %173 = add nsw i64 %172, 1
  %174 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %175 = icmp ult i64 %173, %174
  br i1 %175, label %176, label %253

176:                                              ; preds = %171
  %177 = load i64, ptr %4, align 8, !tbaa !5
  %178 = add nsw i64 %177, 1
  br label %.sink.split

179:                                              ; preds = %108
  %180 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %114)
  %181 = load i8, ptr %180, align 1, !tbaa !9
  %182 = load i8, ptr %5, align 1
  %183 = icmp eq i8 %182, 99
  %184 = icmp ne i8 %181, 99
  %or.cond8 = and i1 %184, %183
  br i1 %or.cond8, label %185, label %253

185:                                              ; preds = %179
  %186 = load i64, ptr %4, align 8, !tbaa !5
  %187 = add nsw i64 %186, 2
  %188 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %189 = icmp ult i64 %187, %188
  br i1 %189, label %190, label %208

190:                                              ; preds = %185
  %191 = load i64, ptr %4, align 8, !tbaa !5
  %192 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %191)
  %193 = load i8, ptr %192, align 1, !tbaa !9
  %194 = icmp eq i8 %193, 97
  br i1 %194, label %195, label %208

195:                                              ; preds = %190
  %196 = load i64, ptr %4, align 8, !tbaa !5
  %197 = add nsw i64 %196, 1
  %198 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %197)
  %199 = load i8, ptr %198, align 1, !tbaa !9
  %200 = icmp eq i8 %199, 98
  br i1 %200, label %201, label %208

201:                                              ; preds = %195
  %202 = load i64, ptr %4, align 8, !tbaa !5
  %203 = add nsw i64 %202, 2
  %204 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %203)
  %205 = load i8, ptr %204, align 1, !tbaa !9
  %206 = icmp eq i8 %205, 99
  %207 = sext i1 %206 to i64
  %spec.select41 = add nsw i64 %.148, %207
  br label %208

208:                                              ; preds = %201, %195, %190, %185
  %.6 = phi i64 [ %.148, %195 ], [ %.148, %190 ], [ %.148, %185 ], [ %spec.select41, %201 ]
  %209 = load i64, ptr %4, align 8, !tbaa !5
  %210 = icmp sgt i64 %209, 0
  br i1 %210, label %211, label %230

211:                                              ; preds = %208
  %212 = add nsw i64 %209, -1
  %213 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %212)
  %214 = load i8, ptr %213, align 1, !tbaa !9
  %215 = icmp eq i8 %214, 97
  %.pre52 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %215, label %216, label %230

216:                                              ; preds = %211
  %217 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.pre52)
  %218 = load i8, ptr %217, align 1, !tbaa !9
  %219 = icmp eq i8 %218, 98
  %.pre51 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %219, label %220, label %230

220:                                              ; preds = %216
  %221 = add nsw i64 %.pre51, 1
  %222 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %223 = icmp ult i64 %221, %222
  %.pre50 = load i64, ptr %4, align 8, !tbaa !5
  br i1 %223, label %224, label %230

224:                                              ; preds = %220
  %225 = add nsw i64 %.pre50, 1
  %226 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %225)
  %227 = load i8, ptr %226, align 1, !tbaa !9
  %228 = icmp eq i8 %227, 99
  %229 = sext i1 %228 to i64
  %spec.select42 = add nsw i64 %.6, %229
  %.pre = load i64, ptr %4, align 8, !tbaa !5
  br label %230

230:                                              ; preds = %224, %220, %216, %211, %208
  %231 = phi i64 [ %.pre50, %220 ], [ %.pre51, %216 ], [ %.pre52, %211 ], [ %209, %208 ], [ %.pre, %224 ]
  %.7 = phi i64 [ %.6, %220 ], [ %.6, %216 ], [ %.6, %211 ], [ %.6, %208 ], [ %spec.select42, %224 ]
  %232 = load i8, ptr %5, align 1, !tbaa !9
  %233 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %231)
  store i8 %232, ptr %233, align 1, !tbaa !9
  %234 = load i64, ptr %4, align 8, !tbaa !5
  %235 = icmp sgt i64 %234, 1
  br i1 %235, label %236, label %253

236:                                              ; preds = %230
  %237 = add nsw i64 %234, -2
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %237)
  %239 = load i8, ptr %238, align 1, !tbaa !9
  %240 = icmp eq i8 %239, 97
  br i1 %240, label %241, label %253

241:                                              ; preds = %236
  %242 = load i64, ptr %4, align 8, !tbaa !5
  %243 = add nsw i64 %242, -1
  %244 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %243)
  %245 = load i8, ptr %244, align 1, !tbaa !9
  %246 = icmp eq i8 %245, 98
  br i1 %246, label %247, label %253

247:                                              ; preds = %241
  %248 = load i64, ptr %4, align 8, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %105, %176, %247
  %.sink = phi i64 [ %248, %247 ], [ %178, %176 ], [ %107, %105 ]
  %.7.sink = phi i64 [ %.7, %247 ], [ %.5, %176 ], [ %.3, %105 ]
  %249 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %.sink)
  %250 = load i8, ptr %249, align 1, !tbaa !9
  %251 = icmp eq i8 %250, 99
  %252 = zext i1 %251 to i64
  %spec.select43 = add nsw i64 %.7.sink, %252
  br label %253

253:                                              ; preds = %.sink.split, %171, %166, %161, %155, %230, %236, %241, %179, %91, %99
  %.8 = phi i64 [ %.3, %99 ], [ %.3, %91 ], [ %.5, %171 ], [ %.5, %166 ], [ %.5, %161 ], [ %.5, %155 ], [ %.7, %241 ], [ %.7, %236 ], [ %.7, %230 ], [ %.148, %179 ], [ %spec.select43, %.sink.split ]
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.8)
          to label %255 unwind label %67

255:                                              ; preds = %253
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %257 unwind label %67

257:                                              ; preds = %255
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %258 = load i64, ptr %2, align 8, !tbaa !5
  %259 = add nsw i64 %258, -1
  store i64 %259, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i64 %258, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph49, !llvm.loop !12

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

260:                                              ; preds = %67, %14
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %15, %14 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

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

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

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 #4 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 #4 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 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 #3 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 #4 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #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}


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