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

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

%"struct.fastIO::Ostream_fwrite" = type { ptr, ptr, ptr }

@_ZN6fastIO7OstreamE = external dso_local global %"struct.fastIO::Ostream_fwrite", align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [500001 x i32], align 16
@b = external dso_local global [500001 x i32], align 16
@les = external dso_local global [500001 x i32], align 16
@eq = external dso_local global [500001 x i32], align 16
@gre = external dso_local global [500001 x i32], align 16
@fail = external dso_local global [500001 x i32], align 16
@cnt = external dso_local global i32, align 4
@ans = external dso_local global [500001 x i32], align 16
@pos = external dso_local global [10003 x i32], align 16
@pL = external dso_local global [10003 x i32], align 16
@pR = external dso_local global [10003 x i32], align 16
@.str = external hidden unnamed_addr constant [3 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 ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @a)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %23, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %26

19:                                               ; preds = %14
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [500001 x i32], ptr @a, i64 0, i64 %21
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %22)
  br label %23

23:                                               ; preds = %19
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !9

26:                                               ; preds = %18
  call void @llvm.memset.p0.i64(ptr align 16 @pos, i8 -1, i64 40012, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %50, %26
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = load i32, ptr @m, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %53

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %34
  store ptr %35, ptr %4, align 8, !tbaa !11
  %36 = load ptr, ptr %4, align 8, !tbaa !11
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !11
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [500001 x i32], ptr @eq, i64 0, i64 %43
  store i32 %41, ptr %44, align 4, !tbaa !5
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = load ptr, ptr %4, align 8, !tbaa !11
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %48
  store i32 %45, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %50

50:                                               ; preds = %32
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %3, align 4, !tbaa !5
  br label %27, !llvm.loop !13

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

54:                                               ; preds = %75, %53
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = icmp slt i32 %55, 10001
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %78

58:                                               ; preds = %54
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = icmp ne i32 %62, -1
  br i1 %63, label %64, label %74

64:                                               ; preds = %58
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %67
  store i32 %65, ptr %68, align 4, !tbaa !5
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %71
  store i32 %69, ptr %72, align 4, !tbaa !5
  %73 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %73, ptr %5, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %64, %58
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %6, align 4, !tbaa !5
  br label %54, !llvm.loop !14

78:                                               ; preds = %57
  %79 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %79, ptr getelementptr inbounds ([10003 x i32], ptr @pL, i64 0, i64 10001), align 4, !tbaa !5
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %81
  store i32 10001, ptr %82, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %83 = load i32, ptr @m, align 4, !tbaa !5
  %84 = sub nsw i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %148, %78
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = icmp sge i32 %86, 0
  br i1 %87, label %89, label %88

88:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %151

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  store i32 %93, ptr %8, align 4, !tbaa !5
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [500001 x i32], ptr @eq, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %99
  store i32 %97, ptr %100, align 4, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = icmp eq i32 %104, -1
  br i1 %105, label %106, label %127

106:                                              ; preds = %89
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %115
  store i32 %110, ptr %116, align 4, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %125
  store i32 %120, ptr %126, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %106, %89
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [500001 x i32], ptr @les, i64 0, i64 %136
  store i32 %134, ptr %137, align 4, !tbaa !5
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load i32, ptr %7, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [500001 x i32], ptr @gre, i64 0, i64 %146
  store i32 %144, ptr %147, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %148

148:                                              ; preds = %127
  %149 = load i32, ptr %7, align 4, !tbaa !5
  %150 = add nsw i32 %149, -1
  store i32 %150, ptr %7, align 4, !tbaa !5
  br label %85, !llvm.loop !15

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

152:                                              ; preds = %198, %151
  %153 = load i32, ptr %9, align 4, !tbaa !5
  %154 = load i32, ptr @m, align 4, !tbaa !5
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %201

157:                                              ; preds = %152
  br label %158

158:                                              ; preds = %174, %157
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %172

161:                                              ; preds = %158
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr @b, i64 %164
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = sub i64 0, %167
  %169 = getelementptr inbounds i32, ptr %165, i64 %168
  %170 = call noundef zeroext i1 @_Z5matchiPi(i32 noundef %162, ptr noundef %169)
  %171 = xor i1 %170, true
  br label %172

172:                                              ; preds = %161, %158
  %173 = phi i1 [ false, %158 ], [ %171, %161 ]
  br i1 %173, label %174, label %179

174:                                              ; preds = %172
  %175 = load i32, ptr %10, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !5
  store i32 %178, ptr %10, align 4, !tbaa !5
  br label %158, !llvm.loop !16

179:                                              ; preds = %172
  %180 = load i32, ptr %10, align 4, !tbaa !5
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds i32, ptr @b, i64 %182
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = sub i64 0, %185
  %187 = getelementptr inbounds i32, ptr %183, i64 %186
  %188 = call noundef zeroext i1 @_Z5matchiPi(i32 noundef %180, ptr noundef %187)
  br i1 %188, label %189, label %192

189:                                              ; preds = %179
  %190 = load i32, ptr %10, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %10, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %189, %179
  %193 = load i32, ptr %10, align 4, !tbaa !5
  %194 = load i32, ptr %9, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %196
  store i32 %193, ptr %197, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %192
  %199 = load i32, ptr %9, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %9, align 4, !tbaa !5
  br label %152, !llvm.loop !17

201:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %260, %201
  %203 = load i32, ptr %11, align 4, !tbaa !5
  %204 = load i32, ptr @n, align 4, !tbaa !5
  %205 = icmp slt i32 %203, %204
  br i1 %205, label %207, label %206

206:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %263

207:                                              ; preds = %202
  br label %208

208:                                              ; preds = %224, %207
  %209 = load i32, ptr %12, align 4, !tbaa !5
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %222

211:                                              ; preds = %208
  %212 = load i32, ptr %12, align 4, !tbaa !5
  %213 = load i32, ptr %11, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds i32, ptr @a, i64 %214
  %216 = load i32, ptr %12, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = sub i64 0, %217
  %219 = getelementptr inbounds i32, ptr %215, i64 %218
  %220 = call noundef zeroext i1 @_Z5matchiPi(i32 noundef %212, ptr noundef %219)
  %221 = xor i1 %220, true
  br label %222

222:                                              ; preds = %211, %208
  %223 = phi i1 [ false, %208 ], [ %221, %211 ]
  br i1 %223, label %224, label %229

224:                                              ; preds = %222
  %225 = load i32, ptr %12, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  store i32 %228, ptr %12, align 4, !tbaa !5
  br label %208, !llvm.loop !18

229:                                              ; preds = %222
  %230 = load i32, ptr %12, align 4, !tbaa !5
  %231 = load i32, ptr %11, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr @a, i64 %232
  %234 = load i32, ptr %12, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = sub i64 0, %235
  %237 = getelementptr inbounds i32, ptr %233, i64 %236
  %238 = call noundef zeroext i1 @_Z5matchiPi(i32 noundef %230, ptr noundef %237)
  br i1 %238, label %239, label %242

239:                                              ; preds = %229
  %240 = load i32, ptr %12, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %12, align 4, !tbaa !5
  br label %242

242:                                              ; preds = %239, %229
  %243 = load i32, ptr %12, align 4, !tbaa !5
  %244 = load i32, ptr @m, align 4, !tbaa !5
  %245 = icmp eq i32 %243, %244
  br i1 %245, label %246, label %259

246:                                              ; preds = %242
  %247 = load i32, ptr %11, align 4, !tbaa !5
  %248 = load i32, ptr %12, align 4, !tbaa !5
  %249 = sub nsw i32 %247, %248
  %250 = add nsw i32 %249, 1
  %251 = load i32, ptr @cnt, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr @cnt, align 4, !tbaa !5
  %253 = sext i32 %251 to i64
  %254 = getelementptr inbounds [500001 x i32], ptr @ans, i64 0, i64 %253
  store i32 %250, ptr %254, align 4, !tbaa !5
  %255 = load i32, ptr %12, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !5
  store i32 %258, ptr %12, align 4, !tbaa !5
  br label %259

259:                                              ; preds = %246, %242
  br label %260

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

263:                                              ; preds = %206
  %264 = load i32, ptr @cnt, align 4, !tbaa !5
  call void @_ZN6fastIO14Ostream_fwrite5writeEic(ptr noundef nonnull align 8 dereferenceable(24) @_ZN6fastIO7OstreamE, i32 noundef %264, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %265

265:                                              ; preds = %283, %263
  %266 = load i32, ptr %13, align 4, !tbaa !5
  %267 = load i32, ptr @cnt, align 4, !tbaa !5
  %268 = icmp slt i32 %266, %267
  br i1 %268, label %270, label %269

269:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %286

270:                                              ; preds = %265
  %271 = load i32, ptr %13, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [500001 x i32], ptr @ans, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  %276 = load i32, ptr %13, align 4, !tbaa !5
  %277 = load i32, ptr @cnt, align 4, !tbaa !5
  %278 = sub nsw i32 %277, 1
  %279 = icmp eq i32 %276, %278
  %280 = zext i1 %279 to i64
  %281 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %280
  %282 = load i8, ptr %281, align 1, !tbaa !20
  call void @_ZN6fastIO14Ostream_fwrite5writeEic(ptr noundef nonnull align 8 dereferenceable(24) @_ZN6fastIO7OstreamE, i32 noundef %275, i8 noundef signext %282)
  br label %283

283:                                              ; preds = %270
  %284 = load i32, ptr %13, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %13, align 4, !tbaa !5
  br label %265, !llvm.loop !21

286:                                              ; preds = %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4)) #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: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5matchiPi(i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6fastIO14Ostream_fwrite5writeEic(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i8 noundef signext) #5 align 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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

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

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

%"struct.fastIO::Ostream_fwrite" = type { ptr, ptr, ptr }

@_ZN6fastIO7OstreamE = external dso_local global %"struct.fastIO::Ostream_fwrite", align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [500001 x i32], align 16
@b = external dso_local global [500001 x i32], align 16
@les = external dso_local local_unnamed_addr global [500001 x i32], align 16
@eq = external dso_local local_unnamed_addr global [500001 x i32], align 16
@gre = external dso_local local_unnamed_addr global [500001 x i32], align 16
@fail = external dso_local local_unnamed_addr global [500001 x i32], align 16
@cnt = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global [500001 x i32], align 16
@pos = external dso_local local_unnamed_addr global [10003 x i32], align 16
@pL = external dso_local local_unnamed_addr global [10003 x i32], align 16
@pR = external dso_local local_unnamed_addr global [10003 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @m)
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @a)
  %1 = load i32, ptr @n, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 0
  br i1 %2, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40012) @pos, i8 -1, i64 40012, i1 false)
  %3 = load i32, ptr @m, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph91, label %.preheader87

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %5 = getelementptr inbounds [500001 x i32], ptr @a, i64 0, i64 %indvars.iv
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %5)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = icmp slt i64 %indvars.iv.next, %7
  br i1 %8, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader87:                                     ; preds = %.lr.ph91, %._crit_edge
  %9 = phi i32 [ %3, %._crit_edge ], [ %17, %.lr.ph91 ]
  br label %25

.lr.ph91:                                         ; preds = %._crit_edge, %.lr.ph91
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %.lr.ph91 ], [ 0, %._crit_edge ]
  %10 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %indvars.iv121
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %10)
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = getelementptr inbounds [500001 x i32], ptr @eq, i64 0, i64 %indvars.iv121
  store i32 %14, ptr %15, align 4, !tbaa !5
  %16 = trunc nuw nsw i64 %indvars.iv121 to i32
  store i32 %16, ptr %13, align 4, !tbaa !5
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %17 = load i32, ptr @m, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = icmp slt i64 %indvars.iv.next122, %18
  br i1 %19, label %.lr.ph91, label %.preheader87, !llvm.loop !11

20:                                               ; preds = %41
  store i32 %.178.1, ptr getelementptr inbounds (i8, ptr @pL, i64 40004), align 4, !tbaa !5
  %21 = sext i32 %.178.1 to i64
  %22 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %21
  store i32 10001, ptr %22, align 4, !tbaa !5
  %23 = icmp sgt i32 %9, 0
  br i1 %23, label %.lr.ph97.preheader, label %.preheader84

.lr.ph97.preheader:                               ; preds = %20
  %24 = zext nneg i32 %9 to i64
  br label %.lr.ph97

25:                                               ; preds = %41, %.preheader87
  %indvars.iv124 = phi i64 [ 1, %.preheader87 ], [ %indvars.iv.next125.1, %41 ]
  %.07792 = phi i32 [ 0, %.preheader87 ], [ %.178.1, %41 ]
  %26 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %indvars.iv124
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %.not82 = icmp eq i32 %27, -1
  br i1 %.not82, label %33, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %indvars.iv124
  store i32 %.07792, ptr %29, align 4, !tbaa !5
  %30 = sext i32 %.07792 to i64
  %31 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %30
  %32 = trunc nuw nsw i64 %indvars.iv124 to i32
  store i32 %32, ptr %31, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %25, %28
  %.178 = phi i32 [ %32, %28 ], [ %.07792, %25 ]
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %34 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %indvars.iv.next125
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %.not82.1 = icmp eq i32 %35, -1
  br i1 %.not82.1, label %41, label %36

36:                                               ; preds = %33
  %37 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %indvars.iv.next125
  store i32 %.178, ptr %37, align 4, !tbaa !5
  %38 = sext i32 %.178 to i64
  %39 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %38
  %40 = trunc nuw nsw i64 %indvars.iv.next125 to i32
  store i32 %40, ptr %39, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %36, %33
  %.178.1 = phi i32 [ %40, %36 ], [ %.178, %33 ]
  %indvars.iv.next125.1 = add nuw nsw i64 %indvars.iv124, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next125.1, 10001
  br i1 %exitcond.not.1, label %20, label %25, !llvm.loop !12

.preheader86:                                     ; preds = %58
  %.not145 = icmp eq i32 %9, 1
  br i1 %.not145, label %.preheader84, label %.preheader85

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %58
  %indvars.iv127 = phi i64 [ %24, %.lr.ph97.preheader ], [ %indvars.iv.next128, %58 ]
  %indvars.iv.next128 = add nsw i64 %indvars.iv127, -1
  %42 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %indvars.iv.next128
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = getelementptr inbounds [500001 x i32], ptr @eq, i64 0, i64 %indvars.iv.next128
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sext i32 %43 to i64
  %47 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %46
  store i32 %45, ptr %47, align 4, !tbaa !5
  %48 = icmp eq i32 %45, -1
  %49 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %46
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %46
  %52 = load i32, ptr %51, align 4, !tbaa !5
  br i1 %48, label %53, label %.lr.ph97._crit_edge

.lr.ph97._crit_edge:                              ; preds = %.lr.ph97
  %.pre141 = sext i32 %50 to i64
  %.pre142 = sext i32 %52 to i64
  br label %58

53:                                               ; preds = %.lr.ph97
  %54 = sext i32 %52 to i64
  %55 = getelementptr inbounds [10003 x i32], ptr @pL, i64 0, i64 %54
  store i32 %50, ptr %55, align 4, !tbaa !5
  %56 = sext i32 %50 to i64
  %57 = getelementptr inbounds [10003 x i32], ptr @pR, i64 0, i64 %56
  store i32 %52, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %.lr.ph97._crit_edge, %53
  %.pre-phi143 = phi i64 [ %.pre142, %.lr.ph97._crit_edge ], [ %54, %53 ]
  %.pre-phi = phi i64 [ %.pre141, %.lr.ph97._crit_edge ], [ %56, %53 ]
  %59 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %.pre-phi
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = getelementptr inbounds [500001 x i32], ptr @les, i64 0, i64 %indvars.iv.next128
  store i32 %60, ptr %61, align 4, !tbaa !5
  %62 = getelementptr inbounds [10003 x i32], ptr @pos, i64 0, i64 %.pre-phi143
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = getelementptr inbounds [500001 x i32], ptr @gre, i64 0, i64 %indvars.iv.next128
  store i32 %63, ptr %64, align 4, !tbaa !5
  %65 = icmp ugt i64 %indvars.iv127, 1
  br i1 %65, label %.lr.ph97, label %.preheader86, !llvm.loop !13

.preheader85:                                     ; preds = %.preheader86, %.critedge
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.critedge ], [ 1, %.preheader86 ]
  %.070105 = phi i32 [ %spec.select, %.critedge ], [ 0, %.preheader86 ]
  %.not8198 = icmp eq i32 %.070105, 0
  br i1 %.not8198, label %.critedge, label %.lr.ph100

.lr.ph100:                                        ; preds = %.preheader85
  %66 = getelementptr inbounds i32, ptr @b, i64 %indvars.iv130
  br label %69

.preheader84:                                     ; preds = %.critedge, %20, %.preheader86
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.preheader, label %._crit_edge114

69:                                               ; preds = %.lr.ph100, %74
  %.17199 = phi i32 [ %.070105, %.lr.ph100 ], [ %76, %74 ]
  %70 = sext i32 %.17199 to i64
  %71 = sub nsw i64 0, %70
  %72 = getelementptr inbounds i32, ptr %66, i64 %71
  %73 = tail call noundef zeroext i1 @_Z5matchiPi(i32 noundef %.17199, ptr noundef nonnull %72)
  br i1 %73, label %.critedge, label %74

74:                                               ; preds = %69
  %75 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %70
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %.not81 = icmp eq i32 %76, 0
  br i1 %.not81, label %.critedge, label %69, !llvm.loop !14

.critedge:                                        ; preds = %69, %74, %.preheader85
  %.171.lcssa = phi i32 [ 0, %.preheader85 ], [ 0, %74 ], [ %.17199, %69 ]
  %77 = getelementptr inbounds i32, ptr @b, i64 %indvars.iv130
  %78 = sext i32 %.171.lcssa to i64
  %79 = sub nsw i64 0, %78
  %80 = getelementptr inbounds i32, ptr %77, i64 %79
  %81 = tail call noundef zeroext i1 @_Z5matchiPi(i32 noundef %.171.lcssa, ptr noundef nonnull %80)
  %82 = zext i1 %81 to i32
  %spec.select = add nsw i32 %.171.lcssa, %82
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %83 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %indvars.iv.next131
  store i32 %spec.select, ptr %83, align 4, !tbaa !5
  %84 = load i32, ptr @m, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next131, %85
  br i1 %86, label %.preheader85, label %.preheader84, !llvm.loop !15

.preheader:                                       ; preds = %.preheader84, %.critedge2._crit_edge
  %indvars.iv133 = phi i64 [ %107, %.critedge2._crit_edge ], [ 0, %.preheader84 ]
  %.068113 = phi i32 [ %.3, %.critedge2._crit_edge ], [ 0, %.preheader84 ]
  %.not106 = icmp eq i32 %.068113, 0
  br i1 %.not106, label %.critedge2, label %.lr.ph108

.lr.ph108:                                        ; preds = %.preheader
  %87 = getelementptr inbounds i32, ptr @a, i64 %indvars.iv133
  br label %91

._crit_edge114:                                   ; preds = %.critedge2._crit_edge, %.preheader84
  %88 = load i32, ptr @cnt, align 4, !tbaa !5
  tail call void @_ZN6fastIO14Ostream_fwrite5writeEic(ptr noundef nonnull align 8 dereferenceable(24) @_ZN6fastIO7OstreamE, i32 noundef %88, i8 noundef signext 10)
  %89 = load i32, ptr @cnt, align 4, !tbaa !5
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %.lr.ph117, label %._crit_edge118

91:                                               ; preds = %.lr.ph108, %96
  %.1107 = phi i32 [ %.068113, %.lr.ph108 ], [ %98, %96 ]
  %92 = sext i32 %.1107 to i64
  %93 = sub nsw i64 0, %92
  %94 = getelementptr inbounds i32, ptr %87, i64 %93
  %95 = tail call noundef zeroext i1 @_Z5matchiPi(i32 noundef %.1107, ptr noundef nonnull %94)
  br i1 %95, label %.critedge2, label %96

96:                                               ; preds = %91
  %97 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %92
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %.not = icmp eq i32 %98, 0
  br i1 %.not, label %.critedge2, label %91, !llvm.loop !16

.critedge2:                                       ; preds = %91, %96, %.preheader
  %.1.lcssa = phi i32 [ 0, %.preheader ], [ 0, %96 ], [ %.1107, %91 ]
  %99 = getelementptr inbounds i32, ptr @a, i64 %indvars.iv133
  %100 = sext i32 %.1.lcssa to i64
  %101 = sub nsw i64 0, %100
  %102 = getelementptr inbounds i32, ptr %99, i64 %101
  %103 = tail call noundef zeroext i1 @_Z5matchiPi(i32 noundef %.1.lcssa, ptr noundef nonnull %102)
  %104 = zext i1 %103 to i32
  %spec.select83 = add nsw i32 %.1.lcssa, %104
  %105 = load i32, ptr @m, align 4, !tbaa !5
  %106 = icmp eq i32 %spec.select83, %105
  %107 = add nuw nsw i64 %indvars.iv133, 1
  br i1 %106, label %108, label %.critedge2._crit_edge

108:                                              ; preds = %.critedge2
  %109 = trunc nuw nsw i64 %107 to i32
  %110 = sub i32 %109, %spec.select83
  %111 = load i32, ptr @cnt, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr @cnt, align 4, !tbaa !5
  %113 = sext i32 %111 to i64
  %114 = getelementptr inbounds [500001 x i32], ptr @ans, i64 0, i64 %113
  store i32 %110, ptr %114, align 4, !tbaa !5
  %115 = sext i32 %spec.select83 to i64
  %116 = getelementptr inbounds [500001 x i32], ptr @fail, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  br label %.critedge2._crit_edge

.critedge2._crit_edge:                            ; preds = %.critedge2, %108
  %.3 = phi i32 [ %117, %108 ], [ %spec.select83, %.critedge2 ]
  %118 = load i32, ptr @n, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = icmp slt i64 %107, %119
  br i1 %120, label %.preheader, label %._crit_edge114, !llvm.loop !17

._crit_edge118:                                   ; preds = %.lr.ph117, %._crit_edge114
  ret i32 0

.lr.ph117:                                        ; preds = %._crit_edge114, %.lr.ph117
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %.lr.ph117 ], [ 0, %._crit_edge114 ]
  %121 = phi i32 [ %131, %.lr.ph117 ], [ %89, %._crit_edge114 ]
  %122 = getelementptr inbounds [500001 x i32], ptr @ans, i64 0, i64 %indvars.iv136
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  %125 = add nsw i32 %121, -1
  %126 = zext i32 %125 to i64
  %127 = icmp eq i64 %indvars.iv136, %126
  %128 = zext i1 %127 to i64
  %129 = getelementptr inbounds [3 x i8], ptr @.str, i64 0, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !18
  tail call void @_ZN6fastIO14Ostream_fwrite5writeEic(ptr noundef nonnull align 8 dereferenceable(24) @_ZN6fastIO7OstreamE, i32 noundef %124, i8 noundef signext %130)
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %131 = load i32, ptr @cnt, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next137, %132
  br i1 %133, label %.lr.ph117, label %._crit_edge118, !llvm.loop !19
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5matchiPi(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6fastIO14Ostream_fwrite5writeEic(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i8 noundef signext) local_unnamed_addr #4 align 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 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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" }

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

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


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