; LLVM IR from DionysiosB/CodeForces :: 1500-1599 (1512C-ABPalindrome)

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca i1, align 1
  %18 = alloca i1, align 1
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %19 = 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)
  br label %20

20:                                               ; preds = %429, %0
  %21 = load i64, ptr %2, align 8, !tbaa !5
  %22 = add nsw i64 %21, -1
  store i64 %22, ptr %2, align 8, !tbaa !5
  %23 = icmp ne i64 %21, 0
  br i1 %23, label %24, label %452

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %27 = 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) %5)
          to label %28 unwind label %36

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %29 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  store i64 %29, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 1, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %274, %28
  %31 = load i64, ptr %12, align 8, !tbaa !5
  %32 = mul nsw i64 2, %31
  %33 = load i64, ptr %8, align 8, !tbaa !5
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %30
  store i32 4, ptr %13, align 4
  br label %277

36:                                               ; preds = %24
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %6, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %7, align 4
  br label %451

40:                                               ; preds = %30
  %41 = load i64, ptr %12, align 8, !tbaa !5
  %42 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %41)
          to label %43 unwind label %73

43:                                               ; preds = %40
  %44 = load i8, ptr %42, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = icmp ne i32 %45, 63
  br i1 %46, label %47, label %77

47:                                               ; preds = %43
  %48 = load i64, ptr %8, align 8, !tbaa !5
  %49 = sub nsw i64 %48, 1
  %50 = load i64, ptr %12, align 8, !tbaa !5
  %51 = sub nsw i64 %49, %50
  %52 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %51)
          to label %53 unwind label %73

53:                                               ; preds = %47
  %54 = load i8, ptr %52, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = icmp ne i32 %55, 63
  br i1 %56, label %57, label %77

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

60:                                               ; preds = %57
  %61 = load i8, ptr %59, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = load i64, ptr %8, align 8, !tbaa !5
  %64 = sub nsw i64 %63, 1
  %65 = load i64, ptr %12, align 8, !tbaa !5
  %66 = sub nsw i64 %64, %65
  %67 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %66)
          to label %68 unwind label %73

68:                                               ; preds = %60
  %69 = load i8, ptr %67, align 1, !tbaa !11
  %70 = sext i8 %69 to i32
  %71 = icmp ne i32 %62, %70
  br i1 %71, label %72, label %77

72:                                               ; preds = %68
  store i8 0, ptr %9, align 1, !tbaa !9
  store i32 4, ptr %13, align 4
  br label %277

73:                                               ; preds = %242, %231, %224, %221, %214, %204, %176, %165, %161, %155, %145, %138, %110, %99, %92, %80, %77, %60, %57, %47, %40
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %6, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %450

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

80:                                               ; preds = %77
  %81 = load i8, ptr %79, align 1, !tbaa !11
  %82 = sext i8 %81 to i32
  %83 = load i64, ptr %8, align 8, !tbaa !5
  %84 = sub nsw i64 %83, 1
  %85 = load i64, ptr %12, align 8, !tbaa !5
  %86 = sub nsw i64 %84, %85
  %87 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %86)
          to label %88 unwind label %73

88:                                               ; preds = %80
  %89 = load i8, ptr %87, align 1, !tbaa !11
  %90 = sext i8 %89 to i32
  %91 = icmp eq i32 %82, %90
  br i1 %91, label %92, label %138

92:                                               ; preds = %88
  %93 = load i64, ptr %12, align 8, !tbaa !5
  %94 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %93)
          to label %95 unwind label %73

95:                                               ; preds = %92
  %96 = load i8, ptr %94, align 1, !tbaa !11
  %97 = sext i8 %96 to i32
  %98 = icmp ne i32 %97, 63
  br i1 %98, label %99, label %138

99:                                               ; preds = %95
  %100 = load i64, ptr %12, align 8, !tbaa !5
  %101 = load i64, ptr %8, align 8, !tbaa !5
  %102 = sub nsw i64 %101, 1
  %103 = load i64, ptr %12, align 8, !tbaa !5
  %104 = sub nsw i64 %102, %103
  %105 = icmp ne i64 %100, %104
  %106 = zext i1 %105 to i32
  %107 = add nsw i32 1, %106
  %108 = load i64, ptr %12, align 8, !tbaa !5
  %109 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %108)
          to label %110 unwind label %73

110:                                              ; preds = %99
  %111 = load i8, ptr %109, align 1, !tbaa !11
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 48
  %114 = zext i1 %113 to i32
  %115 = mul nsw i32 %107, %114
  %116 = sext i32 %115 to i64
  %117 = load i64, ptr %10, align 8, !tbaa !5
  %118 = add nsw i64 %117, %116
  store i64 %118, ptr %10, align 8, !tbaa !5
  %119 = load i64, ptr %12, align 8, !tbaa !5
  %120 = load i64, ptr %8, align 8, !tbaa !5
  %121 = sub nsw i64 %120, 1
  %122 = load i64, ptr %12, align 8, !tbaa !5
  %123 = sub nsw i64 %121, %122
  %124 = icmp ne i64 %119, %123
  %125 = zext i1 %124 to i32
  %126 = add nsw i32 1, %125
  %127 = load i64, ptr %12, align 8, !tbaa !5
  %128 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %127)
          to label %129 unwind label %73

129:                                              ; preds = %110
  %130 = load i8, ptr %128, align 1, !tbaa !11
  %131 = sext i8 %130 to i32
  %132 = icmp eq i32 %131, 49
  %133 = zext i1 %132 to i32
  %134 = mul nsw i32 %126, %133
  %135 = sext i32 %134 to i64
  %136 = load i64, ptr %11, align 8, !tbaa !5
  %137 = add nsw i64 %136, %135
  store i64 %137, ptr %11, align 8, !tbaa !5
  br label %272

138:                                              ; preds = %95, %88
  %139 = load i64, ptr %12, align 8, !tbaa !5
  %140 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %139)
          to label %141 unwind label %73

141:                                              ; preds = %138
  %142 = load i8, ptr %140, align 1, !tbaa !11
  %143 = sext i8 %142 to i32
  %144 = icmp eq i32 %143, 63
  br i1 %144, label %145, label %204

145:                                              ; preds = %141
  %146 = load i64, ptr %8, align 8, !tbaa !5
  %147 = sub nsw i64 %146, 1
  %148 = load i64, ptr %12, align 8, !tbaa !5
  %149 = sub nsw i64 %147, %148
  %150 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %149)
          to label %151 unwind label %73

151:                                              ; preds = %145
  %152 = load i8, ptr %150, align 1, !tbaa !11
  %153 = sext i8 %152 to i32
  %154 = icmp ne i32 %153, 63
  br i1 %154, label %155, label %204

155:                                              ; preds = %151
  %156 = load i64, ptr %8, align 8, !tbaa !5
  %157 = sub nsw i64 %156, 1
  %158 = load i64, ptr %12, align 8, !tbaa !5
  %159 = sub nsw i64 %157, %158
  %160 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %159)
          to label %161 unwind label %73

161:                                              ; preds = %155
  %162 = load i8, ptr %160, align 1, !tbaa !11
  %163 = load i64, ptr %12, align 8, !tbaa !5
  %164 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %163)
          to label %165 unwind label %73

165:                                              ; preds = %161
  store i8 %162, ptr %164, align 1, !tbaa !11
  %166 = load i64, ptr %12, align 8, !tbaa !5
  %167 = load i64, ptr %8, align 8, !tbaa !5
  %168 = sub nsw i64 %167, 1
  %169 = load i64, ptr %12, align 8, !tbaa !5
  %170 = sub nsw i64 %168, %169
  %171 = icmp ne i64 %166, %170
  %172 = zext i1 %171 to i32
  %173 = add nsw i32 1, %172
  %174 = load i64, ptr %12, align 8, !tbaa !5
  %175 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %174)
          to label %176 unwind label %73

176:                                              ; preds = %165
  %177 = load i8, ptr %175, align 1, !tbaa !11
  %178 = sext i8 %177 to i32
  %179 = icmp eq i32 %178, 48
  %180 = zext i1 %179 to i32
  %181 = mul nsw i32 %173, %180
  %182 = sext i32 %181 to i64
  %183 = load i64, ptr %10, align 8, !tbaa !5
  %184 = add nsw i64 %183, %182
  store i64 %184, ptr %10, align 8, !tbaa !5
  %185 = load i64, ptr %12, align 8, !tbaa !5
  %186 = load i64, ptr %8, align 8, !tbaa !5
  %187 = sub nsw i64 %186, 1
  %188 = load i64, ptr %12, align 8, !tbaa !5
  %189 = sub nsw i64 %187, %188
  %190 = icmp ne i64 %185, %189
  %191 = zext i1 %190 to i32
  %192 = add nsw i32 1, %191
  %193 = load i64, ptr %12, align 8, !tbaa !5
  %194 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %193)
          to label %195 unwind label %73

195:                                              ; preds = %176
  %196 = load i8, ptr %194, align 1, !tbaa !11
  %197 = sext i8 %196 to i32
  %198 = icmp eq i32 %197, 49
  %199 = zext i1 %198 to i32
  %200 = mul nsw i32 %192, %199
  %201 = sext i32 %200 to i64
  %202 = load i64, ptr %11, align 8, !tbaa !5
  %203 = add nsw i64 %202, %201
  store i64 %203, ptr %11, align 8, !tbaa !5
  br label %271

204:                                              ; preds = %151, %141
  %205 = load i64, ptr %8, align 8, !tbaa !5
  %206 = sub nsw i64 %205, 1
  %207 = load i64, ptr %12, align 8, !tbaa !5
  %208 = sub nsw i64 %206, %207
  %209 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %208)
          to label %210 unwind label %73

210:                                              ; preds = %204
  %211 = load i8, ptr %209, align 1, !tbaa !11
  %212 = sext i8 %211 to i32
  %213 = icmp eq i32 %212, 63
  br i1 %213, label %214, label %270

214:                                              ; preds = %210
  %215 = load i64, ptr %12, align 8, !tbaa !5
  %216 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %215)
          to label %217 unwind label %73

217:                                              ; preds = %214
  %218 = load i8, ptr %216, align 1, !tbaa !11
  %219 = sext i8 %218 to i32
  %220 = icmp ne i32 %219, 63
  br i1 %220, label %221, label %270

221:                                              ; preds = %217
  %222 = load i64, ptr %12, align 8, !tbaa !5
  %223 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %222)
          to label %224 unwind label %73

224:                                              ; preds = %221
  %225 = load i8, ptr %223, align 1, !tbaa !11
  %226 = load i64, ptr %8, align 8, !tbaa !5
  %227 = sub nsw i64 %226, 1
  %228 = load i64, ptr %12, align 8, !tbaa !5
  %229 = sub nsw i64 %227, %228
  %230 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %229)
          to label %231 unwind label %73

231:                                              ; preds = %224
  store i8 %225, ptr %230, align 1, !tbaa !11
  %232 = load i64, ptr %12, align 8, !tbaa !5
  %233 = load i64, ptr %8, align 8, !tbaa !5
  %234 = sub nsw i64 %233, 1
  %235 = load i64, ptr %12, align 8, !tbaa !5
  %236 = sub nsw i64 %234, %235
  %237 = icmp ne i64 %232, %236
  %238 = zext i1 %237 to i32
  %239 = add nsw i32 1, %238
  %240 = load i64, ptr %12, align 8, !tbaa !5
  %241 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %240)
          to label %242 unwind label %73

242:                                              ; preds = %231
  %243 = load i8, ptr %241, align 1, !tbaa !11
  %244 = sext i8 %243 to i32
  %245 = icmp eq i32 %244, 48
  %246 = zext i1 %245 to i32
  %247 = mul nsw i32 %239, %246
  %248 = sext i32 %247 to i64
  %249 = load i64, ptr %10, align 8, !tbaa !5
  %250 = add nsw i64 %249, %248
  store i64 %250, ptr %10, align 8, !tbaa !5
  %251 = load i64, ptr %12, align 8, !tbaa !5
  %252 = load i64, ptr %8, align 8, !tbaa !5
  %253 = sub nsw i64 %252, 1
  %254 = load i64, ptr %12, align 8, !tbaa !5
  %255 = sub nsw i64 %253, %254
  %256 = icmp ne i64 %251, %255
  %257 = zext i1 %256 to i32
  %258 = add nsw i32 1, %257
  %259 = load i64, ptr %12, align 8, !tbaa !5
  %260 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %259)
          to label %261 unwind label %73

261:                                              ; preds = %242
  %262 = load i8, ptr %260, align 1, !tbaa !11
  %263 = sext i8 %262 to i32
  %264 = icmp eq i32 %263, 49
  %265 = zext i1 %264 to i32
  %266 = mul nsw i32 %258, %265
  %267 = sext i32 %266 to i64
  %268 = load i64, ptr %11, align 8, !tbaa !5
  %269 = add nsw i64 %268, %267
  store i64 %269, ptr %11, align 8, !tbaa !5
  br label %270

270:                                              ; preds = %261, %217, %210
  br label %271

271:                                              ; preds = %270, %195
  br label %272

272:                                              ; preds = %271, %129
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273
  %275 = load i64, ptr %12, align 8, !tbaa !5
  %276 = add nsw i64 %275, 1
  store i64 %276, ptr %12, align 8, !tbaa !5
  br label %30, !llvm.loop !12

277:                                              ; preds = %72, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %278

278:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %279

279:                                              ; preds = %399, %278
  %280 = load i64, ptr %14, align 8, !tbaa !5
  %281 = mul nsw i64 2, %280
  %282 = load i64, ptr %8, align 8, !tbaa !5
  %283 = icmp slt i64 %281, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %279
  store i32 7, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %402

285:                                              ; preds = %279
  %286 = load i64, ptr %14, align 8, !tbaa !5
  %287 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %286)
          to label %288 unwind label %326

288:                                              ; preds = %285
  %289 = load i8, ptr %287, align 1, !tbaa !11
  %290 = sext i8 %289 to i32
  %291 = icmp eq i32 %290, 63
  br i1 %291, label %292, label %349

292:                                              ; preds = %288
  %293 = load i64, ptr %8, align 8, !tbaa !5
  %294 = sub nsw i64 %293, 1
  %295 = load i64, ptr %14, align 8, !tbaa !5
  %296 = sub nsw i64 %294, %295
  %297 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %296)
          to label %298 unwind label %326

298:                                              ; preds = %292
  %299 = load i8, ptr %297, align 1, !tbaa !11
  %300 = sext i8 %299 to i32
  %301 = icmp eq i32 %300, 63
  br i1 %301, label %302, label %349

302:                                              ; preds = %298
  %303 = load i64, ptr %14, align 8, !tbaa !5
  %304 = load i64, ptr %8, align 8, !tbaa !5
  %305 = sub nsw i64 %304, 1
  %306 = load i64, ptr %14, align 8, !tbaa !5
  %307 = sub nsw i64 %305, %306
  %308 = icmp ne i64 %303, %307
  br i1 %308, label %309, label %349

309:                                              ; preds = %302
  %310 = load i64, ptr %10, align 8, !tbaa !5
  %311 = load i64, ptr %3, align 8, !tbaa !5
  %312 = sub nsw i64 %311, 2
  %313 = icmp sle i64 %310, %312
  br i1 %313, label %314, label %330

314:                                              ; preds = %309
  %315 = load i64, ptr %8, align 8, !tbaa !5
  %316 = sub nsw i64 %315, 1
  %317 = load i64, ptr %14, align 8, !tbaa !5
  %318 = sub nsw i64 %316, %317
  %319 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %318)
          to label %320 unwind label %326

320:                                              ; preds = %314
  store i8 48, ptr %319, align 1, !tbaa !11
  %321 = load i64, ptr %14, align 8, !tbaa !5
  %322 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %321)
          to label %323 unwind label %326

323:                                              ; preds = %320
  store i8 48, ptr %322, align 1, !tbaa !11
  %324 = load i64, ptr %10, align 8, !tbaa !5
  %325 = add nsw i64 %324, 2
  store i64 %325, ptr %10, align 8, !tbaa !5
  br label %348

326:                                              ; preds = %389, %378, %356, %349, %341, %335, %320, %314, %292, %285
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %6, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %450

330:                                              ; preds = %309
  %331 = load i64, ptr %11, align 8, !tbaa !5
  %332 = load i64, ptr %4, align 8, !tbaa !5
  %333 = sub nsw i64 %332, 2
  %334 = icmp sle i64 %331, %333
  br i1 %334, label %335, label %347

335:                                              ; preds = %330
  %336 = load i64, ptr %8, align 8, !tbaa !5
  %337 = sub nsw i64 %336, 1
  %338 = load i64, ptr %14, align 8, !tbaa !5
  %339 = sub nsw i64 %337, %338
  %340 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %339)
          to label %341 unwind label %326

341:                                              ; preds = %335
  store i8 49, ptr %340, align 1, !tbaa !11
  %342 = load i64, ptr %14, align 8, !tbaa !5
  %343 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %342)
          to label %344 unwind label %326

344:                                              ; preds = %341
  store i8 49, ptr %343, align 1, !tbaa !11
  %345 = load i64, ptr %11, align 8, !tbaa !5
  %346 = add nsw i64 %345, 2
  store i64 %346, ptr %11, align 8, !tbaa !5
  br label %347

347:                                              ; preds = %344, %330
  br label %348

348:                                              ; preds = %347, %323
  br label %398

349:                                              ; preds = %302, %298, %288
  %350 = load i64, ptr %14, align 8, !tbaa !5
  %351 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %350)
          to label %352 unwind label %326

352:                                              ; preds = %349
  %353 = load i8, ptr %351, align 1, !tbaa !11
  %354 = sext i8 %353 to i32
  %355 = icmp eq i32 %354, 63
  br i1 %355, label %356, label %397

356:                                              ; preds = %352
  %357 = load i64, ptr %8, align 8, !tbaa !5
  %358 = sub nsw i64 %357, 1
  %359 = load i64, ptr %14, align 8, !tbaa !5
  %360 = sub nsw i64 %358, %359
  %361 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %360)
          to label %362 unwind label %326

362:                                              ; preds = %356
  %363 = load i8, ptr %361, align 1, !tbaa !11
  %364 = sext i8 %363 to i32
  %365 = icmp eq i32 %364, 63
  br i1 %365, label %366, label %397

366:                                              ; preds = %362
  %367 = load i64, ptr %14, align 8, !tbaa !5
  %368 = load i64, ptr %8, align 8, !tbaa !5
  %369 = sub nsw i64 %368, 1
  %370 = load i64, ptr %14, align 8, !tbaa !5
  %371 = sub nsw i64 %369, %370
  %372 = icmp eq i64 %367, %371
  br i1 %372, label %373, label %397

373:                                              ; preds = %366
  %374 = load i64, ptr %10, align 8, !tbaa !5
  %375 = load i64, ptr %3, align 8, !tbaa !5
  %376 = sub nsw i64 %375, 1
  %377 = icmp sle i64 %374, %376
  br i1 %377, label %378, label %384

378:                                              ; preds = %373
  %379 = load i64, ptr %14, align 8, !tbaa !5
  %380 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %379)
          to label %381 unwind label %326

381:                                              ; preds = %378
  store i8 48, ptr %380, align 1, !tbaa !11
  %382 = load i64, ptr %10, align 8, !tbaa !5
  %383 = add nsw i64 %382, 1
  store i64 %383, ptr %10, align 8, !tbaa !5
  br label %396

384:                                              ; preds = %373
  %385 = load i64, ptr %11, align 8, !tbaa !5
  %386 = load i64, ptr %4, align 8, !tbaa !5
  %387 = sub nsw i64 %386, 1
  %388 = icmp sle i64 %385, %387
  br i1 %388, label %389, label %395

389:                                              ; preds = %384
  %390 = load i64, ptr %14, align 8, !tbaa !5
  %391 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %390)
          to label %392 unwind label %326

392:                                              ; preds = %389
  store i8 49, ptr %391, align 1, !tbaa !11
  %393 = load i64, ptr %11, align 8, !tbaa !5
  %394 = add nsw i64 %393, 1
  store i64 %394, ptr %11, align 8, !tbaa !5
  br label %395

395:                                              ; preds = %392, %384
  br label %396

396:                                              ; preds = %395, %381
  br label %397

397:                                              ; preds = %396, %366, %362, %352
  br label %398

398:                                              ; preds = %397, %348
  br label %399

399:                                              ; preds = %398
  %400 = load i64, ptr %14, align 8, !tbaa !5
  %401 = add nsw i64 %400, 1
  store i64 %401, ptr %14, align 8, !tbaa !5
  br label %279, !llvm.loop !14

402:                                              ; preds = %284
  %403 = load i64, ptr %10, align 8, !tbaa !5
  %404 = load i64, ptr %3, align 8, !tbaa !5
  %405 = icmp ne i64 %403, %404
  br i1 %405, label %406, label %407

406:                                              ; preds = %402
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %407

407:                                              ; preds = %406, %402
  %408 = load i64, ptr %11, align 8, !tbaa !5
  %409 = load i64, ptr %4, align 8, !tbaa !5
  %410 = icmp ne i64 %408, %409
  br i1 %410, label %411, label %412

411:                                              ; preds = %407
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %412

412:                                              ; preds = %411, %407
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %413 = load i8, ptr %9, align 1, !tbaa !9, !range !15, !noundef !16
  %414 = trunc i8 %413 to i1
  store i1 false, ptr %17, align 1
  store i1 false, ptr %18, align 1
  br i1 %414, label %415, label %417

415:                                              ; preds = %412
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %416 unwind label %430

416:                                              ; preds = %415
  br label %419

417:                                              ; preds = %412
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i1 true, ptr %17, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  store i1 true, ptr %18, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %418 unwind label %434

418:                                              ; preds = %417
  br label %419

419:                                              ; preds = %418, %416
  %420 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %421 unwind label %438

421:                                              ; preds = %419
  %422 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %420, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %423 unwind label %438

423:                                              ; preds = %421
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  %424 = load i1, ptr %18, align 1
  br i1 %424, label %425, label %426

425:                                              ; preds = %423
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  br label %426

426:                                              ; preds = %425, %423
  %427 = load i1, ptr %17, align 1
  br i1 %427, label %428, label %429

428:                                              ; preds = %426
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %429

429:                                              ; preds = %428, %426
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %20, !llvm.loop !17

430:                                              ; preds = %415
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %6, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %7, align 4
  br label %449

434:                                              ; preds = %417
  %435 = landingpad { ptr, i32 }
          cleanup
  %436 = extractvalue { ptr, i32 } %435, 0
  store ptr %436, ptr %6, align 8
  %437 = extractvalue { ptr, i32 } %435, 1
  store i32 %437, ptr %7, align 4
  br label %442

438:                                              ; preds = %421, %419
  %439 = landingpad { ptr, i32 }
          cleanup
  %440 = extractvalue { ptr, i32 } %439, 0
  store ptr %440, ptr %6, align 8
  %441 = extractvalue { ptr, i32 } %439, 1
  store i32 %441, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %442

442:                                              ; preds = %438, %434
  %443 = load i1, ptr %18, align 1
  br i1 %443, label %444, label %445

444:                                              ; preds = %442
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  br label %445

445:                                              ; preds = %444, %442
  %446 = load i1, ptr %17, align 1
  br i1 %446, label %447, label %448

447:                                              ; preds = %445
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %448

448:                                              ; preds = %447, %445
  br label %449

449:                                              ; preds = %448, %430
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %450

450:                                              ; preds = %449, %326, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %451

451:                                              ; preds = %450, %36
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 %454

452:                                              ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %453 = load i32, ptr %1, align 4
  ret i32 %453

454:                                              ; preds = %451
  %455 = load ptr, ptr %6, align 8
  %456 = load i32, ptr %7, align 4
  %457 = insertvalue { ptr, i32 } poison, ptr %455, 0
  %458 = insertvalue { ptr, i32 } %457, i32 %456, 1
  resume { ptr, i32 } %458
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #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 = load i64, ptr %1, align 8, !tbaa !5
  %9 = add nsw i64 %8, -1
  store i64 %9, ptr %1, align 8, !tbaa !5
  %.not162 = icmp eq i64 %8, 0
  br i1 %.not162, label %._crit_edge165, label %.lr.ph164

.lr.ph164:                                        ; preds = %0, %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %10 = 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)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %12 = 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 %13 unwind label %16

13:                                               ; preds = %.lr.ph164
  %14 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %15 = icmp slt i64 %14, 1
  br i1 %15, label %._crit_edge159, label %.lr.ph

16:                                               ; preds = %.lr.ph164
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %133

.lr.ph:                                           ; preds = %13, %64
  %.098147 = phi i64 [ %65, %64 ], [ 0, %13 ]
  %.099146 = phi i64 [ %.1100, %64 ], [ 0, %13 ]
  %.0101145 = phi i64 [ %.1102, %64 ], [ 0, %13 ]
  %18 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %19 = load i8, ptr %18, align 1, !tbaa !9
  %.not117 = icmp eq i8 %19, 63
  %.pre = xor i64 %.098147, -1
  %.pre169 = add nsw i64 %14, %.pre
  br i1 %.not117, label %.lr.ph._crit_edge, label %20

20:                                               ; preds = %.lr.ph
  %21 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.pre169)
  %22 = load i8, ptr %21, align 1, !tbaa !9
  %.not118 = icmp eq i8 %22, 63
  br i1 %.not118, label %.lr.ph._crit_edge, label %23

23:                                               ; preds = %20
  %24 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %25 = load i8, ptr %24, align 1, !tbaa !9
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.pre169)
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %.not119 = icmp eq i8 %25, %27
  br i1 %.not119, label %.lr.ph._crit_edge, label %._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph, %23, %20
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.pre169)
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = icmp eq i8 %29, %31
  br i1 %32, label %33, label %36

33:                                               ; preds = %.lr.ph._crit_edge
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %.not120 = icmp eq i8 %35, 63
  br i1 %.not120, label %36, label %.sink.split

36:                                               ; preds = %33, %.lr.ph._crit_edge
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = icmp eq i8 %38, 63
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.pre169)
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %.not121 = icmp eq i8 %42, 63
  br i1 %.not121, label %43, label %.sink.split.sink.split

43:                                               ; preds = %40, %36
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.pre169)
  %45 = load i8, ptr %44, align 1, !tbaa !9
  %46 = icmp eq i8 %45, 63
  br i1 %46, label %47, label %64

47:                                               ; preds = %43
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %49 = load i8, ptr %48, align 1, !tbaa !9
  %.not122 = icmp eq i8 %49, 63
  br i1 %.not122, label %64, label %.sink.split.sink.split

.sink.split.sink.split:                           ; preds = %47, %40
  %.098147.sink = phi i64 [ %.pre169, %40 ], [ %.098147, %47 ]
  %.pre-phi170.sink = phi i64 [ %.098147, %40 ], [ %.pre169, %47 ]
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147.sink)
  %51 = load i8, ptr %50, align 1, !tbaa !9
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.pre-phi170.sink)
  store i8 %51, ptr %52, align 1, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %33
  %.not124 = icmp eq i64 %.098147, %.pre169
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %55 = icmp eq i8 %54, 48
  %56 = select i1 %.not124, i64 1, i64 2
  %57 = select i1 %55, i64 %56, i64 0
  %58 = add nsw i64 %57, %.0101145
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.098147)
  %60 = load i8, ptr %59, align 1, !tbaa !9
  %61 = icmp eq i8 %60, 49
  %62 = select i1 %61, i64 %56, i64 0
  %63 = add nsw i64 %62, %.099146
  br label %64

64:                                               ; preds = %.sink.split, %47, %43
  %.1102 = phi i64 [ %.0101145, %47 ], [ %.0101145, %43 ], [ %58, %.sink.split ]
  %.1100 = phi i64 [ %.099146, %47 ], [ %.099146, %43 ], [ %63, %.sink.split ]
  %65 = add nuw nsw i64 %.098147, 1
  %66 = shl nuw nsw i64 %65, 1
  %.not171 = icmp slt i64 %66, %14
  br i1 %.not171, label %.lr.ph, label %._crit_edge, !llvm.loop !10

._crit_edge:                                      ; preds = %64, %23
  %.0101.lcssa = phi i64 [ %.1102, %64 ], [ %.0101145, %23 ]
  %.099.lcssa = phi i64 [ %.1100, %64 ], [ %.099146, %23 ]
  %.lcssa = phi i1 [ true, %64 ], [ false, %23 ]
  br label %.lr.ph158

._crit_edge159:                                   ; preds = %113, %13
  %.lcssa175 = phi i1 [ true, %13 ], [ %.lcssa, %113 ]
  %.2103.lcssa = phi i64 [ 0, %13 ], [ %.3104, %113 ]
  %.2.lcssa = phi i64 [ 0, %13 ], [ %.3, %113 ]
  %67 = load i64, ptr %2, align 8, !tbaa !5
  %.not126 = icmp eq i64 %.2103.lcssa, %67
  %spec.select = and i1 %.lcssa175, %.not126
  %68 = load i64, ptr %3, align 8, !tbaa !5
  %.not127 = icmp eq i64 %.2.lcssa, %68
  %spec.select139 = select i1 %.not127, i1 %spec.select, i1 false
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  br i1 %spec.select139, label %117, label %118

.lr.ph158:                                        ; preds = %._crit_edge, %113
  %.097156 = phi i64 [ %114, %113 ], [ 0, %._crit_edge ]
  %.2155 = phi i64 [ %.3, %113 ], [ %.099.lcssa, %._crit_edge ]
  %.2103154 = phi i64 [ %.3104, %113 ], [ %.0101.lcssa, %._crit_edge ]
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.097156)
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %71 = icmp eq i8 %70, 63
  br i1 %71, label %72, label %92

72:                                               ; preds = %.lr.ph158
  %73 = xor i64 %.097156, -1
  %74 = add nsw i64 %14, %73
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %74)
  %76 = load i8, ptr %75, align 1, !tbaa !9
  %77 = icmp ne i8 %76, 63
  %.not131 = icmp eq i64 %.097156, %74
  %or.cond = or i1 %.not131, %77
  br i1 %or.cond, label %92, label %78

78:                                               ; preds = %72
  %79 = load i64, ptr %2, align 8, !tbaa !5
  %80 = add nsw i64 %79, -2
  %.not134 = icmp sgt i64 %.2103154, %80
  br i1 %.not134, label %85, label %81

81:                                               ; preds = %78
  %82 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %74)
  store i8 48, ptr %82, align 1, !tbaa !9
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.097156)
  store i8 48, ptr %83, align 1, !tbaa !9
  %84 = add nsw i64 %.2103154, 2
  br label %113

85:                                               ; preds = %78
  %86 = load i64, ptr %3, align 8, !tbaa !5
  %87 = add nsw i64 %86, -2
  %.not135 = icmp sgt i64 %.2155, %87
  br i1 %.not135, label %113, label %88

88:                                               ; preds = %85
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %74)
  store i8 49, ptr %89, align 1, !tbaa !9
  %90 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.097156)
  store i8 49, ptr %90, align 1, !tbaa !9
  %91 = add nsw i64 %.2155, 2
  br label %113

92:                                               ; preds = %72, %.lr.ph158
  %93 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.097156)
  %94 = load i8, ptr %93, align 1, !tbaa !9
  %95 = icmp eq i8 %94, 63
  br i1 %95, label %96, label %113

96:                                               ; preds = %92
  %97 = xor i64 %.097156, -1
  %98 = add nsw i64 %14, %97
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %98)
  %100 = load i8, ptr %99, align 1, !tbaa !9
  %101 = icmp eq i8 %100, 63
  %102 = icmp eq i64 %.097156, %98
  %or.cond136 = and i1 %102, %101
  br i1 %or.cond136, label %103, label %113

103:                                              ; preds = %96
  %104 = load i64, ptr %2, align 8, !tbaa !5
  %.not132.not = icmp slt i64 %.2103154, %104
  br i1 %.not132.not, label %105, label %108

105:                                              ; preds = %103
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.097156)
  store i8 48, ptr %106, align 1, !tbaa !9
  %107 = add nsw i64 %.2103154, 1
  br label %113

108:                                              ; preds = %103
  %109 = load i64, ptr %3, align 8, !tbaa !5
  %.not133.not = icmp slt i64 %.2155, %109
  br i1 %.not133.not, label %110, label %113

110:                                              ; preds = %108
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.097156)
  store i8 49, ptr %111, align 1, !tbaa !9
  %112 = add nsw i64 %.2155, 1
  br label %113

113:                                              ; preds = %85, %88, %81, %105, %110, %108, %96, %92
  %.3104 = phi i64 [ %84, %81 ], [ %.2103154, %88 ], [ %.2103154, %85 ], [ %107, %105 ], [ %.2103154, %110 ], [ %.2103154, %108 ], [ %.2103154, %96 ], [ %.2103154, %92 ]
  %.3 = phi i64 [ %.2155, %81 ], [ %91, %88 ], [ %.2155, %85 ], [ %.2155, %105 ], [ %112, %110 ], [ %.2155, %108 ], [ %.2155, %96 ], [ %.2155, %92 ]
  %114 = add nuw nsw i64 %.097156, 1
  %115 = shl nuw nsw i64 %114, 1
  %116 = icmp slt i64 %115, %14
  br i1 %116, label %.lr.ph158, label %._crit_edge159, !llvm.loop !12

117:                                              ; preds = %._crit_edge159
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %119 unwind label %127

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

119:                                              ; preds = %118, %117
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %121 unwind label %130

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %123 unwind label %130

123:                                              ; preds = %121
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br i1 %spec.select139, label %.critedge, label %124

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

.critedge:                                        ; preds = %123, %124
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #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 nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %125 = load i64, ptr %1, align 8, !tbaa !5
  %126 = add nsw i64 %125, -1
  store i64 %126, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %125, 0
  br i1 %.not, label %._crit_edge165, label %.lr.ph164, !llvm.loop !13

127:                                              ; preds = %117
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge138

.thread:                                          ; preds = %118
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %119, %121
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br i1 %spec.select139, label %.critedge138, label %132

132:                                              ; preds = %.thread, %130
  %.pn142 = phi { ptr, i32 } [ %129, %.thread ], [ %131, %130 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %.critedge138

.critedge138:                                     ; preds = %130, %132, %127
  %.pn.pn = phi { ptr, i32 } [ %.pn142, %132 ], [ %128, %127 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %133

133:                                              ; preds = %.critedge138, %16
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.critedge138 ], [ %17, %16 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, 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.pn.pn

._crit_edge165:                                   ; preds = %.critedge, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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