; LLVM IR from tangjz/acm-icpc :: lydsy (3741)

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

@buf = external dso_local global ptr, align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@bsize = external dso_local global i32, align 4
@cur = external dso_local global i32, align 4
@pre = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@s = external dso_local global [50001 x i8], align 16
@t = external dso_local global [50001 x i8], align 16
@pos = external dso_local global [4 x [782 x i64]], align 16
@f = external dso_local global [3 x [782 x i64]], align 16
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m, ptr noundef @s, ptr noundef @t)
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = sub nsw i32 %16, 1
  %18 = ashr i32 %17, 6
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr @bsize, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %62, %0
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

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

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

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

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

30:                                               ; preds = %26
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [50001 x i8], ptr @s, i64 0, i64 %32
  %34 = load i8, ptr %33, align 1, !tbaa !9
  %35 = sext i8 %34 to i32
  %36 = load ptr, ptr @buf, align 8, !tbaa !10
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %36, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !9
  %41 = sext i8 %40 to i32
  %42 = icmp eq i32 %35, %41
  br i1 %42, label %43, label %57

43:                                               ; preds = %30
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = and i32 %44, 63
  %46 = zext i32 %45 to i64
  %47 = shl i64 1, %46
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 %49
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = ashr i32 %51, 6
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [782 x i64], ptr %50, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !12
  %56 = or i64 %55, %47
  store i64 %56, ptr %54, align 8, !tbaa !12
  br label %57

57:                                               ; preds = %43, %30
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %4, align 4, !tbaa !5
  br label %26, !llvm.loop !14

61:                                               ; preds = %29
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 4, !tbaa !5
  br label %20, !llvm.loop !16

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

66:                                               ; preds = %239, %65
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = load i32, ptr @m, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %242

71:                                               ; preds = %66
  %72 = load i32, ptr @pre, align 4, !tbaa !5
  %73 = xor i32 %72, 1
  store i32 %73, ptr @pre, align 4, !tbaa !5
  %74 = load i32, ptr @cur, align 4, !tbaa !5
  %75 = xor i32 %74, 1
  store i32 %75, ptr @cur, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %123, %71
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 4
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %126

80:                                               ; preds = %76
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [50001 x i8], ptr @t, i64 0, i64 %82
  %84 = load i8, ptr %83, align 1, !tbaa !9
  %85 = sext i8 %84 to i32
  %86 = load ptr, ptr @buf, align 8, !tbaa !10
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %86, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !9
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %85, %91
  br i1 %92, label %93, label %122

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

94:                                               ; preds = %118, %93
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = load i32, ptr @bsize, align 4, !tbaa !5
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %121

99:                                               ; preds = %94
  %100 = load i32, ptr @pre, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %101
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [782 x i64], ptr %102, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !12
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 %108
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [782 x i64], ptr %109, i64 0, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !12
  %114 = or i64 %106, %113
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds ([3 x [782 x i64]], ptr @f, i64 0, i64 2), i64 0, i64 %116
  store i64 %114, ptr %117, align 8, !tbaa !12
  br label %118

118:                                              ; preds = %99
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %7, align 4, !tbaa !5
  br label %94, !llvm.loop !17

121:                                              ; preds = %98
  br label %122

122:                                              ; preds = %121, %80
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %6, align 4, !tbaa !5
  br label %76, !llvm.loop !18

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

127:                                              ; preds = %160, %126
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = load i32, ptr @bsize, align 4, !tbaa !5
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %164

132:                                              ; preds = %127
  %133 = load i32, ptr @pre, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %134
  %136 = load i32, ptr %8, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [782 x i64], ptr %135, i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !12
  %140 = lshr i64 %139, 63
  %141 = and i64 %140, 1
  %142 = trunc i64 %141 to i32
  store i32 %142, ptr %10, align 4, !tbaa !5
  %143 = load i32, ptr @pre, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %144
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [782 x i64], ptr %145, i64 0, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !12
  %150 = shl i64 %149, 1
  %151 = load i32, ptr %9, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = or i64 %150, %152
  %154 = load i32, ptr @pre, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %155
  %157 = load i32, ptr %8, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [782 x i64], ptr %156, i64 0, i64 %158
  store i64 %153, ptr %159, align 8, !tbaa !12
  br label %160

160:                                              ; preds = %132
  %161 = load i32, ptr %8, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %8, align 4, !tbaa !5
  %163 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %163, ptr %9, align 4, !tbaa !5
  br label %127, !llvm.loop !19

164:                                              ; preds = %131
  %165 = load i32, ptr @cur, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %166
  %168 = getelementptr inbounds [782 x i64], ptr %167, i64 0, i64 0
  %169 = load i32, ptr @bsize, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = mul i64 %170, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %168, ptr align 16 getelementptr inbounds ([3 x [782 x i64]], ptr @f, i64 0, i64 2), i64 %171, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  br label %172

172:                                              ; preds = %234, %164
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = load i32, ptr @bsize, align 4, !tbaa !5
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %238

177:                                              ; preds = %172
  %178 = load i32, ptr @cur, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %179
  %181 = load i32, ptr %11, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [782 x i64], ptr %180, i64 0, i64 %182
  %184 = load i64, ptr %183, align 8, !tbaa !12
  %185 = load i32, ptr @pre, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %186
  %188 = load i32, ptr %11, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [782 x i64], ptr %187, i64 0, i64 %189
  %191 = load i64, ptr %190, align 8, !tbaa !12
  %192 = load i32, ptr %12, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = add i64 %191, %193
  %195 = icmp ult i64 %184, %194
  %196 = zext i1 %195 to i32
  store i32 %196, ptr %13, align 4, !tbaa !5
  %197 = load i32, ptr @pre, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %198
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [782 x i64], ptr %199, i64 0, i64 %201
  %203 = load i64, ptr %202, align 8, !tbaa !12
  %204 = load i32, ptr %12, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = add i64 %203, %205
  %207 = load i32, ptr @cur, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %208
  %210 = load i32, ptr %11, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [782 x i64], ptr %209, i64 0, i64 %211
  %213 = load i64, ptr %212, align 8, !tbaa !12
  %214 = sub i64 %213, %206
  store i64 %214, ptr %212, align 8, !tbaa !12
  %215 = load i32, ptr @cur, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %216
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [782 x i64], ptr %217, i64 0, i64 %219
  %221 = load i64, ptr %220, align 8, !tbaa !12
  %222 = xor i64 %221, -1
  %223 = load i32, ptr %11, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds ([3 x [782 x i64]], ptr @f, i64 0, i64 2), i64 0, i64 %224
  %226 = load i64, ptr %225, align 8, !tbaa !12
  %227 = and i64 %222, %226
  %228 = load i32, ptr @cur, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %229
  %231 = load i32, ptr %11, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [782 x i64], ptr %230, i64 0, i64 %232
  store i64 %227, ptr %233, align 8, !tbaa !12
  br label %234

234:                                              ; preds = %177
  %235 = load i32, ptr %11, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %11, align 4, !tbaa !5
  %237 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %237, ptr %12, align 4, !tbaa !5
  br label %172, !llvm.loop !20

238:                                              ; preds = %176
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %5, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %5, align 4, !tbaa !5
  br label %66, !llvm.loop !21

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

243:                                              ; preds = %266, %242
  %244 = load i32, ptr %14, align 4, !tbaa !5
  %245 = load i32, ptr @n, align 4, !tbaa !5
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %243
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %269

248:                                              ; preds = %243
  %249 = load i32, ptr @cur, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %250
  %252 = load i32, ptr %14, align 4, !tbaa !5
  %253 = ashr i32 %252, 6
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [782 x i64], ptr %251, i64 0, i64 %254
  %256 = load i64, ptr %255, align 8, !tbaa !12
  %257 = load i32, ptr %14, align 4, !tbaa !5
  %258 = and i32 %257, 63
  %259 = zext i32 %258 to i64
  %260 = lshr i64 %256, %259
  %261 = and i64 %260, 1
  %262 = load i32, ptr @ans, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = add i64 %263, %261
  %265 = trunc i64 %264 to i32
  store i32 %265, ptr @ans, align 4, !tbaa !5
  br label %266

266:                                              ; preds = %248
  %267 = load i32, ptr %14, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %14, align 4, !tbaa !5
  br label %243, !llvm.loop !22

269:                                              ; preds = %247
  %270 = load i32, ptr @ans, align 4, !tbaa !5
  %271 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %270)
  ret i32 0
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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

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

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

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

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


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

@buf = 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
@bsize = external dso_local local_unnamed_addr global i32, align 4
@cur = external dso_local local_unnamed_addr global i32, align 4
@pre = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local global [50001 x i8], align 16
@t = external dso_local global [50001 x i8], align 16
@pos = external dso_local local_unnamed_addr global [4 x [782 x i64]], align 16
@f = external dso_local local_unnamed_addr global [3 x [782 x i64]], align 16
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @s, ptr noundef nonnull @t)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.fr = freeze i32 %2
  %3 = add i32 %.fr, -1
  %4 = ashr i32 %3, 6
  %5 = add nsw i32 %4, 1
  store i32 %5, ptr @bsize, align 4, !tbaa !5
  %6 = icmp sgt i32 %.fr, 0
  br i1 %6, label %.preheader59.lr.ph, label %.preheader58

.preheader59.lr.ph:                               ; preds = %0
  %7 = load ptr, ptr @buf, align 8, !tbaa !9
  %wide.trip.count = zext nneg i32 %.fr to i64
  %8 = getelementptr inbounds i8, ptr %7, i64 1
  %9 = getelementptr inbounds i8, ptr %7, i64 2
  %10 = getelementptr inbounds i8, ptr %7, i64 3
  br label %.preheader59

.preheader59:                                     ; preds = %.preheader59.lr.ph, %56
  %indvars.iv = phi i64 [ 0, %.preheader59.lr.ph ], [ %indvars.iv.next, %56 ]
  %11 = getelementptr inbounds [50001 x i8], ptr @s, i64 0, i64 %indvars.iv
  %12 = load i8, ptr %11, align 1, !tbaa !11
  %13 = and i64 %indvars.iv, 63
  %14 = shl nuw i64 1, %13
  %15 = lshr i64 %indvars.iv, 6
  %16 = and i64 %15, 67108863
  %17 = load i8, ptr %7, align 1, !tbaa !11
  %18 = icmp eq i8 %12, %17
  br i1 %18, label %31, label %35

.preheader58:                                     ; preds = %56, %0
  %19 = load i32, ptr @m, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph75, label %.preheader

.lr.ph75:                                         ; preds = %.preheader58
  %cur.promoted = load i32, ptr @cur, align 4, !tbaa !5
  %pre.promoted = load i32, ptr @pre, align 4, !tbaa !5
  %21 = load ptr, ptr @buf, align 8, !tbaa !9
  %.not5562 = icmp slt i32 %4, 0
  %22 = sext i32 %5 to i64
  %23 = shl nsw i64 %22, 3
  %wide.trip.count105 = zext nneg i32 %19 to i64
  %wide.trip.count86 = zext i32 %5 to i64
  %24 = getelementptr inbounds i8, ptr %21, i64 1
  %wide.trip.count86.1 = zext nneg i32 %5 to i64
  %25 = getelementptr inbounds i8, ptr %21, i64 2
  %wide.trip.count86.2 = zext nneg i32 %5 to i64
  %26 = getelementptr inbounds i8, ptr %21, i64 3
  %wide.trip.count86.3 = zext nneg i32 %5 to i64
  %wide.trip.count95 = zext nneg i32 %5 to i64
  %wide.trip.count100 = zext nneg i32 %5 to i64
  %min.iters.check162 = icmp ult i32 %5, 4
  %n.vec165 = and i64 %wide.trip.count86, 2147483644
  %cmp.n174 = icmp eq i64 %n.vec165, %wide.trip.count86
  %xtraiter = and i64 %wide.trip.count86, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %27 = add nsw i64 %wide.trip.count86, -1
  %min.iters.check145 = icmp ult i32 %5, 4
  %n.vec148 = and i64 %wide.trip.count86, 2147483644
  %cmp.n157 = icmp eq i64 %n.vec148, %wide.trip.count86
  %xtraiter205 = and i64 %wide.trip.count86, 1
  %lcmp.mod206.not = icmp eq i64 %xtraiter205, 0
  %28 = add nsw i64 %wide.trip.count86, -1
  %min.iters.check128 = icmp ult i32 %5, 4
  %n.vec131 = and i64 %wide.trip.count86, 2147483644
  %cmp.n140 = icmp eq i64 %n.vec131, %wide.trip.count86
  %xtraiter207 = and i64 %wide.trip.count86, 1
  %lcmp.mod208.not = icmp eq i64 %xtraiter207, 0
  %29 = add nsw i64 %wide.trip.count86, -1
  %min.iters.check111 = icmp ult i32 %5, 4
  %n.vec114 = and i64 %wide.trip.count86, 2147483644
  %cmp.n123 = icmp eq i64 %n.vec114, %wide.trip.count86
  %xtraiter209 = and i64 %wide.trip.count86, 1
  %lcmp.mod210.not = icmp eq i64 %xtraiter209, 0
  %30 = add nsw i64 %wide.trip.count86, -1
  %min.iters.check = icmp ult i32 %5, 4
  %n.vec = and i64 %wide.trip.count86, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count86
  br label %82

31:                                               ; preds = %.preheader59
  %32 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 0, i64 %16
  %33 = load i64, ptr %32, align 8, !tbaa !12
  %34 = or i64 %33, %14
  store i64 %34, ptr %32, align 8, !tbaa !12
  br label %35

35:                                               ; preds = %.preheader59, %31
  %36 = load i8, ptr %8, align 1, !tbaa !11
  %37 = icmp eq i8 %12, %36
  br i1 %37, label %38, label %42

38:                                               ; preds = %35
  %39 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 1, i64 %16
  %40 = load i64, ptr %39, align 8, !tbaa !12
  %41 = or i64 %40, %14
  store i64 %41, ptr %39, align 8, !tbaa !12
  br label %42

42:                                               ; preds = %38, %35
  %43 = load i8, ptr %9, align 1, !tbaa !11
  %44 = icmp eq i8 %12, %43
  br i1 %44, label %45, label %49

45:                                               ; preds = %42
  %46 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 2, i64 %16
  %47 = load i64, ptr %46, align 8, !tbaa !12
  %48 = or i64 %47, %14
  store i64 %48, ptr %46, align 8, !tbaa !12
  br label %49

49:                                               ; preds = %45, %42
  %50 = load i8, ptr %10, align 1, !tbaa !11
  %51 = icmp eq i8 %12, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 3, i64 %16
  %54 = load i64, ptr %53, align 8, !tbaa !12
  %55 = or i64 %54, %14
  store i64 %55, ptr %53, align 8, !tbaa !12
  br label %56

56:                                               ; preds = %52, %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader58, label %.preheader59, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge73, %.preheader58
  %ans.promoted = load i32, ptr @ans, align 4, !tbaa !5
  br i1 %6, label %.lr.ph77, label %.preheader._crit_edge

.lr.ph77:                                         ; preds = %.preheader
  %57 = load i32, ptr @cur, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %min.iters.check177 = icmp ult i32 %.fr, 4
  br i1 %min.iters.check177, label %scalar.ph176.preheader, label %vector.ph178

scalar.ph176.preheader:                           ; preds = %middle.block175, %.lr.ph77
  %.076.ph = phi i32 [ 0, %.lr.ph77 ], [ %n.vec180, %middle.block175 ]
  %.ph = phi i32 [ %ans.promoted, %.lr.ph77 ], [ %81, %middle.block175 ]
  br label %scalar.ph176

vector.ph178:                                     ; preds = %.lr.ph77
  %n.vec180 = and i32 %.fr, 2147483644
  %59 = insertelement <2 x i32> <i32 poison, i32 0>, i32 %ans.promoted, i64 0
  br label %vector.body182

vector.body182:                                   ; preds = %vector.body182, %vector.ph178
  %index183 = phi i32 [ 0, %vector.ph178 ], [ %index.next188, %vector.body182 ]
  %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph178 ], [ %vec.ind.next, %vector.body182 ]
  %vec.phi = phi <2 x i32> [ %59, %vector.ph178 ], [ %78, %vector.body182 ]
  %vec.phi185 = phi <2 x i32> [ zeroinitializer, %vector.ph178 ], [ %79, %vector.body182 ]
  %step.add = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %60 = lshr i32 %index183, 6
  %61 = lshr i32 %index183, 6
  %62 = zext nneg i32 %60 to i64
  %63 = zext nneg i32 %61 to i64
  %64 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %58, i64 %62
  %65 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %58, i64 %63
  %66 = load i64, ptr %64, align 8, !tbaa !12
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %66, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %67 = load i64, ptr %65, align 8, !tbaa !12
  %broadcast.splatinsert186 = insertelement <2 x i64> poison, i64 %67, i64 0
  %broadcast.splat187 = shufflevector <2 x i64> %broadcast.splatinsert186, <2 x i64> poison, <2 x i32> zeroinitializer
  %68 = and <2 x i32> %vec.ind, <i32 63, i32 63>
  %69 = and <2 x i32> %step.add, <i32 63, i32 63>
  %70 = zext nneg <2 x i32> %68 to <2 x i64>
  %71 = zext nneg <2 x i32> %69 to <2 x i64>
  %72 = lshr <2 x i64> %broadcast.splat, %70
  %73 = lshr <2 x i64> %broadcast.splat187, %71
  %74 = trunc <2 x i64> %72 to <2 x i32>
  %75 = trunc <2 x i64> %73 to <2 x i32>
  %76 = and <2 x i32> %74, <i32 1, i32 1>
  %77 = and <2 x i32> %75, <i32 1, i32 1>
  %78 = add <2 x i32> %76, %vec.phi
  %79 = add <2 x i32> %77, %vec.phi185
  %index.next188 = add nuw i32 %index183, 4
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 4, i32 4>
  %80 = icmp eq i32 %index.next188, %n.vec180
  br i1 %80, label %middle.block175, label %vector.body182, !llvm.loop !16

middle.block175:                                  ; preds = %vector.body182
  %bin.rdx = add <2 x i32> %79, %78
  %81 = tail call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx)
  %cmp.n189 = icmp eq i32 %.fr, %n.vec180
  br i1 %cmp.n189, label %._crit_edge78, label %scalar.ph176.preheader

82:                                               ; preds = %.lr.ph75, %._crit_edge73
  %indvars.iv102 = phi i64 [ 0, %.lr.ph75 ], [ %indvars.iv.next103, %._crit_edge73 ]
  %83 = phi i32 [ %pre.promoted, %.lr.ph75 ], [ %85, %._crit_edge73 ]
  %84 = phi i32 [ %cur.promoted, %.lr.ph75 ], [ %86, %._crit_edge73 ]
  %85 = xor i32 %83, 1
  store i32 %85, ptr @pre, align 4, !tbaa !5
  %86 = xor i32 %84, 1
  store i32 %86, ptr @cur, align 4, !tbaa !5
  %87 = getelementptr inbounds [50001 x i8], ptr @t, i64 0, i64 %indvars.iv102
  %88 = load i8, ptr %87, align 1, !tbaa !11
  %89 = sext i32 %85 to i64
  br i1 %.not5562, label %._crit_edge.thread, label %.split.preheader

.split.preheader:                                 ; preds = %82
  %90 = load i8, ptr %21, align 1, !tbaa !11
  %91 = icmp eq i8 %88, %90
  br i1 %91, label %.preheader56.preheader, label %..loopexit_crit_edge

.preheader56.preheader:                           ; preds = %.split.preheader
  br i1 %min.iters.check162, label %.preheader56.preheader200, label %vector.memcheck158

.preheader56.preheader200:                        ; preds = %middle.block160, %vector.memcheck158, %.preheader56.preheader
  %indvars.iv83.ph = phi i64 [ 0, %vector.memcheck158 ], [ 0, %.preheader56.preheader ], [ %n.vec165, %middle.block160 ]
  br i1 %lcmp.mod.not, label %.preheader56.prol.loopexit, label %.preheader56.prol

.preheader56.prol:                                ; preds = %.preheader56.preheader200
  %92 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83.ph
  %93 = load i64, ptr %92, align 16, !tbaa !12
  %94 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 0, i64 %indvars.iv83.ph
  %95 = load i64, ptr %94, align 16, !tbaa !12
  %96 = or i64 %95, %93
  %97 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83.ph
  store i64 %96, ptr %97, align 16, !tbaa !12
  %indvars.iv.next84.prol = or disjoint i64 %indvars.iv83.ph, 1
  br label %.preheader56.prol.loopexit

.preheader56.prol.loopexit:                       ; preds = %.preheader56.prol, %.preheader56.preheader200
  %indvars.iv83.unr = phi i64 [ %indvars.iv83.ph, %.preheader56.preheader200 ], [ %indvars.iv.next84.prol, %.preheader56.prol ]
  %98 = icmp eq i64 %indvars.iv83.ph, %27
  br i1 %98, label %..loopexit_crit_edge, label %.preheader56

vector.memcheck158:                               ; preds = %.preheader56.preheader
  %.neg = mul nsw i64 %89, -6256
  %99 = and i64 %.neg, -32
  %diff.check159 = icmp eq i64 %99, -12512
  br i1 %diff.check159, label %.preheader56.preheader200, label %vector.body167

vector.body167:                                   ; preds = %vector.memcheck158, %vector.body167
  %index168 = phi i64 [ %index.next173, %vector.body167 ], [ 0, %vector.memcheck158 ]
  %100 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %index168
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  %wide.load169 = load <2 x i64>, ptr %100, align 16, !tbaa !12
  %wide.load170 = load <2 x i64>, ptr %101, align 16, !tbaa !12
  %102 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 0, i64 %index168
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  %wide.load171 = load <2 x i64>, ptr %102, align 16, !tbaa !12
  %wide.load172 = load <2 x i64>, ptr %103, align 16, !tbaa !12
  %104 = or <2 x i64> %wide.load171, %wide.load169
  %105 = or <2 x i64> %wide.load172, %wide.load170
  %106 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %index168
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  store <2 x i64> %104, ptr %106, align 16, !tbaa !12
  store <2 x i64> %105, ptr %107, align 16, !tbaa !12
  %index.next173 = add nuw i64 %index168, 4
  %108 = icmp eq i64 %index.next173, %n.vec165
  br i1 %108, label %middle.block160, label %vector.body167, !llvm.loop !19

middle.block160:                                  ; preds = %vector.body167
  br i1 %cmp.n174, label %..loopexit_crit_edge, label %.preheader56.preheader200

.preheader57:                                     ; preds = %.preheader56.3.prol.loopexit, %.preheader56.3, %middle.block109, %..loopexit_crit_edge.2
  br i1 %.not5562, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader57
  br i1 %min.iters.check, label %.lr.ph.preheader196, label %vector.body

.lr.ph.preheader196:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv92.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.04767.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %vector.recur.extract, %middle.block ]
  br label %.lr.ph

vector.body:                                      ; preds = %.lr.ph.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.preheader ]
  %vector.recur = phi <2 x i64> [ %112, %vector.body ], [ <i64 poison, i64 1>, %.lr.ph.preheader ]
  %109 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %index
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %wide.load = load <2 x i64>, ptr %109, align 16, !tbaa !12
  %wide.load108 = load <2 x i64>, ptr %110, align 16, !tbaa !12
  %111 = lshr <2 x i64> %wide.load, <i64 63, i64 63>
  %112 = lshr <2 x i64> %wide.load108, <i64 63, i64 63>
  %113 = shufflevector <2 x i64> %vector.recur, <2 x i64> %111, <2 x i32> <i32 1, i32 2>
  %114 = shufflevector <2 x i64> %111, <2 x i64> %112, <2 x i32> <i32 1, i32 2>
  %115 = shl <2 x i64> %wide.load, <i64 1, i64 1>
  %116 = shl <2 x i64> %wide.load108, <i64 1, i64 1>
  %117 = or disjoint <2 x i64> %115, %113
  %118 = or disjoint <2 x i64> %116, %114
  store <2 x i64> %117, ptr %109, align 16, !tbaa !12
  store <2 x i64> %118, ptr %110, align 16, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %119 = icmp eq i64 %index.next, %n.vec
  br i1 %119, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %vector.recur.extract = extractelement <2 x i64> %112, i64 1
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader196

.preheader56:                                     ; preds = %.preheader56.prol.loopexit, %.preheader56
  %indvars.iv83 = phi i64 [ %indvars.iv.next84.1203, %.preheader56 ], [ %indvars.iv83.unr, %.preheader56.prol.loopexit ]
  %120 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83
  %121 = load i64, ptr %120, align 8, !tbaa !12
  %122 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 0, i64 %indvars.iv83
  %123 = load i64, ptr %122, align 8, !tbaa !12
  %124 = or i64 %123, %121
  %125 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83
  store i64 %124, ptr %125, align 8, !tbaa !12
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %126 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv.next84
  %127 = load i64, ptr %126, align 8, !tbaa !12
  %128 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 0, i64 %indvars.iv.next84
  %129 = load i64, ptr %128, align 8, !tbaa !12
  %130 = or i64 %129, %127
  %131 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv.next84
  store i64 %130, ptr %131, align 8, !tbaa !12
  %indvars.iv.next84.1203 = add nuw nsw i64 %indvars.iv83, 2
  %exitcond87.not.1 = icmp eq i64 %indvars.iv.next84.1203, %wide.trip.count86
  br i1 %exitcond87.not.1, label %..loopexit_crit_edge, label %.preheader56, !llvm.loop !21

..loopexit_crit_edge:                             ; preds = %.preheader56.prol.loopexit, %.preheader56, %middle.block160, %.split.preheader
  %132 = load i8, ptr %24, align 1, !tbaa !11
  %133 = icmp eq i8 %88, %132
  br i1 %133, label %.preheader56.1.preheader, label %..loopexit_crit_edge.1

.preheader56.1.preheader:                         ; preds = %..loopexit_crit_edge
  br i1 %min.iters.check145, label %.preheader56.1.preheader199, label %vector.memcheck141

vector.memcheck141:                               ; preds = %.preheader56.1.preheader
  %.neg190 = mul nsw i64 %89, -6256
  %134 = and i64 %.neg190, -32
  %diff.check142 = icmp eq i64 %134, -12512
  br i1 %diff.check142, label %.preheader56.1.preheader199, label %vector.body150

vector.body150:                                   ; preds = %vector.memcheck141, %vector.body150
  %index151 = phi i64 [ %index.next156, %vector.body150 ], [ 0, %vector.memcheck141 ]
  %135 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %index151
  %136 = getelementptr inbounds i8, ptr %135, i64 16
  %wide.load152 = load <2 x i64>, ptr %135, align 16, !tbaa !12
  %wide.load153 = load <2 x i64>, ptr %136, align 16, !tbaa !12
  %137 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 1, i64 %index151
  %138 = getelementptr inbounds i8, ptr %137, i64 16
  %wide.load154 = load <2 x i64>, ptr %137, align 16, !tbaa !12
  %wide.load155 = load <2 x i64>, ptr %138, align 16, !tbaa !12
  %139 = or <2 x i64> %wide.load154, %wide.load152
  %140 = or <2 x i64> %wide.load155, %wide.load153
  %141 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %index151
  %142 = getelementptr inbounds i8, ptr %141, i64 16
  store <2 x i64> %139, ptr %141, align 16, !tbaa !12
  store <2 x i64> %140, ptr %142, align 16, !tbaa !12
  %index.next156 = add nuw i64 %index151, 4
  %143 = icmp eq i64 %index.next156, %n.vec148
  br i1 %143, label %middle.block143, label %vector.body150, !llvm.loop !22

middle.block143:                                  ; preds = %vector.body150
  br i1 %cmp.n157, label %..loopexit_crit_edge.1, label %.preheader56.1.preheader199

.preheader56.1.preheader199:                      ; preds = %middle.block143, %vector.memcheck141, %.preheader56.1.preheader
  %indvars.iv83.1.ph = phi i64 [ 0, %vector.memcheck141 ], [ 0, %.preheader56.1.preheader ], [ %n.vec148, %middle.block143 ]
  br i1 %lcmp.mod206.not, label %.preheader56.1.prol.loopexit, label %.preheader56.1.prol

.preheader56.1.prol:                              ; preds = %.preheader56.1.preheader199
  %144 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83.1.ph
  %145 = load i64, ptr %144, align 16, !tbaa !12
  %146 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 1, i64 %indvars.iv83.1.ph
  %147 = load i64, ptr %146, align 16, !tbaa !12
  %148 = or i64 %147, %145
  %149 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83.1.ph
  store i64 %148, ptr %149, align 16, !tbaa !12
  %indvars.iv.next84.1.prol = or disjoint i64 %indvars.iv83.1.ph, 1
  br label %.preheader56.1.prol.loopexit

.preheader56.1.prol.loopexit:                     ; preds = %.preheader56.1.prol, %.preheader56.1.preheader199
  %indvars.iv83.1.unr = phi i64 [ %indvars.iv83.1.ph, %.preheader56.1.preheader199 ], [ %indvars.iv.next84.1.prol, %.preheader56.1.prol ]
  %150 = icmp eq i64 %indvars.iv83.1.ph, %28
  br i1 %150, label %..loopexit_crit_edge.1, label %.preheader56.1

.preheader56.1:                                   ; preds = %.preheader56.1.prol.loopexit, %.preheader56.1
  %indvars.iv83.1 = phi i64 [ %indvars.iv.next84.1.1, %.preheader56.1 ], [ %indvars.iv83.1.unr, %.preheader56.1.prol.loopexit ]
  %151 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83.1
  %152 = load i64, ptr %151, align 8, !tbaa !12
  %153 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 1, i64 %indvars.iv83.1
  %154 = load i64, ptr %153, align 8, !tbaa !12
  %155 = or i64 %154, %152
  %156 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83.1
  store i64 %155, ptr %156, align 8, !tbaa !12
  %indvars.iv.next84.1 = add nuw nsw i64 %indvars.iv83.1, 1
  %157 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv.next84.1
  %158 = load i64, ptr %157, align 8, !tbaa !12
  %159 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 1, i64 %indvars.iv.next84.1
  %160 = load i64, ptr %159, align 8, !tbaa !12
  %161 = or i64 %160, %158
  %162 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv.next84.1
  store i64 %161, ptr %162, align 8, !tbaa !12
  %indvars.iv.next84.1.1 = add nuw nsw i64 %indvars.iv83.1, 2
  %exitcond87.1.not.1 = icmp eq i64 %indvars.iv.next84.1.1, %wide.trip.count86.1
  br i1 %exitcond87.1.not.1, label %..loopexit_crit_edge.1, label %.preheader56.1, !llvm.loop !23

..loopexit_crit_edge.1:                           ; preds = %.preheader56.1.prol.loopexit, %.preheader56.1, %middle.block143, %..loopexit_crit_edge
  %163 = load i8, ptr %25, align 1, !tbaa !11
  %164 = icmp eq i8 %88, %163
  br i1 %164, label %.preheader56.2.preheader, label %..loopexit_crit_edge.2

.preheader56.2.preheader:                         ; preds = %..loopexit_crit_edge.1
  br i1 %min.iters.check128, label %.preheader56.2.preheader198, label %vector.memcheck124

vector.memcheck124:                               ; preds = %.preheader56.2.preheader
  %.neg191 = mul nsw i64 %89, -6256
  %165 = and i64 %.neg191, -32
  %diff.check125 = icmp eq i64 %165, -12512
  br i1 %diff.check125, label %.preheader56.2.preheader198, label %vector.body133

vector.body133:                                   ; preds = %vector.memcheck124, %vector.body133
  %index134 = phi i64 [ %index.next139, %vector.body133 ], [ 0, %vector.memcheck124 ]
  %166 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %index134
  %167 = getelementptr inbounds i8, ptr %166, i64 16
  %wide.load135 = load <2 x i64>, ptr %166, align 16, !tbaa !12
  %wide.load136 = load <2 x i64>, ptr %167, align 16, !tbaa !12
  %168 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 2, i64 %index134
  %169 = getelementptr inbounds i8, ptr %168, i64 16
  %wide.load137 = load <2 x i64>, ptr %168, align 16, !tbaa !12
  %wide.load138 = load <2 x i64>, ptr %169, align 16, !tbaa !12
  %170 = or <2 x i64> %wide.load137, %wide.load135
  %171 = or <2 x i64> %wide.load138, %wide.load136
  %172 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %index134
  %173 = getelementptr inbounds i8, ptr %172, i64 16
  store <2 x i64> %170, ptr %172, align 16, !tbaa !12
  store <2 x i64> %171, ptr %173, align 16, !tbaa !12
  %index.next139 = add nuw i64 %index134, 4
  %174 = icmp eq i64 %index.next139, %n.vec131
  br i1 %174, label %middle.block126, label %vector.body133, !llvm.loop !24

middle.block126:                                  ; preds = %vector.body133
  br i1 %cmp.n140, label %..loopexit_crit_edge.2, label %.preheader56.2.preheader198

.preheader56.2.preheader198:                      ; preds = %middle.block126, %vector.memcheck124, %.preheader56.2.preheader
  %indvars.iv83.2.ph = phi i64 [ 0, %vector.memcheck124 ], [ 0, %.preheader56.2.preheader ], [ %n.vec131, %middle.block126 ]
  br i1 %lcmp.mod208.not, label %.preheader56.2.prol.loopexit, label %.preheader56.2.prol

.preheader56.2.prol:                              ; preds = %.preheader56.2.preheader198
  %175 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83.2.ph
  %176 = load i64, ptr %175, align 16, !tbaa !12
  %177 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 2, i64 %indvars.iv83.2.ph
  %178 = load i64, ptr %177, align 16, !tbaa !12
  %179 = or i64 %178, %176
  %180 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83.2.ph
  store i64 %179, ptr %180, align 16, !tbaa !12
  %indvars.iv.next84.2.prol = or disjoint i64 %indvars.iv83.2.ph, 1
  br label %.preheader56.2.prol.loopexit

.preheader56.2.prol.loopexit:                     ; preds = %.preheader56.2.prol, %.preheader56.2.preheader198
  %indvars.iv83.2.unr = phi i64 [ %indvars.iv83.2.ph, %.preheader56.2.preheader198 ], [ %indvars.iv.next84.2.prol, %.preheader56.2.prol ]
  %181 = icmp eq i64 %indvars.iv83.2.ph, %29
  br i1 %181, label %..loopexit_crit_edge.2, label %.preheader56.2

.preheader56.2:                                   ; preds = %.preheader56.2.prol.loopexit, %.preheader56.2
  %indvars.iv83.2 = phi i64 [ %indvars.iv.next84.2.1, %.preheader56.2 ], [ %indvars.iv83.2.unr, %.preheader56.2.prol.loopexit ]
  %182 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83.2
  %183 = load i64, ptr %182, align 8, !tbaa !12
  %184 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 2, i64 %indvars.iv83.2
  %185 = load i64, ptr %184, align 8, !tbaa !12
  %186 = or i64 %185, %183
  %187 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83.2
  store i64 %186, ptr %187, align 8, !tbaa !12
  %indvars.iv.next84.2 = add nuw nsw i64 %indvars.iv83.2, 1
  %188 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv.next84.2
  %189 = load i64, ptr %188, align 8, !tbaa !12
  %190 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 2, i64 %indvars.iv.next84.2
  %191 = load i64, ptr %190, align 8, !tbaa !12
  %192 = or i64 %191, %189
  %193 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv.next84.2
  store i64 %192, ptr %193, align 8, !tbaa !12
  %indvars.iv.next84.2.1 = add nuw nsw i64 %indvars.iv83.2, 2
  %exitcond87.2.not.1 = icmp eq i64 %indvars.iv.next84.2.1, %wide.trip.count86.2
  br i1 %exitcond87.2.not.1, label %..loopexit_crit_edge.2, label %.preheader56.2, !llvm.loop !25

..loopexit_crit_edge.2:                           ; preds = %.preheader56.2.prol.loopexit, %.preheader56.2, %middle.block126, %..loopexit_crit_edge.1
  %194 = load i8, ptr %26, align 1, !tbaa !11
  %195 = icmp eq i8 %88, %194
  br i1 %195, label %.preheader56.3.preheader, label %.preheader57

.preheader56.3.preheader:                         ; preds = %..loopexit_crit_edge.2
  br i1 %min.iters.check111, label %.preheader56.3.preheader197, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader56.3.preheader
  %.neg192 = mul nsw i64 %89, -6256
  %196 = and i64 %.neg192, -32
  %diff.check = icmp eq i64 %196, -12512
  br i1 %diff.check, label %.preheader56.3.preheader197, label %vector.body116

vector.body116:                                   ; preds = %vector.memcheck, %vector.body116
  %index117 = phi i64 [ %index.next122, %vector.body116 ], [ 0, %vector.memcheck ]
  %197 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %index117
  %198 = getelementptr inbounds i8, ptr %197, i64 16
  %wide.load118 = load <2 x i64>, ptr %197, align 16, !tbaa !12
  %wide.load119 = load <2 x i64>, ptr %198, align 16, !tbaa !12
  %199 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 3, i64 %index117
  %200 = getelementptr inbounds i8, ptr %199, i64 16
  %wide.load120 = load <2 x i64>, ptr %199, align 16, !tbaa !12
  %wide.load121 = load <2 x i64>, ptr %200, align 16, !tbaa !12
  %201 = or <2 x i64> %wide.load120, %wide.load118
  %202 = or <2 x i64> %wide.load121, %wide.load119
  %203 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %index117
  %204 = getelementptr inbounds i8, ptr %203, i64 16
  store <2 x i64> %201, ptr %203, align 16, !tbaa !12
  store <2 x i64> %202, ptr %204, align 16, !tbaa !12
  %index.next122 = add nuw i64 %index117, 4
  %205 = icmp eq i64 %index.next122, %n.vec114
  br i1 %205, label %middle.block109, label %vector.body116, !llvm.loop !26

middle.block109:                                  ; preds = %vector.body116
  br i1 %cmp.n123, label %.preheader57, label %.preheader56.3.preheader197

.preheader56.3.preheader197:                      ; preds = %middle.block109, %vector.memcheck, %.preheader56.3.preheader
  %indvars.iv83.3.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader56.3.preheader ], [ %n.vec114, %middle.block109 ]
  br i1 %lcmp.mod210.not, label %.preheader56.3.prol.loopexit, label %.preheader56.3.prol

.preheader56.3.prol:                              ; preds = %.preheader56.3.preheader197
  %206 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83.3.ph
  %207 = load i64, ptr %206, align 16, !tbaa !12
  %208 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 3, i64 %indvars.iv83.3.ph
  %209 = load i64, ptr %208, align 16, !tbaa !12
  %210 = or i64 %209, %207
  %211 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83.3.ph
  store i64 %210, ptr %211, align 16, !tbaa !12
  %indvars.iv.next84.3.prol = or disjoint i64 %indvars.iv83.3.ph, 1
  br label %.preheader56.3.prol.loopexit

.preheader56.3.prol.loopexit:                     ; preds = %.preheader56.3.prol, %.preheader56.3.preheader197
  %indvars.iv83.3.unr = phi i64 [ %indvars.iv83.3.ph, %.preheader56.3.preheader197 ], [ %indvars.iv.next84.3.prol, %.preheader56.3.prol ]
  %212 = icmp eq i64 %indvars.iv83.3.ph, %30
  br i1 %212, label %.preheader57, label %.preheader56.3

.preheader56.3:                                   ; preds = %.preheader56.3.prol.loopexit, %.preheader56.3
  %indvars.iv83.3 = phi i64 [ %indvars.iv.next84.3.1, %.preheader56.3 ], [ %indvars.iv83.3.unr, %.preheader56.3.prol.loopexit ]
  %213 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv83.3
  %214 = load i64, ptr %213, align 8, !tbaa !12
  %215 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 3, i64 %indvars.iv83.3
  %216 = load i64, ptr %215, align 8, !tbaa !12
  %217 = or i64 %216, %214
  %218 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv83.3
  store i64 %217, ptr %218, align 8, !tbaa !12
  %indvars.iv.next84.3 = add nuw nsw i64 %indvars.iv83.3, 1
  %219 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv.next84.3
  %220 = load i64, ptr %219, align 8, !tbaa !12
  %221 = getelementptr inbounds [4 x [782 x i64]], ptr @pos, i64 0, i64 3, i64 %indvars.iv.next84.3
  %222 = load i64, ptr %221, align 8, !tbaa !12
  %223 = or i64 %222, %220
  %224 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv.next84.3
  store i64 %223, ptr %224, align 8, !tbaa !12
  %indvars.iv.next84.3.1 = add nuw nsw i64 %indvars.iv83.3, 2
  %exitcond87.3.not.1 = icmp eq i64 %indvars.iv.next84.3.1, %wide.trip.count86.3
  br i1 %exitcond87.3.not.1, label %.preheader57, label %.preheader56.3, !llvm.loop !27

._crit_edge.thread:                               ; preds = %.preheader57, %82
  %225 = sext i32 %86 to i64
  %226 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %225
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %226, ptr nonnull align 16 getelementptr inbounds (i8, ptr @f, i64 12512), i64 %23, i1 false)
  br label %._crit_edge73

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %227 = sext i32 %86 to i64
  %228 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %227
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %228, ptr nonnull align 16 getelementptr inbounds (i8, ptr @f, i64 12512), i64 %23, i1 false)
  br i1 %.not5562, label %._crit_edge73, label %.lr.ph72

.lr.ph:                                           ; preds = %.lr.ph.preheader196, %.lr.ph
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %.lr.ph ], [ %indvars.iv92.ph, %.lr.ph.preheader196 ]
  %.04767 = phi i64 [ %231, %.lr.ph ], [ %.04767.ph, %.lr.ph.preheader196 ]
  %229 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv92
  %230 = load i64, ptr %229, align 8, !tbaa !12
  %231 = lshr i64 %230, 63
  %232 = shl i64 %230, 1
  %233 = or disjoint i64 %232, %.04767
  store i64 %233, ptr %229, align 8, !tbaa !12
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next93, %wide.trip.count95
  br i1 %exitcond96.not, label %._crit_edge, label %.lr.ph, !llvm.loop !28

._crit_edge73:                                    ; preds = %.lr.ph72, %._crit_edge.thread, %._crit_edge
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %exitcond106.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count105
  br i1 %exitcond106.not, label %.preheader, label %82, !llvm.loop !29

.lr.ph72:                                         ; preds = %._crit_edge, %.lr.ph72
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %.lr.ph72 ], [ 0, %._crit_edge ]
  %.04570 = phi i64 [ %240, %.lr.ph72 ], [ 0, %._crit_edge ]
  %234 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %227, i64 %indvars.iv97
  %235 = load i64, ptr %234, align 8, !tbaa !12
  %236 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %89, i64 %indvars.iv97
  %237 = load i64, ptr %236, align 8, !tbaa !12
  %238 = add i64 %237, %.04570
  %239 = icmp ult i64 %235, %238
  %240 = zext i1 %239 to i64
  %241 = sub i64 %235, %238
  store i64 %241, ptr %234, align 8, !tbaa !12
  %242 = xor i64 %241, -1
  %243 = getelementptr inbounds [782 x i64], ptr getelementptr inbounds (i8, ptr @f, i64 12512), i64 0, i64 %indvars.iv97
  %244 = load i64, ptr %243, align 8, !tbaa !12
  %245 = and i64 %244, %242
  store i64 %245, ptr %234, align 8, !tbaa !12
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond101.not = icmp eq i64 %indvars.iv.next98, %wide.trip.count100
  br i1 %exitcond101.not, label %._crit_edge73, label %.lr.ph72, !llvm.loop !30

._crit_edge78:                                    ; preds = %scalar.ph176, %middle.block175
  %.lcssa = phi i32 [ %81, %middle.block175 ], [ %258, %scalar.ph176 ]
  store i32 %.lcssa, ptr @ans, align 4, !tbaa !5
  br label %.preheader._crit_edge

.preheader._crit_edge:                            ; preds = %.preheader, %._crit_edge78
  %246 = phi i32 [ %.lcssa, %._crit_edge78 ], [ %ans.promoted, %.preheader ]
  %247 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %246)
  ret i32 0

scalar.ph176:                                     ; preds = %scalar.ph176.preheader, %scalar.ph176
  %.076 = phi i32 [ %259, %scalar.ph176 ], [ %.076.ph, %scalar.ph176.preheader ]
  %248 = phi i32 [ %258, %scalar.ph176 ], [ %.ph, %scalar.ph176.preheader ]
  %249 = lshr i32 %.076, 6
  %250 = zext nneg i32 %249 to i64
  %251 = getelementptr inbounds [3 x [782 x i64]], ptr @f, i64 0, i64 %58, i64 %250
  %252 = load i64, ptr %251, align 8, !tbaa !12
  %253 = and i32 %.076, 63
  %254 = zext nneg i32 %253 to i64
  %255 = lshr i64 %252, %254
  %256 = trunc i64 %255 to i32
  %257 = and i32 %256, 1
  %258 = add i32 %257, %248
  %259 = add nuw nsw i32 %.076, 1
  %exitcond107.not = icmp eq i32 %259, %.fr
  br i1 %exitcond107.not, label %._crit_edge78, label %scalar.ph176, !llvm.loop !31
}

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v2i32(<2 x i32>) #3

attributes #0 = { mustprogress nofree norecurse nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !15, !17, !18}
!20 = distinct !{!20, !15, !17, !18}
!21 = distinct !{!21, !15, !17}
!22 = distinct !{!22, !15, !17, !18}
!23 = distinct !{!23, !15, !17}
!24 = distinct !{!24, !15, !17, !18}
!25 = distinct !{!25, !15, !17}
!26 = distinct !{!26, !15, !17, !18}
!27 = distinct !{!27, !15, !17}
!28 = distinct !{!28, !15, !18, !17}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15, !18, !17}


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