; LLVM IR from imteekay/algorithms :: competitive-programming/uri (ssn_1)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8to_digitc(i8 noundef signext) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  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
  br label %13

13:                                               ; preds = %186, %0
  %14 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %15 unwind label %27

15:                                               ; preds = %13
  %16 = load ptr, ptr %14, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %14, i64 %18
  %20 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %19)
          to label %21 unwind label %27

21:                                               ; preds = %15
  br i1 %20, label %22, label %188

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

23:                                               ; preds = %65, %22
  %24 = load i32, ptr %10, align 4, !tbaa !8
  %25 = icmp slt i32 %24, 11
  br i1 %25, label %31, label %26

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %68

27:                                               ; preds = %15, %13
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %3, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %4, align 4
  br label %190

31:                                               ; preds = %23
  %32 = load i32, ptr %10, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %33)
          to label %35 unwind label %60

35:                                               ; preds = %31
  %36 = load i8, ptr %34, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = icmp ne i32 %37, 46
  br i1 %38, label %39, label %64

39:                                               ; preds = %35
  %40 = load i32, ptr %10, align 4, !tbaa !8
  %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 %60

43:                                               ; preds = %39
  %44 = load i8, ptr %42, align 1, !tbaa !11
  %45 = call noundef i32 @_Z8to_digitc(i8 noundef signext %44)
  store i32 %45, ptr %6, align 4, !tbaa !8
  %46 = load i32, ptr %6, align 4, !tbaa !8
  %47 = load i32, ptr %8, align 4, !tbaa !8
  %48 = mul nsw i32 %46, %47
  %49 = load i32, ptr %5, align 4, !tbaa !8
  %50 = add nsw i32 %49, %48
  store i32 %50, ptr %5, align 4, !tbaa !8
  %51 = load i32, ptr %6, align 4, !tbaa !8
  %52 = load i32, ptr %9, align 4, !tbaa !8
  %53 = mul nsw i32 %51, %52
  %54 = load i32, ptr %7, align 4, !tbaa !8
  %55 = add nsw i32 %54, %53
  store i32 %55, ptr %7, align 4, !tbaa !8
  %56 = load i32, ptr %8, align 4, !tbaa !8
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !8
  %58 = load i32, ptr %9, align 4, !tbaa !8
  %59 = add nsw i32 %58, -1
  store i32 %59, ptr %9, align 4, !tbaa !8
  br label %64

60:                                               ; preds = %39, %31
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %3, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %187

64:                                               ; preds = %43, %35
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %10, align 4, !tbaa !8
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %10, align 4, !tbaa !8
  br label %23, !llvm.loop !12

68:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %69 = load i32, ptr %5, align 4, !tbaa !8
  %70 = srem i32 %69, 11
  store i32 %70, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %71 = load i32, ptr %7, align 4, !tbaa !8
  %72 = srem i32 %71, 11
  store i32 %72, ptr %12, align 4, !tbaa !8
  %73 = load i32, ptr %11, align 4, !tbaa !8
  %74 = icmp eq i32 %73, 10
  br i1 %74, label %75, label %105

75:                                               ; preds = %68
  %76 = load i32, ptr %12, align 4, !tbaa !8
  %77 = icmp eq i32 %76, 10
  br i1 %77, label %78, label %105

78:                                               ; preds = %75
  %79 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 12)
          to label %80 unwind label %95

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

84:                                               ; preds = %80
  %85 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 13)
          to label %86 unwind label %95

86:                                               ; preds = %84
  %87 = load i8, ptr %85, align 1, !tbaa !11
  %88 = sext i8 %87 to i32
  %89 = icmp eq i32 %88, 48
  br i1 %89, label %90, label %99

90:                                               ; preds = %86
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %92 unwind label %95

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

94:                                               ; preds = %92
  br label %104

95:                                               ; preds = %180, %178, %175, %173, %166, %159, %155, %153, %150, %148, %142, %135, %128, %126, %123, %121, %114, %108, %101, %99, %92, %90, %84, %78
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %3, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %187

99:                                               ; preds = %86, %80
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %101 unwind label %95

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %103 unwind label %95

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %94
  br label %186

105:                                              ; preds = %75, %68
  %106 = load i32, ptr %11, align 4, !tbaa !8
  %107 = icmp eq i32 %106, 10
  br i1 %107, label %108, label %132

108:                                              ; preds = %105
  %109 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 12)
          to label %110 unwind label %95

110:                                              ; preds = %108
  %111 = load i8, ptr %109, align 1, !tbaa !11
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 48
  br i1 %113, label %114, label %126

114:                                              ; preds = %110
  %115 = load i32, ptr %12, align 4, !tbaa !8
  %116 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 13)
          to label %117 unwind label %95

117:                                              ; preds = %114
  %118 = load i8, ptr %116, align 1, !tbaa !11
  %119 = call noundef i32 @_Z8to_digitc(i8 noundef signext %118)
  %120 = icmp eq i32 %115, %119
  br i1 %120, label %121, label %126

121:                                              ; preds = %117
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %123 unwind label %95

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

125:                                              ; preds = %123
  br label %131

126:                                              ; preds = %117, %110
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %128 unwind label %95

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %130 unwind label %95

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130, %125
  br label %185

132:                                              ; preds = %105
  %133 = load i32, ptr %12, align 4, !tbaa !8
  %134 = icmp eq i32 %133, 10
  br i1 %134, label %135, label %159

135:                                              ; preds = %132
  %136 = load i32, ptr %11, align 4, !tbaa !8
  %137 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 12)
          to label %138 unwind label %95

138:                                              ; preds = %135
  %139 = load i8, ptr %137, align 1, !tbaa !11
  %140 = call noundef i32 @_Z8to_digitc(i8 noundef signext %139)
  %141 = icmp eq i32 %136, %140
  br i1 %141, label %142, label %153

142:                                              ; preds = %138
  %143 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 13)
          to label %144 unwind label %95

144:                                              ; preds = %142
  %145 = load i8, ptr %143, align 1, !tbaa !11
  %146 = sext i8 %145 to i32
  %147 = icmp eq i32 %146, 48
  br i1 %147, label %148, label %153

148:                                              ; preds = %144
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %150 unwind label %95

150:                                              ; preds = %148
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %152 unwind label %95

152:                                              ; preds = %150
  br label %158

153:                                              ; preds = %144, %138
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %155 unwind label %95

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

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157, %152
  br label %184

159:                                              ; preds = %132
  %160 = load i32, ptr %11, align 4, !tbaa !8
  %161 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 12)
          to label %162 unwind label %95

162:                                              ; preds = %159
  %163 = load i8, ptr %161, align 1, !tbaa !11
  %164 = call noundef i32 @_Z8to_digitc(i8 noundef signext %163)
  %165 = icmp eq i32 %160, %164
  br i1 %165, label %166, label %178

166:                                              ; preds = %162
  %167 = load i32, ptr %12, align 4, !tbaa !8
  %168 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 13)
          to label %169 unwind label %95

169:                                              ; preds = %166
  %170 = load i8, ptr %168, align 1, !tbaa !11
  %171 = call noundef i32 @_Z8to_digitc(i8 noundef signext %170)
  %172 = icmp eq i32 %167, %171
  br i1 %172, label %173, label %178

173:                                              ; preds = %169
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %175 unwind label %95

175:                                              ; preds = %173
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %177 unwind label %95

177:                                              ; preds = %175
  br label %183

178:                                              ; preds = %169, %162
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %180 unwind label %95

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %182 unwind label %95

182:                                              ; preds = %180
  br label %183

183:                                              ; preds = %182, %177
  br label %184

184:                                              ; preds = %183, %158
  br label %185

185:                                              ; preds = %184, %131
  br label %186

186:                                              ; preds = %185, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %13, !llvm.loop !14

187:                                              ; preds = %95, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %190

188:                                              ; preds = %21
  store i32 0, ptr %1, align 4
  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
  %189 = load i32, ptr %1, align 4
  ret i32 %189

190:                                              ; preds = %187, %27
  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 %191

191:                                              ; preds = %190
  %192 = load ptr, ptr %3, align 8
  %193 = load i32, ptr %4, align 4
  %194 = insertvalue { ptr, i32 } poison, ptr %192, 0
  %195 = insertvalue { ptr, i32 } %194, i32 %193, 1
  resume { ptr, i32 } %195
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 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 @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8to_digitc(i8 noundef signext) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  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
  br label %2

2:                                                ; preds = %.invoke, %0
  %3 = 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 %4 unwind label %13

4:                                                ; preds = %2
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr %3, i64 %7
  %9 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %8)
          to label %10 unwind label %13

10:                                               ; preds = %4
  br i1 %9, label %.preheader.preheader, label %181

.preheader.preheader:                             ; preds = %10
  %11 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %12 = load i8, ptr %11, align 1, !tbaa !8
  %.not = icmp eq i8 %12, 46
  br i1 %.not, label %.preheader.1, label %15

13:                                               ; preds = %4, %2
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %182

15:                                               ; preds = %.preheader.preheader
  %16 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %17 = load i8, ptr %16, align 1, !tbaa !8
  %18 = call noundef i32 @_Z8to_digitc(i8 noundef signext %17)
  %19 = mul nsw i32 %18, 9
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader, %15
  %.133 = phi i32 [ %18, %15 ], [ 0, %.preheader.preheader ]
  %.130 = phi i32 [ %19, %15 ], [ 0, %.preheader.preheader ]
  %.128 = phi i32 [ 2, %15 ], [ 1, %.preheader.preheader ]
  %.1 = phi i32 [ 8, %15 ], [ 9, %.preheader.preheader ]
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %21 = load i8, ptr %20, align 1, !tbaa !8
  %.not.1 = icmp eq i8 %21, 46
  br i1 %.not.1, label %.preheader.2, label %22

22:                                               ; preds = %.preheader.1
  %23 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1)
  %24 = load i8, ptr %23, align 1, !tbaa !8
  %25 = call noundef i32 @_Z8to_digitc(i8 noundef signext %24)
  %26 = mul nsw i32 %25, %.128
  %27 = add nsw i32 %26, %.133
  %28 = mul nsw i32 %25, %.1
  %29 = add nsw i32 %28, %.130
  %30 = add nuw nsw i32 %.128, 1
  %31 = add nsw i32 %.1, -1
  br label %.preheader.2

.preheader.2:                                     ; preds = %22, %.preheader.1
  %.133.1 = phi i32 [ %27, %22 ], [ %.133, %.preheader.1 ]
  %.130.1 = phi i32 [ %29, %22 ], [ %.130, %.preheader.1 ]
  %.128.1 = phi i32 [ %30, %22 ], [ %.128, %.preheader.1 ]
  %.1.1 = phi i32 [ %31, %22 ], [ %.1, %.preheader.1 ]
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
  %33 = load i8, ptr %32, align 1, !tbaa !8
  %.not.2 = icmp eq i8 %33, 46
  br i1 %.not.2, label %.preheader.3, label %34

34:                                               ; preds = %.preheader.2
  %35 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 2)
  %36 = load i8, ptr %35, align 1, !tbaa !8
  %37 = call noundef i32 @_Z8to_digitc(i8 noundef signext %36)
  %38 = mul nsw i32 %37, %.128.1
  %39 = add nsw i32 %38, %.133.1
  %40 = mul nsw i32 %37, %.1.1
  %41 = add nsw i32 %40, %.130.1
  %42 = add nuw nsw i32 %.128.1, 1
  %43 = add nsw i32 %.1.1, -1
  br label %.preheader.3

.preheader.3:                                     ; preds = %34, %.preheader.2
  %.133.2 = phi i32 [ %39, %34 ], [ %.133.1, %.preheader.2 ]
  %.130.2 = phi i32 [ %41, %34 ], [ %.130.1, %.preheader.2 ]
  %.128.2 = phi i32 [ %42, %34 ], [ %.128.1, %.preheader.2 ]
  %.1.2 = phi i32 [ %43, %34 ], [ %.1.1, %.preheader.2 ]
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %45 = load i8, ptr %44, align 1, !tbaa !8
  %.not.3 = icmp eq i8 %45, 46
  br i1 %.not.3, label %.preheader.4, label %46

46:                                               ; preds = %.preheader.3
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %48 = load i8, ptr %47, align 1, !tbaa !8
  %49 = call noundef i32 @_Z8to_digitc(i8 noundef signext %48)
  %50 = mul nsw i32 %49, %.128.2
  %51 = add nsw i32 %50, %.133.2
  %52 = mul nsw i32 %49, %.1.2
  %53 = add nsw i32 %52, %.130.2
  %54 = add nuw nsw i32 %.128.2, 1
  %55 = add nsw i32 %.1.2, -1
  br label %.preheader.4

.preheader.4:                                     ; preds = %46, %.preheader.3
  %.133.3 = phi i32 [ %51, %46 ], [ %.133.2, %.preheader.3 ]
  %.130.3 = phi i32 [ %53, %46 ], [ %.130.2, %.preheader.3 ]
  %.128.3 = phi i32 [ %54, %46 ], [ %.128.2, %.preheader.3 ]
  %.1.3 = phi i32 [ %55, %46 ], [ %.1.2, %.preheader.3 ]
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %57 = load i8, ptr %56, align 1, !tbaa !8
  %.not.4 = icmp eq i8 %57, 46
  br i1 %.not.4, label %.preheader.5, label %58

58:                                               ; preds = %.preheader.4
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %60 = load i8, ptr %59, align 1, !tbaa !8
  %61 = call noundef i32 @_Z8to_digitc(i8 noundef signext %60)
  %62 = mul nsw i32 %61, %.128.3
  %63 = add nsw i32 %62, %.133.3
  %64 = mul nsw i32 %61, %.1.3
  %65 = add nsw i32 %64, %.130.3
  %66 = add nuw nsw i32 %.128.3, 1
  %67 = add nsw i32 %.1.3, -1
  br label %.preheader.5

.preheader.5:                                     ; preds = %58, %.preheader.4
  %.133.4 = phi i32 [ %63, %58 ], [ %.133.3, %.preheader.4 ]
  %.130.4 = phi i32 [ %65, %58 ], [ %.130.3, %.preheader.4 ]
  %.128.4 = phi i32 [ %66, %58 ], [ %.128.3, %.preheader.4 ]
  %.1.4 = phi i32 [ %67, %58 ], [ %.1.3, %.preheader.4 ]
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
  %69 = load i8, ptr %68, align 1, !tbaa !8
  %.not.5 = icmp eq i8 %69, 46
  br i1 %.not.5, label %.preheader.6, label %70

70:                                               ; preds = %.preheader.5
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 5)
  %72 = load i8, ptr %71, align 1, !tbaa !8
  %73 = call noundef i32 @_Z8to_digitc(i8 noundef signext %72)
  %74 = mul nsw i32 %73, %.128.4
  %75 = add nsw i32 %74, %.133.4
  %76 = mul nsw i32 %73, %.1.4
  %77 = add nsw i32 %76, %.130.4
  %78 = add nuw nsw i32 %.128.4, 1
  %79 = add nsw i32 %.1.4, -1
  br label %.preheader.6

.preheader.6:                                     ; preds = %70, %.preheader.5
  %.133.5 = phi i32 [ %75, %70 ], [ %.133.4, %.preheader.5 ]
  %.130.5 = phi i32 [ %77, %70 ], [ %.130.4, %.preheader.5 ]
  %.128.5 = phi i32 [ %78, %70 ], [ %.128.4, %.preheader.5 ]
  %.1.5 = phi i32 [ %79, %70 ], [ %.1.4, %.preheader.5 ]
  %80 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
  %81 = load i8, ptr %80, align 1, !tbaa !8
  %.not.6 = icmp eq i8 %81, 46
  br i1 %.not.6, label %.preheader.7, label %82

82:                                               ; preds = %.preheader.6
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 6)
  %84 = load i8, ptr %83, align 1, !tbaa !8
  %85 = call noundef i32 @_Z8to_digitc(i8 noundef signext %84)
  %86 = mul nsw i32 %85, %.128.5
  %87 = add nsw i32 %86, %.133.5
  %88 = mul nsw i32 %85, %.1.5
  %89 = add nsw i32 %88, %.130.5
  %90 = add nuw nsw i32 %.128.5, 1
  %91 = add nsw i32 %.1.5, -1
  br label %.preheader.7

.preheader.7:                                     ; preds = %82, %.preheader.6
  %.133.6 = phi i32 [ %87, %82 ], [ %.133.5, %.preheader.6 ]
  %.130.6 = phi i32 [ %89, %82 ], [ %.130.5, %.preheader.6 ]
  %.128.6 = phi i32 [ %90, %82 ], [ %.128.5, %.preheader.6 ]
  %.1.6 = phi i32 [ %91, %82 ], [ %.1.5, %.preheader.6 ]
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
  %93 = load i8, ptr %92, align 1, !tbaa !8
  %.not.7 = icmp eq i8 %93, 46
  br i1 %.not.7, label %.preheader.8, label %94

94:                                               ; preds = %.preheader.7
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 7)
  %96 = load i8, ptr %95, align 1, !tbaa !8
  %97 = call noundef i32 @_Z8to_digitc(i8 noundef signext %96)
  %98 = mul nsw i32 %97, %.128.6
  %99 = add nsw i32 %98, %.133.6
  %100 = mul nsw i32 %97, %.1.6
  %101 = add nsw i32 %100, %.130.6
  %102 = add nuw nsw i32 %.128.6, 1
  %103 = add nsw i32 %.1.6, -1
  br label %.preheader.8

.preheader.8:                                     ; preds = %94, %.preheader.7
  %.133.7 = phi i32 [ %99, %94 ], [ %.133.6, %.preheader.7 ]
  %.130.7 = phi i32 [ %101, %94 ], [ %.130.6, %.preheader.7 ]
  %.128.7 = phi i32 [ %102, %94 ], [ %.128.6, %.preheader.7 ]
  %.1.7 = phi i32 [ %103, %94 ], [ %.1.6, %.preheader.7 ]
  %104 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
  %105 = load i8, ptr %104, align 1, !tbaa !8
  %.not.8 = icmp eq i8 %105, 46
  br i1 %.not.8, label %.preheader.9, label %106

106:                                              ; preds = %.preheader.8
  %107 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 8)
  %108 = load i8, ptr %107, align 1, !tbaa !8
  %109 = call noundef i32 @_Z8to_digitc(i8 noundef signext %108)
  %110 = mul nsw i32 %109, %.128.7
  %111 = add nsw i32 %110, %.133.7
  %112 = mul nsw i32 %109, %.1.7
  %113 = add nsw i32 %112, %.130.7
  %114 = add nuw nsw i32 %.128.7, 1
  %115 = add nsw i32 %.1.7, -1
  br label %.preheader.9

.preheader.9:                                     ; preds = %106, %.preheader.8
  %.133.8 = phi i32 [ %111, %106 ], [ %.133.7, %.preheader.8 ]
  %.130.8 = phi i32 [ %113, %106 ], [ %.130.7, %.preheader.8 ]
  %.128.8 = phi i32 [ %114, %106 ], [ %.128.7, %.preheader.8 ]
  %.1.8 = phi i32 [ %115, %106 ], [ %.1.7, %.preheader.8 ]
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
  %117 = load i8, ptr %116, align 1, !tbaa !8
  %.not.9 = icmp eq i8 %117, 46
  br i1 %.not.9, label %.preheader.10, label %118

118:                                              ; preds = %.preheader.9
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 9)
  %120 = load i8, ptr %119, align 1, !tbaa !8
  %121 = call noundef i32 @_Z8to_digitc(i8 noundef signext %120)
  %122 = mul nsw i32 %121, %.128.8
  %123 = add nsw i32 %122, %.133.8
  %124 = mul nsw i32 %121, %.1.8
  %125 = add nsw i32 %124, %.130.8
  %126 = add nuw nsw i32 %.128.8, 1
  %127 = add nsw i32 %.1.8, -1
  br label %.preheader.10

.preheader.10:                                    ; preds = %118, %.preheader.9
  %.133.9 = phi i32 [ %123, %118 ], [ %.133.8, %.preheader.9 ]
  %.130.9 = phi i32 [ %125, %118 ], [ %.130.8, %.preheader.9 ]
  %.128.9 = phi i32 [ %126, %118 ], [ %.128.8, %.preheader.9 ]
  %.1.9 = phi i32 [ %127, %118 ], [ %.1.8, %.preheader.9 ]
  %128 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 10)
  %129 = load i8, ptr %128, align 1, !tbaa !8
  %.not.10 = icmp eq i8 %129, 46
  br i1 %.not.10, label %138, label %130

130:                                              ; preds = %.preheader.10
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 10)
  %132 = load i8, ptr %131, align 1, !tbaa !8
  %133 = call noundef i32 @_Z8to_digitc(i8 noundef signext %132)
  %134 = mul nsw i32 %133, %.128.9
  %135 = add nsw i32 %134, %.133.9
  %136 = mul nsw i32 %133, %.1.9
  %137 = add nsw i32 %136, %.130.9
  br label %138

138:                                              ; preds = %130, %.preheader.10
  %.133.10 = phi i32 [ %135, %130 ], [ %.133.9, %.preheader.10 ]
  %.130.10 = phi i32 [ %137, %130 ], [ %.130.9, %.preheader.10 ]
  %139 = srem i32 %.133.10, 11
  %140 = srem i32 %.130.10, 11
  %141 = icmp eq i32 %139, 10
  %142 = icmp eq i32 %140, 10
  %or.cond = select i1 %141, i1 %142, i1 false
  %143 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 12)
  %144 = load i8, ptr %143, align 1, !tbaa !8
  br i1 %or.cond, label %145, label %153

145:                                              ; preds = %138
  %146 = icmp eq i8 %144, 48
  br i1 %146, label %147, label %.invoke43

147:                                              ; preds = %145
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 13)
  %149 = load i8, ptr %148, align 1, !tbaa !8
  %150 = icmp eq i8 %149, 48
  %spec.select = select i1 %150, ptr @.str, ptr @.str.1
  br label %.invoke43

151:                                              ; preds = %.invoke43, %.invoke
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %182

153:                                              ; preds = %138
  br i1 %141, label %154, label %162

154:                                              ; preds = %153
  %155 = icmp eq i8 %144, 48
  br i1 %155, label %156, label %161

156:                                              ; preds = %154
  %157 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 13)
  %158 = load i8, ptr %157, align 1, !tbaa !8
  %159 = call noundef i32 @_Z8to_digitc(i8 noundef signext %158)
  %160 = icmp eq i32 %140, %159
  br i1 %160, label %.invoke43, label %161

161:                                              ; preds = %156, %154
  br label %.invoke43

162:                                              ; preds = %153
  %163 = call noundef i32 @_Z8to_digitc(i8 noundef signext %144)
  %164 = icmp eq i32 %139, %163
  br i1 %142, label %165, label %171

165:                                              ; preds = %162
  br i1 %164, label %166, label %170

166:                                              ; preds = %165
  %167 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 13)
  %168 = load i8, ptr %167, align 1, !tbaa !8
  %169 = icmp eq i8 %168, 48
  br i1 %169, label %.invoke43, label %170

170:                                              ; preds = %166, %165
  br label %.invoke43

171:                                              ; preds = %162
  br i1 %164, label %172, label %177

172:                                              ; preds = %171
  %173 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 13)
  %174 = load i8, ptr %173, align 1, !tbaa !8
  %175 = call noundef i32 @_Z8to_digitc(i8 noundef signext %174)
  %176 = icmp eq i32 %140, %175
  br i1 %176, label %.invoke43, label %177

177:                                              ; preds = %172, %171
  br label %.invoke43

.invoke43:                                        ; preds = %147, %172, %166, %156, %145, %161, %170, %177
  %178 = phi ptr [ @.str.1, %177 ], [ @.str.1, %170 ], [ @.str.1, %161 ], [ @.str.1, %145 ], [ @.str, %156 ], [ @.str, %166 ], [ @.str, %172 ], [ %spec.select, %147 ]
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %178)
          to label %.invoke unwind label %151

.invoke:                                          ; preds = %.invoke43
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %2 unwind label %151, !llvm.loop !10

181:                                              ; preds = %10
  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

182:                                              ; preds = %151, %13
  %.pn = phi { ptr, i32 } [ %152, %151 ], [ %14, %13 ]
  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 } %.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 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 @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass