; LLVM IR from lzyrapx/Competitive-Programming :: LibreOJ (6163（区间dp）)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@dp = external dso_local global [55 x [55 x [55 x [55 x i32]]]], align 16
@str1 = external dso_local global [55 x i8], align 16
@str2 = external dso_local global [55 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #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 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %15

15:                                               ; preds = %339, %0
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %2, align 4, !tbaa !5
  %18 = icmp ne i32 %16, 0
  br i1 %18, label %19, label %343

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @dp, i8 0, i64 36602500, i1 false)
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef getelementptr inbounds (i8, ptr @str1, i64 1), ptr noundef getelementptr inbounds (i8, ptr @str2, i64 1))
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %21 = call i64 @strlen(ptr noundef getelementptr inbounds (i8, ptr @str1, i64 1)) #9
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %23 = call i64 @strlen(ptr noundef getelementptr inbounds (i8, ptr @str2, i64 1)) #9
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %336, %19
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = icmp sle i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %339

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

31:                                               ; preds = %332, %30
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %335

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = add nsw i32 %37, %38
  %40 = sub nsw i32 %39, 1
  store i32 %40, ptr %10, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %326, %36
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %331

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = add nsw i32 %47, %48
  %50 = sub nsw i32 %49, 1
  store i32 %50, ptr %12, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %320, %46
  %52 = load i32, ptr %12, align 4, !tbaa !5
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %325

56:                                               ; preds = %51
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %75

59:                                               ; preds = %56
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %75

62:                                               ; preds = %59
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %64
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %65, i64 0, i64 %67
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [55 x [55 x i32]], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr %12, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [55 x i32], ptr %71, i64 0, i64 %73
  store i32 1, ptr %74, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %62, %59, %56
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %87, label %81

81:                                               ; preds = %78, %75
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = icmp eq i32 %82, 1
  br i1 %83, label %84, label %100

84:                                               ; preds = %81
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %100

87:                                               ; preds = %84, %78
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %89
  %91 = load i32, ptr %10, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %11, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [55 x [55 x i32]], ptr %93, i64 0, i64 %95
  %97 = load i32, ptr %12, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [55 x i32], ptr %96, i64 0, i64 %98
  store i32 1, ptr %99, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %87, %84, %81
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [55 x i8], ptr @str1, i64 0, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !9
  %105 = sext i8 %104 to i32
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [55 x i8], ptr @str1, i64 0, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !9
  %110 = sext i8 %109 to i32
  %111 = icmp eq i32 %105, %110
  br i1 %111, label %112, label %146

112:                                              ; preds = %100
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = icmp sgt i32 %113, %114
  br i1 %115, label %116, label %146

116:                                              ; preds = %112
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %119
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = sub nsw i32 %121, 1
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %120, i64 0, i64 %123
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [55 x [55 x i32]], ptr %124, i64 0, i64 %126
  %128 = load i32, ptr %12, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [55 x i32], ptr %127, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %133
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %134, i64 0, i64 %136
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [55 x [55 x i32]], ptr %137, i64 0, i64 %139
  %141 = load i32, ptr %12, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [55 x i32], ptr %140, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = or i32 %144, %131
  store i32 %145, ptr %143, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %116, %112, %100
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [55 x i8], ptr @str1, i64 0, i64 %148
  %150 = load i8, ptr %149, align 1, !tbaa !9
  %151 = sext i8 %150 to i32
  %152 = load i32, ptr %12, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [55 x i8], ptr @str2, i64 0, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !9
  %156 = sext i8 %155 to i32
  %157 = icmp eq i32 %151, %156
  br i1 %157, label %158, label %196

158:                                              ; preds = %146
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = icmp sge i32 %159, %160
  br i1 %161, label %162, label %196

162:                                              ; preds = %158
  %163 = load i32, ptr %12, align 4, !tbaa !5
  %164 = load i32, ptr %11, align 4, !tbaa !5
  %165 = icmp sge i32 %163, %164
  br i1 %165, label %166, label %196

166:                                              ; preds = %162
  %167 = load i32, ptr %9, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %169
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %170, i64 0, i64 %172
  %174 = load i32, ptr %11, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [55 x [55 x i32]], ptr %173, i64 0, i64 %175
  %177 = load i32, ptr %12, align 4, !tbaa !5
  %178 = sub nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [55 x i32], ptr %176, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = load i32, ptr %9, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %183
  %185 = load i32, ptr %10, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %184, i64 0, i64 %186
  %188 = load i32, ptr %11, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [55 x [55 x i32]], ptr %187, i64 0, i64 %189
  %191 = load i32, ptr %12, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [55 x i32], ptr %190, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = or i32 %194, %181
  store i32 %195, ptr %193, align 4, !tbaa !5
  br label %196

196:                                              ; preds = %166, %162, %158, %146
  %197 = load i32, ptr %11, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [55 x i8], ptr @str2, i64 0, i64 %198
  %200 = load i8, ptr %199, align 1, !tbaa !9
  %201 = sext i8 %200 to i32
  %202 = load i32, ptr %10, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [55 x i8], ptr @str1, i64 0, i64 %203
  %205 = load i8, ptr %204, align 1, !tbaa !9
  %206 = sext i8 %205 to i32
  %207 = icmp eq i32 %201, %206
  br i1 %207, label %208, label %246

208:                                              ; preds = %196
  %209 = load i32, ptr %10, align 4, !tbaa !5
  %210 = load i32, ptr %9, align 4, !tbaa !5
  %211 = icmp sge i32 %209, %210
  br i1 %211, label %212, label %246

212:                                              ; preds = %208
  %213 = load i32, ptr %12, align 4, !tbaa !5
  %214 = load i32, ptr %11, align 4, !tbaa !5
  %215 = icmp sge i32 %213, %214
  br i1 %215, label %216, label %246

216:                                              ; preds = %212
  %217 = load i32, ptr %9, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %218
  %220 = load i32, ptr %10, align 4, !tbaa !5
  %221 = sub nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %219, i64 0, i64 %222
  %224 = load i32, ptr %11, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [55 x [55 x i32]], ptr %223, i64 0, i64 %226
  %228 = load i32, ptr %12, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [55 x i32], ptr %227, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = load i32, ptr %9, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %233
  %235 = load i32, ptr %10, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %234, i64 0, i64 %236
  %238 = load i32, ptr %11, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [55 x [55 x i32]], ptr %237, i64 0, i64 %239
  %241 = load i32, ptr %12, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [55 x i32], ptr %240, i64 0, i64 %242
  %244 = load i32, ptr %243, align 4, !tbaa !5
  %245 = or i32 %244, %231
  store i32 %245, ptr %243, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %216, %212, %208, %196
  %247 = load i32, ptr %11, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [55 x i8], ptr @str2, i64 0, i64 %248
  %250 = load i8, ptr %249, align 1, !tbaa !9
  %251 = sext i8 %250 to i32
  %252 = load i32, ptr %12, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [55 x i8], ptr @str2, i64 0, i64 %253
  %255 = load i8, ptr %254, align 1, !tbaa !9
  %256 = sext i8 %255 to i32
  %257 = icmp eq i32 %251, %256
  br i1 %257, label %258, label %292

258:                                              ; preds = %246
  %259 = load i32, ptr %12, align 4, !tbaa !5
  %260 = load i32, ptr %11, align 4, !tbaa !5
  %261 = icmp sgt i32 %259, %260
  br i1 %261, label %262, label %292

262:                                              ; preds = %258
  %263 = load i32, ptr %9, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %264
  %266 = load i32, ptr %10, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %265, i64 0, i64 %267
  %269 = load i32, ptr %11, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [55 x [55 x i32]], ptr %268, i64 0, i64 %271
  %273 = load i32, ptr %12, align 4, !tbaa !5
  %274 = sub nsw i32 %273, 1
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [55 x i32], ptr %272, i64 0, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = load i32, ptr %9, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %279
  %281 = load i32, ptr %10, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %280, i64 0, i64 %282
  %284 = load i32, ptr %11, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [55 x [55 x i32]], ptr %283, i64 0, i64 %285
  %287 = load i32, ptr %12, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [55 x i32], ptr %286, i64 0, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !5
  %291 = or i32 %290, %277
  store i32 %291, ptr %289, align 4, !tbaa !5
  br label %292

292:                                              ; preds = %262, %258, %246
  %293 = load i32, ptr %9, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %294
  %296 = load i32, ptr %10, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [55 x [55 x [55 x i32]]], ptr %295, i64 0, i64 %297
  %299 = load i32, ptr %11, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [55 x [55 x i32]], ptr %298, i64 0, i64 %300
  %302 = load i32, ptr %12, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [55 x i32], ptr %301, i64 0, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = icmp ne i32 %305, 0
  br i1 %306, label %307, label %319

307:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %308 = load i32, ptr %10, align 4, !tbaa !5
  %309 = load i32, ptr %9, align 4, !tbaa !5
  %310 = sub nsw i32 %308, %309
  %311 = add nsw i32 %310, 1
  %312 = load i32, ptr %12, align 4, !tbaa !5
  %313 = add nsw i32 %311, %312
  %314 = load i32, ptr %11, align 4, !tbaa !5
  %315 = sub nsw i32 %313, %314
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %13, align 4, !tbaa !5
  %317 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %318 = load i32, ptr %317, align 4, !tbaa !5
  store i32 %318, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %319

319:                                              ; preds = %307, %292
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %11, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %11, align 4, !tbaa !5
  %323 = load i32, ptr %12, align 4, !tbaa !5
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %12, align 4, !tbaa !5
  br label %51, !llvm.loop !10

325:                                              ; preds = %55
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %9, align 4, !tbaa !5
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %9, align 4, !tbaa !5
  %329 = load i32, ptr %10, align 4, !tbaa !5
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %10, align 4, !tbaa !5
  br label %41, !llvm.loop !12

331:                                              ; preds = %45
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %8, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %8, align 4, !tbaa !5
  br label %31, !llvm.loop !13

335:                                              ; preds = %35
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr %6, align 4, !tbaa !5
  %338 = add nsw i32 %337, 1
  store i32 %338, ptr %6, align 4, !tbaa !5
  br label %25, !llvm.loop !14

339:                                              ; preds = %29
  %340 = load i32, ptr %3, align 4, !tbaa !5
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %340)
  %342 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %341, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %15, !llvm.loop !15

343:                                              ; preds = %15
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %344 = load i32, ptr %1, align 4
  ret i32 %344
}

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #7

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@dp = external dso_local local_unnamed_addr global [55 x [55 x [55 x [55 x i32]]]], align 16
@str1 = external dso_local global [55 x i8], align 16
@str2 = external dso_local global [55 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr %1, align 4, !tbaa !5
  %.not138 = icmp eq i32 %5, 0
  br i1 %.not138, label %._crit_edge140, label %.lr.ph

.lr.ph:                                           ; preds = %0, %._crit_edge137
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(36602500) @dp, i8 0, i64 36602500, i1 false)
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds (i8, ptr @str1, i64 1), ptr noundef nonnull getelementptr inbounds (i8, ptr @str2, i64 1))
  %8 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @str1, i64 1)) #10
  %9 = trunc i64 %8 to i32
  %10 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @str2, i64 1)) #10
  %11 = trunc i64 %10 to i32
  %.not105134 = icmp slt i32 %9, 0
  %.not106130 = icmp slt i32 %11, 0
  %or.cond175 = select i1 %.not105134, i1 true, i1 %.not106130
  br i1 %or.cond175, label %._crit_edge137, label %.preheader122.preheader

.preheader122.preheader:                          ; preds = %.lr.ph
  %12 = add nuw i32 %11, 2
  %13 = add nuw i32 %9, 2
  %14 = add nuw nsw i64 %10, 1
  %15 = add nuw nsw i64 %8, 1
  %wide.trip.count172 = and i64 %15, 4294967295
  %wide.trip.count169 = and i64 %14, 4294967295
  br label %.preheader121.preheader

.preheader121.preheader:                          ; preds = %._crit_edge133, %.preheader122.preheader
  %indvars.iv164 = phi i32 [ %13, %.preheader122.preheader ], [ %indvars.iv.next165, %._crit_edge133 ]
  %indvars.iv155 = phi i64 [ 0, %.preheader122.preheader ], [ %indvars.iv.next156, %._crit_edge133 ]
  %indvars171 = trunc i64 %indvars.iv155 to i32
  %16 = icmp eq i32 %indvars171, 0
  %17 = icmp eq i32 %indvars171, 1
  %wide.trip.count166 = zext i32 %indvars.iv164 to i64
  br label %.preheader.preheader

._crit_edge137:                                   ; preds = %._crit_edge133, %.lr.ph
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %18)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %._crit_edge140, label %.lr.ph, !llvm.loop !9

.preheader.preheader:                             ; preds = %._crit_edge129, %.preheader121.preheader
  %indvars.iv153 = phi i32 [ %12, %.preheader121.preheader ], [ %indvars.iv.next154, %._crit_edge129 ]
  %indvars.iv144 = phi i64 [ 0, %.preheader121.preheader ], [ %indvars.iv.next145, %._crit_edge129 ]
  %indvars.iv = phi i32 [ %indvars171, %.preheader121.preheader ], [ %indvars.iv.next, %._crit_edge129 ]
  %indvars168 = trunc i64 %indvars.iv144 to i32
  %23 = icmp eq i32 %indvars168, 0
  %24 = or i32 %indvars168, %indvars171
  %or.cond = icmp eq i32 %24, 0
  %25 = icmp eq i32 %indvars168, 1
  %or.cond3 = and i1 %16, %25
  %or.cond5 = and i1 %17, %23
  %or.cond114 = or i1 %or.cond3, %or.cond5
  %wide.trip.count = zext i32 %indvars.iv153 to i64
  br label %.preheader

._crit_edge133:                                   ; preds = %._crit_edge129
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %indvars.iv.next165 = add i32 %indvars.iv164, -1
  %exitcond173.not = icmp eq i64 %indvars.iv.next156, %wide.trip.count172
  br i1 %exitcond173.not, label %._crit_edge137, label %.preheader121.preheader, !llvm.loop !11

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %indvars.iv159 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next160, %._crit_edge ]
  %indvars.iv157 = phi i64 [ %indvars.iv155, %.preheader.preheader ], [ %indvars.iv.next158, %._crit_edge ]
  %26 = getelementptr inbounds [55 x i8], ptr @str1, i64 0, i64 %indvars.iv159
  %27 = getelementptr inbounds [55 x i8], ptr @str1, i64 0, i64 %indvars.iv157
  %28 = icmp ugt i64 %indvars.iv157, %indvars.iv159
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %29 = add nsw i64 %indvars.iv157, -1
  %.not109 = icmp ult i64 %indvars.iv157, %indvars.iv159
  br label %30

._crit_edge129:                                   ; preds = %._crit_edge
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %indvars.iv.next = add nuw i32 %indvars.iv, 1
  %indvars.iv.next154 = add i32 %indvars.iv153, -1
  %exitcond170.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count169
  br i1 %exitcond170.not, label %._crit_edge133, label %.preheader.preheader, !llvm.loop !12

._crit_edge:                                      ; preds = %84
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next160, %wide.trip.count166
  br i1 %exitcond167.not, label %._crit_edge129, label %.preheader, !llvm.loop !13

30:                                               ; preds = %.preheader, %84
  %indvars.iv148 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next149, %84 ]
  %indvars.iv146 = phi i64 [ %indvars.iv144, %.preheader ], [ %indvars.iv.next147, %84 ]
  br i1 %or.cond, label %31, label %33

31:                                               ; preds = %30
  %32 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %indvars.iv148, i64 %indvars.iv146
  store i32 1, ptr %32, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %31, %30
  br i1 %or.cond114, label %34, label %36

34:                                               ; preds = %33
  %35 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %indvars.iv148, i64 %indvars.iv146
  store i32 1, ptr %35, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %33, %34
  %37 = load i8, ptr %26, align 1, !tbaa !14
  %38 = load i8, ptr %27, align 1, !tbaa !14
  %39 = icmp eq i8 %37, %38
  %or.cond115 = select i1 %39, i1 %28, i1 false
  br i1 %or.cond115, label %40, label %46

40:                                               ; preds = %36
  %41 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv.next160, i64 %29, i64 %indvars.iv148, i64 %indvars.iv146
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %indvars.iv148, i64 %indvars.iv146
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = or i32 %44, %42
  store i32 %45, ptr %43, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %40, %36
  %47 = getelementptr inbounds [55 x i8], ptr @str2, i64 0, i64 %indvars.iv146
  %48 = load i8, ptr %47, align 1, !tbaa !14
  %49 = icmp ne i8 %37, %48
  %or.cond116 = select i1 %49, i1 true, i1 %.not109
  %.not110 = icmp ult i64 %indvars.iv146, %indvars.iv148
  %or.cond117 = select i1 %or.cond116, i1 true, i1 %.not110
  br i1 %or.cond117, label %57, label %50

50:                                               ; preds = %46
  %51 = add nsw i64 %indvars.iv146, -1
  %52 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv.next160, i64 %indvars.iv157, i64 %indvars.iv148, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %indvars.iv148, i64 %indvars.iv146
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = or i32 %55, %53
  store i32 %56, ptr %54, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %50, %46
  %58 = getelementptr inbounds [55 x i8], ptr @str2, i64 0, i64 %indvars.iv148
  %59 = load i8, ptr %58, align 1, !tbaa !14
  %60 = icmp ne i8 %59, %38
  %or.cond118 = select i1 %60, i1 true, i1 %.not109
  %or.cond119 = select i1 %or.cond118, i1 true, i1 %.not110
  br i1 %or.cond119, label %68, label %61

61:                                               ; preds = %57
  %62 = add nuw nsw i64 %indvars.iv148, 1
  %63 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %29, i64 %62, i64 %indvars.iv146
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %indvars.iv148, i64 %indvars.iv146
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = or i32 %66, %64
  store i32 %67, ptr %65, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %61, %57
  %69 = icmp eq i8 %59, %48
  %70 = icmp ugt i64 %indvars.iv146, %indvars.iv148
  %or.cond120 = select i1 %69, i1 %70, i1 false
  br i1 %or.cond120, label %71, label %._crit_edge174

._crit_edge174:                                   ; preds = %68
  %.phi.trans.insert = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %indvars.iv148, i64 %indvars.iv146
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %79

71:                                               ; preds = %68
  %72 = add nuw nsw i64 %indvars.iv148, 1
  %73 = add nsw i64 %indvars.iv146, -1
  %74 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %72, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = getelementptr inbounds [55 x [55 x [55 x [55 x i32]]]], ptr @dp, i64 0, i64 %indvars.iv159, i64 %indvars.iv157, i64 %indvars.iv148, i64 %indvars.iv146
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = or i32 %77, %75
  store i32 %78, ptr %76, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %._crit_edge174, %71
  %80 = phi i32 [ %.pre, %._crit_edge174 ], [ %78, %71 ]
  %.not113 = icmp eq i32 %80, 0
  br i1 %.not113, label %84, label %81

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 %indvars.iv, ptr %3, align 4, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  br label %84

84:                                               ; preds = %79, %81
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next149, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %30, !llvm.loop !15

._crit_edge140:                                   ; preds = %._crit_edge137, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0
}

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #8

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass