; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Codesprints 2016/Codesprint Aug/Problem D/D2.ll (Z5solvev)

; 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"

@a = external dso_local global [1010 x i8], align 16
@b = external dso_local global [1010 x i8], align 16
@dp = external dso_local global [1010 x [1010 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %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 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @a, ptr noundef @b)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  %10 = call i64 @strlen(ptr noundef @a) #5
  %11 = trunc i64 %10 to i32
  store i32 %11, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %12 = call i64 @strlen(ptr noundef @b) #5
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr %2, align 4, !tbaa !5
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %17, label %19

17:                                               ; preds = %0
  %18 = call i32 @puts(ptr noundef @.str.1)
  store i32 1, ptr %3, align 4
  br label %283

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

20:                                               ; preds = %42, %19
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %45

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

26:                                               ; preds = %38, %25
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %41

31:                                               ; preds = %26
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %33
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [1010 x i32], ptr %34, i64 0, i64 %36
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %31
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %5, align 4, !tbaa !5
  br label %26, !llvm.loop !9

41:                                               ; preds = %30
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %4, align 4, !tbaa !5
  br label %20, !llvm.loop !11

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

46:                                               ; preds = %264, %45
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

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

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

52:                                               ; preds = %260, %51
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %263

57:                                               ; preds = %52
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1010 x i8], ptr @a, i64 0, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !12
  %62 = sext i8 %61 to i32
  %63 = icmp sle i32 %62, 90
  br i1 %63, label %64, label %145

64:                                               ; preds = %57
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %6, align 4, !tbaa !5
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [1010 x i8], ptr @a, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !12
  %71 = sext i8 %70 to i32
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [1010 x i8], ptr @b, i64 0, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !12
  %76 = sext i8 %75 to i32
  %77 = icmp eq i32 %71, %76
  br i1 %77, label %78, label %137

78:                                               ; preds = %64
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sub nsw i32 %79, 1
  %81 = icmp sge i32 %80, 0
  br i1 %81, label %82, label %102

82:                                               ; preds = %78
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = sub nsw i32 %83, 1
  %85 = icmp sge i32 %84, 0
  br i1 %85, label %86, label %102

86:                                               ; preds = %82
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = sub nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %89
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1010 x i32], ptr %90, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %97
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1010 x i32], ptr %98, i64 0, i64 %100
  store i32 %95, ptr %101, align 4, !tbaa !5
  br label %136

102:                                              ; preds = %82, %78
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  %105 = icmp sge i32 %104, 0
  br i1 %105, label %106, label %116

106:                                              ; preds = %102
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = icmp eq i32 %107, 1
  %109 = zext i1 %108 to i32
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %111
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [1010 x i32], ptr %112, i64 0, i64 %114
  store i32 %109, ptr %115, align 4, !tbaa !5
  br label %135

116:                                              ; preds = %102
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sub nsw i32 %117, 1
  %119 = icmp sge i32 %118, 0
  br i1 %119, label %120, label %127

120:                                              ; preds = %116
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %122
  %124 = load i32, ptr %8, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [1010 x i32], ptr %123, i64 0, i64 %125
  store i32 0, ptr %126, align 4, !tbaa !5
  br label %134

127:                                              ; preds = %116
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %129
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [1010 x i32], ptr %130, i64 0, i64 %132
  store i32 1, ptr %133, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %127, %120
  br label %135

135:                                              ; preds = %134, %106
  br label %136

136:                                              ; preds = %135, %86
  br label %144

137:                                              ; preds = %64
  %138 = load i32, ptr %7, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %139
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [1010 x i32], ptr %140, i64 0, i64 %142
  store i32 0, ptr %143, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %137, %136
  br label %259

145:                                              ; preds = %57
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [1010 x i8], ptr @a, i64 0, i64 %147
  %149 = load i8, ptr %148, align 1, !tbaa !12
  %150 = sext i8 %149 to i32
  %151 = sub nsw i32 %150, 32
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [1010 x i8], ptr @b, i64 0, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !12
  %156 = sext i8 %155 to i32
  %157 = icmp eq i32 %151, %156
  br i1 %157, label %158, label %238

158:                                              ; preds = %145
  %159 = load i32, ptr %7, align 4, !tbaa !5
  %160 = sub nsw i32 %159, 1
  %161 = icmp sge i32 %160, 0
  br i1 %161, label %162, label %182

162:                                              ; preds = %158
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = sub nsw i32 %163, 1
  %165 = icmp sge i32 %164, 0
  br i1 %165, label %166, label %182

166:                                              ; preds = %162
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = sub nsw i32 %167, 1
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %169
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [1010 x i32], ptr %170, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = load i32, ptr %7, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %177
  %179 = load i32, ptr %8, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [1010 x i32], ptr %178, i64 0, i64 %180
  store i32 %175, ptr %181, align 4, !tbaa !5
  br label %216

182:                                              ; preds = %162, %158
  %183 = load i32, ptr %7, align 4, !tbaa !5
  %184 = sub nsw i32 %183, 1
  %185 = icmp sge i32 %184, 0
  br i1 %185, label %186, label %196

186:                                              ; preds = %182
  %187 = load i32, ptr %6, align 4, !tbaa !5
  %188 = icmp eq i32 %187, 0
  %189 = zext i1 %188 to i32
  %190 = load i32, ptr %7, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %191
  %193 = load i32, ptr %8, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [1010 x i32], ptr %192, i64 0, i64 %194
  store i32 %189, ptr %195, align 4, !tbaa !5
  br label %215

196:                                              ; preds = %182
  %197 = load i32, ptr %8, align 4, !tbaa !5
  %198 = sub nsw i32 %197, 1
  %199 = icmp sge i32 %198, 0
  br i1 %199, label %200, label %207

200:                                              ; preds = %196
  %201 = load i32, ptr %7, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %202
  %204 = load i32, ptr %8, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [1010 x i32], ptr %203, i64 0, i64 %205
  store i32 0, ptr %206, align 4, !tbaa !5
  br label %214

207:                                              ; preds = %196
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %209
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [1010 x i32], ptr %210, i64 0, i64 %212
  store i32 1, ptr %213, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %207, %200
  br label %215

215:                                              ; preds = %214, %186
  br label %216

216:                                              ; preds = %215, %166
  %217 = load i32, ptr %7, align 4, !tbaa !5
  %218 = sub nsw i32 %217, 1
  %219 = icmp sge i32 %218, 0
  br i1 %219, label %220, label %237

220:                                              ; preds = %216
  %221 = load i32, ptr %7, align 4, !tbaa !5
  %222 = sub nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %223
  %225 = load i32, ptr %8, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [1010 x i32], ptr %224, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = load i32, ptr %7, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %230
  %232 = load i32, ptr %8, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [1010 x i32], ptr %231, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = or i32 %235, %228
  store i32 %236, ptr %234, align 4, !tbaa !5
  br label %237

237:                                              ; preds = %220, %216
  br label %258

238:                                              ; preds = %145
  %239 = load i32, ptr %7, align 4, !tbaa !5
  %240 = sub nsw i32 %239, 1
  %241 = icmp sge i32 %240, 0
  br i1 %241, label %242, label %257

242:                                              ; preds = %238
  %243 = load i32, ptr %7, align 4, !tbaa !5
  %244 = sub nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %245
  %247 = load i32, ptr %8, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [1010 x i32], ptr %246, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = load i32, ptr %7, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %252
  %254 = load i32, ptr %8, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [1010 x i32], ptr %253, i64 0, i64 %255
  store i32 %250, ptr %256, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %242, %238
  br label %258

258:                                              ; preds = %257, %237
  br label %259

259:                                              ; preds = %258, %144
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %8, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %8, align 4, !tbaa !5
  br label %52, !llvm.loop !13

263:                                              ; preds = %56
  br label %264

264:                                              ; preds = %263
  %265 = load i32, ptr %7, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %7, align 4, !tbaa !5
  br label %46, !llvm.loop !14

267:                                              ; preds = %50
  %268 = load i32, ptr %1, align 4, !tbaa !5
  %269 = sub nsw i32 %268, 1
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %270
  %272 = load i32, ptr %2, align 4, !tbaa !5
  %273 = sub nsw i32 %272, 1
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [1010 x i32], ptr %271, i64 0, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !5
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %280

278:                                              ; preds = %267
  %279 = call i32 @puts(ptr noundef @.str.2)
  br label %282

280:                                              ; preds = %267
  %281 = call i32 @puts(ptr noundef @.str.1)
  br label %282

282:                                              ; preds = %280, %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  store i32 0, ptr %3, align 4
  br label %283

283:                                              ; preds = %282, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  %284 = load i32, ptr %3, align 4
  switch i32 %284, label %286 [
    i32 0, label %285
    i32 1, label %285
  ]

285:                                              ; preds = %283, %283
  ret void

286:                                              ; preds = %283
  unreachable
}

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare i32 @puts(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; 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"

@a = external dso_local global [1010 x i8], align 16
@b = external dso_local global [1010 x i8], align 16
@dp = external dso_local local_unnamed_addr global [1010 x [1010 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %2 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @a) #4
  %3 = trunc i64 %2 to i32
  %4 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @b) #4
  %5 = trunc i64 %4 to i32
  %6 = icmp slt i32 %3, %5
  br i1 %6, label %107, label %.preheader91

.preheader91:                                     ; preds = %0
  %7 = icmp sgt i32 %3, 0
  %8 = icmp sgt i32 %5, 0
  %or.cond = and i1 %7, %8
  br i1 %or.cond, label %.preheader90.us.preheader, label %._crit_edge100

.preheader90.us.preheader:                        ; preds = %.preheader91
  %9 = shl i64 %4, 2
  %10 = and i64 %9, 8589934588
  %wide.trip.count = and i64 %2, 2147483647
  %11 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %2, 7
  %12 = icmp ult i64 %11, 7
  br i1 %12, label %.preheader89.unr-lcssa, label %.preheader90.us.preheader.new

.preheader90.us.preheader.new:                    ; preds = %.preheader90.us.preheader
  %unroll_iter = sub nsw i64 %wide.trip.count, %xtraiter
  br label %.preheader90.us

.preheader90.us:                                  ; preds = %.preheader90.us, %.preheader90.us.preheader.new
  %indvar = phi i64 [ 0, %.preheader90.us.preheader.new ], [ %indvar.next.7, %.preheader90.us ]
  %niter = phi i64 [ 0, %.preheader90.us.preheader.new ], [ %niter.next.7, %.preheader90.us ]
  %13 = mul nuw nsw i64 %indvar, 4040
  %scevgep = getelementptr i8, ptr @dp, i64 %13
  tail call void @llvm.memset.p0.i64(ptr align 16 %scevgep, i8 0, i64 %10, i1 false), !tbaa !5
  %14 = mul nuw i64 %indvar, 4040
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 4040), i64 %14
  tail call void @llvm.memset.p0.i64(ptr align 8 %gep, i8 0, i64 %10, i1 false), !tbaa !5
  %15 = mul nuw i64 %indvar, 4040
  %gep163 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 8080), i64 %15
  tail call void @llvm.memset.p0.i64(ptr align 16 %gep163, i8 0, i64 %10, i1 false), !tbaa !5
  %16 = mul nuw i64 %indvar, 4040
  %gep164 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 12120), i64 %16
  tail call void @llvm.memset.p0.i64(ptr align 8 %gep164, i8 0, i64 %10, i1 false), !tbaa !5
  %17 = mul nuw i64 %indvar, 4040
  %gep165 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 16160), i64 %17
  tail call void @llvm.memset.p0.i64(ptr align 16 %gep165, i8 0, i64 %10, i1 false), !tbaa !5
  %18 = mul nuw i64 %indvar, 4040
  %gep166 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 20200), i64 %18
  tail call void @llvm.memset.p0.i64(ptr align 8 %gep166, i8 0, i64 %10, i1 false), !tbaa !5
  %19 = mul nuw i64 %indvar, 4040
  %gep167 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 24240), i64 %19
  tail call void @llvm.memset.p0.i64(ptr align 16 %gep167, i8 0, i64 %10, i1 false), !tbaa !5
  %20 = mul nuw i64 %indvar, 4040
  %gep168 = getelementptr i8, ptr getelementptr (i8, ptr @dp, i64 28280), i64 %20
  tail call void @llvm.memset.p0.i64(ptr align 8 %gep168, i8 0, i64 %10, i1 false), !tbaa !5
  %indvar.next.7 = add nuw nsw i64 %indvar, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader89.unr-lcssa, label %.preheader90.us, !llvm.loop !9

.preheader89.unr-lcssa:                           ; preds = %.preheader90.us, %.preheader90.us.preheader
  %indvar.unr = phi i64 [ 0, %.preheader90.us.preheader ], [ %indvar.next.7, %.preheader90.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader89, label %.preheader90.us.epil

.preheader90.us.epil:                             ; preds = %.preheader89.unr-lcssa, %.preheader90.us.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader90.us.epil ], [ %indvar.unr, %.preheader89.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader90.us.epil ], [ 0, %.preheader89.unr-lcssa ]
  %21 = mul nuw nsw i64 %indvar.epil, 4040
  %scevgep.epil = getelementptr i8, ptr @dp, i64 %21
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep.epil, i8 0, i64 %10, i1 false), !tbaa !5
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader89, label %.preheader90.us.epil, !llvm.loop !11

.preheader89:                                     ; preds = %.preheader90.us.epil, %.preheader89.unr-lcssa
  br i1 %7, label %.preheader.us.preheader, label %._crit_edge100

.preheader.us.preheader:                          ; preds = %.preheader89
  %wide.trip.count139 = and i64 %2, 2147483647
  %wide.trip.count121 = and i64 %4, 2147483647
  %22 = load i8, ptr @b, align 16
  %23 = sext i8 %22 to i32
  %exitcond122.peel.not = icmp eq i64 %wide.trip.count121, 1
  %wide.trip.count127 = and i64 %4, 2147483647
  %exitcond128.peel.not = icmp eq i64 %wide.trip.count127, 1
  %wide.trip.count133 = and i64 %4, 2147483647
  %exitcond134.peel.not = icmp eq i64 %wide.trip.count133, 1
  %24 = add nsw i64 %wide.trip.count121, -1
  %25 = add nsw i64 %wide.trip.count121, -1
  %xtraiter156 = and i64 %25, 1
  %26 = icmp eq i64 %wide.trip.count121, 2
  %unroll_iter160 = and i64 %25, -2
  %lcmp.mod158.not = icmp eq i64 %xtraiter156, 0
  %min.iters.check = icmp ult i64 %24, 8
  %n.vec = and i64 %24, -8
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %24, %n.vec
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us105
  %indvars.iv136 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next137, %._crit_edge.us105 ]
  %.06798.us = phi i32 [ 0, %.preheader.us.preheader ], [ %.us-phi.us, %._crit_edge.us105 ]
  %27 = getelementptr inbounds [1010 x i8], ptr @a, i64 0, i64 %indvars.iv136
  %28 = load i8, ptr %27, align 1, !tbaa !13
  %29 = icmp slt i8 %28, 91
  %30 = zext nneg i8 %28 to i32
  %31 = add nsw i32 %30, -32
  %.not81.us = icmp eq i64 %indvars.iv136, 0
  %32 = add nsw i64 %indvars.iv136, -1
  br i1 %29, label %.lr.ph.split.us.us, label %.lr.ph.split.us104

.peel.next:                                       ; preds = %.thread.us102.peel, %.thread.us102
  %indvars.iv = phi i64 [ %indvars.iv.next, %.thread.us102 ], [ 1, %.thread.us102.peel ]
  %33 = getelementptr inbounds [1010 x i8], ptr @b, i64 0, i64 %indvars.iv
  %34 = load i8, ptr %33, align 1, !tbaa !13
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %31, %35
  br i1 %36, label %42, label %37

37:                                               ; preds = %.peel.next
  br i1 %.not81.us, label %.thread.us102, label %38

38:                                               ; preds = %37
  %39 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 %indvars.iv
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 %indvars.iv
  store i32 %40, ptr %41, align 4, !tbaa !5
  br label %.thread.us102

42:                                               ; preds = %.peel.next
  br i1 %.not81.us, label %49, label %43

43:                                               ; preds = %42
  %44 = add nsw i64 %indvars.iv, -1
  %45 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 %indvars.iv
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  %47 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 %indvars.iv
  %48 = or i32 %46, %.pre
  store i32 %48, ptr %47, align 4, !tbaa !5
  br label %.thread.us102

49:                                               ; preds = %42
  %50 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 0, i64 %indvars.iv
  store i32 0, ptr %50, align 4, !tbaa !5
  br label %.thread.us102

.thread.us102:                                    ; preds = %49, %43, %38, %37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond122.not = icmp eq i64 %indvars.iv.next, %wide.trip.count121
  br i1 %exitcond122.not, label %._crit_edge.us105, label %.peel.next, !llvm.loop !14

.lr.ph.split.us104:                               ; preds = %.preheader.us
  %51 = icmp eq i32 %.06798.us, 0
  %52 = zext i1 %51 to i32
  %53 = icmp eq i32 %31, %23
  br i1 %53, label %59, label %54

54:                                               ; preds = %.lr.ph.split.us104
  br i1 %.not81.us, label %.thread.us102.peel, label %55

55:                                               ; preds = %54
  %56 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 0
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 0
  store i32 %57, ptr %58, align 8, !tbaa !5
  br label %.thread.us102.peel

59:                                               ; preds = %.lr.ph.split.us104
  br i1 %.not81.us, label %65, label %60

60:                                               ; preds = %59
  %61 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 0
  %62 = load i32, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 0
  %64 = or i32 %62, %52
  store i32 %64, ptr %63, align 8, !tbaa !5
  br label %.thread.us102.peel

65:                                               ; preds = %59
  store i32 1, ptr @dp, align 16, !tbaa !5
  br label %.thread.us102.peel

.thread.us102.peel:                               ; preds = %65, %60, %55, %54
  br i1 %exitcond122.peel.not, label %._crit_edge.us105, label %.peel.next

._crit_edge.us105.loopexit:                       ; preds = %.lr.ph.split.us.split.us.us, %middle.block, %.lr.ph.split.us.split.us.us.preheader
  %66 = add i32 %.06798.us, %5
  br label %._crit_edge.us105

._crit_edge.us105.loopexit154.unr-lcssa:          ; preds = %.thread.us.us109.1, %.lr.ph.split.us.split.us112.preheader153
  %.lcssa.ph = phi i32 [ poison, %.lr.ph.split.us.split.us112.preheader153 ], [ %92, %.thread.us.us109.1 ]
  %indvars.iv124.unr = phi i64 [ 1, %.lr.ph.split.us.split.us112.preheader153 ], [ %indvars.iv.next125.1, %.thread.us.us109.1 ]
  %.194.us.us107.unr = phi i32 [ %76, %.lr.ph.split.us.split.us112.preheader153 ], [ %92, %.thread.us.us109.1 ]
  br i1 %lcmp.mod158.not, label %._crit_edge.us105, label %.lr.ph.split.us.split.us112.epil

.lr.ph.split.us.split.us112.epil:                 ; preds = %._crit_edge.us105.loopexit154.unr-lcssa
  %67 = add nsw i32 %.194.us.us107.unr, 1
  %68 = getelementptr inbounds [1010 x i8], ptr @b, i64 0, i64 %indvars.iv124.unr
  %69 = load i8, ptr %68, align 1, !tbaa !13
  %70 = icmp eq i8 %28, %69
  br i1 %70, label %71, label %.thread.us.us109.epil

71:                                               ; preds = %.lr.ph.split.us.split.us112.epil
  %72 = add nsw i64 %indvars.iv124.unr, -1
  %73 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  br label %.thread.us.us109.epil

.thread.us.us109.epil:                            ; preds = %71, %.lr.ph.split.us.split.us112.epil
  %.sink146.epil = phi i32 [ %74, %71 ], [ 0, %.lr.ph.split.us.split.us112.epil ]
  %75 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 %indvars.iv124.unr
  store i32 %.sink146.epil, ptr %75, align 4, !tbaa !5
  br label %._crit_edge.us105

._crit_edge.us105:                                ; preds = %.thread.us102, %.thread.us.us109.epil, %._crit_edge.us105.loopexit154.unr-lcssa, %.thread.us102.peel, %.lr.ph.split.us.split.us112.preheader, %._crit_edge.us105.loopexit
  %.us-phi.us = phi i32 [ %66, %._crit_edge.us105.loopexit ], [ %76, %.lr.ph.split.us.split.us112.preheader ], [ %.06798.us, %.thread.us102.peel ], [ %.lcssa.ph, %._crit_edge.us105.loopexit154.unr-lcssa ], [ %67, %.thread.us.us109.epil ], [ %.06798.us, %.thread.us102 ]
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %exitcond140.not = icmp eq i64 %indvars.iv.next137, %wide.trip.count139
  br i1 %exitcond140.not, label %._crit_edge100, label %.preheader.us, !llvm.loop !16

.lr.ph.split.us.us:                               ; preds = %.preheader.us
  br i1 %.not81.us, label %.lr.ph.split.us.split.us.us.preheader, label %.lr.ph.split.us.split.us112.preheader

.lr.ph.split.us.split.us112.preheader:            ; preds = %.lr.ph.split.us.us
  %76 = add nsw i32 %.06798.us, 1
  %77 = icmp eq i8 %28, %22
  %78 = icmp eq i32 %.06798.us, 0
  %narrow = select i1 %77, i1 %78, i1 false
  %.sink = zext i1 %narrow to i32
  %79 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 0
  store i32 %.sink, ptr %79, align 8, !tbaa !5
  br i1 %exitcond128.peel.not, label %._crit_edge.us105, label %.lr.ph.split.us.split.us112.preheader153

.lr.ph.split.us.split.us112.preheader153:         ; preds = %.lr.ph.split.us.split.us112.preheader
  br i1 %26, label %._crit_edge.us105.loopexit154.unr-lcssa, label %.lr.ph.split.us.split.us112

.lr.ph.split.us.split.us.us.preheader:            ; preds = %.lr.ph.split.us.us
  %80 = icmp eq i8 %28, %22
  %spec.select = zext i1 %80 to i32
  store i32 %spec.select, ptr @dp, align 16, !tbaa !5
  br i1 %exitcond134.peel.not, label %._crit_edge.us105.loopexit, label %.lr.ph.split.us.split.us.us.preheader148

.lr.ph.split.us.split.us.us.preheader148:         ; preds = %.lr.ph.split.us.split.us.us.preheader
  br i1 %min.iters.check, label %.lr.ph.split.us.split.us.us.preheader152, label %vector.body

.lr.ph.split.us.split.us.us.preheader152:         ; preds = %middle.block, %.lr.ph.split.us.split.us.us.preheader148
  %indvars.iv130.ph = phi i64 [ 1, %.lr.ph.split.us.split.us.us.preheader148 ], [ %ind.end, %middle.block ]
  br label %.lr.ph.split.us.split.us.us

vector.body:                                      ; preds = %.lr.ph.split.us.split.us.us.preheader148, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.split.us.split.us.us.preheader148 ]
  %offset.idx = or disjoint i64 %index, 1
  %81 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 0, i64 %offset.idx
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  store <4 x i32> zeroinitializer, ptr %81, align 4, !tbaa !5
  store <4 x i32> zeroinitializer, ptr %82, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %83 = icmp eq i64 %index.next, %n.vec
  br i1 %83, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us105.loopexit, label %.lr.ph.split.us.split.us.us.preheader152

.lr.ph.split.us.split.us112:                      ; preds = %.lr.ph.split.us.split.us112.preheader153, %.thread.us.us109.1
  %indvars.iv124 = phi i64 [ %indvars.iv.next125.1, %.thread.us.us109.1 ], [ 1, %.lr.ph.split.us.split.us112.preheader153 ]
  %.194.us.us107 = phi i32 [ %92, %.thread.us.us109.1 ], [ %76, %.lr.ph.split.us.split.us112.preheader153 ]
  %niter161 = phi i64 [ %niter161.next.1, %.thread.us.us109.1 ], [ 0, %.lr.ph.split.us.split.us112.preheader153 ]
  %84 = getelementptr inbounds [1010 x i8], ptr @b, i64 0, i64 %indvars.iv124
  %85 = load i8, ptr %84, align 1, !tbaa !13
  %86 = icmp eq i8 %28, %85
  br i1 %86, label %87, label %.thread.us.us109

87:                                               ; preds = %.lr.ph.split.us.split.us112
  %88 = add nsw i64 %indvars.iv124, -1
  %89 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  br label %.thread.us.us109

.thread.us.us109:                                 ; preds = %.lr.ph.split.us.split.us112, %87
  %.sink146 = phi i32 [ %90, %87 ], [ 0, %.lr.ph.split.us.split.us112 ]
  %91 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 %indvars.iv124
  store i32 %.sink146, ptr %91, align 4, !tbaa !5
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %92 = add nsw i32 %.194.us.us107, 2
  %93 = getelementptr inbounds [1010 x i8], ptr @b, i64 0, i64 %indvars.iv.next125
  %94 = load i8, ptr %93, align 1, !tbaa !13
  %95 = icmp eq i8 %28, %94
  br i1 %95, label %96, label %.thread.us.us109.1

96:                                               ; preds = %.thread.us.us109
  %97 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %32, i64 %indvars.iv124
  %98 = load i32, ptr %97, align 4, !tbaa !5
  br label %.thread.us.us109.1

.thread.us.us109.1:                               ; preds = %96, %.thread.us.us109
  %.sink146.1 = phi i32 [ %98, %96 ], [ 0, %.thread.us.us109 ]
  %99 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %indvars.iv136, i64 %indvars.iv.next125
  store i32 %.sink146.1, ptr %99, align 4, !tbaa !5
  %indvars.iv.next125.1 = add nuw nsw i64 %indvars.iv124, 2
  %niter161.next.1 = add i64 %niter161, 2
  %niter161.ncmp.1 = icmp eq i64 %niter161.next.1, %unroll_iter160
  br i1 %niter161.ncmp.1, label %._crit_edge.us105.loopexit154.unr-lcssa, label %.lr.ph.split.us.split.us112, !llvm.loop !20

.lr.ph.split.us.split.us.us:                      ; preds = %.lr.ph.split.us.split.us.us.preheader152, %.lr.ph.split.us.split.us.us
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.lr.ph.split.us.split.us.us ], [ %indvars.iv130.ph, %.lr.ph.split.us.split.us.us.preheader152 ]
  %100 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 0, i64 %indvars.iv130
  store i32 0, ptr %100, align 4, !tbaa !5
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond134.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count133
  br i1 %exitcond134.not, label %._crit_edge.us105.loopexit, label %.lr.ph.split.us.split.us.us, !llvm.loop !21

._crit_edge100:                                   ; preds = %._crit_edge.us105, %.preheader91, %.preheader89
  %101 = shl i64 %2, 32
  %sext = add i64 %101, -4294967296
  %102 = ashr exact i64 %sext, 32
  %103 = shl i64 %4, 32
  %sext80 = add i64 %103, -4294967296
  %104 = ashr exact i64 %sext80, 32
  %105 = getelementptr inbounds [1010 x [1010 x i32]], ptr @dp, i64 0, i64 %102, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %.not = icmp eq i32 %106, 0
  %.str.1..str.2 = select i1 %.not, ptr @.str.1, ptr @.str.2
  br label %107

107:                                              ; preds = %._crit_edge100, %0
  %.str.2.sink = phi ptr [ @.str.1, %0 ], [ %.str.1..str.2, %._crit_edge100 ]
  %108 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  ret void
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #1

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

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

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !10, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !15, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !10, !15}
!21 = distinct !{!21, !10, !15, !19, !18}


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