; LLVM IR from DionysiosB/CodeForces :: 0700-0799 (792C-DivideByThree)

; 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 [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = 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 %"class.std::__cxx11::basic_string", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %24 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %26 unwind label %33

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

27:                                               ; preds = %64, %26
  %28 = load i32, ptr %7, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %37, label %32

32:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %71

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

37:                                               ; preds = %27
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = mul nsw i32 10, %38
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %41)
          to label %43 unwind label %67

43:                                               ; preds = %37
  %44 = load i8, ptr %42, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = sub nsw i32 %45, 48
  %47 = add nsw i32 %39, %46
  store i32 %47, ptr %5, align 4, !tbaa !5
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = srem i32 %48, 3
  store i32 %49, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %51)
          to label %53 unwind label %67

53:                                               ; preds = %43
  %54 = load i8, ptr %52, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 48
  %57 = zext i1 %56 to i32
  %58 = load i8, ptr %6, align 1, !tbaa !9, !range !12, !noundef !13
  %59 = trunc i8 %58 to i1
  %60 = zext i1 %59 to i32
  %61 = or i32 %60, %57
  %62 = icmp ne i32 %61, 0
  %63 = zext i1 %62 to i8
  store i8 %63, ptr %6, align 1, !tbaa !9
  br label %64

64:                                               ; preds = %53
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %7, align 4, !tbaa !5
  br label %27, !llvm.loop !14

67:                                               ; preds = %43, %37
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %3, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %453

71:                                               ; preds = %32
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %83

74:                                               ; preds = %71
  %75 = 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) %2)
          to label %76 unwind label %79

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

78:                                               ; preds = %76
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %451

79:                                               ; preds = %76, %74
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %3, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %4, align 4
  br label %453

83:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 -1, ptr %9, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 -1, ptr %10, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %84 unwind label %93

84:                                               ; preds = %83
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %85 unwind label %97

85:                                               ; preds = %84
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %86 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %87 = sub i64 %86, 1
  %88 = trunc i64 %87 to i32
  store i32 %88, ptr %15, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %120, %85
  %90 = load i32, ptr %15, align 4, !tbaa !5
  %91 = icmp sge i32 %90, 0
  br i1 %91, label %101, label %92

92:                                               ; preds = %89
  store i32 5, ptr %8, align 4
  br label %123

93:                                               ; preds = %83
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %3, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %450

97:                                               ; preds = %84
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %3, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %449

101:                                              ; preds = %89
  %102 = load i32, ptr %15, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %103)
          to label %105 unwind label %115

105:                                              ; preds = %101
  %106 = load i8, ptr %104, align 1, !tbaa !11
  %107 = sext i8 %106 to i32
  %108 = sub nsw i32 %107, 48
  %109 = srem i32 %108, 3
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = icmp eq i32 %109, %110
  br i1 %111, label %112, label %119

112:                                              ; preds = %105
  %113 = load i32, ptr %15, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  store i64 %114, ptr %9, align 8, !tbaa !16
  store i32 5, ptr %8, align 4
  br label %123

115:                                              ; preds = %101
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %3, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %448

119:                                              ; preds = %105
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = add nsw i32 %121, -1
  store i32 %122, ptr %15, align 4, !tbaa !5
  br label %89, !llvm.loop !18

123:                                              ; preds = %112, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %124

124:                                              ; preds = %123
  %125 = load i64, ptr %9, align 8, !tbaa !16
  %126 = icmp sgt i64 %125, 0
  br i1 %126, label %127, label %162

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %148, %127
  %129 = load i32, ptr %16, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %132 = icmp ult i64 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %128
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %155

134:                                              ; preds = %128
  %135 = load i32, ptr %16, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = load i64, ptr %9, align 8, !tbaa !16
  %138 = icmp eq i64 %136, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %134
  br label %148

140:                                              ; preds = %134
  %141 = load i32, ptr %16, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %142)
          to label %144 unwind label %151

144:                                              ; preds = %140
  %145 = load i8, ptr %143, align 1, !tbaa !11
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %145)
          to label %147 unwind label %151

147:                                              ; preds = %144
  br label %148

148:                                              ; preds = %147, %139
  %149 = load i32, ptr %16, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %16, align 4, !tbaa !5
  br label %128, !llvm.loop !19

151:                                              ; preds = %144, %140
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %3, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %448

155:                                              ; preds = %133
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %157 unwind label %158

157:                                              ; preds = %155
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %447

158:                                              ; preds = %155
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %3, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %4, align 4
  br label %448

162:                                              ; preds = %124
  %163 = load i64, ptr %9, align 8, !tbaa !16
  %164 = icmp eq i64 %163, 0
  br i1 %164, label %165, label %215

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 1, ptr %17, align 8, !tbaa !16
  br label %166

166:                                              ; preds = %173, %165
  %167 = load i64, ptr %17, align 8, !tbaa !16
  %168 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %167)
          to label %169 unwind label %176

169:                                              ; preds = %166
  %170 = load i8, ptr %168, align 1, !tbaa !11
  %171 = sext i8 %170 to i32
  %172 = icmp eq i32 %171, 48
  br i1 %172, label %173, label %180

173:                                              ; preds = %169
  %174 = load i64, ptr %17, align 8, !tbaa !16
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %17, align 8, !tbaa !16
  br label %166, !llvm.loop !20

176:                                              ; preds = %210, %166
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %3, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %4, align 4
  br label %214

180:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %181 = load i64, ptr %17, align 8, !tbaa !16
  %182 = trunc i64 %181 to i32
  store i32 %182, ptr %18, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %197, %180
  %184 = load i32, ptr %18, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %187 = icmp ult i64 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %183
  store i32 13, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %204

189:                                              ; preds = %183
  %190 = load i32, ptr %18, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %191)
          to label %193 unwind label %200

193:                                              ; preds = %189
  %194 = load i8, ptr %192, align 1, !tbaa !11
  %195 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %11, i8 noundef signext %194)
          to label %196 unwind label %200

196:                                              ; preds = %193
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %18, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %18, align 4, !tbaa !5
  br label %183, !llvm.loop !21

200:                                              ; preds = %193, %189
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %3, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %214

204:                                              ; preds = %188
  %205 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  %206 = icmp eq i64 %205, 0
  br i1 %206, label %207, label %213

207:                                              ; preds = %204
  %208 = load i8, ptr %6, align 1, !tbaa !9, !range !12, !noundef !13
  %209 = trunc i8 %208 to i1
  br i1 %209, label %210, label %213

210:                                              ; preds = %207
  %211 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.1)
          to label %212 unwind label %176

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212, %207, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %215

214:                                              ; preds = %200, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %448

215:                                              ; preds = %213, %162
  br label %216

216:                                              ; preds = %215
  store i64 -1, ptr %10, align 8, !tbaa !16
  store i64 -1, ptr %9, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %217 = load i32, ptr %5, align 4, !tbaa !5
  %218 = sub nsw i32 3, %217
  store i32 %218, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %219 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %220 = sub i64 %219, 1
  %221 = trunc i64 %220 to i32
  store i32 %221, ptr %20, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %273, %216
  %223 = load i32, ptr %20, align 4, !tbaa !5
  %224 = icmp sge i32 %223, 0
  br i1 %224, label %226, label %225

225:                                              ; preds = %222
  store i32 16, ptr %8, align 4
  br label %276

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

230:                                              ; preds = %226
  %231 = load i8, ptr %229, align 1, !tbaa !11
  %232 = sext i8 %231 to i32
  %233 = sub nsw i32 %232, 48
  %234 = srem i32 %233, 3
  %235 = load i32, ptr %19, align 4, !tbaa !5
  %236 = icmp eq i32 %234, %235
  br i1 %236, label %237, label %247

237:                                              ; preds = %230
  %238 = load i64, ptr %9, align 8, !tbaa !16
  %239 = icmp slt i64 %238, 0
  br i1 %239, label %240, label %247

240:                                              ; preds = %237
  %241 = load i32, ptr %20, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  store i64 %242, ptr %9, align 8, !tbaa !16
  br label %265

243:                                              ; preds = %247, %226
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %3, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %446

247:                                              ; preds = %237, %230
  %248 = load i32, ptr %20, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %249)
          to label %251 unwind label %243

251:                                              ; preds = %247
  %252 = load i8, ptr %250, align 1, !tbaa !11
  %253 = sext i8 %252 to i32
  %254 = sub nsw i32 %253, 48
  %255 = srem i32 %254, 3
  %256 = load i32, ptr %19, align 4, !tbaa !5
  %257 = icmp eq i32 %255, %256
  br i1 %257, label %258, label %264

258:                                              ; preds = %251
  %259 = load i64, ptr %9, align 8, !tbaa !16
  %260 = icmp sgt i64 %259, 0
  br i1 %260, label %261, label %264

261:                                              ; preds = %258
  %262 = load i32, ptr %20, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  store i64 %263, ptr %10, align 8, !tbaa !16
  br label %264

264:                                              ; preds = %261, %258, %251
  br label %265

265:                                              ; preds = %264, %240
  %266 = load i64, ptr %9, align 8, !tbaa !16
  %267 = icmp sge i64 %266, 0
  br i1 %267, label %268, label %272

268:                                              ; preds = %265
  %269 = load i64, ptr %10, align 8, !tbaa !16
  %270 = icmp sge i64 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %268
  store i32 16, ptr %8, align 4
  br label %276

272:                                              ; preds = %268, %265
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %20, align 4, !tbaa !5
  %275 = add nsw i32 %274, -1
  store i32 %275, ptr %20, align 4, !tbaa !5
  br label %222, !llvm.loop !22

276:                                              ; preds = %271, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %277

277:                                              ; preds = %276
  %278 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  %279 = icmp ule i64 %278, 0
  br i1 %279, label %280, label %298

280:                                              ; preds = %277
  %281 = load i64, ptr %9, align 8, !tbaa !16
  %282 = icmp slt i64 %281, 0
  br i1 %282, label %289, label %283

283:                                              ; preds = %280
  %284 = load i64, ptr %10, align 8, !tbaa !16
  %285 = icmp slt i64 %284, 0
  br i1 %285, label %289, label %286

286:                                              ; preds = %283
  %287 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %288 = icmp ule i64 %287, 2
  br i1 %288, label %289, label %298

289:                                              ; preds = %286, %283, %280
  %290 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %291 unwind label %294

291:                                              ; preds = %289
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %293 unwind label %294

293:                                              ; preds = %291
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %445

294:                                              ; preds = %441, %438, %429, %427, %417, %291, %289
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %3, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %4, align 4
  br label %446

298:                                              ; preds = %286, %277
  %299 = load i64, ptr %9, align 8, !tbaa !16
  %300 = icmp sge i64 %299, 0
  br i1 %300, label %301, label %421

301:                                              ; preds = %298
  %302 = load i64, ptr %10, align 8, !tbaa !16
  %303 = icmp sge i64 %302, 0
  br i1 %303, label %304, label %421

304:                                              ; preds = %301
  %305 = load i64, ptr %10, align 8, !tbaa !16
  %306 = icmp sgt i64 %305, 0
  br i1 %306, label %307, label %341

307:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %308

308:                                              ; preds = %333, %307
  %309 = load i32, ptr %21, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %312 = icmp ult i64 %310, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %308
  store i32 19, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %340

314:                                              ; preds = %308
  %315 = load i32, ptr %21, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = load i64, ptr %9, align 8, !tbaa !16
  %318 = icmp eq i64 %316, %317
  br i1 %318, label %324, label %319

319:                                              ; preds = %314
  %320 = load i32, ptr %21, align 4, !tbaa !5
  %321 = sext i32 %320 to i64
  %322 = load i64, ptr %10, align 8, !tbaa !16
  %323 = icmp eq i64 %321, %322
  br i1 %323, label %324, label %325

324:                                              ; preds = %319, %314
  br label %333

325:                                              ; preds = %319
  %326 = load i32, ptr %21, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %327)
          to label %329 unwind label %336

329:                                              ; preds = %325
  %330 = load i8, ptr %328, align 1, !tbaa !11
  %331 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %13, i8 noundef signext %330)
          to label %332 unwind label %336

332:                                              ; preds = %329
  br label %333

333:                                              ; preds = %332, %324
  %334 = load i32, ptr %21, align 4, !tbaa !5
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %21, align 4, !tbaa !5
  br label %308, !llvm.loop !23

336:                                              ; preds = %329, %325
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %3, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %446

340:                                              ; preds = %313
  br label %411

341:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 1, ptr %22, align 8, !tbaa !16
  br label %342

342:                                              ; preds = %349, %341
  %343 = load i64, ptr %22, align 8, !tbaa !16
  %344 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %343)
          to label %345 unwind label %352

345:                                              ; preds = %342
  %346 = load i8, ptr %344, align 1, !tbaa !11
  %347 = sext i8 %346 to i32
  %348 = icmp eq i32 %347, 48
  br i1 %348, label %349, label %356

349:                                              ; preds = %345
  %350 = load i64, ptr %22, align 8, !tbaa !16
  %351 = add nsw i64 %350, 1
  store i64 %351, ptr %22, align 8, !tbaa !16
  br label %342, !llvm.loop !24

352:                                              ; preds = %363, %342
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %3, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %4, align 4
  br label %410

356:                                              ; preds = %345
  %357 = load i64, ptr %22, align 8, !tbaa !16
  %358 = load i64, ptr %9, align 8, !tbaa !16
  %359 = icmp eq i64 %357, %358
  br i1 %359, label %360, label %374

360:                                              ; preds = %356
  %361 = load i64, ptr %22, align 8, !tbaa !16
  %362 = add nsw i64 %361, 1
  store i64 %362, ptr %22, align 8, !tbaa !16
  br label %363

363:                                              ; preds = %370, %360
  %364 = load i64, ptr %22, align 8, !tbaa !16
  %365 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %364)
          to label %366 unwind label %352

366:                                              ; preds = %363
  %367 = load i8, ptr %365, align 1, !tbaa !11
  %368 = sext i8 %367 to i32
  %369 = icmp eq i32 %368, 48
  br i1 %369, label %370, label %373

370:                                              ; preds = %366
  %371 = load i64, ptr %22, align 8, !tbaa !16
  %372 = add nsw i64 %371, 1
  store i64 %372, ptr %22, align 8, !tbaa !16
  br label %363, !llvm.loop !25

373:                                              ; preds = %366
  br label %374

374:                                              ; preds = %373, %356
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %375 = load i64, ptr %22, align 8, !tbaa !16
  %376 = trunc i64 %375 to i32
  store i32 %376, ptr %23, align 4, !tbaa !5
  br label %377

377:                                              ; preds = %402, %374
  %378 = load i32, ptr %23, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %381 = icmp ult i64 %379, %380
  br i1 %381, label %383, label %382

382:                                              ; preds = %377
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %409

383:                                              ; preds = %377
  %384 = load i32, ptr %23, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = load i64, ptr %9, align 8, !tbaa !16
  %387 = icmp eq i64 %385, %386
  br i1 %387, label %393, label %388

388:                                              ; preds = %383
  %389 = load i32, ptr %23, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = load i64, ptr %10, align 8, !tbaa !16
  %392 = icmp eq i64 %390, %391
  br i1 %392, label %393, label %394

393:                                              ; preds = %388, %383
  br label %402

394:                                              ; preds = %388
  %395 = load i32, ptr %23, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %396)
          to label %398 unwind label %405

398:                                              ; preds = %394
  %399 = load i8, ptr %397, align 1, !tbaa !11
  %400 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %13, i8 noundef signext %399)
          to label %401 unwind label %405

401:                                              ; preds = %398
  br label %402

402:                                              ; preds = %401, %393
  %403 = load i32, ptr %23, align 4, !tbaa !5
  %404 = add nsw i32 %403, 1
  store i32 %404, ptr %23, align 4, !tbaa !5
  br label %377, !llvm.loop !26

405:                                              ; preds = %398, %394
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %3, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %410

409:                                              ; preds = %382
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %411

410:                                              ; preds = %405, %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %446

411:                                              ; preds = %409, %340
  %412 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %413 = icmp eq i64 %412, 0
  br i1 %413, label %414, label %420

414:                                              ; preds = %411
  %415 = load i8, ptr %6, align 1, !tbaa !9, !range !12, !noundef !13
  %416 = trunc i8 %415 to i1
  br i1 %416, label %417, label %420

417:                                              ; preds = %414
  %418 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.1)
          to label %419 unwind label %294

419:                                              ; preds = %417
  br label %420

420:                                              ; preds = %419, %414, %411
  br label %421

421:                                              ; preds = %420, %301, %298
  %422 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  %423 = icmp ule i64 %422, 0
  br i1 %423, label %424, label %432

424:                                              ; preds = %421
  %425 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %426 = icmp ule i64 %425, 0
  br i1 %426, label %427, label %432

427:                                              ; preds = %424
  %428 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %429 unwind label %294

429:                                              ; preds = %427
  %430 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %428, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %431 unwind label %294

431:                                              ; preds = %429
  br label %444

432:                                              ; preds = %424, %421
  %433 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  %434 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  %435 = icmp ugt i64 %433, %434
  br i1 %435, label %436, label %437

436:                                              ; preds = %432
  br label %438

437:                                              ; preds = %432
  br label %438

438:                                              ; preds = %437, %436
  %439 = phi ptr [ %11, %436 ], [ %13, %437 ]
  %440 = 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) %439)
          to label %441 unwind label %294

441:                                              ; preds = %438
  %442 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %440, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %443 unwind label %294

443:                                              ; preds = %441
  br label %444

444:                                              ; preds = %443, %431
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %445

445:                                              ; preds = %444, %293
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %447

446:                                              ; preds = %410, %336, %294, %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %448

447:                                              ; preds = %445, %157
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %451

448:                                              ; preds = %446, %214, %158, %151, %115
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %449

449:                                              ; preds = %448, %97
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %450

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

451:                                              ; preds = %447, %78
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  %452 = load i32, ptr %1, align 4
  ret i32 %452

453:                                              ; preds = %450, %79, %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %454

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

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

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 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)) #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)) #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) #2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 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)) #4

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; 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 = { "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 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !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 = !{i8 0, i8 2}
!13 = !{}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}


; 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 [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = 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 %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %7 = 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) %1)
          to label %.preheader145 unwind label %10

.preheader145:                                    ; preds = %0
  %8 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.not163 = icmp eq i64 %8, 0
  br i1 %.not163, label %._crit_edge.thread, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  %9 = icmp eq i32 %18, 0
  br i1 %9, label %._crit_edge.thread, label %30

10:                                               ; preds = %0
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %183

.lr.ph:                                           ; preds = %.preheader145, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader145 ]
  %.096148 = phi i1 [ %22, %.lr.ph ], [ false, %.preheader145 ]
  %.097147 = phi i32 [ %18, %.lr.ph ], [ 0, %.preheader145 ]
  %12 = mul nsw i32 %.097147, 10
  %13 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = sext i8 %14 to i32
  %16 = add nsw i32 %12, -48
  %17 = add nsw i32 %16, %15
  %18 = srem i32 %17, 3
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = icmp eq i8 %20, 48
  %22 = or i1 %.096148, %21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %24 = icmp ugt i64 %23, %indvars.iv.next
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !8

._crit_edge.thread:                               ; preds = %.preheader145, %._crit_edge
  %25 = 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) %1)
          to label %26 unwind label %28

26:                                               ; preds = %._crit_edge.thread
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %182 unwind label %28

28:                                               ; preds = %26, %._crit_edge.thread
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %183

30:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %31 unwind label %37

31:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %32 unwind label %39

32:                                               ; preds = %31
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %33 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %34 = and i64 %33, 4294967295
  br label %35

35:                                               ; preds = %41, %32
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %41 ], [ %34, %32 ]
  %indvars.iv.next171 = add nsw i64 %indvars.iv170, -1
  %indvars = trunc i64 %indvars.iv.next171 to i32
  %36 = icmp sgt i32 %indvars, -1
  br i1 %36, label %41, label %.thread131

37:                                               ; preds = %30
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %181

39:                                               ; preds = %31
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %180

41:                                               ; preds = %35
  %42 = and i64 %indvars.iv.next171, 2147483647
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %42)
  %44 = load i8, ptr %43, align 1, !tbaa !5
  %45 = sext i8 %44 to i16
  %.lhs.trunc = add nsw i16 %45, -48
  %46 = srem i16 %.lhs.trunc, 3
  %.sext = sext i16 %46 to i32
  %47 = icmp eq i32 %18, %.sext
  br i1 %47, label %48, label %35, !llvm.loop !10

48:                                               ; preds = %41
  %.not137 = icmp eq i32 %indvars, 0
  br i1 %.not137, label %.preheader143, label %.preheader144

.preheader144:                                    ; preds = %48
  %49 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.not164 = icmp eq i64 %49, 0
  br i1 %.not164, label %._crit_edge153, label %.lr.ph152

._crit_edge153:                                   ; preds = %56, %.preheader144
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %178 unwind label %61

.lr.ph152:                                        ; preds = %.preheader144, %56
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %56 ], [ 0, %.preheader144 ]
  %51 = icmp eq i64 %42, %indvars.iv173
  br i1 %51, label %56, label %52

52:                                               ; preds = %.lr.ph152
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv173)
  %54 = load i8, ptr %53, align 1, !tbaa !5
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %54)
          to label %56 unwind label %59

56:                                               ; preds = %52, %.lr.ph152
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %57 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %58 = icmp ugt i64 %57, %indvars.iv.next174
  br i1 %58, label %.lr.ph152, label %._crit_edge153, !llvm.loop !11

59:                                               ; preds = %52
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %179

61:                                               ; preds = %._crit_edge153
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %179

.preheader143:                                    ; preds = %48, %.preheader143
  %indvars.iv177 = phi i32 [ %indvars.iv.next178, %.preheader143 ], [ 1, %48 ]
  %.086 = phi i64 [ %66, %.preheader143 ], [ 1, %48 ]
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.086)
  %64 = load i8, ptr %63, align 1, !tbaa !5
  %65 = icmp eq i8 %64, 48
  %66 = add nuw nsw i64 %.086, 1
  %indvars.iv.next178 = add i32 %indvars.iv177, 1
  br i1 %65, label %.preheader143, label %69, !llvm.loop !12

67:                                               ; preds = %84
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %179

69:                                               ; preds = %.preheader143
  %sext = shl i64 %.086, 32
  %70 = ashr exact i64 %sext, 32
  %71 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %72 = icmp ugt i64 %71, %70
  br i1 %72, label %.lr.ph156.preheader, label %._crit_edge157

.lr.ph156.preheader:                              ; preds = %69
  %73 = sext i32 %indvars.iv177 to i64
  br label %.lr.ph156

._crit_edge157:                                   ; preds = %79, %69
  %74 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %75 = icmp eq i64 %74, 0
  %brmerge.not = select i1 %75, i1 %22, i1 false
  br i1 %brmerge.not, label %84, label %.thread131

.lr.ph156:                                        ; preds = %.lr.ph156.preheader, %79
  %indvars.iv179 = phi i64 [ %73, %.lr.ph156.preheader ], [ %indvars.iv.next180, %79 ]
  %76 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv179)
  %77 = load i8, ptr %76, align 1, !tbaa !5
  %78 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext %77)
          to label %79 unwind label %82

79:                                               ; preds = %.lr.ph156
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %80 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %81 = icmp ugt i64 %80, %indvars.iv.next180
  br i1 %81, label %.lr.ph156, label %._crit_edge157, !llvm.loop !13

82:                                               ; preds = %.lr.ph156
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %179

84:                                               ; preds = %._crit_edge157
  %85 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.1)
          to label %.thread131 unwind label %67

.thread131:                                       ; preds = %35, %84, %._crit_edge157
  %86 = sub nsw i32 3, %18
  %87 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %88 = and i64 %87, 4294967295
  br label %89

89:                                               ; preds = %107, %.thread131
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %107 ], [ %88, %.thread131 ]
  %.193 = phi i64 [ %.294, %107 ], [ -1, %.thread131 ]
  %.089 = phi i64 [ %.190, %107 ], [ -1, %.thread131 ]
  %indvars.iv.next184 = add nsw i64 %indvars.iv183, -1
  %90 = and i64 %indvars.iv.next184, 2147483648
  %91 = icmp eq i64 %90, 0
  br i1 %91, label %92, label %110

92:                                               ; preds = %89
  %93 = and i64 %indvars.iv.next184, 2147483647
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %93)
  %95 = load i8, ptr %94, align 1, !tbaa !5
  %96 = sext i8 %95 to i16
  %.lhs.trunc133 = add nsw i16 %96, -48
  %97 = srem i16 %.lhs.trunc133, 3
  %.sext134 = sext i16 %97 to i32
  %98 = icmp eq i32 %86, %.sext134
  %99 = icmp slt i64 %.193, 0
  %or.cond = and i1 %99, %98
  br i1 %or.cond, label %107, label %100

100:                                              ; preds = %92
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %93)
  %102 = load i8, ptr %101, align 1, !tbaa !5
  %103 = sext i8 %102 to i16
  %.lhs.trunc135 = add nsw i16 %103, -48
  %104 = srem i16 %.lhs.trunc135, 3
  %.sext136 = sext i16 %104 to i32
  %105 = icmp eq i32 %86, %.sext136
  %106 = icmp sgt i64 %.193, 0
  %or.cond3 = and i1 %106, %105
  %spec.select = select i1 %or.cond3, i64 %93, i64 %.089
  br label %107

107:                                              ; preds = %100, %92
  %.294 = phi i64 [ %93, %92 ], [ %.193, %100 ]
  %.190 = phi i64 [ %.089, %92 ], [ %spec.select, %100 ]
  %108 = icmp sgt i64 %.294, -1
  %109 = icmp sgt i64 %.190, -1
  %or.cond5 = select i1 %108, i1 %109, i1 false
  br i1 %or.cond5, label %110, label %89, !llvm.loop !14

110:                                              ; preds = %107, %89
  %.3 = phi i64 [ %.193, %89 ], [ %.294, %107 ]
  %.291 = phi i64 [ %.089, %89 ], [ %.190, %107 ]
  %111 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %121

113:                                              ; preds = %110
  %114 = icmp slt i64 %.3, 0
  %115 = icmp slt i64 %.291, 0
  %or.cond7 = select i1 %114, i1 true, i1 %115
  br i1 %or.cond7, label %.invoke201, label %116

116:                                              ; preds = %113
  %117 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %118 = icmp ult i64 %117, 3
  br i1 %118, label %.invoke201, label %121

119:                                              ; preds = %.invoke201, %.invoke, %171, %162
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %179

121:                                              ; preds = %116, %110
  %122 = icmp sgt i64 %.3, -1
  %123 = icmp sgt i64 %.291, -1
  %or.cond9 = select i1 %122, i1 %123, i1 false
  br i1 %or.cond9, label %124, label %164

124:                                              ; preds = %121
  %.not = icmp eq i64 %.291, 0
  br i1 %.not, label %.preheader140, label %.preheader141

.preheader141:                                    ; preds = %124
  %125 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.not165 = icmp eq i64 %125, 0
  br i1 %.not165, label %.loopexit, label %.lr.ph159

.lr.ph159:                                        ; preds = %.preheader141, %132
  %indvars.iv187 = phi i64 [ %indvars.iv.next188, %132 ], [ 0, %.preheader141 ]
  %126 = icmp eq i64 %.3, %indvars.iv187
  %127 = icmp eq i64 %.291, %indvars.iv187
  %or.cond124 = select i1 %126, i1 true, i1 %127
  br i1 %or.cond124, label %132, label %128

128:                                              ; preds = %.lr.ph159
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv187)
  %130 = load i8, ptr %129, align 1, !tbaa !5
  %131 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 noundef signext %130)
          to label %132 unwind label %135

132:                                              ; preds = %128, %.lr.ph159
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %133 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %134 = icmp ugt i64 %133, %indvars.iv.next188
  br i1 %134, label %.lr.ph159, label %.loopexit, !llvm.loop !15

135:                                              ; preds = %128
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %179

.preheader140:                                    ; preds = %124, %.preheader140
  %.079 = phi i64 [ %140, %.preheader140 ], [ 1, %124 ]
  %137 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.079)
  %138 = load i8, ptr %137, align 1, !tbaa !5
  %139 = icmp eq i8 %138, 48
  %140 = add nuw nsw i64 %.079, 1
  br i1 %139, label %.preheader140, label %141, !llvm.loop !16

141:                                              ; preds = %.preheader140
  %142 = icmp eq i64 %.079, %.3
  br i1 %142, label %.preheader, label %.loopexit139

.preheader:                                       ; preds = %141, %.preheader
  %.1.in = phi i64 [ %.1, %.preheader ], [ %.3, %141 ]
  %.1 = add nuw nsw i64 %.1.in, 1
  %143 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.1)
  %144 = load i8, ptr %143, align 1, !tbaa !5
  %145 = icmp eq i8 %144, 48
  br i1 %145, label %.preheader, label %.loopexit139, !llvm.loop !17

.loopexit139:                                     ; preds = %.preheader, %141
  %.2 = phi i64 [ %.079, %141 ], [ %.1, %.preheader ]
  %sext166 = shl i64 %.2, 32
  %146 = ashr exact i64 %sext166, 32
  %147 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %148 = icmp ugt i64 %147, %146
  br i1 %148, label %.lr.ph162, label %.loopexit

.lr.ph162:                                        ; preds = %.loopexit139, %155
  %indvars.iv191 = phi i64 [ %indvars.iv.next192, %155 ], [ %146, %.loopexit139 ]
  %149 = icmp eq i64 %.3, %indvars.iv191
  %150 = icmp eq i64 %indvars.iv191, 0
  %or.cond125 = or i1 %150, %149
  br i1 %or.cond125, label %155, label %151

151:                                              ; preds = %.lr.ph162
  %152 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv191)
  %153 = load i8, ptr %152, align 1, !tbaa !5
  %154 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 noundef signext %153)
          to label %155 unwind label %158

155:                                              ; preds = %151, %.lr.ph162
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %156 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %157 = icmp ugt i64 %156, %indvars.iv.next192
  br i1 %157, label %.lr.ph162, label %.loopexit, !llvm.loop !18

158:                                              ; preds = %151
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %179

.loopexit:                                        ; preds = %132, %155, %.preheader141, %.loopexit139
  %160 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %161 = icmp eq i64 %160, 0
  %brmerge128.not = select i1 %161, i1 %22, i1 false
  br i1 %brmerge128.not, label %162, label %164

162:                                              ; preds = %.loopexit
  %163 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.1)
          to label %164 unwind label %119

164:                                              ; preds = %.loopexit, %162, %121
  %165 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %166 = icmp eq i64 %165, 0
  br i1 %166, label %167, label %171

167:                                              ; preds = %164
  %168 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %169 = icmp eq i64 %168, 0
  br i1 %169, label %.invoke201, label %171

.invoke201:                                       ; preds = %113, %116, %167
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
          to label %.invoke unwind label %119

171:                                              ; preds = %167, %164
  %172 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %173 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %174 = icmp ugt i64 %172, %173
  %. = select i1 %174, ptr %2, ptr %4
  %175 = 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) %.)
          to label %.invoke unwind label %119

.invoke:                                          ; preds = %.invoke201, %171
  %176 = phi ptr [ %175, %171 ], [ %170, %.invoke201 ]
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %178 unwind label %119

178:                                              ; preds = %.invoke, %._crit_edge153
  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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  br label %182

179:                                              ; preds = %119, %135, %158, %67, %82, %61, %59
  %.pn117 = phi { ptr, i32 } [ %60, %59 ], [ %62, %61 ], [ %83, %82 ], [ %68, %67 ], [ %120, %119 ], [ %136, %135 ], [ %159, %158 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %180

180:                                              ; preds = %179, %39
  %.pn117.pn = phi { ptr, i32 } [ %.pn117, %179 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %181

181:                                              ; preds = %180, %37
  %.pn117.pn.pn = phi { ptr, i32 } [ %.pn117.pn, %180 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  br label %183

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

183:                                              ; preds = %28, %181, %10
  %.pn121.pn = phi { ptr, i32 } [ %11, %10 ], [ %29, %28 ], [ %.pn117.pn.pn, %181 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn121.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 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 #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 #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) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #5 align 2

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

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

; 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 = { "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 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}
!12 = distinct !{!12, !9}
!13 = distinct !{!13, !9}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9}
!16 = distinct !{!16, !9}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !9}


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