; LLVM IR from tangjz/acm-icpc :: buaa/oj3rd (1094)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@p = external dso_local global [11 x i32], align 16
@c = external dso_local global [11 x i32], align 16
@fa = external dso_local global [11 x i32], align 16
@e = external dso_local global [11 x i32], align 16
@ans = external dso_local global i32, align 4
@lim = external dso_local global i32, align 4
@size = external dso_local global i32, align 4
@f = external dso_local global [2048 x [101 x i64]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; 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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %17

17:                                               ; preds = %270, %0
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @s)
  %19 = icmp eq i32 %18, 3
  br i1 %19, label %20, label %280

20:                                               ; preds = %17
  store i32 0, ptr @lim, align 4, !tbaa !5
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %22 = shl i32 1, %21
  store i32 %22, ptr @size, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @fa, i8 0, i64 44, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @e, i8 0, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  br label %23

23:                                               ; preds = %36, %20
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %39

28:                                               ; preds = %23
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4)
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %3, align 4, !tbaa !5
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr %4, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [11 x i32], ptr @fa, i64 0, i64 %34
  store i32 %31, ptr %35, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %28
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %23, !llvm.loop !9

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

40:                                               ; preds = %68, %39
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %71

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

47:                                               ; preds = %62, %45
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %51, label %50

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

51:                                               ; preds = %47
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = shl i32 1, %52
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [11 x i32], ptr @fa, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [11 x i32], ptr @e, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = or i32 %60, %53
  store i32 %61, ptr %59, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %51
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [11 x i32], ptr @fa, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %7, align 4, !tbaa !5
  br label %47, !llvm.loop !11

67:                                               ; preds = %50
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %5, align 4, !tbaa !5
  br label %40, !llvm.loop !12

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

72:                                               ; preds = %119, %71
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = load i32, ptr @n, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %122

77:                                               ; preds = %72
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr @p, i64 %79
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr @c, i64 %82
  %84 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %80, ptr noundef %83)
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = load i32, ptr @m, align 4, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = sub nsw i32 %89, %93
  %95 = icmp slt i32 %88, %94
  br i1 %95, label %96, label %106

96:                                               ; preds = %77
  %97 = load i32, ptr @m, align 4, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = sub nsw i32 %97, %101
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %104
  store i32 %102, ptr %105, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %96, %77
  %107 = load i32, ptr @lim, align 4, !tbaa !5
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = icmp slt i32 %107, %111
  br i1 %112, label %113, label %118

113:                                              ; preds = %106
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  store i32 %117, ptr @lim, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %113, %106
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %8, align 4, !tbaa !5
  br label %72, !llvm.loop !13

122:                                              ; preds = %76
  store i32 0, ptr @ans, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 1654784, i1 false)
  store i64 1, ptr @f, align 16, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %267, %122
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = load i32, ptr @lim, align 4, !tbaa !5
  %126 = icmp sle i32 %124, %125
  br i1 %126, label %128, label %127

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

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

129:                                              ; preds = %235, %128
  %130 = load i32, ptr %10, align 4, !tbaa !5
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

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

134:                                              ; preds = %129
  %135 = load i32, ptr %9, align 4, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = icmp sle i32 %135, %139
  br i1 %140, label %141, label %234

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

142:                                              ; preds = %230, %141
  %143 = load i32, ptr %11, align 4, !tbaa !5
  %144 = load i32, ptr @size, align 4, !tbaa !5
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %233

147:                                              ; preds = %142
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = ashr i32 %148, %149
  %151 = xor i32 %150, -1
  %152 = and i32 %151, 1
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %229

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = shl i32 1, %156
  %158 = xor i32 %155, %157
  store i32 %158, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [11 x i32], ptr @e, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = and i32 %162, %163
  %165 = call i32 @llvm.ctpop.i32(i32 %164)
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [11 x i32], ptr @p, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = mul nsw i32 %165, %169
  store i32 %170, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %171 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %171, ptr %14, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %225, %154
  %173 = load i32, ptr %14, align 4, !tbaa !5
  %174 = load i32, ptr @s, align 4, !tbaa !5
  %175 = icmp sle i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 25, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %228

177:                                              ; preds = %172
  %178 = load i32, ptr %11, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %179
  %181 = load i32, ptr %14, align 4, !tbaa !5
  %182 = load i32, ptr %13, align 4, !tbaa !5
  %183 = sub nsw i32 %181, %182
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [101 x i64], ptr %180, i64 0, i64 %184
  %186 = load i64, ptr %185, align 8, !tbaa !14
  %187 = load i32, ptr %12, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %188
  %190 = load i32, ptr %14, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [101 x i64], ptr %189, i64 0, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !14
  %194 = add nsw i64 %193, %186
  store i64 %194, ptr %192, align 8, !tbaa !14
  %195 = load i32, ptr %9, align 4, !tbaa !5
  %196 = icmp sge i32 %195, 1
  br i1 %196, label %197, label %224

197:                                              ; preds = %177
  %198 = load i32, ptr %9, align 4, !tbaa !5
  %199 = load i32, ptr @m, align 4, !tbaa !5
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sub nsw i32 %199, %203
  %205 = icmp sle i32 %198, %204
  br i1 %205, label %206, label %224

206:                                              ; preds = %197
  %207 = load i32, ptr %11, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %208
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = load i32, ptr %13, align 4, !tbaa !5
  %212 = sub nsw i32 %210, %211
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [101 x i64], ptr %209, i64 0, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !14
  %216 = load i32, ptr %12, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %217
  %219 = load i32, ptr %14, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [101 x i64], ptr %218, i64 0, i64 %220
  %222 = load i64, ptr %221, align 8, !tbaa !14
  %223 = add nsw i64 %222, %215
  store i64 %223, ptr %221, align 8, !tbaa !14
  br label %224

224:                                              ; preds = %206, %197, %177
  br label %225

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

228:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %229

229:                                              ; preds = %228, %147
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %11, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %11, align 4, !tbaa !5
  br label %142, !llvm.loop !17

233:                                              ; preds = %146
  br label %234

234:                                              ; preds = %233, %134
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %10, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %10, align 4, !tbaa !5
  br label %129, !llvm.loop !18

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

239:                                              ; preds = %263, %238
  %240 = load i32, ptr %15, align 4, !tbaa !5
  %241 = load i32, ptr @size, align 4, !tbaa !5
  %242 = icmp slt i32 %240, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %239
  store i32 28, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %266

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

245:                                              ; preds = %259, %244
  %246 = load i32, ptr %16, align 4, !tbaa !5
  %247 = load i32, ptr @s, align 4, !tbaa !5
  %248 = icmp sle i32 %246, %247
  br i1 %248, label %250, label %249

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

250:                                              ; preds = %245
  %251 = load i32, ptr %15, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %252
  %254 = load i32, ptr %16, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [101 x i64], ptr %253, i64 0, i64 %255
  %257 = load i64, ptr %256, align 8, !tbaa !14
  %258 = srem i64 %257, 1000000007
  store i64 %258, ptr %256, align 8, !tbaa !14
  br label %259

259:                                              ; preds = %250
  %260 = load i32, ptr %16, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %16, align 4, !tbaa !5
  br label %245, !llvm.loop !19

262:                                              ; preds = %249
  br label %263

263:                                              ; preds = %262
  %264 = load i32, ptr %15, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %15, align 4, !tbaa !5
  br label %239, !llvm.loop !20

266:                                              ; preds = %243
  br label %267

267:                                              ; preds = %266
  %268 = load i32, ptr %9, align 4, !tbaa !5
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %9, align 4, !tbaa !5
  br label %123, !llvm.loop !21

270:                                              ; preds = %127
  %271 = load i32, ptr @size, align 4, !tbaa !5
  %272 = sub nsw i32 %271, 1
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %273
  %275 = load i32, ptr @s, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [101 x i64], ptr %274, i64 0, i64 %276
  %278 = load i64, ptr %277, align 8, !tbaa !14
  %279 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %278)
  br label %17, !llvm.loop !22

280:                                              ; preds = %17
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #4

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

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 = { "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 nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !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"

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@p = external dso_local global [11 x i32], align 16
@c = external dso_local global [11 x i32], align 16
@fa = external dso_local local_unnamed_addr global [11 x i32], align 16
@e = external dso_local local_unnamed_addr global [11 x i32], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@lim = external dso_local local_unnamed_addr global i32, align 4
@size = external dso_local local_unnamed_addr global i32, align 4
@f = external dso_local local_unnamed_addr global [2048 x [101 x i64]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @s)
  %4 = icmp eq i32 %3, 3
  br i1 %4, label %.lr.ph121, label %._crit_edge122

.lr.ph121:                                        ; preds = %0, %._crit_edge119
  store i32 0, ptr @lim, align 4, !tbaa !5
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = shl nuw i32 1, %5
  store i32 %6, ptr @size, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) @fa, i8 0, i64 44, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) @e, i8 0, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %7 = icmp sgt i32 %5, 1
  br i1 %7, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.lr.ph121
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  br label %.preheader79

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %8 = icmp sgt i32 %19, 1
  br i1 %8, label %.preheader78.preheader, label %.preheader79

.preheader78.preheader:                           ; preds = %._crit_edge
  %9 = add nsw i32 %19, -1
  %xtraiter = and i32 %9, 1
  %10 = icmp eq i32 %19, 2
  br i1 %10, label %.preheader79.loopexit.unr-lcssa, label %.preheader78.preheader.new

.preheader78.preheader.new:                       ; preds = %.preheader78.preheader
  %unroll_iter = and i32 %9, -2
  br label %.preheader78

.lr.ph:                                           ; preds = %.lr.ph121, %.lr.ph
  %.05881 = phi i32 [ %18, %.lr.ph ], [ 1, %.lr.ph121 ]
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr %1, align 4, !tbaa !5
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = add nsw i32 %14, -1
  store i32 %15, ptr %2, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [11 x i32], ptr @fa, i64 0, i64 %16
  store i32 %13, ptr %17, align 4, !tbaa !5
  %18 = add nuw nsw i32 %.05881, 1
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader79.loopexit.unr-lcssa:                  ; preds = %43, %.preheader78.preheader
  %.05983.unr = phi i32 [ 1, %.preheader78.preheader ], [ %44, %43 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader79, label %.preheader78.epil

.preheader78.epil:                                ; preds = %.preheader79.loopexit.unr-lcssa
  %21 = shl nuw i32 1, %.05983.unr
  br label %22

22:                                               ; preds = %22, %.preheader78.epil
  %.06482.epil = phi i32 [ %.05983.unr, %.preheader78.epil ], [ %25, %22 ]
  %23 = sext i32 %.06482.epil to i64
  %24 = getelementptr inbounds [11 x i32], ptr @fa, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [11 x i32], ptr @e, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = or i32 %28, %21
  store i32 %29, ptr %27, align 4, !tbaa !5
  %.not73.epil = icmp eq i32 %25, 0
  br i1 %.not73.epil, label %.preheader79, label %22, !llvm.loop !11

.preheader79:                                     ; preds = %.preheader79.loopexit.unr-lcssa, %22, %._crit_edge.thread, %._crit_edge
  %30 = phi i32 [ %5, %._crit_edge.thread ], [ %19, %._crit_edge ], [ %19, %22 ], [ %19, %.preheader79.loopexit.unr-lcssa ]
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph85, label %.preheader79.._crit_edge86_crit_edge

.preheader79.._crit_edge86_crit_edge:             ; preds = %.preheader79
  %.pre = load i32, ptr @lim, align 4, !tbaa !5
  br label %._crit_edge86

.preheader78:                                     ; preds = %43, %.preheader78.preheader.new
  %.05983 = phi i32 [ 1, %.preheader78.preheader.new ], [ %44, %43 ]
  %niter = phi i32 [ 0, %.preheader78.preheader.new ], [ %niter.next.1, %43 ]
  %32 = shl nuw i32 1, %.05983
  br label %45

.preheader78.1:                                   ; preds = %45
  %33 = add nuw nsw i32 %.05983, 1
  %34 = shl nuw i32 2, %.05983
  br label %35

35:                                               ; preds = %35, %.preheader78.1
  %.06482.1 = phi i32 [ %33, %.preheader78.1 ], [ %38, %35 ]
  %36 = sext i32 %.06482.1 to i64
  %37 = getelementptr inbounds [11 x i32], ptr @fa, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [11 x i32], ptr @e, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = or i32 %41, %34
  store i32 %42, ptr %40, align 4, !tbaa !5
  %.not73.1 = icmp eq i32 %38, 0
  br i1 %.not73.1, label %43, label %35, !llvm.loop !11

43:                                               ; preds = %35
  %44 = add nuw nsw i32 %.05983, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader79.loopexit.unr-lcssa, label %.preheader78, !llvm.loop !12

45:                                               ; preds = %.preheader78, %45
  %.06482 = phi i32 [ %.05983, %.preheader78 ], [ %48, %45 ]
  %46 = sext i32 %.06482 to i64
  %47 = getelementptr inbounds [11 x i32], ptr @fa, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [11 x i32], ptr @e, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = or i32 %51, %32
  store i32 %52, ptr %50, align 4, !tbaa !5
  %.not73 = icmp eq i32 %48, 0
  br i1 %.not73, label %.preheader78.1, label %45, !llvm.loop !11

._crit_edge86:                                    ; preds = %74, %.preheader79.._crit_edge86_crit_edge
  %53 = phi i32 [ %.pre, %.preheader79.._crit_edge86_crit_edge ], [ %75, %74 ]
  %.lcssa80 = phi i32 [ %30, %.preheader79.._crit_edge86_crit_edge ], [ %76, %74 ]
  store i32 0, ptr @ans, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1654784) @f, i8 0, i64 1654784, i1 false)
  store i64 1, ptr @f, align 16, !tbaa !13
  %.not115 = icmp slt i32 %53, 0
  %.pre175 = load i32, ptr @size, align 4
  %.fr123 = freeze i32 %.pre175
  %.pre176 = load i32, ptr @s, align 4
  br i1 %.not115, label %._crit_edge119, label %.preheader77.lr.ph

.preheader77.lr.ph:                               ; preds = %._crit_edge86
  %54 = icmp sgt i32 %.lcssa80, 0
  %55 = icmp sgt i32 %.fr123, 0
  %56 = load i32, ptr @m, align 4
  %57 = icmp slt i32 %.fr123, 1
  %.not67109 = icmp slt i32 %.pre176, 0
  %58 = add i32 %.pre176, 1
  %59 = add nuw i32 %53, 1
  %smax = call i32 @llvm.smax.i32(i32 %59, i32 1)
  %wide.trip.count147 = zext nneg i32 %.lcssa80 to i64
  %wide.trip.count = zext nneg i32 %.fr123 to i64
  %wide.trip.count162 = zext nneg i32 %.lcssa80 to i64
  %wide.trip.count157 = zext nneg i32 %.fr123 to i64
  %wide.trip.count172 = zext nneg i32 %.fr123 to i64
  %wide.trip.count167 = zext i32 %58 to i64
  %brmerge = select i1 %57, i1 true, i1 %.not67109
  %xtraiter258 = and i64 %wide.trip.count167, 1
  %60 = icmp eq i32 %.pre176, 0
  %unroll_iter260 = and i64 %wide.trip.count167, 4294967294
  %lcmp.mod259.not = icmp eq i64 %xtraiter258, 0
  br label %.preheader77

.lr.ph85:                                         ; preds = %.preheader79, %74
  %indvars.iv = phi i64 [ %indvars.iv.next, %74 ], [ 0, %.preheader79 ]
  %61 = getelementptr inbounds i32, ptr @p, i64 %indvars.iv
  %62 = getelementptr inbounds i32, ptr @c, i64 %indvars.iv
  %63 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %61, ptr noundef nonnull %62)
  %64 = load i32, ptr %62, align 4, !tbaa !5
  %65 = load i32, ptr @m, align 4, !tbaa !5
  %66 = sub nsw i32 %65, %64
  %67 = icmp slt i32 %64, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %.lr.ph85
  store i32 %66, ptr %62, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %68, %.lr.ph85
  %70 = phi i32 [ %66, %68 ], [ %64, %.lr.ph85 ]
  %71 = load i32, ptr @lim, align 4, !tbaa !5
  %72 = icmp slt i32 %71, %70
  br i1 %72, label %73, label %74

73:                                               ; preds = %69
  store i32 %70, ptr @lim, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %69, %73
  %75 = phi i32 [ %71, %69 ], [ %70, %73 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %76 = load i32, ptr @n, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %indvars.iv.next, %77
  br i1 %78, label %.lr.ph85, label %._crit_edge86, !llvm.loop !15

.preheader77:                                     ; preds = %.preheader77.lr.ph, %._crit_edge114
  %.062116 = phi i32 [ 0, %.preheader77.lr.ph ], [ %250, %._crit_edge114 ]
  br i1 %54, label %.lr.ph99, label %.preheader76

.lr.ph99:                                         ; preds = %.preheader77
  br i1 %55, label %.lr.ph99.split.us, label %._crit_edge114

.lr.ph99.split.us:                                ; preds = %.lr.ph99
  %.not71 = icmp eq i32 %.062116, 0
  br i1 %.not71, label %.lr.ph99.split.us.split.us, label %.lr.ph99.split.us.split

.lr.ph99.split.us.split.us:                       ; preds = %.lr.ph99.split.us, %..loopexit75_crit_edge.split.us.us.us
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %..loopexit75_crit_edge.split.us.us.us ], [ 0, %.lr.ph99.split.us ]
  %79 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %indvars.iv159
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %.not68.us.us = icmp slt i32 %80, 0
  br i1 %.not68.us.us, label %..loopexit75_crit_edge.split.us.us.us, label %.preheader74.us.us

..loopexit75_crit_edge.split.us.us.us:            ; preds = %.loopexit.us.us.us, %.lr.ph99.split.us.split.us
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %wide.trip.count162
  br i1 %exitcond163.not, label %.preheader76, label %.lr.ph99.split.us.split.us, !llvm.loop !16

.preheader74.us.us:                               ; preds = %.lr.ph99.split.us.split.us
  %81 = trunc nuw nsw i64 %indvars.iv159 to i32
  %82 = shl nuw i32 1, %81
  %83 = getelementptr inbounds [11 x i32], ptr @e, i64 0, i64 %indvars.iv159
  %84 = getelementptr inbounds [11 x i32], ptr @p, i64 0, i64 %indvars.iv159
  br label %85

85:                                               ; preds = %.loopexit.us.us.us, %.preheader74.us.us
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %.loopexit.us.us.us ], [ 0, %.preheader74.us.us ]
  %86 = mul nuw nsw i64 %indvars.iv154, 808
  %scevgep186 = getelementptr i8, ptr @f, i64 %86
  %gep266 = getelementptr i8, ptr getelementptr (i8, ptr @f, i64 8), i64 %86
  %87 = trunc nuw nsw i64 %indvars.iv154 to i32
  %88 = and i32 %82, %87
  %.not69.not.us.us.us = icmp eq i32 %88, 0
  br i1 %.not69.not.us.us.us, label %89, label %.loopexit.us.us.us

89:                                               ; preds = %85
  %90 = load i32, ptr %83, align 4, !tbaa !5
  %91 = and i32 %90, %87
  %92 = call range(i32 0, 32) i32 @llvm.ctpop.i32(i32 %91)
  %93 = load i32, ptr %84, align 4, !tbaa !5
  %94 = mul nsw i32 %92, %93
  %.not7088.us.us.us = icmp sgt i32 %94, %.pre176
  br i1 %.not7088.us.us.us, label %.loopexit.us.us.us, label %.lr.ph91.us.us.us

.loopexit.us.us.us:                               ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %89, %85
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next155, %wide.trip.count157
  br i1 %exitcond158.not, label %..loopexit75_crit_edge.split.us.us.us, label %85, !llvm.loop !17

.lr.ph91.us.us.us:                                ; preds = %89
  %95 = xor i32 %82, %87
  %96 = sext i32 %95 to i64
  %97 = sext i32 %94 to i64
  %98 = sub i32 %.pre176, %94
  %99 = zext i32 %98 to i64
  %100 = add nuw nsw i64 %99, 1
  %min.iters.check = icmp ult i32 %98, 7
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph91.us.us.us
  %101 = mul nsw i64 %96, 808
  %102 = shl nsw i64 %97, 3
  %103 = getelementptr i8, ptr @f, i64 %101
  %scevgep = getelementptr i8, ptr %103, i64 %102
  %104 = sub i32 %.pre176, %94
  %105 = zext i32 %104 to i64
  %106 = shl nuw nsw i64 %105, 3
  %107 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), i64 %101
  %108 = getelementptr i8, ptr %107, i64 %102
  %scevgep185 = getelementptr i8, ptr %108, i64 %106
  %scevgep188 = getelementptr i8, ptr %gep266, i64 %106
  %bound0 = icmp ult ptr %scevgep, %scevgep188
  %bound1 = icmp ult ptr %scevgep186, %scevgep185
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %100, 8589934588
  %ind.end = add nsw i64 %n.vec, %97
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %97
  %109 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv154, i64 %index
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %wide.load = load <2 x i64>, ptr %109, align 8, !tbaa !13, !alias.scope !18
  %wide.load189 = load <2 x i64>, ptr %110, align 8, !tbaa !13, !alias.scope !18
  %111 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %96, i64 %offset.idx
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %wide.load190 = load <2 x i64>, ptr %111, align 8, !tbaa !13, !alias.scope !21, !noalias !18
  %wide.load191 = load <2 x i64>, ptr %112, align 8, !tbaa !13, !alias.scope !21, !noalias !18
  %113 = add nsw <2 x i64> %wide.load190, %wide.load
  %114 = add nsw <2 x i64> %wide.load191, %wide.load189
  store <2 x i64> %113, ptr %111, align 8, !tbaa !13, !alias.scope !21, !noalias !18
  store <2 x i64> %114, ptr %112, align 8, !tbaa !13, !alias.scope !21, !noalias !18
  %index.next = add nuw i64 %index, 4
  %115 = icmp eq i64 %index.next, %n.vec
  br i1 %115, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %100, %n.vec
  br i1 %cmp.n, label %.loopexit.us.us.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph91.us.us.us
  %indvars.iv149.ph = phi i64 [ %97, %vector.memcheck ], [ %97, %.lr.ph91.us.us.us ], [ %ind.end, %middle.block ]
  %116 = trunc i64 %indvars.iv149.ph to i32
  %117 = add i32 %.pre176, %116
  %118 = and i32 %117, 1
  %lcmp.mod257.not.not = icmp eq i32 %118, 0
  br i1 %lcmp.mod257.not.not, label %scalar.ph.prol, label %scalar.ph.prol.loopexit

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %119 = sub nsw i64 %indvars.iv149.ph, %97
  %120 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv154, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !13
  %122 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %96, i64 %indvars.iv149.ph
  %123 = load i64, ptr %122, align 8, !tbaa !13
  %124 = add nsw i64 %123, %121
  store i64 %124, ptr %122, align 8, !tbaa !13
  %indvars.iv.next150.prol = add nsw i64 %indvars.iv149.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv149.unr = phi i64 [ %indvars.iv149.ph, %scalar.ph.preheader ], [ %indvars.iv.next150.prol, %scalar.ph.prol ]
  %125 = icmp eq i32 %.pre176, %116
  br i1 %125, label %.loopexit.us.us.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv149 = phi i64 [ %indvars.iv.next150.1, %scalar.ph ], [ %indvars.iv149.unr, %scalar.ph.prol.loopexit ]
  %126 = sub nsw i64 %indvars.iv149, %97
  %127 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv154, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !13
  %129 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %96, i64 %indvars.iv149
  %130 = load i64, ptr %129, align 8, !tbaa !13
  %131 = add nsw i64 %130, %128
  store i64 %131, ptr %129, align 8, !tbaa !13
  %indvars.iv.next150 = add nsw i64 %indvars.iv149, 1
  %132 = sub nsw i64 %indvars.iv.next150, %97
  %133 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv154, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !13
  %135 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %96, i64 %indvars.iv.next150
  %136 = load i64, ptr %135, align 8, !tbaa !13
  %137 = add nsw i64 %136, %134
  store i64 %137, ptr %135, align 8, !tbaa !13
  %indvars.iv.next150.1 = add nsw i64 %indvars.iv149, 2
  %lftr.wideiv152.1 = trunc i64 %indvars.iv.next150.1 to i32
  %exitcond153.not.1 = icmp eq i32 %58, %lftr.wideiv152.1
  br i1 %exitcond153.not.1, label %.loopexit.us.us.us, label %scalar.ph, !llvm.loop !26

.lr.ph99.split.us.split:                          ; preds = %.lr.ph99.split.us, %..loopexit75_crit_edge.split.us107
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %..loopexit75_crit_edge.split.us107 ], [ 0, %.lr.ph99.split.us ]
  %138 = getelementptr inbounds [11 x i32], ptr @c, i64 0, i64 %indvars.iv144
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %.not68.us = icmp sgt i32 %.062116, %139
  br i1 %.not68.us, label %..loopexit75_crit_edge.split.us107, label %.preheader74.us

140:                                              ; preds = %.preheader74.us, %.loopexit.us103
  %indvars.iv140 = phi i64 [ 0, %.preheader74.us ], [ %indvars.iv.next141, %.loopexit.us103 ]
  %141 = mul nuw nsw i64 %indvars.iv140, 808
  %scevgep221 = getelementptr i8, ptr @f, i64 %141
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @f, i64 8), i64 %141
  %142 = mul nuw nsw i64 %indvars.iv140, 808
  %scevgep195 = getelementptr i8, ptr @f, i64 %142
  %gep265 = getelementptr i8, ptr getelementptr (i8, ptr @f, i64 8), i64 %142
  %143 = trunc nuw nsw i64 %indvars.iv140 to i32
  %144 = and i32 %168, %143
  %.not69.not.us101 = icmp eq i32 %144, 0
  br i1 %.not69.not.us101, label %145, label %.loopexit.us103

145:                                              ; preds = %140
  %146 = load i32, ptr %169, align 4, !tbaa !5
  %147 = and i32 %146, %143
  %148 = call range(i32 0, 32) i32 @llvm.ctpop.i32(i32 %147)
  %149 = load i32, ptr %170, align 4, !tbaa !5
  %150 = mul nsw i32 %148, %149
  %.not7088.us102 = icmp sgt i32 %150, %.pre176
  br i1 %.not7088.us102, label %.loopexit.us103, label %.lr.ph91.us104

.lr.ph91.split.split.us106:                       ; preds = %.lr.ph91.split.split.us106.prol.loopexit, %.lr.ph91.split.split.us106
  %indvars.iv131 = phi i64 [ %indvars.iv.next132.1, %.lr.ph91.split.split.us106 ], [ %indvars.iv131.unr, %.lr.ph91.split.split.us106.prol.loopexit ]
  %151 = sub nsw i64 %indvars.iv131, %174
  %152 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !13
  %154 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %indvars.iv131
  %155 = load i64, ptr %154, align 8, !tbaa !13
  %156 = add nsw i64 %155, %153
  store i64 %156, ptr %154, align 8, !tbaa !13
  %157 = load i64, ptr %152, align 8, !tbaa !13
  %158 = add nsw i64 %157, %156
  store i64 %158, ptr %154, align 8, !tbaa !13
  %indvars.iv.next132 = add nsw i64 %indvars.iv131, 1
  %159 = sub nsw i64 %indvars.iv.next132, %174
  %160 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !13
  %162 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %indvars.iv.next132
  %163 = load i64, ptr %162, align 8, !tbaa !13
  %164 = add nsw i64 %163, %161
  store i64 %164, ptr %162, align 8, !tbaa !13
  %165 = load i64, ptr %160, align 8, !tbaa !13
  %166 = add nsw i64 %165, %164
  store i64 %166, ptr %162, align 8, !tbaa !13
  %indvars.iv.next132.1 = add nsw i64 %indvars.iv131, 2
  %lftr.wideiv.1 = trunc i64 %indvars.iv.next132.1 to i32
  %exitcond134.not.1 = icmp eq i32 %58, %lftr.wideiv.1
  br i1 %exitcond134.not.1, label %.loopexit.us103, label %.lr.ph91.split.split.us106, !llvm.loop !27

.loopexit.us103:                                  ; preds = %.lr.ph91.split.split.us106.prol.loopexit, %.lr.ph91.split.split.us106, %.lr.ph91.split.split.us.us.prol.loopexit, %.lr.ph91.split.split.us.us, %middle.block227, %middle.block201, %145, %140
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count
  br i1 %exitcond143.not, label %..loopexit75_crit_edge.split.us107, label %140, !llvm.loop !17

..loopexit75_crit_edge.split.us107:               ; preds = %.loopexit.us103, %.lr.ph99.split.us.split
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %exitcond148.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count147
  br i1 %exitcond148.not, label %.preheader76, label %.lr.ph99.split.us.split, !llvm.loop !16

.preheader74.us:                                  ; preds = %.lr.ph99.split.us.split
  %167 = trunc nuw nsw i64 %indvars.iv144 to i32
  %168 = shl nuw i32 1, %167
  %169 = getelementptr inbounds [11 x i32], ptr @e, i64 0, i64 %indvars.iv144
  %170 = getelementptr inbounds [11 x i32], ptr @p, i64 0, i64 %indvars.iv144
  %171 = sub nsw i32 %56, %139
  %.not72.us = icmp sgt i32 %.062116, %171
  br label %140

.lr.ph91.us104:                                   ; preds = %145
  %172 = xor i32 %168, %143
  %173 = sext i32 %172 to i64
  %174 = sext i32 %150 to i64
  %175 = sub i32 %.pre176, %150
  %176 = zext i32 %175 to i64
  %177 = add nuw nsw i64 %176, 1
  br i1 %.not72.us, label %.lr.ph91.split.split.us.us.preheader, label %.lr.ph91.split.split.us106.preheader

.lr.ph91.split.split.us106.preheader:             ; preds = %.lr.ph91.us104
  %min.iters.check229 = icmp ult i32 %175, 5
  br i1 %min.iters.check229, label %.lr.ph91.split.split.us106.preheader247, label %vector.memcheck218

.lr.ph91.split.split.us106.preheader247:          ; preds = %middle.block227, %vector.memcheck218, %.lr.ph91.split.split.us106.preheader
  %indvars.iv131.ph = phi i64 [ %174, %vector.memcheck218 ], [ %174, %.lr.ph91.split.split.us106.preheader ], [ %ind.end233, %middle.block227 ]
  %178 = trunc i64 %indvars.iv131.ph to i32
  %179 = add i32 %.pre176, %178
  %180 = and i32 %179, 1
  %lcmp.mod253.not.not = icmp eq i32 %180, 0
  br i1 %lcmp.mod253.not.not, label %.lr.ph91.split.split.us106.prol, label %.lr.ph91.split.split.us106.prol.loopexit

.lr.ph91.split.split.us106.prol:                  ; preds = %.lr.ph91.split.split.us106.preheader247
  %181 = sub nsw i64 %indvars.iv131.ph, %174
  %182 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !13
  %184 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %indvars.iv131.ph
  %185 = load i64, ptr %184, align 8, !tbaa !13
  %186 = add nsw i64 %185, %183
  store i64 %186, ptr %184, align 8, !tbaa !13
  %187 = load i64, ptr %182, align 8, !tbaa !13
  %188 = add nsw i64 %187, %186
  store i64 %188, ptr %184, align 8, !tbaa !13
  %indvars.iv.next132.prol = add nsw i64 %indvars.iv131.ph, 1
  br label %.lr.ph91.split.split.us106.prol.loopexit

.lr.ph91.split.split.us106.prol.loopexit:         ; preds = %.lr.ph91.split.split.us106.prol, %.lr.ph91.split.split.us106.preheader247
  %indvars.iv131.unr = phi i64 [ %indvars.iv131.ph, %.lr.ph91.split.split.us106.preheader247 ], [ %indvars.iv.next132.prol, %.lr.ph91.split.split.us106.prol ]
  %189 = icmp eq i32 %.pre176, %178
  br i1 %189, label %.loopexit.us103, label %.lr.ph91.split.split.us106

vector.memcheck218:                               ; preds = %.lr.ph91.split.split.us106.preheader
  %190 = mul nsw i64 %173, 808
  %191 = shl nsw i64 %174, 3
  %192 = add nsw i64 %190, %191
  %scevgep219 = getelementptr i8, ptr @f, i64 %192
  %193 = sub i32 %.pre176, %150
  %194 = zext i32 %193 to i64
  %195 = shl nuw nsw i64 %194, 3
  %196 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), i64 %192
  %scevgep220 = getelementptr i8, ptr %196, i64 %195
  %scevgep223 = getelementptr i8, ptr %gep, i64 %195
  %bound0224 = icmp ult ptr %scevgep219, %scevgep223
  %bound1225 = icmp ult ptr %scevgep221, %scevgep220
  %found.conflict226 = and i1 %bound0224, %bound1225
  br i1 %found.conflict226, label %.lr.ph91.split.split.us106.preheader247, label %vector.ph230

vector.ph230:                                     ; preds = %vector.memcheck218
  %n.vec232 = and i64 %177, 8589934588
  %ind.end233 = add nsw i64 %n.vec232, %174
  br label %vector.body235

vector.body235:                                   ; preds = %vector.body235, %vector.ph230
  %index236 = phi i64 [ 0, %vector.ph230 ], [ %index.next244, %vector.body235 ]
  %offset.idx237 = add i64 %index236, %174
  %197 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %index236
  %198 = getelementptr inbounds i8, ptr %197, i64 16
  %wide.load238 = load <2 x i64>, ptr %197, align 8, !tbaa !13, !alias.scope !28
  %wide.load239 = load <2 x i64>, ptr %198, align 8, !tbaa !13, !alias.scope !28
  %199 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %offset.idx237
  %200 = getelementptr inbounds i8, ptr %199, i64 16
  %wide.load240 = load <2 x i64>, ptr %199, align 8, !tbaa !13, !alias.scope !31, !noalias !28
  %wide.load241 = load <2 x i64>, ptr %200, align 8, !tbaa !13, !alias.scope !31, !noalias !28
  %201 = add nsw <2 x i64> %wide.load240, %wide.load238
  %202 = add nsw <2 x i64> %wide.load241, %wide.load239
  store <2 x i64> %201, ptr %199, align 8, !tbaa !13, !alias.scope !31, !noalias !28
  store <2 x i64> %202, ptr %200, align 8, !tbaa !13, !alias.scope !31, !noalias !28
  %wide.load242 = load <2 x i64>, ptr %197, align 8, !tbaa !13, !alias.scope !28
  %wide.load243 = load <2 x i64>, ptr %198, align 8, !tbaa !13, !alias.scope !28
  %203 = add nsw <2 x i64> %wide.load242, %201
  %204 = add nsw <2 x i64> %wide.load243, %202
  store <2 x i64> %203, ptr %199, align 8, !tbaa !13, !alias.scope !31, !noalias !28
  store <2 x i64> %204, ptr %200, align 8, !tbaa !13, !alias.scope !31, !noalias !28
  %index.next244 = add nuw i64 %index236, 4
  %205 = icmp eq i64 %index.next244, %n.vec232
  br i1 %205, label %middle.block227, label %vector.body235, !llvm.loop !33

middle.block227:                                  ; preds = %vector.body235
  %cmp.n245 = icmp eq i64 %177, %n.vec232
  br i1 %cmp.n245, label %.loopexit.us103, label %.lr.ph91.split.split.us106.preheader247

.lr.ph91.split.split.us.us.preheader:             ; preds = %.lr.ph91.us104
  %min.iters.check203 = icmp ult i32 %175, 7
  br i1 %min.iters.check203, label %.lr.ph91.split.split.us.us.preheader246, label %vector.memcheck192

vector.memcheck192:                               ; preds = %.lr.ph91.split.split.us.us.preheader
  %206 = mul nsw i64 %173, 808
  %207 = shl nsw i64 %174, 3
  %208 = add nsw i64 %206, %207
  %scevgep193 = getelementptr i8, ptr @f, i64 %208
  %209 = sub i32 %.pre176, %150
  %210 = zext i32 %209 to i64
  %211 = shl nuw nsw i64 %210, 3
  %212 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), i64 %208
  %scevgep194 = getelementptr i8, ptr %212, i64 %211
  %scevgep197 = getelementptr i8, ptr %gep265, i64 %211
  %bound0198 = icmp ult ptr %scevgep193, %scevgep197
  %bound1199 = icmp ult ptr %scevgep195, %scevgep194
  %found.conflict200 = and i1 %bound0198, %bound1199
  br i1 %found.conflict200, label %.lr.ph91.split.split.us.us.preheader246, label %vector.ph204

vector.ph204:                                     ; preds = %vector.memcheck192
  %n.vec206 = and i64 %177, 8589934588
  %ind.end207 = add nsw i64 %n.vec206, %174
  br label %vector.body209

vector.body209:                                   ; preds = %vector.body209, %vector.ph204
  %index210 = phi i64 [ 0, %vector.ph204 ], [ %index.next216, %vector.body209 ]
  %offset.idx211 = add i64 %index210, %174
  %213 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %index210
  %214 = getelementptr inbounds i8, ptr %213, i64 16
  %wide.load212 = load <2 x i64>, ptr %213, align 8, !tbaa !13, !alias.scope !34
  %wide.load213 = load <2 x i64>, ptr %214, align 8, !tbaa !13, !alias.scope !34
  %215 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %offset.idx211
  %216 = getelementptr inbounds i8, ptr %215, i64 16
  %wide.load214 = load <2 x i64>, ptr %215, align 8, !tbaa !13, !alias.scope !37, !noalias !34
  %wide.load215 = load <2 x i64>, ptr %216, align 8, !tbaa !13, !alias.scope !37, !noalias !34
  %217 = add nsw <2 x i64> %wide.load214, %wide.load212
  %218 = add nsw <2 x i64> %wide.load215, %wide.load213
  store <2 x i64> %217, ptr %215, align 8, !tbaa !13, !alias.scope !37, !noalias !34
  store <2 x i64> %218, ptr %216, align 8, !tbaa !13, !alias.scope !37, !noalias !34
  %index.next216 = add nuw i64 %index210, 4
  %219 = icmp eq i64 %index.next216, %n.vec206
  br i1 %219, label %middle.block201, label %vector.body209, !llvm.loop !39

middle.block201:                                  ; preds = %vector.body209
  %cmp.n217 = icmp eq i64 %177, %n.vec206
  br i1 %cmp.n217, label %.loopexit.us103, label %.lr.ph91.split.split.us.us.preheader246

.lr.ph91.split.split.us.us.preheader246:          ; preds = %middle.block201, %vector.memcheck192, %.lr.ph91.split.split.us.us.preheader
  %indvars.iv135.ph = phi i64 [ %174, %vector.memcheck192 ], [ %174, %.lr.ph91.split.split.us.us.preheader ], [ %ind.end207, %middle.block201 ]
  %220 = trunc i64 %indvars.iv135.ph to i32
  %221 = add i32 %.pre176, %220
  %222 = and i32 %221, 1
  %lcmp.mod255.not.not = icmp eq i32 %222, 0
  br i1 %lcmp.mod255.not.not, label %.lr.ph91.split.split.us.us.prol, label %.lr.ph91.split.split.us.us.prol.loopexit

.lr.ph91.split.split.us.us.prol:                  ; preds = %.lr.ph91.split.split.us.us.preheader246
  %223 = sub nsw i64 %indvars.iv135.ph, %174
  %224 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %223
  %225 = load i64, ptr %224, align 8, !tbaa !13
  %226 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %indvars.iv135.ph
  %227 = load i64, ptr %226, align 8, !tbaa !13
  %228 = add nsw i64 %227, %225
  store i64 %228, ptr %226, align 8, !tbaa !13
  %indvars.iv.next136.prol = add nsw i64 %indvars.iv135.ph, 1
  br label %.lr.ph91.split.split.us.us.prol.loopexit

.lr.ph91.split.split.us.us.prol.loopexit:         ; preds = %.lr.ph91.split.split.us.us.prol, %.lr.ph91.split.split.us.us.preheader246
  %indvars.iv135.unr = phi i64 [ %indvars.iv135.ph, %.lr.ph91.split.split.us.us.preheader246 ], [ %indvars.iv.next136.prol, %.lr.ph91.split.split.us.us.prol ]
  %229 = icmp eq i32 %.pre176, %220
  br i1 %229, label %.loopexit.us103, label %.lr.ph91.split.split.us.us

.lr.ph91.split.split.us.us:                       ; preds = %.lr.ph91.split.split.us.us.prol.loopexit, %.lr.ph91.split.split.us.us
  %indvars.iv135 = phi i64 [ %indvars.iv.next136.1, %.lr.ph91.split.split.us.us ], [ %indvars.iv135.unr, %.lr.ph91.split.split.us.us.prol.loopexit ]
  %230 = sub nsw i64 %indvars.iv135, %174
  %231 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %230
  %232 = load i64, ptr %231, align 8, !tbaa !13
  %233 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %indvars.iv135
  %234 = load i64, ptr %233, align 8, !tbaa !13
  %235 = add nsw i64 %234, %232
  store i64 %235, ptr %233, align 8, !tbaa !13
  %indvars.iv.next136 = add nsw i64 %indvars.iv135, 1
  %236 = sub nsw i64 %indvars.iv.next136, %174
  %237 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv140, i64 %236
  %238 = load i64, ptr %237, align 8, !tbaa !13
  %239 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %173, i64 %indvars.iv.next136
  %240 = load i64, ptr %239, align 8, !tbaa !13
  %241 = add nsw i64 %240, %238
  store i64 %241, ptr %239, align 8, !tbaa !13
  %indvars.iv.next136.1 = add nsw i64 %indvars.iv135, 2
  %lftr.wideiv138.1 = trunc i64 %indvars.iv.next136.1 to i32
  %exitcond139.not.1 = icmp eq i32 %58, %lftr.wideiv138.1
  br i1 %exitcond139.not.1, label %.loopexit.us103, label %.lr.ph91.split.split.us.us, !llvm.loop !40

._crit_edge119:                                   ; preds = %._crit_edge114, %._crit_edge86
  %242 = add nsw i32 %.fr123, -1
  %243 = sext i32 %242 to i64
  %244 = sext i32 %.pre176 to i64
  %245 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %243, i64 %244
  %246 = load i64, ptr %245, align 8, !tbaa !13
  %247 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %246)
  %248 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @s)
  %249 = icmp eq i32 %248, 3
  br i1 %249, label %.lr.ph121, label %._crit_edge122, !llvm.loop !41

.preheader76:                                     ; preds = %..loopexit75_crit_edge.split.us107, %..loopexit75_crit_edge.split.us.us.us, %.preheader77
  br i1 %brmerge, label %._crit_edge114, label %.preheader

.preheader:                                       ; preds = %.preheader76, %._crit_edge112
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %._crit_edge112 ], [ 0, %.preheader76 ]
  br i1 %60, label %._crit_edge112.unr-lcssa, label %.preheader.new

._crit_edge114:                                   ; preds = %._crit_edge112, %.preheader76, %.lr.ph99
  %250 = add nuw nsw i32 %.062116, 1
  %exitcond174 = icmp eq i32 %250, %smax
  br i1 %exitcond174, label %._crit_edge119, label %.preheader77, !llvm.loop !42

._crit_edge112.unr-lcssa:                         ; preds = %.preheader.new, %.preheader
  %indvars.iv164.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next165.1, %.preheader.new ]
  br i1 %lcmp.mod259.not, label %._crit_edge112, label %._crit_edge112.epilog-lcssa

._crit_edge112.epilog-lcssa:                      ; preds = %._crit_edge112.unr-lcssa
  %251 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv169, i64 %indvars.iv164.unr
  %252 = load i64, ptr %251, align 8, !tbaa !13
  %253 = srem i64 %252, 1000000007
  store i64 %253, ptr %251, align 8, !tbaa !13
  br label %._crit_edge112

._crit_edge112:                                   ; preds = %._crit_edge112.unr-lcssa, %._crit_edge112.epilog-lcssa
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next170, %wide.trip.count172
  br i1 %exitcond173.not, label %._crit_edge114, label %.preheader, !llvm.loop !43

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %indvars.iv164 = phi i64 [ %indvars.iv.next165.1, %.preheader.new ], [ 0, %.preheader ]
  %niter261 = phi i64 [ %niter261.next.1, %.preheader.new ], [ 0, %.preheader ]
  %254 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv169, i64 %indvars.iv164
  %255 = load i64, ptr %254, align 8, !tbaa !13
  %256 = srem i64 %255, 1000000007
  store i64 %256, ptr %254, align 8, !tbaa !13
  %indvars.iv.next165 = or disjoint i64 %indvars.iv164, 1
  %257 = getelementptr inbounds [2048 x [101 x i64]], ptr @f, i64 0, i64 %indvars.iv169, i64 %indvars.iv.next165
  %258 = load i64, ptr %257, align 8, !tbaa !13
  %259 = srem i64 %258, 1000000007
  store i64 %259, ptr %257, align 8, !tbaa !13
  %indvars.iv.next165.1 = add nuw nsw i64 %indvars.iv164, 2
  %niter261.next.1 = add i64 %niter261, 2
  %niter261.ncmp.1 = icmp eq i64 %niter261.next.1, %unroll_iter260
  br i1 %niter261.ncmp.1, label %._crit_edge112.unr-lcssa, label %.preheader.new, !llvm.loop !44

._crit_edge122:                                   ; preds = %._crit_edge119, %0
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

attributes #0 = { mustprogress nofree norecurse 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !10, !24, !25}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !10, !24}
!27 = distinct !{!27, !10, !24}
!28 = !{!29}
!29 = distinct !{!29, !30}
!30 = distinct !{!30, !"LVerDomain"}
!31 = !{!32}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !10, !24, !25}
!34 = !{!35}
!35 = distinct !{!35, !36}
!36 = distinct !{!36, !"LVerDomain"}
!37 = !{!38}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !10, !24, !25}
!40 = distinct !{!40, !10, !24}
!41 = distinct !{!41, !10}
!42 = distinct !{!42, !10}
!43 = distinct !{!43, !10}
!44 = distinct !{!44, !10}


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