; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint July/Problem C (C)

; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@cnt = external dso_local global [1000100 x [26 x i64]], align 16
@rcnt = external dso_local global [1000100 x [26 x i64]], align 16
@dp = external dso_local global [26 x [26 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 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 %"class.std::vector", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %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
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %25 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %26 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %28
  %30 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %29, ptr noundef null)
  %31 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %32 = getelementptr i8, ptr %31, i64 -24
  %33 = load i64, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %33
  %35 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %34, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %36 = 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 %37 unwind label %47

37:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store ptr %2, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %38 = load ptr, ptr %6, align 8, !tbaa !8
  %39 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %41 = load ptr, ptr %6, align 8, !tbaa !8
  %42 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  %43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %42, ptr %43, align 8
  br label %44

44:                                               ; preds = %58, %37
  %45 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %45, label %51, label %46

46:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %64

47:                                               ; preds = %0
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %3, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %4, align 4
  br label %290

51:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %53 = load i8, ptr %52, align 1, !tbaa !11
  store i8 %53, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %54 = load i8, ptr %9, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = sub nsw i32 %55, 97
  store i32 %56, ptr %10, align 4, !tbaa !12
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %57 unwind label %60

57:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %58

58:                                               ; preds = %57
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %44

60:                                               ; preds = %51
  %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) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %289

64:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %65 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %66 = trunc i64 %65 to i32
  store i32 %66, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !12
  br label %67

67:                                               ; preds = %119, %64
  %68 = load i32, ptr %12, align 4, !tbaa !12
  %69 = load i32, ptr %11, align 4, !tbaa !12
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 4, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %122

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %73 = load i32, ptr %12, align 4, !tbaa !12
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %74) #7
  %76 = load i32, ptr %75, align 4, !tbaa !12
  store i32 %76, ptr %14, align 4, !tbaa !12
  %77 = load i32, ptr %12, align 4, !tbaa !12
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %86

79:                                               ; preds = %72
  %80 = load i32, ptr %12, align 4, !tbaa !12
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %81
  %83 = load i32, ptr %14, align 4, !tbaa !12
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [26 x i64], ptr %82, i64 0, i64 %84
  store i64 1, ptr %85, align 8, !tbaa !14
  br label %118

86:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !12
  br label %87

87:                                               ; preds = %106, %86
  %88 = load i32, ptr %15, align 4, !tbaa !12
  %89 = icmp slt i32 %88, 26
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 7, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %109

91:                                               ; preds = %87
  %92 = load i32, ptr %12, align 4, !tbaa !12
  %93 = sub nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %94
  %96 = load i32, ptr %15, align 4, !tbaa !12
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [26 x i64], ptr %95, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !14
  %100 = load i32, ptr %12, align 4, !tbaa !12
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %101
  %103 = load i32, ptr %15, align 4, !tbaa !12
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [26 x i64], ptr %102, i64 0, i64 %104
  store i64 %99, ptr %105, align 8, !tbaa !14
  br label %106

106:                                              ; preds = %91
  %107 = load i32, ptr %15, align 4, !tbaa !12
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %15, align 4, !tbaa !12
  br label %87, !llvm.loop !16

109:                                              ; preds = %90
  %110 = load i32, ptr %12, align 4, !tbaa !12
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %111
  %113 = load i32, ptr %14, align 4, !tbaa !12
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [26 x i64], ptr %112, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !14
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %115, align 8, !tbaa !14
  br label %118

118:                                              ; preds = %109, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %12, align 4, !tbaa !12
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %12, align 4, !tbaa !12
  br label %67, !llvm.loop !18

122:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %123 = load i32, ptr %11, align 4, !tbaa !12
  %124 = sub nsw i32 %123, 1
  store i32 %124, ptr %16, align 4, !tbaa !12
  br label %125

125:                                              ; preds = %178, %122
  %126 = load i32, ptr %16, align 4, !tbaa !12
  %127 = icmp sge i32 %126, 0
  br i1 %127, label %129, label %128

128:                                              ; preds = %125
  store i32 10, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %181

129:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %130 = load i32, ptr %16, align 4, !tbaa !12
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %131) #7
  %133 = load i32, ptr %132, align 4, !tbaa !12
  store i32 %133, ptr %17, align 4, !tbaa !12
  %134 = load i32, ptr %16, align 4, !tbaa !12
  %135 = load i32, ptr %11, align 4, !tbaa !12
  %136 = sub nsw i32 %135, 1
  %137 = icmp eq i32 %134, %136
  br i1 %137, label %138, label %145

138:                                              ; preds = %129
  %139 = load i32, ptr %16, align 4, !tbaa !12
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %140
  %142 = load i32, ptr %17, align 4, !tbaa !12
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [26 x i64], ptr %141, i64 0, i64 %143
  store i64 1, ptr %144, align 8, !tbaa !14
  br label %177

145:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !12
  br label %146

146:                                              ; preds = %165, %145
  %147 = load i32, ptr %18, align 4, !tbaa !12
  %148 = icmp slt i32 %147, 26
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  store i32 13, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %168

150:                                              ; preds = %146
  %151 = load i32, ptr %16, align 4, !tbaa !12
  %152 = add nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %153
  %155 = load i32, ptr %18, align 4, !tbaa !12
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [26 x i64], ptr %154, i64 0, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !14
  %159 = load i32, ptr %16, align 4, !tbaa !12
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %160
  %162 = load i32, ptr %18, align 4, !tbaa !12
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [26 x i64], ptr %161, i64 0, i64 %163
  store i64 %158, ptr %164, align 8, !tbaa !14
  br label %165

165:                                              ; preds = %150
  %166 = load i32, ptr %18, align 4, !tbaa !12
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %18, align 4, !tbaa !12
  br label %146, !llvm.loop !19

168:                                              ; preds = %149
  %169 = load i32, ptr %16, align 4, !tbaa !12
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %170
  %172 = load i32, ptr %17, align 4, !tbaa !12
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [26 x i64], ptr %171, i64 0, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !14
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %174, align 8, !tbaa !14
  br label %177

177:                                              ; preds = %168, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %16, align 4, !tbaa !12
  %180 = add nsw i32 %179, -1
  store i32 %180, ptr %16, align 4, !tbaa !12
  br label %125, !llvm.loop !20

181:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %182 = load i32, ptr %11, align 4, !tbaa !12
  %183 = sub nsw i32 %182, 1
  store i32 %183, ptr %20, align 4, !tbaa !12
  br label %184

184:                                              ; preds = %275, %181
  %185 = load i32, ptr %20, align 4, !tbaa !12
  %186 = icmp sgt i32 %185, 1
  br i1 %186, label %188, label %187

187:                                              ; preds = %184
  store i32 16, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %278

188:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %189 = load i32, ptr %20, align 4, !tbaa !12
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %190) #7
  %192 = load i32, ptr %191, align 4, !tbaa !12
  store i32 %192, ptr %21, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %193 = load i32, ptr %20, align 4, !tbaa !12
  %194 = sub nsw i32 %193, 1
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %195) #7
  %197 = load i32, ptr %196, align 4, !tbaa !12
  store i32 %197, ptr %22, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !12
  br label %198

198:                                              ; preds = %237, %188
  %199 = load i32, ptr %23, align 4, !tbaa !12
  %200 = icmp slt i32 %199, 26
  br i1 %200, label %202, label %201

201:                                              ; preds = %198
  store i32 19, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %240

202:                                              ; preds = %198
  %203 = load i32, ptr %20, align 4, !tbaa !12
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %205
  %207 = load i32, ptr %23, align 4, !tbaa !12
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [26 x i64], ptr %206, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !14
  %211 = load i32, ptr %21, align 4, !tbaa !12
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %212
  %214 = load i32, ptr %23, align 4, !tbaa !12
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [26 x i64], ptr %213, i64 0, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !14
  %218 = add nsw i64 %217, %210
  store i64 %218, ptr %216, align 8, !tbaa !14
  %219 = load i32, ptr %21, align 4, !tbaa !12
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %220
  %222 = load i32, ptr %23, align 4, !tbaa !12
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [26 x i64], ptr %221, i64 0, i64 %223
  %225 = load i64, ptr %224, align 8, !tbaa !14
  %226 = icmp sge i64 %225, 1000000007
  br i1 %226, label %227, label %236

227:                                              ; preds = %202
  %228 = load i32, ptr %21, align 4, !tbaa !12
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %229
  %231 = load i32, ptr %23, align 4, !tbaa !12
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [26 x i64], ptr %230, i64 0, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !14
  %235 = sub nsw i64 %234, 1000000007
  store i64 %235, ptr %233, align 8, !tbaa !14
  br label %236

236:                                              ; preds = %227, %202
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %23, align 4, !tbaa !12
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %23, align 4, !tbaa !12
  br label %198, !llvm.loop !21

240:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !12
  br label %241

241:                                              ; preds = %271, %240
  %242 = load i32, ptr %24, align 4, !tbaa !12
  %243 = icmp slt i32 %242, 26
  br i1 %243, label %245, label %244

244:                                              ; preds = %241
  store i32 22, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %274

245:                                              ; preds = %241
  %246 = load i32, ptr %20, align 4, !tbaa !12
  %247 = sub nsw i32 %246, 2
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %248
  %250 = load i32, ptr %24, align 4, !tbaa !12
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [26 x i64], ptr %249, i64 0, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !14
  %254 = load i32, ptr %22, align 4, !tbaa !12
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %255
  %257 = load i32, ptr %24, align 4, !tbaa !12
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [26 x i64], ptr %256, i64 0, i64 %258
  %260 = load i64, ptr %259, align 8, !tbaa !14
  %261 = mul nsw i64 %253, %260
  %262 = srem i64 %261, 1000000007
  %263 = load i64, ptr %19, align 8, !tbaa !14
  %264 = add nsw i64 %263, %262
  store i64 %264, ptr %19, align 8, !tbaa !14
  %265 = load i64, ptr %19, align 8, !tbaa !14
  %266 = icmp sge i64 %265, 1000000007
  br i1 %266, label %267, label %270

267:                                              ; preds = %245
  %268 = load i64, ptr %19, align 8, !tbaa !14
  %269 = sub nsw i64 %268, 1000000007
  store i64 %269, ptr %19, align 8, !tbaa !14
  br label %270

270:                                              ; preds = %267, %245
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %24, align 4, !tbaa !12
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %24, align 4, !tbaa !12
  br label %241, !llvm.loop !22

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

275:                                              ; preds = %274
  %276 = load i32, ptr %20, align 4, !tbaa !12
  %277 = add nsw i32 %276, -1
  store i32 %277, ptr %20, align 4, !tbaa !12
  br label %184, !llvm.loop !23

278:                                              ; preds = %187
  %279 = load i64, ptr %19, align 8, !tbaa !14
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %279)
          to label %281 unwind label %285

281:                                              ; preds = %278
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %280, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %283 unwind label %285

283:                                              ; preds = %281
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #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 %2) #7
  %284 = load i32, ptr %1, align 4
  ret i32 %284

285:                                              ; preds = %281, %278
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %3, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %289

289:                                              ; preds = %285, %60
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %290

290:                                              ; preds = %289, %47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  br label %291

291:                                              ; preds = %290
  %292 = load ptr, ptr %3, align 8
  %293 = load i32, ptr %4, align 4
  %294 = insertvalue { ptr, i32 } poison, ptr %292, 0
  %295 = insertvalue { ptr, i32 } %294, i32 %293, 1
  resume { ptr, i32 } %295
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #4 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress 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 = { 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 #2 = { 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 #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}


; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@cnt = external dso_local local_unnamed_addr global [1000100 x [26 x i64]], align 16
@rcnt = external dso_local local_unnamed_addr global [1000100 x [26 x i64]], align 16
@dp = external dso_local local_unnamed_addr global [26 x [26 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; 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 #0 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)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca i32, align 4
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  %12 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %14
  %16 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %17 = 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 %18 unwind label %29

18:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %19 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  store ptr %19, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %20 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  store ptr %20, ptr %4, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %35, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %22 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %23 = trunc i64 %22 to i32
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph85.preheader, label %._crit_edge97

.lr.ph85.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = and i64 %22, 2147483647
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #7
  %26 = load i32, ptr %25, align 4, !tbaa !8
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 0, i64 %27
  store i64 1, ptr %28, align 8, !tbaa !11
  %exitcond.not.peel = icmp eq i64 %wide.trip.count, 1
  br i1 %exitcond.not.peel, label %._crit_edge86, label %.lr.ph85

29:                                               ; preds = %0
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %270

.lr.ph:                                           ; preds = %18, %35
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %32 = load i8, ptr %31, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %33 = sext i8 %32 to i32
  %34 = add nsw i32 %33, -97
  store i32 %34, ptr %5, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %35 unwind label %38

35:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %37, label %.lr.ph, label %._crit_edge

38:                                               ; preds = %.lr.ph
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %269

._crit_edge86:                                    ; preds = %.lr.ph85, %.lr.ph85.preheader
  %40 = add nsw i32 %23, -1
  br i1 %24, label %.lr.ph90.preheader, label %._crit_edge97

.lr.ph90.preheader:                               ; preds = %._crit_edge86
  %41 = zext nneg i32 %40 to i64
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %41) #7
  %43 = load i32, ptr %42, align 4, !tbaa !8
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %41, i64 %44
  store i64 1, ptr %45, align 8, !tbaa !11
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %.preheader79, label %.lr.ph90

.lr.ph85:                                         ; preds = %.lr.ph85.preheader, %.lr.ph85
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph85 ], [ 1, %.lr.ph85.preheader ]
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #7
  %47 = load i32, ptr %46, align 4, !tbaa !8
  %48 = add nsw i64 %indvars.iv, -1
  %49 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 0
  %50 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 0
  %51 = load <2 x i64>, ptr %49, align 16, !tbaa !11
  store <2 x i64> %51, ptr %50, align 16, !tbaa !11
  %52 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 2
  %53 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 2
  %54 = load <2 x i64>, ptr %52, align 16, !tbaa !11
  store <2 x i64> %54, ptr %53, align 16, !tbaa !11
  %55 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 4
  %56 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 4
  %57 = load <2 x i64>, ptr %55, align 16, !tbaa !11
  store <2 x i64> %57, ptr %56, align 16, !tbaa !11
  %58 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 6
  %59 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 6
  %60 = load <2 x i64>, ptr %58, align 16, !tbaa !11
  store <2 x i64> %60, ptr %59, align 16, !tbaa !11
  %61 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 8
  %62 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 8
  %63 = load <2 x i64>, ptr %61, align 16, !tbaa !11
  store <2 x i64> %63, ptr %62, align 16, !tbaa !11
  %64 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 10
  %65 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 10
  %66 = load <2 x i64>, ptr %64, align 16, !tbaa !11
  store <2 x i64> %66, ptr %65, align 16, !tbaa !11
  %67 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 12
  %68 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 12
  %69 = load <2 x i64>, ptr %67, align 16, !tbaa !11
  store <2 x i64> %69, ptr %68, align 16, !tbaa !11
  %70 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 14
  %71 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 14
  %72 = load <2 x i64>, ptr %70, align 16, !tbaa !11
  store <2 x i64> %72, ptr %71, align 16, !tbaa !11
  %73 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 16
  %74 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 16
  %75 = load <2 x i64>, ptr %73, align 16, !tbaa !11
  store <2 x i64> %75, ptr %74, align 16, !tbaa !11
  %76 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 18
  %77 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 18
  %78 = load <2 x i64>, ptr %76, align 16, !tbaa !11
  store <2 x i64> %78, ptr %77, align 16, !tbaa !11
  %79 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 20
  %80 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 20
  %81 = load <2 x i64>, ptr %79, align 16, !tbaa !11
  store <2 x i64> %81, ptr %80, align 16, !tbaa !11
  %82 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 22
  %83 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 22
  %84 = load <2 x i64>, ptr %82, align 16, !tbaa !11
  store <2 x i64> %84, ptr %83, align 16, !tbaa !11
  %85 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %48, i64 24
  %86 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 24
  %87 = load <2 x i64>, ptr %85, align 16, !tbaa !11
  store <2 x i64> %87, ptr %86, align 16, !tbaa !11
  %88 = sext i32 %47 to i64
  %89 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %indvars.iv, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !11
  %91 = add nsw i64 %90, 1
  store i64 %91, ptr %89, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge86, label %.lr.ph85, !llvm.loop !14

.preheader79:                                     ; preds = %.lr.ph90, %.lr.ph90.preheader
  %92 = icmp sgt i32 %23, 2
  br i1 %92, label %.lr.ph96.preheader, label %._crit_edge97

.lr.ph96.preheader:                               ; preds = %.preheader79
  %93 = zext nneg i32 %40 to i64
  br label %.lr.ph96

.lr.ph90:                                         ; preds = %.lr.ph90.preheader, %.lr.ph90
  %indvars.iv106.in = phi i64 [ %indvars.iv106, %.lr.ph90 ], [ %41, %.lr.ph90.preheader ]
  %indvars.iv106 = add nsw i64 %indvars.iv106.in, -1
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv106) #7
  %95 = load i32, ptr %94, align 4, !tbaa !8
  %96 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 0
  %97 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 0
  %98 = load <2 x i64>, ptr %96, align 16, !tbaa !11
  store <2 x i64> %98, ptr %97, align 16, !tbaa !11
  %99 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 2
  %100 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 2
  %101 = load <2 x i64>, ptr %99, align 16, !tbaa !11
  store <2 x i64> %101, ptr %100, align 16, !tbaa !11
  %102 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 4
  %103 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 4
  %104 = load <2 x i64>, ptr %102, align 16, !tbaa !11
  store <2 x i64> %104, ptr %103, align 16, !tbaa !11
  %105 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 6
  %106 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 6
  %107 = load <2 x i64>, ptr %105, align 16, !tbaa !11
  store <2 x i64> %107, ptr %106, align 16, !tbaa !11
  %108 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 8
  %109 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 8
  %110 = load <2 x i64>, ptr %108, align 16, !tbaa !11
  store <2 x i64> %110, ptr %109, align 16, !tbaa !11
  %111 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 10
  %112 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 10
  %113 = load <2 x i64>, ptr %111, align 16, !tbaa !11
  store <2 x i64> %113, ptr %112, align 16, !tbaa !11
  %114 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 12
  %115 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 12
  %116 = load <2 x i64>, ptr %114, align 16, !tbaa !11
  store <2 x i64> %116, ptr %115, align 16, !tbaa !11
  %117 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 14
  %118 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 14
  %119 = load <2 x i64>, ptr %117, align 16, !tbaa !11
  store <2 x i64> %119, ptr %118, align 16, !tbaa !11
  %120 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 16
  %121 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 16
  %122 = load <2 x i64>, ptr %120, align 16, !tbaa !11
  store <2 x i64> %122, ptr %121, align 16, !tbaa !11
  %123 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 18
  %124 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 18
  %125 = load <2 x i64>, ptr %123, align 16, !tbaa !11
  store <2 x i64> %125, ptr %124, align 16, !tbaa !11
  %126 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 20
  %127 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 20
  %128 = load <2 x i64>, ptr %126, align 16, !tbaa !11
  store <2 x i64> %128, ptr %127, align 16, !tbaa !11
  %129 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 22
  %130 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 22
  %131 = load <2 x i64>, ptr %129, align 16, !tbaa !11
  store <2 x i64> %131, ptr %130, align 16, !tbaa !11
  %132 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106.in, i64 24
  %133 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 24
  %134 = load <2 x i64>, ptr %132, align 16, !tbaa !11
  store <2 x i64> %134, ptr %133, align 16, !tbaa !11
  %135 = sext i32 %95 to i64
  %136 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %indvars.iv106, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %136, align 8, !tbaa !11
  %139 = icmp sgt i64 %indvars.iv106.in, 1
  br i1 %139, label %.lr.ph90, label %.preheader79, !llvm.loop !17

.loopexit:                                        ; preds = %254
  %140 = icmp sgt i64 %indvars.iv117, 2
  br i1 %140, label %.lr.ph96, label %._crit_edge97, !llvm.loop !18

._crit_edge97:                                    ; preds = %.loopexit, %._crit_edge, %._crit_edge86, %.preheader79
  %.064.lcssa = phi i64 [ 0, %.preheader79 ], [ 0, %._crit_edge86 ], [ 0, %._crit_edge ], [ %spec.select78, %.loopexit ]
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.064.lcssa)
          to label %264 unwind label %267

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %.loopexit
  %indvars.iv117 = phi i64 [ %93, %.lr.ph96.preheader ], [ %indvars.iv.next118, %.loopexit ]
  %.06494 = phi i64 [ 0, %.lr.ph96.preheader ], [ %spec.select78, %.loopexit ]
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv117) #7
  %143 = load i32, ptr %142, align 4, !tbaa !8
  %indvars.iv.next118 = add nsw i64 %indvars.iv117, -1
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next118) #7
  %145 = load i32, ptr %144, align 4, !tbaa !8
  %146 = add nuw nsw i64 %indvars.iv117, 1
  %147 = sext i32 %143 to i64
  %148 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 0
  %149 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 0
  %150 = load <2 x i64>, ptr %148, align 16, !tbaa !11
  %151 = load <2 x i64>, ptr %149, align 16, !tbaa !11
  %152 = add nsw <2 x i64> %151, %150
  %153 = icmp sgt <2 x i64> %152, <i64 1000000006, i64 1000000006>
  %154 = add nsw <2 x i64> %152, <i64 -1000000007, i64 -1000000007>
  %155 = select <2 x i1> %153, <2 x i64> %154, <2 x i64> %152
  store <2 x i64> %155, ptr %149, align 16, !tbaa !11
  %156 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 2
  %157 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 2
  %158 = load <2 x i64>, ptr %156, align 16, !tbaa !11
  %159 = load <2 x i64>, ptr %157, align 16, !tbaa !11
  %160 = add nsw <2 x i64> %159, %158
  %161 = icmp sgt <2 x i64> %160, <i64 1000000006, i64 1000000006>
  %162 = add nsw <2 x i64> %160, <i64 -1000000007, i64 -1000000007>
  %163 = select <2 x i1> %161, <2 x i64> %162, <2 x i64> %160
  store <2 x i64> %163, ptr %157, align 16, !tbaa !11
  %164 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 4
  %165 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 4
  %166 = load <2 x i64>, ptr %164, align 16, !tbaa !11
  %167 = load <2 x i64>, ptr %165, align 16, !tbaa !11
  %168 = add nsw <2 x i64> %167, %166
  %169 = icmp sgt <2 x i64> %168, <i64 1000000006, i64 1000000006>
  %170 = add nsw <2 x i64> %168, <i64 -1000000007, i64 -1000000007>
  %171 = select <2 x i1> %169, <2 x i64> %170, <2 x i64> %168
  store <2 x i64> %171, ptr %165, align 16, !tbaa !11
  %172 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 6
  %173 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 6
  %174 = load <2 x i64>, ptr %172, align 16, !tbaa !11
  %175 = load <2 x i64>, ptr %173, align 16, !tbaa !11
  %176 = add nsw <2 x i64> %175, %174
  %177 = icmp sgt <2 x i64> %176, <i64 1000000006, i64 1000000006>
  %178 = add nsw <2 x i64> %176, <i64 -1000000007, i64 -1000000007>
  %179 = select <2 x i1> %177, <2 x i64> %178, <2 x i64> %176
  store <2 x i64> %179, ptr %173, align 16, !tbaa !11
  %180 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 8
  %181 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 8
  %182 = load <2 x i64>, ptr %180, align 16, !tbaa !11
  %183 = load <2 x i64>, ptr %181, align 16, !tbaa !11
  %184 = add nsw <2 x i64> %183, %182
  %185 = icmp sgt <2 x i64> %184, <i64 1000000006, i64 1000000006>
  %186 = add nsw <2 x i64> %184, <i64 -1000000007, i64 -1000000007>
  %187 = select <2 x i1> %185, <2 x i64> %186, <2 x i64> %184
  store <2 x i64> %187, ptr %181, align 16, !tbaa !11
  %188 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 10
  %189 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 10
  %190 = load <2 x i64>, ptr %188, align 16, !tbaa !11
  %191 = load <2 x i64>, ptr %189, align 16, !tbaa !11
  %192 = add nsw <2 x i64> %191, %190
  %193 = icmp sgt <2 x i64> %192, <i64 1000000006, i64 1000000006>
  %194 = add nsw <2 x i64> %192, <i64 -1000000007, i64 -1000000007>
  %195 = select <2 x i1> %193, <2 x i64> %194, <2 x i64> %192
  store <2 x i64> %195, ptr %189, align 16, !tbaa !11
  %196 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 12
  %197 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 12
  %198 = load <2 x i64>, ptr %196, align 16, !tbaa !11
  %199 = load <2 x i64>, ptr %197, align 16, !tbaa !11
  %200 = add nsw <2 x i64> %199, %198
  %201 = icmp sgt <2 x i64> %200, <i64 1000000006, i64 1000000006>
  %202 = add nsw <2 x i64> %200, <i64 -1000000007, i64 -1000000007>
  %203 = select <2 x i1> %201, <2 x i64> %202, <2 x i64> %200
  store <2 x i64> %203, ptr %197, align 16, !tbaa !11
  %204 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 14
  %205 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 14
  %206 = load <2 x i64>, ptr %204, align 16, !tbaa !11
  %207 = load <2 x i64>, ptr %205, align 16, !tbaa !11
  %208 = add nsw <2 x i64> %207, %206
  %209 = icmp sgt <2 x i64> %208, <i64 1000000006, i64 1000000006>
  %210 = add nsw <2 x i64> %208, <i64 -1000000007, i64 -1000000007>
  %211 = select <2 x i1> %209, <2 x i64> %210, <2 x i64> %208
  store <2 x i64> %211, ptr %205, align 16, !tbaa !11
  %212 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 16
  %213 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 16
  %214 = load <2 x i64>, ptr %212, align 16, !tbaa !11
  %215 = load <2 x i64>, ptr %213, align 16, !tbaa !11
  %216 = add nsw <2 x i64> %215, %214
  %217 = icmp sgt <2 x i64> %216, <i64 1000000006, i64 1000000006>
  %218 = add nsw <2 x i64> %216, <i64 -1000000007, i64 -1000000007>
  %219 = select <2 x i1> %217, <2 x i64> %218, <2 x i64> %216
  store <2 x i64> %219, ptr %213, align 16, !tbaa !11
  %220 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 18
  %221 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 18
  %222 = load <2 x i64>, ptr %220, align 16, !tbaa !11
  %223 = load <2 x i64>, ptr %221, align 16, !tbaa !11
  %224 = add nsw <2 x i64> %223, %222
  %225 = icmp sgt <2 x i64> %224, <i64 1000000006, i64 1000000006>
  %226 = add nsw <2 x i64> %224, <i64 -1000000007, i64 -1000000007>
  %227 = select <2 x i1> %225, <2 x i64> %226, <2 x i64> %224
  store <2 x i64> %227, ptr %221, align 16, !tbaa !11
  %228 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 20
  %229 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 20
  %230 = load <2 x i64>, ptr %228, align 16, !tbaa !11
  %231 = load <2 x i64>, ptr %229, align 16, !tbaa !11
  %232 = add nsw <2 x i64> %231, %230
  %233 = icmp sgt <2 x i64> %232, <i64 1000000006, i64 1000000006>
  %234 = add nsw <2 x i64> %232, <i64 -1000000007, i64 -1000000007>
  %235 = select <2 x i1> %233, <2 x i64> %234, <2 x i64> %232
  store <2 x i64> %235, ptr %229, align 16, !tbaa !11
  %236 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 22
  %237 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 22
  %238 = load <2 x i64>, ptr %236, align 16, !tbaa !11
  %239 = load <2 x i64>, ptr %237, align 16, !tbaa !11
  %240 = add nsw <2 x i64> %239, %238
  %241 = icmp sgt <2 x i64> %240, <i64 1000000006, i64 1000000006>
  %242 = add nsw <2 x i64> %240, <i64 -1000000007, i64 -1000000007>
  %243 = select <2 x i1> %241, <2 x i64> %242, <2 x i64> %240
  store <2 x i64> %243, ptr %237, align 16, !tbaa !11
  %244 = getelementptr inbounds [1000100 x [26 x i64]], ptr @rcnt, i64 0, i64 %146, i64 24
  %245 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %147, i64 24
  %246 = load <2 x i64>, ptr %244, align 16, !tbaa !11
  %247 = load <2 x i64>, ptr %245, align 16, !tbaa !11
  %248 = add nsw <2 x i64> %247, %246
  %249 = icmp sgt <2 x i64> %248, <i64 1000000006, i64 1000000006>
  %250 = add nsw <2 x i64> %248, <i64 -1000000007, i64 -1000000007>
  %251 = select <2 x i1> %249, <2 x i64> %250, <2 x i64> %248
  store <2 x i64> %251, ptr %245, align 16, !tbaa !11
  %252 = add nsw i64 %indvars.iv117, -2
  %253 = sext i32 %145 to i64
  br label %254

254:                                              ; preds = %.lr.ph96, %254
  %indvars.iv113 = phi i64 [ 0, %.lr.ph96 ], [ %indvars.iv.next114, %254 ]
  %.16592 = phi i64 [ %.06494, %.lr.ph96 ], [ %spec.select78, %254 ]
  %255 = getelementptr inbounds [1000100 x [26 x i64]], ptr @cnt, i64 0, i64 %252, i64 %indvars.iv113
  %256 = load i64, ptr %255, align 8, !tbaa !11
  %257 = getelementptr inbounds [26 x [26 x i64]], ptr @dp, i64 0, i64 %253, i64 %indvars.iv113
  %258 = load i64, ptr %257, align 8, !tbaa !11
  %259 = mul nsw i64 %258, %256
  %260 = srem i64 %259, 1000000007
  %261 = add nsw i64 %260, %.16592
  %262 = icmp sgt i64 %261, 1000000006
  %263 = add nsw i64 %261, -1000000007
  %spec.select78 = select i1 %262, i64 %263, i64 %261
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next114, 26
  br i1 %exitcond116.not, label %.loopexit, label %254, !llvm.loop !19

264:                                              ; preds = %._crit_edge97
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %266 unwind label %267

266:                                              ; preds = %264
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret i32 0

267:                                              ; preds = %264, %._crit_edge97
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %269

269:                                              ; preds = %267, %38
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %268, %267 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  br label %270

270:                                              ; preds = %269, %29
  %.pn.pn = phi { ptr, i32 } [ %.pn, %269 ], [ %30, %29 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress 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 = { 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 #2 = { 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 #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #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 = !{!"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 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15, !16}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.peeled.count", i32 1}
!17 = distinct !{!17, !15, !16}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


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