; LLVM IR from tangjz/acm-icpc :: 51nod (1565)

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

@gene = external dso_local global ptr, align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@cnt = external dso_local global [65537 x i32], align 16
@pos = external dso_local global [200001 x i32], align 16
@sz = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@f = external dso_local global [5 x [3127 x i64]], align 16
@g = external dso_local global [3127 x i64], align 16
@s = external dso_local global [200001 x i8], align 16
@t = external dso_local global [200001 x i8], align 16
@.str.1 = external hidden unnamed_addr constant [11 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 ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %33, %0
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 65536
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %36

21:                                               ; preds = %17
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = ashr i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = and i32 %27, 1
  %29 = add nsw i32 %26, %28
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %31
  store i32 %29, ptr %32, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %21
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !9

36:                                               ; preds = %20
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m, ptr noundef @k, ptr noundef @s, ptr noundef @t)
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = sub nsw i32 %38, 1
  %40 = ashr i32 %39, 6
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr @sz, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %96, %36
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 4
  br i1 %44, label %46, label %45

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

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

47:                                               ; preds = %92, %46
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = load i32, ptr @n, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

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

52:                                               ; preds = %47
  %53 = load ptr, ptr @gene, align 8, !tbaa !11
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !13
  %58 = sext i8 %57 to i32
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !13
  %63 = sext i8 %62 to i32
  %64 = icmp eq i32 %58, %63
  br i1 %64, label %65, label %68

65:                                               ; preds = %52
  %66 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %66, ptr %6, align 4, !tbaa !5
  %67 = icmp ne i32 %66, 0
  br label %68

68:                                               ; preds = %65, %52
  %69 = phi i1 [ false, %52 ], [ %67, %65 ]
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sub nsw i32 %70, %71
  %73 = load i32, ptr @k, align 4, !tbaa !5
  %74 = icmp sle i32 %72, %73
  br i1 %74, label %75, label %90

75:                                               ; preds = %68
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = and i32 %76, 63
  %78 = zext i32 %77 to i64
  %79 = shl i64 1, %78
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 %81
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = ashr i32 %83, 6
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [3127 x i64], ptr %82, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !14
  %88 = or i64 %87, %79
  store i64 %88, ptr %86, align 8, !tbaa !14
  %89 = icmp ne i64 %88, 0
  br label %90

90:                                               ; preds = %75, %68
  %91 = phi i1 [ false, %68 ], [ %89, %75 ]
  br label %92

92:                                               ; preds = %90
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %5, align 4, !tbaa !5
  br label %47, !llvm.loop !16

95:                                               ; preds = %51
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %3, align 4, !tbaa !5
  br label %42, !llvm.loop !17

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

100:                                              ; preds = %155, %99
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 4
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %158

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %105 = load i32, ptr @n, align 4, !tbaa !5
  %106 = sub nsw i32 %105, 1
  store i32 %106, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1061109567, ptr %9, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %151, %104
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = icmp sge i32 %108, 0
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %154

111:                                              ; preds = %107
  %112 = load ptr, ptr @gene, align 8, !tbaa !11
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !13
  %117 = sext i8 %116 to i32
  %118 = load i32, ptr %8, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %119
  %121 = load i8, ptr %120, align 1, !tbaa !13
  %122 = sext i8 %121 to i32
  %123 = icmp eq i32 %117, %122
  br i1 %123, label %124, label %127

124:                                              ; preds = %111
  %125 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %125, ptr %9, align 4, !tbaa !5
  %126 = icmp ne i32 %125, 0
  br label %127

127:                                              ; preds = %124, %111
  %128 = phi i1 [ false, %111 ], [ %126, %124 ]
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = sub nsw i32 %129, %130
  %132 = load i32, ptr @k, align 4, !tbaa !5
  %133 = icmp sle i32 %131, %132
  br i1 %133, label %134, label %149

134:                                              ; preds = %127
  %135 = load i32, ptr %8, align 4, !tbaa !5
  %136 = and i32 %135, 63
  %137 = zext i32 %136 to i64
  %138 = shl i64 1, %137
  %139 = load i32, ptr %7, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 %140
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = ashr i32 %142, 6
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [3127 x i64], ptr %141, i64 0, i64 %144
  %146 = load i64, ptr %145, align 8, !tbaa !14
  %147 = or i64 %146, %138
  store i64 %147, ptr %145, align 8, !tbaa !14
  %148 = icmp ne i64 %147, 0
  br label %149

149:                                              ; preds = %134, %127
  %150 = phi i1 [ false, %127 ], [ %148, %134 ]
  br label %151

151:                                              ; preds = %149
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = add nsw i32 %152, -1
  store i32 %153, ptr %8, align 4, !tbaa !5
  br label %107, !llvm.loop !18

154:                                              ; preds = %110
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %7, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %7, align 4, !tbaa !5
  br label %100, !llvm.loop !19

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

159:                                              ; preds = %194, %158
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = icmp slt i32 %160, 4
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %197

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

164:                                              ; preds = %190, %163
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = load i32, ptr @m, align 4, !tbaa !5
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %193

169:                                              ; preds = %164
  %170 = load ptr, ptr @gene, align 8, !tbaa !11
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds i8, ptr %170, i64 %172
  %174 = load i8, ptr %173, align 1, !tbaa !13
  %175 = sext i8 %174 to i32
  %176 = load i32, ptr %11, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %177
  %179 = load i8, ptr %178, align 1, !tbaa !13
  %180 = sext i8 %179 to i32
  %181 = icmp eq i32 %175, %180
  br i1 %181, label %182, label %188

182:                                              ; preds = %169
  %183 = load i32, ptr %10, align 4, !tbaa !5
  %184 = load i32, ptr %11, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %185
  store i32 %183, ptr %186, align 4, !tbaa !5
  %187 = icmp ne i32 %183, 0
  br label %188

188:                                              ; preds = %182, %169
  %189 = phi i1 [ false, %169 ], [ %187, %182 ]
  br label %190

190:                                              ; preds = %188
  %191 = load i32, ptr %11, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %11, align 4, !tbaa !5
  br label %164, !llvm.loop !20

193:                                              ; preds = %168
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %10, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %10, align 4, !tbaa !5
  br label %159, !llvm.loop !21

197:                                              ; preds = %162
  %198 = load i32, ptr @m, align 4, !tbaa !5
  %199 = sub nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 %203
  %205 = getelementptr inbounds [3127 x i64], ptr %204, i64 0, i64 0
  %206 = load i32, ptr @sz, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = mul i64 %207, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @g, ptr align 8 %205, i64 %208, i1 false)
  br label %209

209:                                              ; preds = %223, %197
  %210 = load i32, ptr @sz, align 4, !tbaa !5
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %220

212:                                              ; preds = %209
  %213 = load i32, ptr @sz, align 4, !tbaa !5
  %214 = sub nsw i32 %213, 1
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !14
  %218 = icmp ne i64 %217, 0
  %219 = xor i1 %218, true
  br label %220

220:                                              ; preds = %212, %209
  %221 = phi i1 [ false, %209 ], [ %219, %212 ]
  br i1 %221, label %222, label %226

222:                                              ; preds = %220
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr @sz, align 4, !tbaa !5
  %225 = add nsw i32 %224, -1
  store i32 %225, ptr @sz, align 4, !tbaa !5
  br label %209, !llvm.loop !22

226:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %227 = load i32, ptr @m, align 4, !tbaa !5
  %228 = sub nsw i32 %227, 2
  store i32 %228, ptr %12, align 4, !tbaa !5
  br label %229

229:                                              ; preds = %320, %226
  %230 = load i32, ptr %12, align 4, !tbaa !5
  %231 = icmp sge i32 %230, 0
  br i1 %231, label %233, label %232

232:                                              ; preds = %229
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %323

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

234:                                              ; preds = %256, %233
  %235 = load i32, ptr %13, align 4, !tbaa !5
  %236 = load i32, ptr @sz, align 4, !tbaa !5
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %234
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %259

239:                                              ; preds = %234
  %240 = load i32, ptr %13, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %241
  %243 = load i64, ptr %242, align 8, !tbaa !14
  %244 = lshr i64 %243, 1
  %245 = load i32, ptr %13, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %247
  %249 = load i64, ptr %248, align 8, !tbaa !14
  %250 = and i64 %249, 1
  %251 = shl i64 %250, 63
  %252 = or i64 %244, %251
  %253 = load i32, ptr %13, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %254
  store i64 %252, ptr %255, align 8, !tbaa !14
  br label %256

256:                                              ; preds = %239
  %257 = load i32, ptr %13, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %13, align 4, !tbaa !5
  br label %234, !llvm.loop !23

259:                                              ; preds = %238
  %260 = load i32, ptr @sz, align 4, !tbaa !5
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %273

262:                                              ; preds = %259
  %263 = load i32, ptr @sz, align 4, !tbaa !5
  %264 = sub nsw i32 %263, 1
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %265
  %267 = load i64, ptr %266, align 8, !tbaa !14
  %268 = icmp ne i64 %267, 0
  br i1 %268, label %273, label %269

269:                                              ; preds = %262
  %270 = load i32, ptr @sz, align 4, !tbaa !5
  %271 = add nsw i32 %270, -1
  store i32 %271, ptr @sz, align 4, !tbaa !5
  %272 = icmp ne i32 %271, 0
  br label %273

273:                                              ; preds = %269, %262, %259
  %274 = phi i1 [ false, %262 ], [ false, %259 ], [ %272, %269 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %275 = load i32, ptr %12, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 %279
  %281 = getelementptr inbounds [3127 x i64], ptr %280, i64 0, i64 0
  store ptr %281, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %298, %273
  %283 = load i32, ptr %15, align 4, !tbaa !5
  %284 = load i32, ptr @sz, align 4, !tbaa !5
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %282
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %301

287:                                              ; preds = %282
  %288 = load ptr, ptr %14, align 8, !tbaa !11
  %289 = load i32, ptr %15, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds i64, ptr %288, i64 %290
  %292 = load i64, ptr %291, align 8, !tbaa !14
  %293 = load i32, ptr %15, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %294
  %296 = load i64, ptr %295, align 8, !tbaa !14
  %297 = and i64 %296, %292
  store i64 %297, ptr %295, align 8, !tbaa !14
  br label %298

298:                                              ; preds = %287
  %299 = load i32, ptr %15, align 4, !tbaa !5
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %15, align 4, !tbaa !5
  br label %282, !llvm.loop !24

301:                                              ; preds = %286
  br label %302

302:                                              ; preds = %316, %301
  %303 = load i32, ptr @sz, align 4, !tbaa !5
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %313

305:                                              ; preds = %302
  %306 = load i32, ptr @sz, align 4, !tbaa !5
  %307 = sub nsw i32 %306, 1
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %308
  %310 = load i64, ptr %309, align 8, !tbaa !14
  %311 = icmp ne i64 %310, 0
  %312 = xor i1 %311, true
  br label %313

313:                                              ; preds = %305, %302
  %314 = phi i1 [ false, %302 ], [ %312, %305 ]
  br i1 %314, label %315, label %319

315:                                              ; preds = %313
  br label %316

316:                                              ; preds = %315
  %317 = load i32, ptr @sz, align 4, !tbaa !5
  %318 = add nsw i32 %317, -1
  store i32 %318, ptr @sz, align 4, !tbaa !5
  br label %302, !llvm.loop !25

319:                                              ; preds = %313
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %320

320:                                              ; preds = %319
  %321 = load i32, ptr %12, align 4, !tbaa !5
  %322 = add nsw i32 %321, -1
  store i32 %322, ptr %12, align 4, !tbaa !5
  br label %229, !llvm.loop !26

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

324:                                              ; preds = %337, %323
  %325 = load i32, ptr %16, align 4, !tbaa !5
  %326 = load i32, ptr @sz, align 4, !tbaa !5
  %327 = icmp slt i32 %325, %326
  br i1 %327, label %329, label %328

328:                                              ; preds = %324
  store i32 38, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %340

329:                                              ; preds = %324
  %330 = load i32, ptr %16, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %331
  %333 = load i64, ptr %332, align 8, !tbaa !14
  %334 = call noundef i32 @_Z8popcounty(i64 noundef %333)
  %335 = load i32, ptr @ans, align 4, !tbaa !5
  %336 = add nsw i32 %335, %334
  store i32 %336, ptr @ans, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %329
  %338 = load i32, ptr %16, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %16, align 4, !tbaa !5
  br label %324, !llvm.loop !27

340:                                              ; preds = %328
  %341 = load i32, ptr @ans, align 4, !tbaa !5
  %342 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %341)
  ret i32 0
}

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z8popcounty(i64 noundef) #4

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

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: readwrite) }
attributes #4 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!7, !7, i64 0}
!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}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !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"

@gene = external dso_local local_unnamed_addr global ptr, align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@cnt = external dso_local local_unnamed_addr global [65537 x i32], align 16
@pos = external dso_local local_unnamed_addr global [200001 x i32], align 16
@sz = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i32, align 4
@f = external dso_local local_unnamed_addr global [5 x [3127 x i64]], align 16
@g = external dso_local local_unnamed_addr global [3127 x i64], align 16
@s = external dso_local global [200001 x i8], align 16
@t = external dso_local global [200001 x i8], align 16
@.str.1 = external hidden unnamed_addr constant [11 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() local_unnamed_addr #0 {
  br label %77

1:                                                ; preds = %77
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @k, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %4 = add nsw i32 %3, -1
  %5 = ashr i32 %4, 6
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr @sz, align 4, !tbaa !5
  %7 = icmp sgt i32 %3, 0
  %8 = load ptr, ptr @gene, align 8
  %9 = load i32, ptr @k, align 4
  br i1 %7, label %.preheader84.us.preheader, label %.preheader81

.preheader84.us.preheader:                        ; preds = %1
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %10

10:                                               ; preds = %.preheader84.us.preheader, %25
  %indvars.iv124 = phi i64 [ 0, %.preheader84.us.preheader ], [ %indvars.iv.next125, %25 ]
  %.06388.us = phi i32 [ -1061109567, %.preheader84.us.preheader ], [ %spec.select.us, %25 ]
  %11 = load i8, ptr %8, align 1, !tbaa !9
  %12 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv124
  %13 = load i8, ptr %12, align 1, !tbaa !9
  %14 = icmp eq i8 %11, %13
  %15 = trunc nuw nsw i64 %indvars.iv124 to i32
  %spec.select.us = select i1 %14, i32 %15, i32 %.06388.us
  %16 = sub nsw i32 %15, %spec.select.us
  %.not76.us = icmp sgt i32 %16, %9
  br i1 %.not76.us, label %25, label %17

17:                                               ; preds = %10
  %18 = and i64 %indvars.iv124, 63
  %19 = shl nuw i64 1, %18
  %20 = lshr i64 %indvars.iv124, 6
  %21 = and i64 %20, 67108863
  %22 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 0, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !10
  %24 = or i64 %23, %19
  store i64 %24, ptr %22, align 8, !tbaa !10
  br label %25

25:                                               ; preds = %17, %10
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond127.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count
  br i1 %exitcond127.not, label %._crit_edge.us, label %10, !llvm.loop !12

._crit_edge.us:                                   ; preds = %25
  %26 = getelementptr inbounds i8, ptr %8, i64 1
  br label %27

27:                                               ; preds = %42, %._crit_edge.us
  %indvars.iv124.1 = phi i64 [ 0, %._crit_edge.us ], [ %indvars.iv.next125.1, %42 ]
  %.06388.us.1 = phi i32 [ -1061109567, %._crit_edge.us ], [ %spec.select.us.1, %42 ]
  %28 = load i8, ptr %26, align 1, !tbaa !9
  %29 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv124.1
  %30 = load i8, ptr %29, align 1, !tbaa !9
  %31 = icmp eq i8 %28, %30
  %32 = trunc nuw nsw i64 %indvars.iv124.1 to i32
  %spec.select.us.1 = select i1 %31, i32 %32, i32 %.06388.us.1
  %33 = sub nsw i32 %32, %spec.select.us.1
  %.not76.us.1 = icmp sgt i32 %33, %9
  br i1 %.not76.us.1, label %42, label %34

34:                                               ; preds = %27
  %35 = and i64 %indvars.iv124.1, 63
  %36 = shl nuw i64 1, %35
  %37 = lshr i64 %indvars.iv124.1, 6
  %38 = and i64 %37, 67108863
  %39 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 1, i64 %38
  %40 = load i64, ptr %39, align 8, !tbaa !10
  %41 = or i64 %40, %36
  store i64 %41, ptr %39, align 8, !tbaa !10
  br label %42

42:                                               ; preds = %34, %27
  %indvars.iv.next125.1 = add nuw nsw i64 %indvars.iv124.1, 1
  %exitcond127.1.not = icmp eq i64 %indvars.iv.next125.1, %wide.trip.count
  br i1 %exitcond127.1.not, label %._crit_edge.us.1, label %27, !llvm.loop !12

._crit_edge.us.1:                                 ; preds = %42
  %43 = getelementptr inbounds i8, ptr %8, i64 2
  br label %44

44:                                               ; preds = %59, %._crit_edge.us.1
  %indvars.iv124.2 = phi i64 [ 0, %._crit_edge.us.1 ], [ %indvars.iv.next125.2, %59 ]
  %.06388.us.2 = phi i32 [ -1061109567, %._crit_edge.us.1 ], [ %spec.select.us.2, %59 ]
  %45 = load i8, ptr %43, align 1, !tbaa !9
  %46 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv124.2
  %47 = load i8, ptr %46, align 1, !tbaa !9
  %48 = icmp eq i8 %45, %47
  %49 = trunc nuw nsw i64 %indvars.iv124.2 to i32
  %spec.select.us.2 = select i1 %48, i32 %49, i32 %.06388.us.2
  %50 = sub nsw i32 %49, %spec.select.us.2
  %.not76.us.2 = icmp sgt i32 %50, %9
  br i1 %.not76.us.2, label %59, label %51

51:                                               ; preds = %44
  %52 = and i64 %indvars.iv124.2, 63
  %53 = shl nuw i64 1, %52
  %54 = lshr i64 %indvars.iv124.2, 6
  %55 = and i64 %54, 67108863
  %56 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 2, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !10
  %58 = or i64 %57, %53
  store i64 %58, ptr %56, align 8, !tbaa !10
  br label %59

59:                                               ; preds = %51, %44
  %indvars.iv.next125.2 = add nuw nsw i64 %indvars.iv124.2, 1
  %exitcond127.2.not = icmp eq i64 %indvars.iv.next125.2, %wide.trip.count
  br i1 %exitcond127.2.not, label %._crit_edge.us.2, label %44, !llvm.loop !12

._crit_edge.us.2:                                 ; preds = %59
  %60 = getelementptr inbounds i8, ptr %8, i64 3
  br label %61

61:                                               ; preds = %76, %._crit_edge.us.2
  %indvars.iv124.3 = phi i64 [ 0, %._crit_edge.us.2 ], [ %indvars.iv.next125.3, %76 ]
  %.06388.us.3 = phi i32 [ -1061109567, %._crit_edge.us.2 ], [ %spec.select.us.3, %76 ]
  %62 = load i8, ptr %60, align 1, !tbaa !9
  %63 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv124.3
  %64 = load i8, ptr %63, align 1, !tbaa !9
  %65 = icmp eq i8 %62, %64
  %66 = trunc nuw nsw i64 %indvars.iv124.3 to i32
  %spec.select.us.3 = select i1 %65, i32 %66, i32 %.06388.us.3
  %67 = sub nsw i32 %66, %spec.select.us.3
  %.not76.us.3 = icmp sgt i32 %67, %9
  br i1 %.not76.us.3, label %76, label %68

68:                                               ; preds = %61
  %69 = and i64 %indvars.iv124.3, 63
  %70 = shl nuw i64 1, %69
  %71 = lshr i64 %indvars.iv124.3, 6
  %72 = and i64 %71, 67108863
  %73 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 3, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !10
  %75 = or i64 %74, %70
  store i64 %75, ptr %73, align 8, !tbaa !10
  br label %76

76:                                               ; preds = %68, %61
  %indvars.iv.next125.3 = add nuw nsw i64 %indvars.iv124.3, 1
  %exitcond127.3.not = icmp eq i64 %indvars.iv.next125.3, %wide.trip.count
  br i1 %exitcond127.3.not, label %.preheader83, label %61, !llvm.loop !12

77:                                               ; preds = %77, %0
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next.2, %77 ]
  %78 = trunc nuw nsw i64 %indvars.iv to i32
  %79 = lshr i64 %indvars.iv, 1
  %80 = and i64 %79, 2147483647
  %81 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = and i32 %78, 1
  %84 = add nsw i32 %82, %83
  %85 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %indvars.iv
  store i32 %84, ptr %85, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = trunc nuw nsw i64 %indvars.iv.next to i32
  %87 = lshr i64 %indvars.iv.next, 1
  %88 = and i64 %87, 2147483647
  %89 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = and i32 %86, 1
  %92 = add nsw i32 %90, %91
  %93 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %indvars.iv.next
  store i32 %92, ptr %93, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %94 = trunc i64 %indvars.iv to i32
  %95 = lshr i64 %indvars.iv.next.1, 1
  %96 = and i64 %95, 2147483647
  %97 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = and i32 %94, 1
  %100 = add nsw i32 %98, %99
  %101 = getelementptr inbounds [65537 x i32], ptr @cnt, i64 0, i64 %indvars.iv.next.1
  store i32 %100, ptr %101, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %exitcond.not.2 = icmp eq i64 %indvars.iv.next.2, 65536
  br i1 %exitcond.not.2, label %1, label %77, !llvm.loop !14

.preheader83:                                     ; preds = %76
  br i1 %7, label %.preheader82.us.preheader, label %.preheader81

.preheader82.us.preheader:                        ; preds = %.preheader83
  %102 = zext nneg i32 %3 to i64
  br label %103

103:                                              ; preds = %.preheader82.us.preheader, %117
  %indvars.iv132 = phi i64 [ %102, %.preheader82.us.preheader ], [ %indvars.iv.next133, %117 ]
  %.06091.us = phi i32 [ 1061109567, %.preheader82.us.preheader ], [ %spec.select77.us, %117 ]
  %indvars.iv.next133 = add nsw i64 %indvars.iv132, -1
  %indvars = trunc i64 %indvars.iv.next133 to i32
  %104 = load i8, ptr %8, align 1, !tbaa !9
  %105 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv.next133
  %106 = load i8, ptr %105, align 1, !tbaa !9
  %107 = icmp eq i8 %104, %106
  %spec.select77.us = select i1 %107, i32 %indvars, i32 %.06091.us
  %108 = sub nsw i32 %spec.select77.us, %indvars
  %.not75.us = icmp sgt i32 %108, %9
  br i1 %.not75.us, label %117, label %109

109:                                              ; preds = %103
  %110 = and i64 %indvars.iv.next133, 63
  %111 = shl nuw i64 1, %110
  %112 = lshr i64 %indvars.iv.next133, 6
  %113 = and i64 %112, 67108863
  %114 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 0, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !10
  %116 = or i64 %115, %111
  store i64 %116, ptr %114, align 8, !tbaa !10
  br label %117

117:                                              ; preds = %109, %103
  %118 = icmp ugt i64 %indvars.iv132, 1
  br i1 %118, label %103, label %._crit_edge.us95, !llvm.loop !15

._crit_edge.us95:                                 ; preds = %117
  %119 = getelementptr inbounds i8, ptr %8, i64 1
  br label %120

120:                                              ; preds = %134, %._crit_edge.us95
  %indvars.iv132.1 = phi i64 [ %102, %._crit_edge.us95 ], [ %indvars.iv.next133.1, %134 ]
  %.06091.us.1 = phi i32 [ 1061109567, %._crit_edge.us95 ], [ %spec.select77.us.1, %134 ]
  %indvars.iv.next133.1 = add nsw i64 %indvars.iv132.1, -1
  %indvars.1 = trunc i64 %indvars.iv.next133.1 to i32
  %121 = load i8, ptr %119, align 1, !tbaa !9
  %122 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv.next133.1
  %123 = load i8, ptr %122, align 1, !tbaa !9
  %124 = icmp eq i8 %121, %123
  %spec.select77.us.1 = select i1 %124, i32 %indvars.1, i32 %.06091.us.1
  %125 = sub nsw i32 %spec.select77.us.1, %indvars.1
  %.not75.us.1 = icmp sgt i32 %125, %9
  br i1 %.not75.us.1, label %134, label %126

126:                                              ; preds = %120
  %127 = and i64 %indvars.iv.next133.1, 63
  %128 = shl nuw i64 1, %127
  %129 = lshr i64 %indvars.iv.next133.1, 6
  %130 = and i64 %129, 67108863
  %131 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 1, i64 %130
  %132 = load i64, ptr %131, align 8, !tbaa !10
  %133 = or i64 %132, %128
  store i64 %133, ptr %131, align 8, !tbaa !10
  br label %134

134:                                              ; preds = %126, %120
  %135 = icmp sgt i64 %indvars.iv132.1, 1
  br i1 %135, label %120, label %._crit_edge.us95.1, !llvm.loop !15

._crit_edge.us95.1:                               ; preds = %134
  %136 = getelementptr inbounds i8, ptr %8, i64 2
  br label %137

137:                                              ; preds = %151, %._crit_edge.us95.1
  %indvars.iv132.2 = phi i64 [ %102, %._crit_edge.us95.1 ], [ %indvars.iv.next133.2, %151 ]
  %.06091.us.2 = phi i32 [ 1061109567, %._crit_edge.us95.1 ], [ %spec.select77.us.2, %151 ]
  %indvars.iv.next133.2 = add nsw i64 %indvars.iv132.2, -1
  %indvars.2 = trunc i64 %indvars.iv.next133.2 to i32
  %138 = load i8, ptr %136, align 1, !tbaa !9
  %139 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv.next133.2
  %140 = load i8, ptr %139, align 1, !tbaa !9
  %141 = icmp eq i8 %138, %140
  %spec.select77.us.2 = select i1 %141, i32 %indvars.2, i32 %.06091.us.2
  %142 = sub nsw i32 %spec.select77.us.2, %indvars.2
  %.not75.us.2 = icmp sgt i32 %142, %9
  br i1 %.not75.us.2, label %151, label %143

143:                                              ; preds = %137
  %144 = and i64 %indvars.iv.next133.2, 63
  %145 = shl nuw i64 1, %144
  %146 = lshr i64 %indvars.iv.next133.2, 6
  %147 = and i64 %146, 67108863
  %148 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 2, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !10
  %150 = or i64 %149, %145
  store i64 %150, ptr %148, align 8, !tbaa !10
  br label %151

151:                                              ; preds = %143, %137
  %152 = icmp sgt i64 %indvars.iv132.2, 1
  br i1 %152, label %137, label %._crit_edge.us95.2, !llvm.loop !15

._crit_edge.us95.2:                               ; preds = %151
  %153 = getelementptr inbounds i8, ptr %8, i64 3
  br label %154

154:                                              ; preds = %168, %._crit_edge.us95.2
  %indvars.iv132.3 = phi i64 [ %102, %._crit_edge.us95.2 ], [ %indvars.iv.next133.3, %168 ]
  %.06091.us.3 = phi i32 [ 1061109567, %._crit_edge.us95.2 ], [ %spec.select77.us.3, %168 ]
  %indvars.iv.next133.3 = add nsw i64 %indvars.iv132.3, -1
  %indvars.3 = trunc i64 %indvars.iv.next133.3 to i32
  %155 = load i8, ptr %153, align 1, !tbaa !9
  %156 = getelementptr inbounds [200001 x i8], ptr @s, i64 0, i64 %indvars.iv.next133.3
  %157 = load i8, ptr %156, align 1, !tbaa !9
  %158 = icmp eq i8 %155, %157
  %spec.select77.us.3 = select i1 %158, i32 %indvars.3, i32 %.06091.us.3
  %159 = sub nsw i32 %spec.select77.us.3, %indvars.3
  %.not75.us.3 = icmp sgt i32 %159, %9
  br i1 %.not75.us.3, label %168, label %160

160:                                              ; preds = %154
  %161 = and i64 %indvars.iv.next133.3, 63
  %162 = shl nuw i64 1, %161
  %163 = lshr i64 %indvars.iv.next133.3, 6
  %164 = and i64 %163, 67108863
  %165 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 3, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !10
  %167 = or i64 %166, %162
  store i64 %167, ptr %165, align 8, !tbaa !10
  br label %168

168:                                              ; preds = %160, %154
  %169 = icmp sgt i64 %indvars.iv132.3, 1
  br i1 %169, label %154, label %.preheader81, !llvm.loop !15

.preheader81:                                     ; preds = %168, %1, %.preheader83
  %170 = load i32, ptr @m, align 4, !tbaa !5
  %171 = icmp sgt i32 %170, 0
  br i1 %171, label %.preheader80.us.preheader, label %.split101.us

.preheader80.us.preheader:                        ; preds = %.preheader81
  %wide.trip.count144 = zext nneg i32 %170 to i64
  %min.iters.check = icmp ult i32 %170, 16
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader80.us.preheader
  %172 = shl nuw nsw i64 %wide.trip.count144, 2
  %scevgep = getelementptr i8, ptr @pos, i64 %172
  %scevgep204 = getelementptr i8, ptr %8, i64 1
  %scevgep205 = getelementptr i8, ptr @t, i64 %wide.trip.count144
  %bound0 = icmp ugt ptr %scevgep204, @pos
  %bound1 = icmp ult ptr %8, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound0206 = icmp ugt ptr %scevgep205, @pos
  %bound1207 = icmp ugt ptr %scevgep, @t
  %found.conflict208 = and i1 %bound0206, %bound1207
  %conflict.rdx = or i1 %found.conflict, %found.conflict208
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count144, 2147483640
  %173 = load i8, ptr %8, align 1, !tbaa !9, !alias.scope !16
  %broadcast.splatinsert210 = insertelement <4 x i8> poison, i8 %173, i64 0
  %broadcast.splat211 = shufflevector <4 x i8> %broadcast.splatinsert210, <4 x i8> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %pred.store.continue225, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue225 ]
  %174 = or disjoint i64 %index, 4
  %175 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %index
  %176 = getelementptr inbounds i8, ptr %175, i64 4
  %wide.load = load <4 x i8>, ptr %175, align 8, !tbaa !9, !alias.scope !19
  %wide.load209 = load <4 x i8>, ptr %176, align 4, !tbaa !9, !alias.scope !19
  %177 = icmp eq <4 x i8> %broadcast.splat211, %wide.load
  %178 = icmp eq <4 x i8> %broadcast.splat211, %wide.load209
  %179 = extractelement <4 x i1> %177, i64 0
  br i1 %179, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %180 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %index
  store i32 0, ptr %180, align 16, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %181 = extractelement <4 x i1> %177, i64 1
  br i1 %181, label %pred.store.if212, label %pred.store.continue213

pred.store.if212:                                 ; preds = %pred.store.continue
  %182 = or disjoint i64 %index, 1
  %183 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %182
  store i32 0, ptr %183, align 4, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue213

pred.store.continue213:                           ; preds = %pred.store.if212, %pred.store.continue
  %184 = extractelement <4 x i1> %177, i64 2
  br i1 %184, label %pred.store.if214, label %pred.store.continue215

pred.store.if214:                                 ; preds = %pred.store.continue213
  %185 = or disjoint i64 %index, 2
  %186 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %185
  store i32 0, ptr %186, align 8, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue215

pred.store.continue215:                           ; preds = %pred.store.if214, %pred.store.continue213
  %187 = extractelement <4 x i1> %177, i64 3
  br i1 %187, label %pred.store.if216, label %pred.store.continue217

pred.store.if216:                                 ; preds = %pred.store.continue215
  %188 = or disjoint i64 %index, 3
  %189 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %188
  store i32 0, ptr %189, align 4, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue217

pred.store.continue217:                           ; preds = %pred.store.if216, %pred.store.continue215
  %190 = extractelement <4 x i1> %178, i64 0
  br i1 %190, label %pred.store.if218, label %pred.store.continue219

pred.store.if218:                                 ; preds = %pred.store.continue217
  %191 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %174
  store i32 0, ptr %191, align 16, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue219

pred.store.continue219:                           ; preds = %pred.store.if218, %pred.store.continue217
  %192 = extractelement <4 x i1> %178, i64 1
  br i1 %192, label %pred.store.if220, label %pred.store.continue221

pred.store.if220:                                 ; preds = %pred.store.continue219
  %193 = or disjoint i64 %index, 5
  %194 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %193
  store i32 0, ptr %194, align 4, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue221

pred.store.continue221:                           ; preds = %pred.store.if220, %pred.store.continue219
  %195 = extractelement <4 x i1> %178, i64 2
  br i1 %195, label %pred.store.if222, label %pred.store.continue223

pred.store.if222:                                 ; preds = %pred.store.continue221
  %196 = or disjoint i64 %index, 6
  %197 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %196
  store i32 0, ptr %197, align 8, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue223

pred.store.continue223:                           ; preds = %pred.store.if222, %pred.store.continue221
  %198 = extractelement <4 x i1> %178, i64 3
  br i1 %198, label %pred.store.if224, label %pred.store.continue225

pred.store.if224:                                 ; preds = %pred.store.continue223
  %199 = or disjoint i64 %index, 7
  %200 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %199
  store i32 0, ptr %200, align 4, !tbaa !5, !alias.scope !21, !noalias !23
  br label %pred.store.continue225

pred.store.continue225:                           ; preds = %pred.store.if224, %pred.store.continue223
  %index.next = add nuw i64 %index, 8
  %201 = icmp eq i64 %index.next, %n.vec
  br i1 %201, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %pred.store.continue225
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count144
  br i1 %cmp.n, label %._crit_edge.us99, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader80.us.preheader
  %indvars.iv140.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader80.us.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count144, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %202 = load i8, ptr %8, align 1, !tbaa !9
  %203 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140.ph
  %204 = load i8, ptr %203, align 8, !tbaa !9
  %205 = icmp eq i8 %202, %204
  br i1 %205, label %206, label %scalar.ph.prol.loopexit.unr-lcssa

206:                                              ; preds = %scalar.ph.prol
  %207 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140.ph
  store i32 0, ptr %207, align 16, !tbaa !5
  br label %scalar.ph.prol.loopexit.unr-lcssa

scalar.ph.prol.loopexit.unr-lcssa:                ; preds = %206, %scalar.ph.prol
  %indvars.iv.next141.prol = or disjoint i64 %indvars.iv140.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol.loopexit.unr-lcssa, %scalar.ph.preheader
  %indvars.iv140.unr = phi i64 [ %indvars.iv140.ph, %scalar.ph.preheader ], [ %indvars.iv.next141.prol, %scalar.ph.prol.loopexit.unr-lcssa ]
  %208 = add nsw i64 %wide.trip.count144, -1
  %209 = icmp eq i64 %indvars.iv140.ph, %208
  br i1 %209, label %._crit_edge.us99, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %222
  %indvars.iv140 = phi i64 [ %indvars.iv.next141.1373, %222 ], [ %indvars.iv140.unr, %scalar.ph.prol.loopexit ]
  %210 = load i8, ptr %8, align 1, !tbaa !9
  %211 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140
  %212 = load i8, ptr %211, align 1, !tbaa !9
  %213 = icmp eq i8 %210, %212
  br i1 %213, label %214, label %scalar.ph.1

214:                                              ; preds = %scalar.ph
  %215 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140
  store i32 0, ptr %215, align 4, !tbaa !5
  br label %scalar.ph.1

scalar.ph.1:                                      ; preds = %214, %scalar.ph
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %216 = load i8, ptr %8, align 1, !tbaa !9
  %217 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv.next141
  %218 = load i8, ptr %217, align 1, !tbaa !9
  %219 = icmp eq i8 %216, %218
  br i1 %219, label %220, label %222

220:                                              ; preds = %scalar.ph.1
  %221 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv.next141
  store i32 0, ptr %221, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %220, %scalar.ph.1
  %indvars.iv.next141.1373 = add nuw nsw i64 %indvars.iv140, 2
  %exitcond145.not.1 = icmp eq i64 %indvars.iv.next141.1373, %wide.trip.count144
  br i1 %exitcond145.not.1, label %._crit_edge.us99, label %scalar.ph, !llvm.loop !27

._crit_edge.us99:                                 ; preds = %scalar.ph.prol.loopexit, %222, %middle.block
  %223 = getelementptr inbounds i8, ptr %8, i64 1
  %min.iters.check239 = icmp ult i32 %170, 16
  br i1 %min.iters.check239, label %scalar.ph238.preheader, label %vector.memcheck226

vector.memcheck226:                               ; preds = %._crit_edge.us99
  %224 = shl nuw nsw i64 %wide.trip.count144, 2
  %scevgep227 = getelementptr i8, ptr @pos, i64 %224
  %scevgep228 = getelementptr i8, ptr %8, i64 2
  %scevgep229 = getelementptr i8, ptr @t, i64 %wide.trip.count144
  %bound0230 = icmp ugt ptr %scevgep228, @pos
  %bound1231 = icmp ult ptr %223, %scevgep227
  %found.conflict232 = and i1 %bound0230, %bound1231
  %bound0233 = icmp ugt ptr %scevgep229, @pos
  %bound1234 = icmp ugt ptr %scevgep227, @t
  %found.conflict235 = and i1 %bound0233, %bound1234
  %conflict.rdx236 = or i1 %found.conflict232, %found.conflict235
  br i1 %conflict.rdx236, label %scalar.ph238.preheader, label %vector.ph240

vector.ph240:                                     ; preds = %vector.memcheck226
  %n.vec242 = and i64 %wide.trip.count144, 2147483640
  %225 = load i8, ptr %223, align 1, !tbaa !9, !alias.scope !28
  %broadcast.splatinsert248 = insertelement <4 x i8> poison, i8 %225, i64 0
  %broadcast.splat249 = shufflevector <4 x i8> %broadcast.splatinsert248, <4 x i8> poison, <4 x i32> zeroinitializer
  br label %vector.body244

vector.body244:                                   ; preds = %pred.store.continue265, %vector.ph240
  %index245 = phi i64 [ 0, %vector.ph240 ], [ %index.next266, %pred.store.continue265 ]
  %226 = or disjoint i64 %index245, 4
  %227 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %index245
  %228 = getelementptr inbounds i8, ptr %227, i64 4
  %wide.load246 = load <4 x i8>, ptr %227, align 8, !tbaa !9, !alias.scope !31
  %wide.load247 = load <4 x i8>, ptr %228, align 4, !tbaa !9, !alias.scope !31
  %229 = icmp eq <4 x i8> %broadcast.splat249, %wide.load246
  %230 = icmp eq <4 x i8> %broadcast.splat249, %wide.load247
  %231 = extractelement <4 x i1> %229, i64 0
  br i1 %231, label %pred.store.if250, label %pred.store.continue251

pred.store.if250:                                 ; preds = %vector.body244
  %232 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %index245
  store i32 1, ptr %232, align 16, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue251

pred.store.continue251:                           ; preds = %pred.store.if250, %vector.body244
  %233 = extractelement <4 x i1> %229, i64 1
  br i1 %233, label %pred.store.if252, label %pred.store.continue253

pred.store.if252:                                 ; preds = %pred.store.continue251
  %234 = or disjoint i64 %index245, 1
  %235 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %234
  store i32 1, ptr %235, align 4, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue253

pred.store.continue253:                           ; preds = %pred.store.if252, %pred.store.continue251
  %236 = extractelement <4 x i1> %229, i64 2
  br i1 %236, label %pred.store.if254, label %pred.store.continue255

pred.store.if254:                                 ; preds = %pred.store.continue253
  %237 = or disjoint i64 %index245, 2
  %238 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %237
  store i32 1, ptr %238, align 8, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue255

pred.store.continue255:                           ; preds = %pred.store.if254, %pred.store.continue253
  %239 = extractelement <4 x i1> %229, i64 3
  br i1 %239, label %pred.store.if256, label %pred.store.continue257

pred.store.if256:                                 ; preds = %pred.store.continue255
  %240 = or disjoint i64 %index245, 3
  %241 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %240
  store i32 1, ptr %241, align 4, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue257

pred.store.continue257:                           ; preds = %pred.store.if256, %pred.store.continue255
  %242 = extractelement <4 x i1> %230, i64 0
  br i1 %242, label %pred.store.if258, label %pred.store.continue259

pred.store.if258:                                 ; preds = %pred.store.continue257
  %243 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %226
  store i32 1, ptr %243, align 16, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue259

pred.store.continue259:                           ; preds = %pred.store.if258, %pred.store.continue257
  %244 = extractelement <4 x i1> %230, i64 1
  br i1 %244, label %pred.store.if260, label %pred.store.continue261

pred.store.if260:                                 ; preds = %pred.store.continue259
  %245 = or disjoint i64 %index245, 5
  %246 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %245
  store i32 1, ptr %246, align 4, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue261

pred.store.continue261:                           ; preds = %pred.store.if260, %pred.store.continue259
  %247 = extractelement <4 x i1> %230, i64 2
  br i1 %247, label %pred.store.if262, label %pred.store.continue263

pred.store.if262:                                 ; preds = %pred.store.continue261
  %248 = or disjoint i64 %index245, 6
  %249 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %248
  store i32 1, ptr %249, align 8, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue263

pred.store.continue263:                           ; preds = %pred.store.if262, %pred.store.continue261
  %250 = extractelement <4 x i1> %230, i64 3
  br i1 %250, label %pred.store.if264, label %pred.store.continue265

pred.store.if264:                                 ; preds = %pred.store.continue263
  %251 = or disjoint i64 %index245, 7
  %252 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %251
  store i32 1, ptr %252, align 4, !tbaa !5, !alias.scope !33, !noalias !35
  br label %pred.store.continue265

pred.store.continue265:                           ; preds = %pred.store.if264, %pred.store.continue263
  %index.next266 = add nuw i64 %index245, 8
  %253 = icmp eq i64 %index.next266, %n.vec242
  br i1 %253, label %middle.block237, label %vector.body244, !llvm.loop !36

middle.block237:                                  ; preds = %pred.store.continue265
  %cmp.n267 = icmp eq i64 %n.vec242, %wide.trip.count144
  br i1 %cmp.n267, label %._crit_edge.us99.1, label %scalar.ph238.preheader

scalar.ph238.preheader:                           ; preds = %middle.block237, %vector.memcheck226, %._crit_edge.us99
  %indvars.iv140.1.ph = phi i64 [ 0, %vector.memcheck226 ], [ 0, %._crit_edge.us99 ], [ %n.vec242, %middle.block237 ]
  %xtraiter374 = and i64 %wide.trip.count144, 1
  %lcmp.mod375.not = icmp eq i64 %xtraiter374, 0
  br i1 %lcmp.mod375.not, label %scalar.ph238.prol.loopexit, label %scalar.ph238.prol

scalar.ph238.prol:                                ; preds = %scalar.ph238.preheader
  %254 = load i8, ptr %223, align 1, !tbaa !9
  %255 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140.1.ph
  %256 = load i8, ptr %255, align 8, !tbaa !9
  %257 = icmp eq i8 %254, %256
  br i1 %257, label %258, label %scalar.ph238.prol.loopexit.unr-lcssa

258:                                              ; preds = %scalar.ph238.prol
  %259 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140.1.ph
  store i32 1, ptr %259, align 16, !tbaa !5
  br label %scalar.ph238.prol.loopexit.unr-lcssa

scalar.ph238.prol.loopexit.unr-lcssa:             ; preds = %258, %scalar.ph238.prol
  %indvars.iv.next141.1.prol = or disjoint i64 %indvars.iv140.1.ph, 1
  br label %scalar.ph238.prol.loopexit

scalar.ph238.prol.loopexit:                       ; preds = %scalar.ph238.prol.loopexit.unr-lcssa, %scalar.ph238.preheader
  %indvars.iv140.1.unr = phi i64 [ %indvars.iv140.1.ph, %scalar.ph238.preheader ], [ %indvars.iv.next141.1.prol, %scalar.ph238.prol.loopexit.unr-lcssa ]
  %260 = add nsw i64 %wide.trip.count144, -1
  %261 = icmp eq i64 %indvars.iv140.1.ph, %260
  br i1 %261, label %._crit_edge.us99.1, label %scalar.ph238

scalar.ph238:                                     ; preds = %scalar.ph238.prol.loopexit, %274
  %indvars.iv140.1 = phi i64 [ %indvars.iv.next141.1.1, %274 ], [ %indvars.iv140.1.unr, %scalar.ph238.prol.loopexit ]
  %262 = load i8, ptr %223, align 1, !tbaa !9
  %263 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140.1
  %264 = load i8, ptr %263, align 1, !tbaa !9
  %265 = icmp eq i8 %262, %264
  br i1 %265, label %266, label %scalar.ph238.1

266:                                              ; preds = %scalar.ph238
  %267 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140.1
  store i32 1, ptr %267, align 4, !tbaa !5
  br label %scalar.ph238.1

scalar.ph238.1:                                   ; preds = %266, %scalar.ph238
  %indvars.iv.next141.1 = add nuw nsw i64 %indvars.iv140.1, 1
  %268 = load i8, ptr %223, align 1, !tbaa !9
  %269 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv.next141.1
  %270 = load i8, ptr %269, align 1, !tbaa !9
  %271 = icmp eq i8 %268, %270
  br i1 %271, label %272, label %274

272:                                              ; preds = %scalar.ph238.1
  %273 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv.next141.1
  store i32 1, ptr %273, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %272, %scalar.ph238.1
  %indvars.iv.next141.1.1 = add nuw nsw i64 %indvars.iv140.1, 2
  %exitcond145.1.not.1 = icmp eq i64 %indvars.iv.next141.1.1, %wide.trip.count144
  br i1 %exitcond145.1.not.1, label %._crit_edge.us99.1, label %scalar.ph238, !llvm.loop !37

._crit_edge.us99.1:                               ; preds = %scalar.ph238.prol.loopexit, %274, %middle.block237
  %275 = getelementptr inbounds i8, ptr %8, i64 2
  %min.iters.check281 = icmp ult i32 %170, 16
  br i1 %min.iters.check281, label %scalar.ph280.preheader, label %vector.memcheck268

vector.memcheck268:                               ; preds = %._crit_edge.us99.1
  %276 = shl nuw nsw i64 %wide.trip.count144, 2
  %scevgep269 = getelementptr i8, ptr @pos, i64 %276
  %scevgep270 = getelementptr i8, ptr %8, i64 3
  %scevgep271 = getelementptr i8, ptr @t, i64 %wide.trip.count144
  %bound0272 = icmp ugt ptr %scevgep270, @pos
  %bound1273 = icmp ult ptr %275, %scevgep269
  %found.conflict274 = and i1 %bound0272, %bound1273
  %bound0275 = icmp ugt ptr %scevgep271, @pos
  %bound1276 = icmp ugt ptr %scevgep269, @t
  %found.conflict277 = and i1 %bound0275, %bound1276
  %conflict.rdx278 = or i1 %found.conflict274, %found.conflict277
  br i1 %conflict.rdx278, label %scalar.ph280.preheader, label %vector.ph282

vector.ph282:                                     ; preds = %vector.memcheck268
  %n.vec284 = and i64 %wide.trip.count144, 2147483640
  %277 = load i8, ptr %275, align 1, !tbaa !9, !alias.scope !38
  %broadcast.splatinsert290 = insertelement <4 x i8> poison, i8 %277, i64 0
  %broadcast.splat291 = shufflevector <4 x i8> %broadcast.splatinsert290, <4 x i8> poison, <4 x i32> zeroinitializer
  br label %vector.body286

vector.body286:                                   ; preds = %pred.store.continue307, %vector.ph282
  %index287 = phi i64 [ 0, %vector.ph282 ], [ %index.next308, %pred.store.continue307 ]
  %278 = or disjoint i64 %index287, 4
  %279 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %index287
  %280 = getelementptr inbounds i8, ptr %279, i64 4
  %wide.load288 = load <4 x i8>, ptr %279, align 8, !tbaa !9, !alias.scope !41
  %wide.load289 = load <4 x i8>, ptr %280, align 4, !tbaa !9, !alias.scope !41
  %281 = icmp eq <4 x i8> %broadcast.splat291, %wide.load288
  %282 = icmp eq <4 x i8> %broadcast.splat291, %wide.load289
  %283 = extractelement <4 x i1> %281, i64 0
  br i1 %283, label %pred.store.if292, label %pred.store.continue293

pred.store.if292:                                 ; preds = %vector.body286
  %284 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %index287
  store i32 2, ptr %284, align 16, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue293

pred.store.continue293:                           ; preds = %pred.store.if292, %vector.body286
  %285 = extractelement <4 x i1> %281, i64 1
  br i1 %285, label %pred.store.if294, label %pred.store.continue295

pred.store.if294:                                 ; preds = %pred.store.continue293
  %286 = or disjoint i64 %index287, 1
  %287 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %286
  store i32 2, ptr %287, align 4, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue295

pred.store.continue295:                           ; preds = %pred.store.if294, %pred.store.continue293
  %288 = extractelement <4 x i1> %281, i64 2
  br i1 %288, label %pred.store.if296, label %pred.store.continue297

pred.store.if296:                                 ; preds = %pred.store.continue295
  %289 = or disjoint i64 %index287, 2
  %290 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %289
  store i32 2, ptr %290, align 8, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue297

pred.store.continue297:                           ; preds = %pred.store.if296, %pred.store.continue295
  %291 = extractelement <4 x i1> %281, i64 3
  br i1 %291, label %pred.store.if298, label %pred.store.continue299

pred.store.if298:                                 ; preds = %pred.store.continue297
  %292 = or disjoint i64 %index287, 3
  %293 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %292
  store i32 2, ptr %293, align 4, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue299

pred.store.continue299:                           ; preds = %pred.store.if298, %pred.store.continue297
  %294 = extractelement <4 x i1> %282, i64 0
  br i1 %294, label %pred.store.if300, label %pred.store.continue301

pred.store.if300:                                 ; preds = %pred.store.continue299
  %295 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %278
  store i32 2, ptr %295, align 16, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue301

pred.store.continue301:                           ; preds = %pred.store.if300, %pred.store.continue299
  %296 = extractelement <4 x i1> %282, i64 1
  br i1 %296, label %pred.store.if302, label %pred.store.continue303

pred.store.if302:                                 ; preds = %pred.store.continue301
  %297 = or disjoint i64 %index287, 5
  %298 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %297
  store i32 2, ptr %298, align 4, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue303

pred.store.continue303:                           ; preds = %pred.store.if302, %pred.store.continue301
  %299 = extractelement <4 x i1> %282, i64 2
  br i1 %299, label %pred.store.if304, label %pred.store.continue305

pred.store.if304:                                 ; preds = %pred.store.continue303
  %300 = or disjoint i64 %index287, 6
  %301 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %300
  store i32 2, ptr %301, align 8, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue305

pred.store.continue305:                           ; preds = %pred.store.if304, %pred.store.continue303
  %302 = extractelement <4 x i1> %282, i64 3
  br i1 %302, label %pred.store.if306, label %pred.store.continue307

pred.store.if306:                                 ; preds = %pred.store.continue305
  %303 = or disjoint i64 %index287, 7
  %304 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %303
  store i32 2, ptr %304, align 4, !tbaa !5, !alias.scope !43, !noalias !45
  br label %pred.store.continue307

pred.store.continue307:                           ; preds = %pred.store.if306, %pred.store.continue305
  %index.next308 = add nuw i64 %index287, 8
  %305 = icmp eq i64 %index.next308, %n.vec284
  br i1 %305, label %middle.block279, label %vector.body286, !llvm.loop !46

middle.block279:                                  ; preds = %pred.store.continue307
  %cmp.n309 = icmp eq i64 %n.vec284, %wide.trip.count144
  br i1 %cmp.n309, label %._crit_edge.us99.2, label %scalar.ph280.preheader

scalar.ph280.preheader:                           ; preds = %middle.block279, %vector.memcheck268, %._crit_edge.us99.1
  %indvars.iv140.2.ph = phi i64 [ 0, %vector.memcheck268 ], [ 0, %._crit_edge.us99.1 ], [ %n.vec284, %middle.block279 ]
  %xtraiter376 = and i64 %wide.trip.count144, 1
  %lcmp.mod377.not = icmp eq i64 %xtraiter376, 0
  br i1 %lcmp.mod377.not, label %scalar.ph280.prol.loopexit, label %scalar.ph280.prol

scalar.ph280.prol:                                ; preds = %scalar.ph280.preheader
  %306 = load i8, ptr %275, align 1, !tbaa !9
  %307 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140.2.ph
  %308 = load i8, ptr %307, align 8, !tbaa !9
  %309 = icmp eq i8 %306, %308
  br i1 %309, label %310, label %scalar.ph280.prol.loopexit.unr-lcssa

310:                                              ; preds = %scalar.ph280.prol
  %311 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140.2.ph
  store i32 2, ptr %311, align 16, !tbaa !5
  br label %scalar.ph280.prol.loopexit.unr-lcssa

scalar.ph280.prol.loopexit.unr-lcssa:             ; preds = %310, %scalar.ph280.prol
  %indvars.iv.next141.2.prol = or disjoint i64 %indvars.iv140.2.ph, 1
  br label %scalar.ph280.prol.loopexit

scalar.ph280.prol.loopexit:                       ; preds = %scalar.ph280.prol.loopexit.unr-lcssa, %scalar.ph280.preheader
  %indvars.iv140.2.unr = phi i64 [ %indvars.iv140.2.ph, %scalar.ph280.preheader ], [ %indvars.iv.next141.2.prol, %scalar.ph280.prol.loopexit.unr-lcssa ]
  %312 = add nsw i64 %wide.trip.count144, -1
  %313 = icmp eq i64 %indvars.iv140.2.ph, %312
  br i1 %313, label %._crit_edge.us99.2, label %scalar.ph280

scalar.ph280:                                     ; preds = %scalar.ph280.prol.loopexit, %326
  %indvars.iv140.2 = phi i64 [ %indvars.iv.next141.2.1, %326 ], [ %indvars.iv140.2.unr, %scalar.ph280.prol.loopexit ]
  %314 = load i8, ptr %275, align 1, !tbaa !9
  %315 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140.2
  %316 = load i8, ptr %315, align 1, !tbaa !9
  %317 = icmp eq i8 %314, %316
  br i1 %317, label %318, label %scalar.ph280.1

318:                                              ; preds = %scalar.ph280
  %319 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140.2
  store i32 2, ptr %319, align 4, !tbaa !5
  br label %scalar.ph280.1

scalar.ph280.1:                                   ; preds = %318, %scalar.ph280
  %indvars.iv.next141.2 = add nuw nsw i64 %indvars.iv140.2, 1
  %320 = load i8, ptr %275, align 1, !tbaa !9
  %321 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv.next141.2
  %322 = load i8, ptr %321, align 1, !tbaa !9
  %323 = icmp eq i8 %320, %322
  br i1 %323, label %324, label %326

324:                                              ; preds = %scalar.ph280.1
  %325 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv.next141.2
  store i32 2, ptr %325, align 4, !tbaa !5
  br label %326

326:                                              ; preds = %324, %scalar.ph280.1
  %indvars.iv.next141.2.1 = add nuw nsw i64 %indvars.iv140.2, 2
  %exitcond145.2.not.1 = icmp eq i64 %indvars.iv.next141.2.1, %wide.trip.count144
  br i1 %exitcond145.2.not.1, label %._crit_edge.us99.2, label %scalar.ph280, !llvm.loop !47

._crit_edge.us99.2:                               ; preds = %scalar.ph280.prol.loopexit, %326, %middle.block279
  %327 = getelementptr inbounds i8, ptr %8, i64 3
  %min.iters.check323 = icmp ult i32 %170, 16
  br i1 %min.iters.check323, label %scalar.ph322.preheader, label %vector.memcheck310

vector.memcheck310:                               ; preds = %._crit_edge.us99.2
  %328 = shl nuw nsw i64 %wide.trip.count144, 2
  %scevgep311 = getelementptr i8, ptr @pos, i64 %328
  %scevgep312 = getelementptr i8, ptr %8, i64 4
  %scevgep313 = getelementptr i8, ptr @t, i64 %wide.trip.count144
  %bound0314 = icmp ugt ptr %scevgep312, @pos
  %bound1315 = icmp ult ptr %327, %scevgep311
  %found.conflict316 = and i1 %bound0314, %bound1315
  %bound0317 = icmp ugt ptr %scevgep313, @pos
  %bound1318 = icmp ugt ptr %scevgep311, @t
  %found.conflict319 = and i1 %bound0317, %bound1318
  %conflict.rdx320 = or i1 %found.conflict316, %found.conflict319
  br i1 %conflict.rdx320, label %scalar.ph322.preheader, label %vector.ph324

vector.ph324:                                     ; preds = %vector.memcheck310
  %n.vec326 = and i64 %wide.trip.count144, 2147483640
  %329 = load i8, ptr %327, align 1, !tbaa !9, !alias.scope !48
  %broadcast.splatinsert332 = insertelement <4 x i8> poison, i8 %329, i64 0
  %broadcast.splat333 = shufflevector <4 x i8> %broadcast.splatinsert332, <4 x i8> poison, <4 x i32> zeroinitializer
  br label %vector.body328

vector.body328:                                   ; preds = %pred.store.continue349, %vector.ph324
  %index329 = phi i64 [ 0, %vector.ph324 ], [ %index.next350, %pred.store.continue349 ]
  %330 = or disjoint i64 %index329, 4
  %331 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %index329
  %332 = getelementptr inbounds i8, ptr %331, i64 4
  %wide.load330 = load <4 x i8>, ptr %331, align 8, !tbaa !9, !alias.scope !51
  %wide.load331 = load <4 x i8>, ptr %332, align 4, !tbaa !9, !alias.scope !51
  %333 = icmp eq <4 x i8> %broadcast.splat333, %wide.load330
  %334 = icmp eq <4 x i8> %broadcast.splat333, %wide.load331
  %335 = extractelement <4 x i1> %333, i64 0
  br i1 %335, label %pred.store.if334, label %pred.store.continue335

pred.store.if334:                                 ; preds = %vector.body328
  %336 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %index329
  store i32 3, ptr %336, align 16, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue335

pred.store.continue335:                           ; preds = %pred.store.if334, %vector.body328
  %337 = extractelement <4 x i1> %333, i64 1
  br i1 %337, label %pred.store.if336, label %pred.store.continue337

pred.store.if336:                                 ; preds = %pred.store.continue335
  %338 = or disjoint i64 %index329, 1
  %339 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %338
  store i32 3, ptr %339, align 4, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue337

pred.store.continue337:                           ; preds = %pred.store.if336, %pred.store.continue335
  %340 = extractelement <4 x i1> %333, i64 2
  br i1 %340, label %pred.store.if338, label %pred.store.continue339

pred.store.if338:                                 ; preds = %pred.store.continue337
  %341 = or disjoint i64 %index329, 2
  %342 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %341
  store i32 3, ptr %342, align 8, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue339

pred.store.continue339:                           ; preds = %pred.store.if338, %pred.store.continue337
  %343 = extractelement <4 x i1> %333, i64 3
  br i1 %343, label %pred.store.if340, label %pred.store.continue341

pred.store.if340:                                 ; preds = %pred.store.continue339
  %344 = or disjoint i64 %index329, 3
  %345 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %344
  store i32 3, ptr %345, align 4, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue341

pred.store.continue341:                           ; preds = %pred.store.if340, %pred.store.continue339
  %346 = extractelement <4 x i1> %334, i64 0
  br i1 %346, label %pred.store.if342, label %pred.store.continue343

pred.store.if342:                                 ; preds = %pred.store.continue341
  %347 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %330
  store i32 3, ptr %347, align 16, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue343

pred.store.continue343:                           ; preds = %pred.store.if342, %pred.store.continue341
  %348 = extractelement <4 x i1> %334, i64 1
  br i1 %348, label %pred.store.if344, label %pred.store.continue345

pred.store.if344:                                 ; preds = %pred.store.continue343
  %349 = or disjoint i64 %index329, 5
  %350 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %349
  store i32 3, ptr %350, align 4, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue345

pred.store.continue345:                           ; preds = %pred.store.if344, %pred.store.continue343
  %351 = extractelement <4 x i1> %334, i64 2
  br i1 %351, label %pred.store.if346, label %pred.store.continue347

pred.store.if346:                                 ; preds = %pred.store.continue345
  %352 = or disjoint i64 %index329, 6
  %353 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %352
  store i32 3, ptr %353, align 8, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue347

pred.store.continue347:                           ; preds = %pred.store.if346, %pred.store.continue345
  %354 = extractelement <4 x i1> %334, i64 3
  br i1 %354, label %pred.store.if348, label %pred.store.continue349

pred.store.if348:                                 ; preds = %pred.store.continue347
  %355 = or disjoint i64 %index329, 7
  %356 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %355
  store i32 3, ptr %356, align 4, !tbaa !5, !alias.scope !53, !noalias !55
  br label %pred.store.continue349

pred.store.continue349:                           ; preds = %pred.store.if348, %pred.store.continue347
  %index.next350 = add nuw i64 %index329, 8
  %357 = icmp eq i64 %index.next350, %n.vec326
  br i1 %357, label %middle.block321, label %vector.body328, !llvm.loop !56

middle.block321:                                  ; preds = %pred.store.continue349
  %cmp.n351 = icmp eq i64 %n.vec326, %wide.trip.count144
  br i1 %cmp.n351, label %.split101.us, label %scalar.ph322.preheader

scalar.ph322.preheader:                           ; preds = %middle.block321, %vector.memcheck310, %._crit_edge.us99.2
  %indvars.iv140.3.ph = phi i64 [ 0, %vector.memcheck310 ], [ 0, %._crit_edge.us99.2 ], [ %n.vec326, %middle.block321 ]
  %xtraiter378 = and i64 %wide.trip.count144, 1
  %lcmp.mod379.not = icmp eq i64 %xtraiter378, 0
  br i1 %lcmp.mod379.not, label %scalar.ph322.prol.loopexit, label %scalar.ph322.prol

scalar.ph322.prol:                                ; preds = %scalar.ph322.preheader
  %358 = load i8, ptr %327, align 1, !tbaa !9
  %359 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140.3.ph
  %360 = load i8, ptr %359, align 8, !tbaa !9
  %361 = icmp eq i8 %358, %360
  br i1 %361, label %362, label %scalar.ph322.prol.loopexit.unr-lcssa

362:                                              ; preds = %scalar.ph322.prol
  %363 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140.3.ph
  store i32 3, ptr %363, align 16, !tbaa !5
  br label %scalar.ph322.prol.loopexit.unr-lcssa

scalar.ph322.prol.loopexit.unr-lcssa:             ; preds = %362, %scalar.ph322.prol
  %indvars.iv.next141.3.prol = or disjoint i64 %indvars.iv140.3.ph, 1
  br label %scalar.ph322.prol.loopexit

scalar.ph322.prol.loopexit:                       ; preds = %scalar.ph322.prol.loopexit.unr-lcssa, %scalar.ph322.preheader
  %indvars.iv140.3.unr = phi i64 [ %indvars.iv140.3.ph, %scalar.ph322.preheader ], [ %indvars.iv.next141.3.prol, %scalar.ph322.prol.loopexit.unr-lcssa ]
  %364 = add nsw i64 %wide.trip.count144, -1
  %365 = icmp eq i64 %indvars.iv140.3.ph, %364
  br i1 %365, label %.split101.us, label %scalar.ph322

scalar.ph322:                                     ; preds = %scalar.ph322.prol.loopexit, %378
  %indvars.iv140.3 = phi i64 [ %indvars.iv.next141.3.1, %378 ], [ %indvars.iv140.3.unr, %scalar.ph322.prol.loopexit ]
  %366 = load i8, ptr %327, align 1, !tbaa !9
  %367 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv140.3
  %368 = load i8, ptr %367, align 1, !tbaa !9
  %369 = icmp eq i8 %366, %368
  br i1 %369, label %370, label %scalar.ph322.1

370:                                              ; preds = %scalar.ph322
  %371 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv140.3
  store i32 3, ptr %371, align 4, !tbaa !5
  br label %scalar.ph322.1

scalar.ph322.1:                                   ; preds = %370, %scalar.ph322
  %indvars.iv.next141.3 = add nuw nsw i64 %indvars.iv140.3, 1
  %372 = load i8, ptr %327, align 1, !tbaa !9
  %373 = getelementptr inbounds [200001 x i8], ptr @t, i64 0, i64 %indvars.iv.next141.3
  %374 = load i8, ptr %373, align 1, !tbaa !9
  %375 = icmp eq i8 %372, %374
  br i1 %375, label %376, label %378

376:                                              ; preds = %scalar.ph322.1
  %377 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv.next141.3
  store i32 3, ptr %377, align 4, !tbaa !5
  br label %378

378:                                              ; preds = %376, %scalar.ph322.1
  %indvars.iv.next141.3.1 = add nuw nsw i64 %indvars.iv140.3, 2
  %exitcond145.3.not.1 = icmp eq i64 %indvars.iv.next141.3.1, %wide.trip.count144
  br i1 %exitcond145.3.not.1, label %.split101.us, label %scalar.ph322, !llvm.loop !57

.split101.us:                                     ; preds = %scalar.ph322.prol.loopexit, %378, %middle.block321, %.preheader81
  %379 = add nsw i32 %170, -1
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 %383
  %385 = sext i32 %6 to i64
  %386 = shl nsw i64 %385, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 @g, ptr nonnull align 8 %384, i64 %386, i1 false)
  %.not102 = icmp eq i32 %6, 0
  br i1 %.not102, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.split101.us
  %indvars.iv.next152193 = add nsw i64 %385, -1
  %387 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next152193
  %388 = load i64, ptr %387, align 8, !tbaa !10
  %.not70194 = icmp eq i64 %388, 0
  br i1 %.not70194, label %.lr.ph196, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph196
  %indvars.iv.next152 = add nsw i64 %indvars.iv.next152195, -1
  %389 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next152
  %390 = load i64, ptr %389, align 8, !tbaa !10
  %.not70 = icmp eq i64 %390, 0
  br i1 %.not70, label %.lr.ph196, label %.critedge.loopexit, !llvm.loop !58

.lr.ph196:                                        ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv.next152195 = phi i64 [ %indvars.iv.next152, %.lr.ph ], [ %indvars.iv.next152193, %.lr.ph.preheader ]
  %391 = trunc nsw i64 %indvars.iv.next152195 to i32
  %.not = icmp eq i64 %indvars.iv.next152195, 0
  br i1 %.not, label %.critedge.loopexit, label %.lr.ph, !llvm.loop !58

.critedge.loopexit:                               ; preds = %.lr.ph, %.lr.ph196
  %sz.promoted.ph = phi i32 [ %391, %.lr.ph ], [ 0, %.lr.ph196 ]
  store i32 %391, ptr @sz, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph.preheader, %.split101.us
  %sz.promoted = phi i32 [ 0, %.split101.us ], [ %6, %.lr.ph.preheader ], [ %sz.promoted.ph, %.critedge.loopexit ]
  %392 = icmp sgt i32 %170, 1
  br i1 %392, label %.preheader79.preheader, label %.preheader

.preheader79.preheader:                           ; preds = %.critedge
  %393 = add nsw i32 %170, -2
  %394 = zext nneg i32 %393 to i64
  br label %.preheader79

.preheader79:                                     ; preds = %.preheader79.preheader, %.critedge2
  %395 = phi i32 [ %sz.promoted, %.preheader79.preheader ], [ %456, %.critedge2 ]
  %indvars.iv171 = phi i64 [ %394, %.preheader79.preheader ], [ %indvars.iv.next172, %.critedge2 ]
  %396 = phi i32 [ %sz.promoted, %.preheader79.preheader ], [ %457, %.critedge2 ]
  %397 = icmp sgt i32 %396, 0
  br i1 %397, label %.lr.ph105.preheader, label %._crit_edge

.lr.ph105.preheader:                              ; preds = %.preheader79
  %wide.trip.count159 = zext nneg i32 %396 to i64
  %.pre = load i64, ptr @g, align 16, !tbaa !10
  %xtraiter380 = and i64 %wide.trip.count159, 3
  %398 = icmp ult i32 %396, 4
  br i1 %398, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph105.preheader.new

.lr.ph105.preheader.new:                          ; preds = %.lr.ph105.preheader
  %unroll_iter = and i64 %wide.trip.count159, 2147483644
  br label %.lr.ph105

.preheader:                                       ; preds = %.critedge2, %.critedge
  %399 = phi i32 [ %sz.promoted, %.critedge ], [ %456, %.critedge2 ]
  %400 = icmp sgt i32 %399, 0
  br i1 %400, label %.lr.ph118, label %.preheader.._crit_edge119_crit_edge

.preheader.._crit_edge119_crit_edge:              ; preds = %.preheader
  %.pre182 = load i32, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge119

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph105, %.lr.ph105.preheader
  %.unr = phi i64 [ %.pre, %.lr.ph105.preheader ], [ %421, %.lr.ph105 ]
  %indvars.iv155.unr = phi i64 [ 0, %.lr.ph105.preheader ], [ %indvars.iv.next156.3, %.lr.ph105 ]
  %lcmp.mod381.not = icmp eq i64 %xtraiter380, 0
  br i1 %lcmp.mod381.not, label %._crit_edge, label %.lr.ph105.epil

.lr.ph105.epil:                                   ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph105.epil
  %401 = phi i64 [ %404, %.lr.ph105.epil ], [ %.unr, %._crit_edge.loopexit.unr-lcssa ]
  %indvars.iv155.epil = phi i64 [ %indvars.iv.next156.epil, %.lr.ph105.epil ], [ %indvars.iv155.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph105.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %402 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv155.epil
  %indvars.iv.next156.epil = add nuw nsw i64 %indvars.iv155.epil, 1
  %403 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156.epil
  %404 = load i64, ptr %403, align 8, !tbaa !10
  %405 = tail call i64 @llvm.fshl.i64(i64 %404, i64 %401, i64 63)
  store i64 %405, ptr %402, align 8, !tbaa !10
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter380
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph105.epil, !llvm.loop !59

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph105.epil, %.preheader79
  %.not71 = icmp eq i32 %396, 0
  br i1 %.not71, label %.critedge2, label %423

.lr.ph105:                                        ; preds = %.lr.ph105, %.lr.ph105.preheader.new
  %406 = phi i64 [ %.pre, %.lr.ph105.preheader.new ], [ %421, %.lr.ph105 ]
  %indvars.iv155 = phi i64 [ 0, %.lr.ph105.preheader.new ], [ %indvars.iv.next156.3, %.lr.ph105 ]
  %niter = phi i64 [ 0, %.lr.ph105.preheader.new ], [ %niter.next.3, %.lr.ph105 ]
  %407 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv155
  %indvars.iv.next156 = or disjoint i64 %indvars.iv155, 1
  %408 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156
  %409 = load i64, ptr %408, align 8, !tbaa !10
  %410 = tail call i64 @llvm.fshl.i64(i64 %409, i64 %406, i64 63)
  store i64 %410, ptr %407, align 16, !tbaa !10
  %411 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156
  %indvars.iv.next156.1 = or disjoint i64 %indvars.iv155, 2
  %412 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156.1
  %413 = load i64, ptr %412, align 16, !tbaa !10
  %414 = tail call i64 @llvm.fshl.i64(i64 %413, i64 %409, i64 63)
  store i64 %414, ptr %411, align 8, !tbaa !10
  %415 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156.1
  %indvars.iv.next156.2 = or disjoint i64 %indvars.iv155, 3
  %416 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156.2
  %417 = load i64, ptr %416, align 8, !tbaa !10
  %418 = tail call i64 @llvm.fshl.i64(i64 %417, i64 %413, i64 63)
  store i64 %418, ptr %415, align 16, !tbaa !10
  %419 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156.2
  %indvars.iv.next156.3 = add nuw nsw i64 %indvars.iv155, 4
  %420 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next156.3
  %421 = load i64, ptr %420, align 16, !tbaa !10
  %422 = tail call i64 @llvm.fshl.i64(i64 %421, i64 %417, i64 63)
  store i64 %422, ptr %419, align 8, !tbaa !10
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph105, !llvm.loop !61

423:                                              ; preds = %._crit_edge
  %424 = add nsw i32 %396, -1
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %425
  %427 = load i64, ptr %426, align 8, !tbaa !10
  %.not72 = icmp eq i64 %427, 0
  br i1 %.not72, label %428, label %429

428:                                              ; preds = %423
  store i32 %424, ptr @sz, align 4, !tbaa !5
  br label %429

429:                                              ; preds = %428, %423
  %430 = phi i32 [ %424, %428 ], [ %395, %423 ]
  %431 = phi i32 [ %424, %428 ], [ %396, %423 ]
  %432 = getelementptr inbounds [200001 x i32], ptr @pos, i64 0, i64 %indvars.iv171
  %433 = load i32, ptr %432, align 4, !tbaa !5
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds [5 x [3127 x i64]], ptr @f, i64 0, i64 %434
  %436 = icmp sgt i32 %431, 0
  br i1 %436, label %.lr.ph108.preheader, label %.preheader78

.lr.ph108.preheader:                              ; preds = %429
  %wide.trip.count165 = zext nneg i32 %431 to i64
  %min.iters.check354 = icmp ult i32 %431, 4
  br i1 %min.iters.check354, label %.lr.ph108.preheader367, label %vector.ph355

.lr.ph108.preheader367:                           ; preds = %middle.block352, %.lr.ph108.preheader
  %indvars.iv161.ph = phi i64 [ 0, %.lr.ph108.preheader ], [ %n.vec357, %middle.block352 ]
  br label %.lr.ph108

vector.ph355:                                     ; preds = %.lr.ph108.preheader
  %n.vec357 = and i64 %wide.trip.count165, 2147483644
  br label %vector.body359

vector.body359:                                   ; preds = %vector.body359, %vector.ph355
  %index360 = phi i64 [ 0, %vector.ph355 ], [ %index.next365, %vector.body359 ]
  %437 = getelementptr inbounds i64, ptr %435, i64 %index360
  %438 = getelementptr inbounds i8, ptr %437, i64 16
  %wide.load361 = load <2 x i64>, ptr %437, align 8, !tbaa !10
  %wide.load362 = load <2 x i64>, ptr %438, align 8, !tbaa !10
  %439 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %index360
  %440 = getelementptr inbounds i8, ptr %439, i64 16
  %wide.load363 = load <2 x i64>, ptr %439, align 16, !tbaa !10
  %wide.load364 = load <2 x i64>, ptr %440, align 16, !tbaa !10
  %441 = and <2 x i64> %wide.load363, %wide.load361
  %442 = and <2 x i64> %wide.load364, %wide.load362
  store <2 x i64> %441, ptr %439, align 16, !tbaa !10
  store <2 x i64> %442, ptr %440, align 16, !tbaa !10
  %index.next365 = add nuw i64 %index360, 4
  %443 = icmp eq i64 %index.next365, %n.vec357
  br i1 %443, label %middle.block352, label %vector.body359, !llvm.loop !62

middle.block352:                                  ; preds = %vector.body359
  %cmp.n366 = icmp eq i64 %n.vec357, %wide.trip.count165
  br i1 %cmp.n366, label %.preheader78, label %.lr.ph108.preheader367

.preheader78:                                     ; preds = %.lr.ph108, %middle.block352, %429
  %.not73110 = icmp eq i32 %431, 0
  br i1 %.not73110, label %.critedge2, label %.lr.ph111.preheader

.lr.ph111.preheader:                              ; preds = %.preheader78
  %444 = sext i32 %431 to i64
  %indvars.iv.next168198 = add nsw i64 %444, -1
  %445 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next168198
  %446 = load i64, ptr %445, align 8, !tbaa !10
  %.not74199 = icmp eq i64 %446, 0
  br i1 %.not74199, label %.lr.ph201, label %.critedge2.loopexit.split.loop.exit186

.lr.ph108:                                        ; preds = %.lr.ph108.preheader367, %.lr.ph108
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %.lr.ph108 ], [ %indvars.iv161.ph, %.lr.ph108.preheader367 ]
  %447 = getelementptr inbounds i64, ptr %435, i64 %indvars.iv161
  %448 = load i64, ptr %447, align 8, !tbaa !10
  %449 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv161
  %450 = load i64, ptr %449, align 8, !tbaa !10
  %451 = and i64 %450, %448
  store i64 %451, ptr %449, align 8, !tbaa !10
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond166.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count165
  br i1 %exitcond166.not, label %.preheader78, label %.lr.ph108, !llvm.loop !63

.lr.ph111:                                        ; preds = %.lr.ph201
  %indvars.iv.next168 = add nsw i64 %indvars.iv.next168200, -1
  %452 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv.next168
  %453 = load i64, ptr %452, align 8, !tbaa !10
  %.not74 = icmp eq i64 %453, 0
  br i1 %.not74, label %.lr.ph201, label %.critedge2.loopexit.split.loop.exit186.loopexit, !llvm.loop !64

.lr.ph201:                                        ; preds = %.lr.ph111.preheader, %.lr.ph111
  %indvars.iv.next168200 = phi i64 [ %indvars.iv.next168, %.lr.ph111 ], [ %indvars.iv.next168198, %.lr.ph111.preheader ]
  %454 = trunc nsw i64 %indvars.iv.next168200 to i32
  %.not73 = icmp eq i64 %indvars.iv.next168200, 0
  br i1 %.not73, label %.critedge2.loopexit, label %.lr.ph111, !llvm.loop !64

.critedge2.loopexit.split.loop.exit186.loopexit:  ; preds = %.lr.ph111
  store i32 %454, ptr @sz, align 4, !tbaa !5
  br label %.critedge2.loopexit.split.loop.exit186

.critedge2.loopexit.split.loop.exit186:           ; preds = %.critedge2.loopexit.split.loop.exit186.loopexit, %.lr.ph111.preheader
  %.lcssa190 = phi i32 [ %430, %.lr.ph111.preheader ], [ %454, %.critedge2.loopexit.split.loop.exit186.loopexit ]
  %indvars.iv167.lcssa = phi i64 [ %444, %.lr.ph111.preheader ], [ %indvars.iv.next168200, %.critedge2.loopexit.split.loop.exit186.loopexit ]
  %455 = trunc nsw i64 %indvars.iv167.lcssa to i32
  br label %.critedge2

.critedge2.loopexit:                              ; preds = %.lr.ph201
  store i32 %454, ptr @sz, align 4, !tbaa !5
  br label %.critedge2

.critedge2:                                       ; preds = %.critedge2.loopexit, %.critedge2.loopexit.split.loop.exit186, %._crit_edge, %.preheader78
  %456 = phi i32 [ %430, %.preheader78 ], [ %395, %._crit_edge ], [ %.lcssa190, %.critedge2.loopexit.split.loop.exit186 ], [ 0, %.critedge2.loopexit ]
  %457 = phi i32 [ 0, %.preheader78 ], [ 0, %._crit_edge ], [ %455, %.critedge2.loopexit.split.loop.exit186 ], [ 0, %.critedge2.loopexit ]
  %indvars.iv.next172 = add nsw i64 %indvars.iv171, -1
  %458 = icmp sgt i64 %indvars.iv171, 0
  br i1 %458, label %.preheader79, label %.preheader, !llvm.loop !65

._crit_edge119:                                   ; preds = %.lr.ph118, %.preheader.._crit_edge119_crit_edge
  %459 = phi i32 [ %.pre182, %.preheader.._crit_edge119_crit_edge ], [ %465, %.lr.ph118 ]
  %460 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %459)
  ret i32 0

.lr.ph118:                                        ; preds = %.preheader, %.lr.ph118
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %.lr.ph118 ], [ 0, %.preheader ]
  %461 = getelementptr inbounds [3127 x i64], ptr @g, i64 0, i64 %indvars.iv175
  %462 = load i64, ptr %461, align 8, !tbaa !10
  %463 = tail call noundef i32 @_Z8popcounty(i64 noundef %462)
  %464 = load i32, ptr @ans, align 4, !tbaa !5
  %465 = add nsw i32 %464, %463
  store i32 %465, ptr @ans, align 4, !tbaa !5
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %466 = load i32, ptr @sz, align 4, !tbaa !5
  %467 = sext i32 %466 to i64
  %468 = icmp slt i64 %indvars.iv.next176, %467
  br i1 %468, label %.lr.ph118, label %._crit_edge119, !llvm.loop !66
}

; 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z8popcounty(i64 noundef) local_unnamed_addr #3

; 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 i64 @llvm.fshl.i64(i64, i64, i64) #4

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 = { 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: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17}
!17 = distinct !{!17, !18}
!18 = distinct !{!18, !"LVerDomain"}
!19 = !{!20}
!20 = distinct !{!20, !18}
!21 = !{!22}
!22 = distinct !{!22, !18}
!23 = !{!17, !20}
!24 = distinct !{!24, !13, !25, !26}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !13, !25}
!28 = !{!29}
!29 = distinct !{!29, !30}
!30 = distinct !{!30, !"LVerDomain"}
!31 = !{!32}
!32 = distinct !{!32, !30}
!33 = !{!34}
!34 = distinct !{!34, !30}
!35 = !{!29, !32}
!36 = distinct !{!36, !13, !25, !26}
!37 = distinct !{!37, !13, !25}
!38 = !{!39}
!39 = distinct !{!39, !40}
!40 = distinct !{!40, !"LVerDomain"}
!41 = !{!42}
!42 = distinct !{!42, !40}
!43 = !{!44}
!44 = distinct !{!44, !40}
!45 = !{!39, !42}
!46 = distinct !{!46, !13, !25, !26}
!47 = distinct !{!47, !13, !25}
!48 = !{!49}
!49 = distinct !{!49, !50}
!50 = distinct !{!50, !"LVerDomain"}
!51 = !{!52}
!52 = distinct !{!52, !50}
!53 = !{!54}
!54 = distinct !{!54, !50}
!55 = !{!49, !52}
!56 = distinct !{!56, !13, !25, !26}
!57 = distinct !{!57, !13, !25}
!58 = distinct !{!58, !13}
!59 = distinct !{!59, !60}
!60 = !{!"llvm.loop.unroll.disable"}
!61 = distinct !{!61, !13}
!62 = distinct !{!62, !13, !25, !26}
!63 = distinct !{!63, !13, !26, !25}
!64 = distinct !{!64, !13}
!65 = distinct !{!65, !13}
!66 = distinct !{!66, !13}


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