; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (1708)

; 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 [2 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 i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca i32, align 4
  %6 = alloca [50 x i64], align 16
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca [26 x i64], align 16
  %11 = alloca [26 x i64], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 400, ptr %6) #7
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 400, i1 false)
  %17 = getelementptr inbounds [50 x i64], ptr %6, i64 0, i64 1
  store i64 1, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 2, ptr %7, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %37, %0
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = icmp slt i32 %19, 50
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %40

22:                                               ; preds = %18
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = sub nsw i32 %23, 1
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [50 x i64], ptr %6, i64 0, i64 %25
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = sub nsw i32 %28, 2
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [50 x i64], ptr %6, i64 0, i64 %30
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = add nsw i64 %27, %32
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x i64], ptr %6, i64 0, i64 %35
  store i64 %33, ptr %36, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %22
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %7, align 4, !tbaa !9
  br label %18, !llvm.loop !11

40:                                               ; preds = %21
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %42 unwind label %60

42:                                               ; preds = %40
  br label %43

43:                                               ; preds = %196, %194, %42
  %44 = load i32, ptr %2, align 4, !tbaa !9
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %2, align 4, !tbaa !9
  %46 = icmp ne i32 %44, 0
  br i1 %46, label %47, label %198

47:                                               ; preds = %43
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %49 unwind label %60

49:                                               ; preds = %47
  %50 = 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) %48, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %51 unwind label %60

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %53 unwind label %60

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 208, ptr %10) #7
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 208, i1 false)
  call void @llvm.lifetime.start.p0(i64 208, ptr %11) #7
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 208, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %76, %53
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %64, label %59

59:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %83

60:                                               ; preds = %51, %49, %47, %40
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  br label %200

64:                                               ; preds = %54
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %66)
          to label %68 unwind label %79

68:                                               ; preds = %64
  %69 = load i8, ptr %67, align 1, !tbaa !13
  %70 = sext i8 %69 to i32
  %71 = sub nsw i32 %70, 97
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [26 x i64], ptr %10, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !5
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %73, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %68
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %12, align 4, !tbaa !9
  br label %54, !llvm.loop !14

79:                                               ; preds = %64
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %197

83:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %102, %83
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  %88 = icmp ult i64 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %109

90:                                               ; preds = %84
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %92)
          to label %94 unwind label %105

94:                                               ; preds = %90
  %95 = load i8, ptr %93, align 1, !tbaa !13
  %96 = sext i8 %95 to i32
  %97 = sub nsw i32 %96, 97
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [26 x i64], ptr %11, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !5
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %99, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %94
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %13, align 4, !tbaa !9
  br label %84, !llvm.loop !15

105:                                              ; preds = %90
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %8, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %197

109:                                              ; preds = %89
  %110 = load i32, ptr %5, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %147

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %133, %112
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = icmp slt i32 %114, 26
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %140

117:                                              ; preds = %113
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = add nsw i32 97, %118
  %120 = trunc i32 %119 to i8
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %120)
          to label %122 unwind label %136

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

124:                                              ; preds = %122
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [26 x i64], ptr %10, i64 0, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !5
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %123, i64 noundef %128)
          to label %130 unwind label %136

130:                                              ; preds = %124
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %132 unwind label %136

132:                                              ; preds = %130
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %14, align 4, !tbaa !9
  br label %113, !llvm.loop !16

136:                                              ; preds = %130, %124, %122, %117
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %8, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %197

140:                                              ; preds = %116
  %141 = 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 %142 unwind label %143

142:                                              ; preds = %140
  store i32 5, ptr %15, align 4
  br label %194, !llvm.loop !17

143:                                              ; preds = %191, %140
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %8, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %9, align 4
  br label %197

147:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %184, %147
  %149 = load i32, ptr %16, align 4, !tbaa !9
  %150 = icmp slt i32 %149, 26
  br i1 %150, label %152, label %151

151:                                              ; preds = %148
  store i32 16, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %191

152:                                              ; preds = %148
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = add nsw i32 97, %153
  %155 = trunc i32 %154 to i8
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %155)
          to label %157 unwind label %187

157:                                              ; preds = %152
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str)
          to label %159 unwind label %187

159:                                              ; preds = %157
  %160 = load i32, ptr %5, align 4, !tbaa !9
  %161 = sub nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [50 x i64], ptr %6, i64 0, i64 %162
  %164 = load i64, ptr %163, align 8, !tbaa !5
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [26 x i64], ptr %10, i64 0, i64 %166
  %168 = load i64, ptr %167, align 8, !tbaa !5
  %169 = mul nsw i64 %164, %168
  %170 = load i32, ptr %5, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [50 x i64], ptr %6, i64 0, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !5
  %174 = load i32, ptr %16, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [26 x i64], ptr %11, i64 0, i64 %175
  %177 = load i64, ptr %176, align 8, !tbaa !5
  %178 = mul nsw i64 %173, %177
  %179 = add nsw i64 %169, %178
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %158, i64 noundef %179)
          to label %181 unwind label %187

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

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %16, align 4, !tbaa !9
  br label %148, !llvm.loop !18

187:                                              ; preds = %181, %159, %157, %152
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %8, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %197

191:                                              ; preds = %151
  %192 = 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 %193 unwind label %143

193:                                              ; preds = %191
  store i32 0, ptr %15, align 4
  br label %194

194:                                              ; preds = %193, %142
  call void @llvm.lifetime.end.p0(i64 208, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %10) #7
  %195 = load i32, ptr %15, align 4
  switch i32 %195, label %206 [
    i32 0, label %196
    i32 5, label %43
  ]

196:                                              ; preds = %194
  br label %43, !llvm.loop !17

197:                                              ; preds = %187, %143, %136, %105, %79
  call void @llvm.lifetime.end.p0(i64 208, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %10) #7
  br label %200

198:                                              ; preds = %43
  store i32 0, ptr %1, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 400, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %199 = load i32, ptr %1, align 4
  ret i32 %199

200:                                              ; preds = %197, %60
  call void @llvm.lifetime.end.p0(i64 400, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %8, align 8
  %203 = load i32, ptr %9, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205

206:                                              ; preds = %194
  unreachable
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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


; 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 [2 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 i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca i32, align 4
  %5 = alloca [50 x i64], align 16
  %6 = alloca [26 x i64], align 16
  %7 = alloca [26 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %5) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %5, i8 0, i64 400, i1 false)
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 1, ptr %8, align 8, !tbaa !5
  %9 = load i64, ptr %5, align 16, !tbaa !5
  %10 = add nsw i64 %9, 1
  %11 = getelementptr inbounds i8, ptr %5, i64 16
  store i64 %10, ptr %11, align 16, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %5, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = add nsw i64 %13, %10
  %15 = getelementptr inbounds i8, ptr %5, i64 24
  store i64 %14, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %5, i64 16
  %17 = load i64, ptr %16, align 16, !tbaa !5
  %18 = add nsw i64 %17, %14
  %19 = getelementptr inbounds i8, ptr %5, i64 32
  store i64 %18, ptr %19, align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %5, i64 24
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = add nsw i64 %21, %18
  %23 = getelementptr inbounds i8, ptr %5, i64 40
  store i64 %22, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %5, i64 32
  %25 = load i64, ptr %24, align 16, !tbaa !5
  %26 = add nsw i64 %25, %22
  %27 = getelementptr inbounds i8, ptr %5, i64 48
  store i64 %26, ptr %27, align 16, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %5, i64 40
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = add nsw i64 %29, %26
  %31 = getelementptr inbounds i8, ptr %5, i64 56
  store i64 %30, ptr %31, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %5, i64 48
  %33 = load i64, ptr %32, align 16, !tbaa !5
  %34 = add nsw i64 %33, %30
  %35 = getelementptr inbounds i8, ptr %5, i64 64
  store i64 %34, ptr %35, align 16, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %5, i64 56
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = add nsw i64 %37, %34
  %39 = getelementptr inbounds i8, ptr %5, i64 72
  store i64 %38, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %5, i64 64
  %41 = load i64, ptr %40, align 16, !tbaa !5
  %42 = add nsw i64 %41, %38
  %43 = getelementptr inbounds i8, ptr %5, i64 80
  store i64 %42, ptr %43, align 16, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %5, i64 72
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = add nsw i64 %45, %42
  %47 = getelementptr inbounds i8, ptr %5, i64 88
  store i64 %46, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %5, i64 80
  %49 = load i64, ptr %48, align 16, !tbaa !5
  %50 = add nsw i64 %49, %46
  %51 = getelementptr inbounds i8, ptr %5, i64 96
  store i64 %50, ptr %51, align 16, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %5, i64 88
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = add nsw i64 %53, %50
  %55 = getelementptr inbounds i8, ptr %5, i64 104
  store i64 %54, ptr %55, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %5, i64 96
  %57 = load i64, ptr %56, align 16, !tbaa !5
  %58 = add nsw i64 %57, %54
  %59 = getelementptr inbounds i8, ptr %5, i64 112
  store i64 %58, ptr %59, align 16, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %5, i64 104
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = add nsw i64 %61, %58
  %63 = getelementptr inbounds i8, ptr %5, i64 120
  store i64 %62, ptr %63, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %5, i64 112
  %65 = load i64, ptr %64, align 16, !tbaa !5
  %66 = add nsw i64 %65, %62
  %67 = getelementptr inbounds i8, ptr %5, i64 128
  store i64 %66, ptr %67, align 16, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %5, i64 120
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = add nsw i64 %69, %66
  %71 = getelementptr inbounds i8, ptr %5, i64 136
  store i64 %70, ptr %71, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %5, i64 128
  %73 = load i64, ptr %72, align 16, !tbaa !5
  %74 = add nsw i64 %73, %70
  %75 = getelementptr inbounds i8, ptr %5, i64 144
  store i64 %74, ptr %75, align 16, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %5, i64 136
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = add nsw i64 %77, %74
  %79 = getelementptr inbounds i8, ptr %5, i64 152
  store i64 %78, ptr %79, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %5, i64 144
  %81 = load i64, ptr %80, align 16, !tbaa !5
  %82 = add nsw i64 %81, %78
  %83 = getelementptr inbounds i8, ptr %5, i64 160
  store i64 %82, ptr %83, align 16, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %5, i64 152
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = add nsw i64 %85, %82
  %87 = getelementptr inbounds i8, ptr %5, i64 168
  store i64 %86, ptr %87, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %5, i64 160
  %89 = load i64, ptr %88, align 16, !tbaa !5
  %90 = add nsw i64 %89, %86
  %91 = getelementptr inbounds i8, ptr %5, i64 176
  store i64 %90, ptr %91, align 16, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %5, i64 168
  %93 = load i64, ptr %92, align 8, !tbaa !5
  %94 = add nsw i64 %93, %90
  %95 = getelementptr inbounds i8, ptr %5, i64 184
  store i64 %94, ptr %95, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %5, i64 176
  %97 = load i64, ptr %96, align 16, !tbaa !5
  %98 = add nsw i64 %97, %94
  %99 = getelementptr inbounds i8, ptr %5, i64 192
  store i64 %98, ptr %99, align 16, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %5, i64 184
  %101 = load i64, ptr %100, align 8, !tbaa !5
  %102 = add nsw i64 %101, %98
  %103 = getelementptr inbounds i8, ptr %5, i64 200
  store i64 %102, ptr %103, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %5, i64 192
  %105 = load i64, ptr %104, align 16, !tbaa !5
  %106 = add nsw i64 %105, %102
  %107 = getelementptr inbounds i8, ptr %5, i64 208
  store i64 %106, ptr %107, align 16, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %5, i64 200
  %109 = load i64, ptr %108, align 8, !tbaa !5
  %110 = add nsw i64 %109, %106
  %111 = getelementptr inbounds i8, ptr %5, i64 216
  store i64 %110, ptr %111, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %5, i64 208
  %113 = load i64, ptr %112, align 16, !tbaa !5
  %114 = add nsw i64 %113, %110
  %115 = getelementptr inbounds i8, ptr %5, i64 224
  store i64 %114, ptr %115, align 16, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %5, i64 216
  %117 = load i64, ptr %116, align 8, !tbaa !5
  %118 = add nsw i64 %117, %114
  %119 = getelementptr inbounds i8, ptr %5, i64 232
  store i64 %118, ptr %119, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %5, i64 224
  %121 = load i64, ptr %120, align 16, !tbaa !5
  %122 = add nsw i64 %121, %118
  %123 = getelementptr inbounds i8, ptr %5, i64 240
  store i64 %122, ptr %123, align 16, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %5, i64 232
  %125 = load i64, ptr %124, align 8, !tbaa !5
  %126 = add nsw i64 %125, %122
  %127 = getelementptr inbounds i8, ptr %5, i64 248
  store i64 %126, ptr %127, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %5, i64 240
  %129 = load i64, ptr %128, align 16, !tbaa !5
  %130 = add nsw i64 %129, %126
  %131 = getelementptr inbounds i8, ptr %5, i64 256
  store i64 %130, ptr %131, align 16, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %5, i64 248
  %133 = load i64, ptr %132, align 8, !tbaa !5
  %134 = add nsw i64 %133, %130
  %135 = getelementptr inbounds i8, ptr %5, i64 264
  store i64 %134, ptr %135, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %5, i64 256
  %137 = load i64, ptr %136, align 16, !tbaa !5
  %138 = add nsw i64 %137, %134
  %139 = getelementptr inbounds i8, ptr %5, i64 272
  store i64 %138, ptr %139, align 16, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %5, i64 264
  %141 = load i64, ptr %140, align 8, !tbaa !5
  %142 = add nsw i64 %141, %138
  %143 = getelementptr inbounds i8, ptr %5, i64 280
  store i64 %142, ptr %143, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %5, i64 272
  %145 = load i64, ptr %144, align 16, !tbaa !5
  %146 = add nsw i64 %145, %142
  %147 = getelementptr inbounds i8, ptr %5, i64 288
  store i64 %146, ptr %147, align 16, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %5, i64 280
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = add nsw i64 %149, %146
  %151 = getelementptr inbounds i8, ptr %5, i64 296
  store i64 %150, ptr %151, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %5, i64 288
  %153 = load i64, ptr %152, align 16, !tbaa !5
  %154 = add nsw i64 %153, %150
  %155 = getelementptr inbounds i8, ptr %5, i64 304
  store i64 %154, ptr %155, align 16, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %5, i64 296
  %157 = load i64, ptr %156, align 8, !tbaa !5
  %158 = add nsw i64 %157, %154
  %159 = getelementptr inbounds i8, ptr %5, i64 312
  store i64 %158, ptr %159, align 8, !tbaa !5
  %160 = getelementptr inbounds i8, ptr %5, i64 304
  %161 = load i64, ptr %160, align 16, !tbaa !5
  %162 = add nsw i64 %161, %158
  %163 = getelementptr inbounds i8, ptr %5, i64 320
  store i64 %162, ptr %163, align 16, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %5, i64 312
  %165 = load i64, ptr %164, align 8, !tbaa !5
  %166 = add nsw i64 %165, %162
  %167 = getelementptr inbounds i8, ptr %5, i64 328
  store i64 %166, ptr %167, align 8, !tbaa !5
  %168 = getelementptr inbounds i8, ptr %5, i64 320
  %169 = load i64, ptr %168, align 16, !tbaa !5
  %170 = add nsw i64 %169, %166
  %171 = getelementptr inbounds i8, ptr %5, i64 336
  store i64 %170, ptr %171, align 16, !tbaa !5
  %172 = getelementptr inbounds i8, ptr %5, i64 328
  %173 = load i64, ptr %172, align 8, !tbaa !5
  %174 = add nsw i64 %173, %170
  %175 = getelementptr inbounds i8, ptr %5, i64 344
  store i64 %174, ptr %175, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %5, i64 336
  %177 = load i64, ptr %176, align 16, !tbaa !5
  %178 = add nsw i64 %177, %174
  %179 = getelementptr inbounds i8, ptr %5, i64 352
  store i64 %178, ptr %179, align 16, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %5, i64 344
  %181 = load i64, ptr %180, align 8, !tbaa !5
  %182 = add nsw i64 %181, %178
  %183 = getelementptr inbounds i8, ptr %5, i64 360
  store i64 %182, ptr %183, align 8, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %5, i64 352
  %185 = load i64, ptr %184, align 16, !tbaa !5
  %186 = add nsw i64 %185, %182
  %187 = getelementptr inbounds i8, ptr %5, i64 368
  store i64 %186, ptr %187, align 16, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %5, i64 360
  %189 = load i64, ptr %188, align 8, !tbaa !5
  %190 = add nsw i64 %189, %186
  %191 = getelementptr inbounds i8, ptr %5, i64 376
  store i64 %190, ptr %191, align 8, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %5, i64 368
  %193 = load i64, ptr %192, align 16, !tbaa !5
  %194 = add nsw i64 %193, %190
  %195 = getelementptr inbounds i8, ptr %5, i64 384
  store i64 %194, ptr %195, align 16, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %5, i64 376
  %197 = load i64, ptr %196, align 8, !tbaa !5
  %198 = add nsw i64 %197, %194
  %199 = getelementptr inbounds i8, ptr %5, i64 392
  store i64 %198, ptr %199, align 8, !tbaa !5
  %200 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %.preheader35 unwind label %.loopexit.split-lp

.preheader35:                                     ; preds = %0
  %201 = load i32, ptr %1, align 4, !tbaa !9
  %202 = add nsw i32 %201, -1
  store i32 %202, ptr %1, align 4, !tbaa !9
  %.not42 = icmp eq i32 %201, 0
  br i1 %.not42, label %._crit_edge44, label %.lr.ph43

.lr.ph43:                                         ; preds = %.preheader35, %275
  %203 = 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 %204 unwind label %.loopexit

204:                                              ; preds = %.lr.ph43
  %205 = 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) %203, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %206 unwind label %.loopexit

206:                                              ; preds = %204
  %207 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %205, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %208 unwind label %.loopexit

208:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %6) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(208) %6, i8 0, i64 208, i1 false)
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %7) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(208) %7, i8 0, i64 208, i1 false)
  %209 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %.not45 = icmp eq i64 %209, 0
  br i1 %.not45, label %.preheader34, label %.lr.ph

.preheader34:                                     ; preds = %.lr.ph, %208
  %210 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %.not46 = icmp eq i64 %210, 0
  br i1 %.not46, label %._crit_edge, label %.lr.ph39

.loopexit:                                        ; preds = %.lr.ph43, %204, %206
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %279

.loopexit.split-lp:                               ; preds = %0
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %279

.lr.ph:                                           ; preds = %208, %.lr.ph
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %.lr.ph ], [ 0, %208 ]
  %211 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv48)
  %212 = load i8, ptr %211, align 1, !tbaa !11
  %213 = sext i8 %212 to i64
  %214 = add nsw i64 %213, -97
  %215 = getelementptr inbounds [26 x i64], ptr %6, i64 0, i64 %214
  %216 = load i64, ptr %215, align 8, !tbaa !5
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %215, align 8, !tbaa !5
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %218 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %219 = icmp ugt i64 %218, %indvars.iv.next49
  br i1 %219, label %.lr.ph, label %.preheader34, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph39, %.preheader34
  %220 = load i32, ptr %4, align 4, !tbaa !9
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %.preheader, label %.preheader33

.lr.ph39:                                         ; preds = %.preheader34, %.lr.ph39
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %.lr.ph39 ], [ 0, %.preheader34 ]
  %222 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %indvars.iv51)
  %223 = load i8, ptr %222, align 1, !tbaa !11
  %224 = sext i8 %223 to i64
  %225 = add nsw i64 %224, -97
  %226 = getelementptr inbounds [26 x i64], ptr %7, i64 0, i64 %225
  %227 = load i64, ptr %226, align 8, !tbaa !5
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %226, align 8, !tbaa !5
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %229 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %230 = icmp ugt i64 %229, %indvars.iv.next52
  br i1 %230, label %.lr.ph39, label %._crit_edge, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge, %242
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %242 ], [ 0, %._crit_edge ]
  %231 = trunc i64 %indvars.iv58 to i8
  %232 = add nuw nsw i8 %231, 97
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %232)
          to label %234 unwind label %243

234:                                              ; preds = %.preheader
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef nonnull @.str)
          to label %236 unwind label %243

236:                                              ; preds = %234
  %237 = getelementptr inbounds [26 x i64], ptr %6, i64 0, i64 %indvars.iv58
  %238 = load i64, ptr %237, align 8, !tbaa !5
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %235, i64 noundef %238)
          to label %240 unwind label %243

240:                                              ; preds = %236
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %242 unwind label %243

242:                                              ; preds = %240
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond61.not = icmp eq i64 %indvars.iv.next59, 26
  br i1 %exitcond61.not, label %.invoke, label %.preheader, !llvm.loop !15

243:                                              ; preds = %240, %236, %234, %.preheader
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %278

245:                                              ; preds = %.invoke
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %278

.invoke:                                          ; preds = %272, %242
  %247 = 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 %275 unwind label %245

.preheader33:                                     ; preds = %._crit_edge, %272
  %indvars.iv54 = phi i64 [ %indvars.iv.next55, %272 ], [ 0, %._crit_edge ]
  %248 = trunc i64 %indvars.iv54 to i8
  %249 = add nuw nsw i8 %248, 97
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %249)
          to label %251 unwind label %273

251:                                              ; preds = %.preheader33
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef nonnull @.str)
          to label %253 unwind label %273

253:                                              ; preds = %251
  %254 = load i32, ptr %4, align 4, !tbaa !9
  %255 = add nsw i32 %254, -1
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [50 x i64], ptr %5, i64 0, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !5
  %259 = getelementptr inbounds [26 x i64], ptr %6, i64 0, i64 %indvars.iv54
  %260 = load i64, ptr %259, align 8, !tbaa !5
  %261 = mul nsw i64 %260, %258
  %262 = sext i32 %254 to i64
  %263 = getelementptr inbounds [50 x i64], ptr %5, i64 0, i64 %262
  %264 = load i64, ptr %263, align 8, !tbaa !5
  %265 = getelementptr inbounds [26 x i64], ptr %7, i64 0, i64 %indvars.iv54
  %266 = load i64, ptr %265, align 8, !tbaa !5
  %267 = mul nsw i64 %266, %264
  %268 = add nsw i64 %267, %261
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %252, i64 noundef %268)
          to label %270 unwind label %273

270:                                              ; preds = %253
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %269, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %272 unwind label %273

272:                                              ; preds = %270
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond57.not = icmp eq i64 %indvars.iv.next55, 26
  br i1 %exitcond57.not, label %.invoke, label %.preheader33, !llvm.loop !16

273:                                              ; preds = %270, %253, %251, %.preheader33
  %274 = landingpad { ptr, i32 }
          cleanup
  br label %278

275:                                              ; preds = %.invoke
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %6) #7
  %276 = load i32, ptr %1, align 4, !tbaa !9
  %277 = add nsw i32 %276, -1
  store i32 %277, ptr %1, align 4, !tbaa !9
  %.not = icmp eq i32 %276, 0
  br i1 %.not, label %._crit_edge44, label %.lr.ph43

278:                                              ; preds = %273, %245, %243
  %.pn = phi { ptr, i32 } [ %244, %243 ], [ %246, %245 ], [ %274, %273 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %6) #7
  br label %279

._crit_edge44:                                    ; preds = %275, %.preheader35
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

279:                                              ; preds = %.loopexit, %.loopexit.split-lp, %278
  %.pn.pn = phi { ptr, i32 } [ %.pn, %278 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass