; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/IKEYB (ikey)

; 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::__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] }

@t = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@freq = external dso_local global [90 x i32], align 16
@pos = external dso_local global i32, align 4
@cap = external dso_local global i32, align 4
@number = external dso_local global i32, align 4
@dp = external dso_local global [90 x [90 x [90 x i32]]], align 16
@INF = external dso_local global i32, align 4
@mini = external dso_local global i32, align 4
@keys = external dso_local global [100 x i8], align 16
@letters = external dso_local global [100 x i8], align 16
@first_char = external dso_local global i8, align 1
@_Z6resultB5cxx11 = external dso_local global [90 x %"class.std::__cxx11::basic_string"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %19

19:                                               ; preds = %343, %0
  %20 = load i32, ptr @number, align 4, !tbaa !5
  %21 = load i32, ptr @t, align 4, !tbaa !5
  %22 = icmp sle i32 %20, %21
  br i1 %22, label %23, label %347

23:                                               ; preds = %19
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @k, ptr noundef @l)
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @keys)
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @letters)
  %27 = load i8, ptr @letters, align 16, !tbaa !9
  store i8 %27, ptr @first_char, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %38, %23
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = load i32, ptr @l, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %28
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %35
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %36)
  br label %38

38:                                               ; preds = %33
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !5
  br label %28, !llvm.loop !10

41:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %82, %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = load i32, ptr @k, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 7, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %85

47:                                               ; preds = %42
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [90 x %"class.std::__cxx11::basic_string"], ptr @_Z6resultB5cxx11, i64 0, i64 %49
  %51 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %78, %47
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = load i32, ptr @l, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %81

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

58:                                               ; preds = %74, %57
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = load i32, ptr @l, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 13, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %77

63:                                               ; preds = %58
  %64 = load i32, ptr @INF, align 4, !tbaa !5
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %66
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [90 x [90 x i32]], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [90 x i32], ptr %70, i64 0, i64 %72
  store i32 %64, ptr %73, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %63
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %6, align 4, !tbaa !5
  br label %58, !llvm.loop !12

77:                                               ; preds = %62
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %5, align 4, !tbaa !5
  br label %52, !llvm.loop !13

81:                                               ; preds = %56
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %3, align 4, !tbaa !5
  br label %42, !llvm.loop !14

85:                                               ; preds = %46
  %86 = load i32, ptr @freq, align 16, !tbaa !5
  store i32 %86, ptr @dp, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %116, %85
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = load i32, ptr @l, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 16, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %119

92:                                               ; preds = %87
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sub nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [90 x [90 x i32]], ptr @dp, i64 0, i64 %95
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [90 x i32], ptr %96, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = mul nsw i32 %103, %107
  %109 = add nsw i32 %101, %108
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [90 x [90 x i32]], ptr @dp, i64 0, i64 %111
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [90 x i32], ptr %112, i64 0, i64 %114
  store i32 %109, ptr %115, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %92
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !5
  br label %87, !llvm.loop !15

119:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %225, %119
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = load i32, ptr @k, align 4, !tbaa !5
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %125, label %124

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

125:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %126 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %126, ptr %9, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %221, %125
  %128 = load i32, ptr %9, align 4, !tbaa !5
  %129 = load i32, ptr @l, align 4, !tbaa !5
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 22, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %224

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

133:                                              ; preds = %217, %132
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = load i32, ptr %9, align 4, !tbaa !5
  %136 = load i32, ptr %8, align 4, !tbaa !5
  %137 = sub nsw i32 %135, %136
  %138 = icmp sle i32 %134, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %133
  store i32 25, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %220

140:                                              ; preds = %133
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %186

143:                                              ; preds = %140
  %144 = load i32, ptr @INF, align 4, !tbaa !5
  store i32 %144, ptr @mini, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %164, %143
  %146 = load i32, ptr %11, align 4, !tbaa !5
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 28, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %167

150:                                              ; preds = %145
  %151 = load i32, ptr %8, align 4, !tbaa !5
  %152 = sub nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %153
  %155 = load i32, ptr %9, align 4, !tbaa !5
  %156 = sub nsw i32 %155, 1
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [90 x [90 x i32]], ptr %154, i64 0, i64 %157
  %159 = load i32, ptr %11, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [90 x i32], ptr %158, i64 0, i64 %160
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @mini, ptr noundef nonnull align 4 dereferenceable(4) %161)
  %163 = load i32, ptr %162, align 4, !tbaa !5
  store i32 %163, ptr @mini, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %150
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %11, align 4, !tbaa !5
  br label %145, !llvm.loop !16

167:                                              ; preds = %149
  %168 = load i32, ptr @mini, align 4, !tbaa !5
  %169 = load i32, ptr %10, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = mul nsw i32 %170, %174
  %176 = add nsw i32 %168, %175
  %177 = load i32, ptr %8, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %178
  %180 = load i32, ptr %9, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [90 x [90 x i32]], ptr %179, i64 0, i64 %181
  %183 = load i32, ptr %10, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [90 x i32], ptr %182, i64 0, i64 %184
  store i32 %176, ptr %185, align 4, !tbaa !5
  br label %216

186:                                              ; preds = %140
  %187 = load i32, ptr %8, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %188
  %190 = load i32, ptr %9, align 4, !tbaa !5
  %191 = sub nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [90 x [90 x i32]], ptr %189, i64 0, i64 %192
  %194 = load i32, ptr %10, align 4, !tbaa !5
  %195 = sub nsw i32 %194, 1
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [90 x i32], ptr %193, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = load i32, ptr %10, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  %201 = load i32, ptr %9, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = mul nsw i32 %200, %204
  %206 = add nsw i32 %198, %205
  %207 = load i32, ptr %8, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %208
  %210 = load i32, ptr %9, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [90 x [90 x i32]], ptr %209, i64 0, i64 %211
  %213 = load i32, ptr %10, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [90 x i32], ptr %212, i64 0, i64 %214
  store i32 %206, ptr %215, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %186, %167
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %10, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %10, align 4, !tbaa !5
  br label %133, !llvm.loop !17

220:                                              ; preds = %139
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %9, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %9, align 4, !tbaa !5
  br label %127, !llvm.loop !18

224:                                              ; preds = %131
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %8, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %8, align 4, !tbaa !5
  br label %120, !llvm.loop !19

228:                                              ; preds = %124
  %229 = load i32, ptr @l, align 4, !tbaa !5
  %230 = sub nsw i32 %229, 1
  store i32 %230, ptr @cap, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %231 = load i32, ptr @k, align 4, !tbaa !5
  %232 = sub nsw i32 %231, 1
  store i32 %232, ptr %12, align 4, !tbaa !5
  br label %233

233:                                              ; preds = %307, %228
  %234 = load i32, ptr %12, align 4, !tbaa !5
  %235 = icmp sge i32 %234, 0
  br i1 %235, label %237, label %236

236:                                              ; preds = %233
  store i32 31, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %310

237:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %238 = load i32, ptr @cap, align 4, !tbaa !5
  store i32 %238, ptr %13, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %303, %237
  %240 = load i32, ptr %13, align 4, !tbaa !5
  %241 = icmp sge i32 %240, 0
  br i1 %241, label %243, label %242

242:                                              ; preds = %239
  store i32 34, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %306

243:                                              ; preds = %239
  %244 = load i32, ptr @INF, align 4, !tbaa !5
  store i32 %244, ptr @mini, align 4, !tbaa !5
  store i32 -1, ptr @pos, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %245

245:                                              ; preds = %276, %243
  %246 = load i32, ptr %14, align 4, !tbaa !5
  %247 = load i32, ptr %13, align 4, !tbaa !5
  %248 = icmp slt i32 %246, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %245
  store i32 37, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %279

250:                                              ; preds = %245
  %251 = load i32, ptr %12, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %252
  %254 = load i32, ptr %13, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [90 x [90 x i32]], ptr %253, i64 0, i64 %255
  %257 = load i32, ptr %14, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [90 x i32], ptr %256, i64 0, i64 %258
  %260 = load i32, ptr %259, align 4, !tbaa !5
  %261 = load i32, ptr @mini, align 4, !tbaa !5
  %262 = icmp sle i32 %260, %261
  br i1 %262, label %263, label %275

263:                                              ; preds = %250
  %264 = load i32, ptr %12, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %265
  %267 = load i32, ptr %13, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [90 x [90 x i32]], ptr %266, i64 0, i64 %268
  %270 = load i32, ptr %14, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [90 x i32], ptr %269, i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !5
  store i32 %273, ptr @mini, align 4, !tbaa !5
  %274 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %274, ptr @pos, align 4, !tbaa !5
  br label %275

275:                                              ; preds = %263, %250
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %14, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %14, align 4, !tbaa !5
  br label %245, !llvm.loop !20

279:                                              ; preds = %249
  %280 = load i32, ptr @cap, align 4, !tbaa !5
  %281 = load i32, ptr @pos, align 4, !tbaa !5
  %282 = sub nsw i32 %280, %281
  %283 = sub nsw i32 %282, 1
  store i32 %283, ptr @cap, align 4, !tbaa !5
  br label %284

284:                                              ; preds = %287, %279
  %285 = load i32, ptr @pos, align 4, !tbaa !5
  %286 = icmp sge i32 %285, 0
  br i1 %286, label %287, label %302

287:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %288 = load i32, ptr %13, align 4, !tbaa !5
  %289 = add nsw i32 %288, -1
  store i32 %289, ptr %13, align 4, !tbaa !5
  %290 = sext i32 %288 to i64
  %291 = getelementptr inbounds [100 x i8], ptr @letters, i64 0, i64 %290
  %292 = load i8, ptr %291, align 1, !tbaa !9
  %293 = load i32, ptr %12, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [90 x %"class.std::__cxx11::basic_string"], ptr @_Z6resultB5cxx11, i64 0, i64 %294
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, i8 noundef signext %292, ptr noundef nonnull align 8 dereferenceable(32) %295)
  %296 = load i32, ptr %12, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [90 x %"class.std::__cxx11::basic_string"], ptr @_Z6resultB5cxx11, i64 0, i64 %297
  %299 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %298, ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  %300 = load i32, ptr @pos, align 4, !tbaa !5
  %301 = add nsw i32 %300, -1
  store i32 %301, ptr @pos, align 4, !tbaa !5
  br label %284, !llvm.loop !21

302:                                              ; preds = %284
  store i32 -1, ptr %13, align 4, !tbaa !5
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %13, align 4, !tbaa !5
  %305 = add nsw i32 %304, -1
  store i32 %305, ptr %13, align 4, !tbaa !5
  br label %239, !llvm.loop !22

306:                                              ; preds = %242
  br label %307

307:                                              ; preds = %306
  %308 = load i32, ptr %12, align 4, !tbaa !5
  %309 = add nsw i32 %308, -1
  store i32 %309, ptr %12, align 4, !tbaa !5
  br label %233, !llvm.loop !23

310:                                              ; preds = %236
  %311 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6resultB5cxx11, i64 noundef 0)
  %312 = load i8, ptr %311, align 1, !tbaa !9
  %313 = sext i8 %312 to i32
  %314 = load i8, ptr @first_char, align 1, !tbaa !9
  %315 = sext i8 %314 to i32
  %316 = icmp ne i32 %313, %315
  br i1 %316, label %317, label %320

317:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  %318 = load i8, ptr @first_char, align 1, !tbaa !9
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i8 noundef signext %318, ptr noundef nonnull align 8 dereferenceable(32) @_Z6resultB5cxx11)
  %319 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z6resultB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  br label %320

320:                                              ; preds = %317, %310
  %321 = load i32, ptr @number, align 4, !tbaa !5
  %322 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %321)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %323

323:                                              ; preds = %340, %320
  %324 = load i32, ptr %17, align 4, !tbaa !5
  %325 = load i32, ptr @k, align 4, !tbaa !5
  %326 = icmp slt i32 %324, %325
  br i1 %326, label %328, label %327

327:                                              ; preds = %323
  store i32 42, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %343

328:                                              ; preds = %323
  %329 = load i32, ptr %17, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [100 x i8], ptr @keys, i64 0, i64 %330
  %332 = load i8, ptr %331, align 1, !tbaa !9
  %333 = sext i8 %332 to i32
  %334 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %333)
  %335 = load i32, ptr %17, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [90 x %"class.std::__cxx11::basic_string"], ptr @_Z6resultB5cxx11, i64 0, i64 %336
  %338 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %337) #6
  %339 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %338)
  br label %340

340:                                              ; preds = %328
  %341 = load i32, ptr %17, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %17, align 4, !tbaa !5
  br label %323, !llvm.loop !24

343:                                              ; preds = %327
  %344 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %345 = load i32, ptr @number, align 4, !tbaa !5
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr @number, align 4, !tbaa !5
  br label %19, !llvm.loop !25

347:                                              ; preds = %19
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

declare i32 @printf(ptr noundef, ...) #2

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

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

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

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


; 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::__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] }

@t = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@freq = external dso_local global [90 x i32], align 16
@pos = external dso_local local_unnamed_addr global i32, align 4
@cap = external dso_local local_unnamed_addr global i32, align 4
@number = external dso_local local_unnamed_addr global i32, align 4
@dp = external dso_local global [90 x [90 x [90 x i32]]], align 16
@INF = external dso_local local_unnamed_addr global i32, align 4
@mini = external dso_local global i32, align 4
@keys = external dso_local global [100 x i8], align 16
@letters = external dso_local global [100 x i8], align 16
@first_char = external dso_local local_unnamed_addr global i8, align 1
@_Z6resultB5cxx11 = external dso_local global [90 x %"class.std::__cxx11::basic_string"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
.split132:
  %0 = alloca %"class.std::__cxx11::basic_string", align 8
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %3 = load i32, ptr @number, align 4, !tbaa !5
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %.not133 = icmp sgt i32 %3, %4
  br i1 %.not133, label %._crit_edge135, label %.lr.ph134

.lr.ph134:                                        ; preds = %.split132, %._crit_edge131
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @k, ptr noundef nonnull @l)
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @keys)
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @letters)
  %8 = load i8, ptr @letters, align 16, !tbaa !9
  store i8 %8, ptr @first_char, align 1, !tbaa !9
  %9 = load i32, ptr @l, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %.preheader91

.preheader91:                                     ; preds = %.lr.ph, %.lr.ph134
  %11 = phi i32 [ %9, %.lr.ph134 ], [ %16, %.lr.ph ]
  %12 = load i32, ptr @k, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph98, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph134, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph134 ]
  %14 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %indvars.iv
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %14)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i32, ptr @l, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.next, %17
  br i1 %18, label %.lr.ph, label %.preheader91, !llvm.loop !10

._crit_edge:                                      ; preds = %._crit_edge96.split.us, %.preheader91
  %19 = phi i32 [ %12, %.preheader91 ], [ %34, %._crit_edge96.split.us ]
  %20 = phi i32 [ %11, %.preheader91 ], [ %27, %._crit_edge96.split.us ]
  %21 = load i32, ptr @freq, align 16, !tbaa !5
  store i32 %21, ptr @dp, align 16, !tbaa !5
  %22 = icmp sgt i32 %20, 1
  br i1 %22, label %.lr.ph101.preheader, label %.preheader90

.lr.ph101.preheader:                              ; preds = %._crit_edge
  %wide.trip.count154 = zext nneg i32 %20 to i64
  %23 = add nsw i64 %wide.trip.count154, -1
  %xtraiter = and i64 %23, 1
  %24 = icmp eq i32 %20, 2
  br i1 %24, label %.preheader90.loopexit.unr-lcssa, label %.lr.ph101.preheader.new

.lr.ph101.preheader.new:                          ; preds = %.lr.ph101.preheader
  %unroll_iter = and i64 %23, -2
  br label %.lr.ph101

.lr.ph98:                                         ; preds = %.preheader91, %._crit_edge96.split.us
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %._crit_edge96.split.us ], [ 0, %.preheader91 ]
  %25 = getelementptr inbounds [90 x %"class.std::__cxx11::basic_string"], ptr @_Z6resultB5cxx11, i64 0, i64 %indvars.iv148
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.4)
  %27 = load i32, ptr @l, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.preheader87.lr.ph, label %._crit_edge96.split.us

.preheader87.lr.ph:                               ; preds = %.lr.ph98
  %29 = load i32, ptr @INF, align 4
  %wide.trip.count146 = zext nneg i32 %27 to i64
  %min.iters.check = icmp ult i32 %27, 8
  %n.vec = and i64 %wide.trip.count146, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %29, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count146
  br label %.preheader87.us

.preheader87.us:                                  ; preds = %._crit_edge.us, %.preheader87.lr.ph
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %._crit_edge.us ], [ 0, %.preheader87.lr.ph ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader87.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader87.us ]
  %30 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv148, i64 %indvars.iv143, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  store <4 x i32> %broadcast.splat, ptr %30, align 8, !tbaa !5
  store <4 x i32> %broadcast.splat, ptr %31, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader87.us
  %indvars.iv140.ph = phi i64 [ 0, %.preheader87.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %scalar.ph ], [ %indvars.iv140.ph, %scalar.ph.preheader ]
  %33 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv148, i64 %indvars.iv143, i64 %indvars.iv140
  store i32 %29, ptr %33, align 4, !tbaa !5
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count146
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !15

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond147.not = icmp eq i64 %indvars.iv.next144, %wide.trip.count146
  br i1 %exitcond147.not, label %._crit_edge96.split.us, label %.preheader87.us, !llvm.loop !16

._crit_edge96.split.us:                           ; preds = %._crit_edge.us, %.lr.ph98
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %34 = load i32, ptr @k, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next149, %35
  br i1 %36, label %.lr.ph98, label %._crit_edge, !llvm.loop !17

.preheader90.loopexit.unr-lcssa:                  ; preds = %.lr.ph101, %.lr.ph101.preheader
  %.unr = phi i32 [ %21, %.lr.ph101.preheader ], [ %56, %.lr.ph101 ]
  %indvars.iv151.unr = phi i64 [ 1, %.lr.ph101.preheader ], [ %indvars.iv.next152.1, %.lr.ph101 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader90, label %.lr.ph101.epil

.lr.ph101.epil:                                   ; preds = %.preheader90.loopexit.unr-lcssa
  %37 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %indvars.iv151.unr
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = trunc i64 %indvars.iv151.unr to i32
  %40 = add i32 %39, 1
  %41 = mul nsw i32 %38, %40
  %42 = add nsw i32 %41, %.unr
  %43 = getelementptr inbounds [90 x [90 x i32]], ptr @dp, i64 0, i64 %indvars.iv151.unr, i64 %indvars.iv151.unr
  store i32 %42, ptr %43, align 4, !tbaa !5
  br label %.preheader90

.preheader90:                                     ; preds = %.lr.ph101.epil, %.preheader90.loopexit.unr-lcssa, %._crit_edge
  %44 = icmp sgt i32 %19, 1
  br i1 %44, label %.preheader89, label %.split

.lr.ph101:                                        ; preds = %.lr.ph101, %.lr.ph101.preheader.new
  %45 = phi i32 [ %21, %.lr.ph101.preheader.new ], [ %56, %.lr.ph101 ]
  %indvars.iv151 = phi i64 [ 1, %.lr.ph101.preheader.new ], [ %indvars.iv.next152.1, %.lr.ph101 ]
  %niter = phi i64 [ 0, %.lr.ph101.preheader.new ], [ %niter.next.1, %.lr.ph101 ]
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %46 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %indvars.iv151
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = trunc nuw nsw i64 %indvars.iv.next152 to i32
  %49 = mul nsw i32 %47, %48
  %50 = add nsw i32 %49, %45
  %51 = getelementptr inbounds [90 x [90 x i32]], ptr @dp, i64 0, i64 %indvars.iv151, i64 %indvars.iv151
  store i32 %50, ptr %51, align 4, !tbaa !5
  %indvars.iv.next152.1 = add nuw nsw i64 %indvars.iv151, 2
  %52 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %indvars.iv.next152
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = trunc nuw nsw i64 %indvars.iv.next152.1 to i32
  %55 = mul nsw i32 %53, %54
  %56 = add nsw i32 %55, %50
  %57 = getelementptr inbounds [90 x [90 x i32]], ptr @dp, i64 0, i64 %indvars.iv.next152, i64 %indvars.iv.next152
  store i32 %56, ptr %57, align 4, !tbaa !5
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader90.loopexit.unr-lcssa, label %.lr.ph101, !llvm.loop !18

.preheader89:                                     ; preds = %.preheader90, %._crit_edge108
  %58 = phi i32 [ %72, %._crit_edge108 ], [ %19, %.preheader90 ]
  %59 = phi i32 [ %73, %._crit_edge108 ], [ %20, %.preheader90 ]
  %60 = phi i32 [ %74, %._crit_edge108 ], [ %20, %.preheader90 ]
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %._crit_edge108 ], [ 1, %.preheader90 ]
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv170, %61
  br i1 %62, label %.preheader.lr.ph, label %._crit_edge108

.preheader.lr.ph:                                 ; preds = %.preheader89
  %63 = add nsw i64 %indvars.iv170, -1
  br label %.lr.ph105

.split:                                           ; preds = %._crit_edge108, %.preheader90
  %64 = phi i32 [ %20, %.preheader90 ], [ %73, %._crit_edge108 ]
  %.lcssa = phi i32 [ %19, %.preheader90 ], [ %72, %._crit_edge108 ]
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr @cap, align 4, !tbaa !5
  %66 = icmp sgt i32 %.lcssa, 0
  %67 = icmp sgt i32 %64, 0
  %or.cond = select i1 %66, i1 %67, i1 false
  br i1 %or.cond, label %.lr.ph126.split.preheader, label %._crit_edge127

.lr.ph126.split.preheader:                        ; preds = %.split
  %.073124 = add nsw i32 %.lcssa, -1
  %68 = zext nneg i32 %.073124 to i64
  br label %.lr.ph126.split

.lr.ph105:                                        ; preds = %._crit_edge106, %.preheader.lr.ph
  %indvars.iv172 = phi i64 [ %indvars.iv170, %.preheader.lr.ph ], [ %indvars.iv.next173, %._crit_edge106 ]
  %indvars.iv168 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next169, %._crit_edge106 ]
  %69 = add nsw i64 %indvars.iv172, -1
  %70 = getelementptr inbounds [90 x i32], ptr @freq, i64 0, i64 %indvars.iv172
  %71 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv170, i64 %indvars.iv172
  br label %79

._crit_edge108.loopexit:                          ; preds = %._crit_edge106
  %.pre192 = load i32, ptr @k, align 4, !tbaa !5
  br label %._crit_edge108

._crit_edge108:                                   ; preds = %._crit_edge108.loopexit, %.preheader89
  %72 = phi i32 [ %.pre192, %._crit_edge108.loopexit ], [ %58, %.preheader89 ]
  %73 = phi i32 [ %.pre, %._crit_edge108.loopexit ], [ %59, %.preheader89 ]
  %74 = phi i32 [ %.pre, %._crit_edge108.loopexit ], [ %60, %.preheader89 ]
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %75 = sext i32 %72 to i64
  %76 = icmp slt i64 %indvars.iv.next171, %75
  br i1 %76, label %.preheader89, label %.split, !llvm.loop !19

._crit_edge106:                                   ; preds = %100
  %.pre = load i32, ptr @l, align 4, !tbaa !5
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %77 = sext i32 %.pre to i64
  %78 = icmp slt i64 %indvars.iv.next173, %77
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  br i1 %78, label %.lr.ph105, label %._crit_edge108.loopexit, !llvm.loop !20

79:                                               ; preds = %.lr.ph105, %100
  %indvars.iv161 = phi i64 [ 0, %.lr.ph105 ], [ %indvars.iv.next162.pre-phi, %100 ]
  %80 = icmp eq i64 %indvars.iv161, 0
  br i1 %80, label %81, label %90

81:                                               ; preds = %79
  %82 = load i32, ptr @INF, align 4, !tbaa !5
  store i32 %82, ptr @mini, align 4, !tbaa !5
  br label %86

83:                                               ; preds = %86
  %84 = load i32, ptr %70, align 4, !tbaa !5
  %85 = add nsw i32 %84, %89
  store i32 %85, ptr %71, align 8, !tbaa !5
  br label %100

86:                                               ; preds = %81, %86
  %indvars.iv156 = phi i64 [ 0, %81 ], [ %indvars.iv.next157, %86 ]
  %87 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %63, i64 %69, i64 %indvars.iv156
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @mini, ptr noundef nonnull align 4 dereferenceable(4) %87)
  %89 = load i32, ptr %88, align 4, !tbaa !5
  store i32 %89, ptr @mini, align 4, !tbaa !5
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %exitcond160.not = icmp eq i64 %indvars.iv.next157, %indvars.iv172
  br i1 %exitcond160.not, label %83, label %86, !llvm.loop !21

90:                                               ; preds = %79
  %91 = add nsw i64 %indvars.iv161, -1
  %92 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv170, i64 %69, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = add nuw nsw i64 %indvars.iv161, 1
  %95 = load i32, ptr %70, align 4, !tbaa !5
  %96 = trunc nuw nsw i64 %94 to i32
  %97 = mul nsw i32 %95, %96
  %98 = add nsw i32 %97, %93
  %99 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv170, i64 %indvars.iv172, i64 %indvars.iv161
  store i32 %98, ptr %99, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %83, %90
  %indvars.iv.next162.pre-phi = phi i64 [ 1, %83 ], [ %94, %90 ]
  %exitcond167.not = icmp eq i64 %indvars.iv.next162.pre-phi, %indvars.iv168
  br i1 %exitcond167.not, label %._crit_edge106, label %79, !llvm.loop !22

.loopexit88:                                      ; preds = %.lr.ph117, %._crit_edge114.thread, %._crit_edge114, %.lr.ph126.split
  %indvars.iv.next187 = add nsw i64 %indvars.iv186, -1
  %101 = icmp sgt i64 %indvars.iv186, 0
  br i1 %101, label %.lr.ph126.split, label %._crit_edge127, !llvm.loop !23

._crit_edge127:                                   ; preds = %.loopexit88, %.split
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6resultB5cxx11, i64 noundef 0)
  %103 = load i8, ptr %102, align 1, !tbaa !9
  %104 = load i8, ptr @first_char, align 1, !tbaa !9
  %.not84 = icmp eq i8 %103, %104
  br i1 %.not84, label %144, label %142

.lr.ph126.split:                                  ; preds = %.lr.ph126.split.preheader, %.loopexit88
  %indvars.iv186 = phi i64 [ %68, %.lr.ph126.split.preheader ], [ %indvars.iv.next187, %.loopexit88 ]
  %105 = load i32, ptr @cap, align 4, !tbaa !5
  %106 = icmp sgt i32 %105, -1
  br i1 %106, label %.lr.ph120, label %.loopexit88

.lr.ph120:                                        ; preds = %.lr.ph126.split
  %107 = getelementptr inbounds [90 x %"class.std::__cxx11::basic_string"], ptr @_Z6resultB5cxx11, i64 0, i64 %indvars.iv186
  %108 = load i32, ptr @INF, align 4, !tbaa !5
  store i32 %108, ptr @mini, align 4, !tbaa !5
  store i32 -1, ptr @pos, align 4, !tbaa !5
  %.not136 = icmp eq i32 %105, 0
  br i1 %.not136, label %._crit_edge114.thread, label %.lr.ph113

._crit_edge114.thread:                            ; preds = %.lr.ph120
  store i32 %105, ptr @cap, align 4, !tbaa !5
  br label %.loopexit88

.lr.ph113:                                        ; preds = %.lr.ph120
  %109 = zext nneg i32 %105 to i64
  %xtraiter215 = and i64 %109, 1
  %110 = icmp eq i32 %105, 1
  br i1 %110, label %._crit_edge114.unr-lcssa, label %.lr.ph113.new

.lr.ph113.new:                                    ; preds = %.lr.ph113
  %unroll_iter220 = and i64 %109, 2147483646
  br label %119

._crit_edge114.unr-lcssa:                         ; preds = %133, %.lr.ph113
  %.lcssa214.ph = phi i32 [ poison, %.lr.ph113 ], [ %134, %133 ]
  %.unr216 = phi i32 [ -1, %.lr.ph113 ], [ %134, %133 ]
  %indvars.iv178.unr = phi i64 [ 0, %.lr.ph113 ], [ %indvars.iv.next179.1, %133 ]
  %.unr217 = phi i32 [ %108, %.lr.ph113 ], [ %135, %133 ]
  %lcmp.mod218.not = icmp eq i64 %xtraiter215, 0
  br i1 %lcmp.mod218.not, label %._crit_edge114, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge114.unr-lcssa
  %111 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv186, i64 %109, i64 %indvars.iv178.unr
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %.not85.epil = icmp sgt i32 %112, %.unr217
  br i1 %.not85.epil, label %._crit_edge114, label %113

113:                                              ; preds = %.epil.preheader
  store i32 %112, ptr @mini, align 4, !tbaa !5
  %114 = trunc nuw nsw i64 %indvars.iv178.unr to i32
  store i32 %114, ptr @pos, align 4, !tbaa !5
  br label %._crit_edge114

._crit_edge114:                                   ; preds = %.epil.preheader, %113, %._crit_edge114.unr-lcssa
  %.lcssa214 = phi i32 [ %.lcssa214.ph, %._crit_edge114.unr-lcssa ], [ %.unr216, %.epil.preheader ], [ %114, %113 ]
  %115 = xor i32 %.lcssa214, -1
  %116 = add i32 %105, %115
  store i32 %116, ptr @cap, align 4, !tbaa !5
  %117 = icmp sgt i32 %.lcssa214, -1
  br i1 %117, label %.lr.ph117.preheader, label %.loopexit88

.lr.ph117.preheader:                              ; preds = %._crit_edge114
  %118 = zext nneg i32 %105 to i64
  br label %.lr.ph117

119:                                              ; preds = %133, %.lr.ph113.new
  %120 = phi i32 [ -1, %.lr.ph113.new ], [ %134, %133 ]
  %indvars.iv178 = phi i64 [ 0, %.lr.ph113.new ], [ %indvars.iv.next179.1, %133 ]
  %121 = phi i32 [ %108, %.lr.ph113.new ], [ %135, %133 ]
  %niter221 = phi i64 [ 0, %.lr.ph113.new ], [ %niter221.next.1, %133 ]
  %122 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv186, i64 %109, i64 %indvars.iv178
  %123 = load i32, ptr %122, align 8, !tbaa !5
  %.not85 = icmp sgt i32 %123, %121
  br i1 %.not85, label %126, label %124

124:                                              ; preds = %119
  store i32 %123, ptr @mini, align 4, !tbaa !5
  %125 = trunc nuw nsw i64 %indvars.iv178 to i32
  store i32 %125, ptr @pos, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %119, %124
  %127 = phi i32 [ %120, %119 ], [ %125, %124 ]
  %128 = phi i32 [ %121, %119 ], [ %123, %124 ]
  %indvars.iv.next179 = or disjoint i64 %indvars.iv178, 1
  %129 = getelementptr inbounds [90 x [90 x [90 x i32]]], ptr @dp, i64 0, i64 %indvars.iv186, i64 %109, i64 %indvars.iv.next179
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %.not85.1 = icmp sgt i32 %130, %128
  br i1 %.not85.1, label %133, label %131

131:                                              ; preds = %126
  store i32 %130, ptr @mini, align 4, !tbaa !5
  %132 = trunc nuw nsw i64 %indvars.iv.next179 to i32
  store i32 %132, ptr @pos, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %131, %126
  %134 = phi i32 [ %127, %126 ], [ %132, %131 ]
  %135 = phi i32 [ %128, %126 ], [ %130, %131 ]
  %indvars.iv.next179.1 = add nuw nsw i64 %indvars.iv178, 2
  %niter221.next.1 = add i64 %niter221, 2
  %niter221.ncmp.1 = icmp eq i64 %niter221.next.1, %unroll_iter220
  br i1 %niter221.ncmp.1, label %._crit_edge114.unr-lcssa, label %119, !llvm.loop !25

.lr.ph117:                                        ; preds = %.lr.ph117.preheader, %.lr.ph117
  %indvars.iv183 = phi i64 [ %118, %.lr.ph117.preheader ], [ %indvars.iv.next184, %.lr.ph117 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %0) #6
  %indvars.iv.next184 = add nsw i64 %indvars.iv183, -1
  %136 = getelementptr inbounds [100 x i8], ptr @letters, i64 0, i64 %indvars.iv183
  %137 = load i8, ptr %136, align 1, !tbaa !9
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %0, i8 noundef signext %137, ptr noundef nonnull align 8 dereferenceable(32) %107)
  %138 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %107, ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %0) #6
  %139 = load i32, ptr @pos, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr @pos, align 4, !tbaa !5
  %141 = icmp sgt i32 %139, 0
  br i1 %141, label %.lr.ph117, label %.loopexit88, !llvm.loop !26

142:                                              ; preds = %._crit_edge127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %1, i8 noundef signext %104, ptr noundef nonnull align 8 dereferenceable(32) @_Z6resultB5cxx11)
  %143 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z6resultB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  br label %144

144:                                              ; preds = %142, %._crit_edge127
  %145 = load i32, ptr @number, align 4, !tbaa !5
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %145)
  %147 = load i32, ptr @k, align 4, !tbaa !5
  %148 = icmp sgt i32 %147, 0
  br i1 %148, label %.lr.ph130, label %._crit_edge131

._crit_edge131:                                   ; preds = %.lr.ph130, %144
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %150 = load i32, ptr @number, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr @number, align 4, !tbaa !5
  %152 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %150, %152
  br i1 %.not.not, label %.lr.ph134, label %._crit_edge135, !llvm.loop !27

.lr.ph130:                                        ; preds = %144, %.lr.ph130
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %.lr.ph130 ], [ 0, %144 ]
  %153 = getelementptr inbounds [100 x i8], ptr @keys, i64 0, i64 %indvars.iv189
  %154 = load i8, ptr %153, align 1, !tbaa !9
  %155 = sext i8 %154 to i32
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %155)
  %157 = getelementptr inbounds [90 x %"class.std::__cxx11::basic_string"], ptr @_Z6resultB5cxx11, i64 0, i64 %indvars.iv189
  %158 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %157) #6
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %158)
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %160 = load i32, ptr @k, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next190, %161
  br i1 %162, label %.lr.ph130, label %._crit_edge131, !llvm.loop !28

._crit_edge135:                                   ; preds = %._crit_edge131, %.split132
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !11, !14, !13}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11, !24}
!24 = !{!"llvm.loop.unswitch.partial.disable"}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass