; LLVM IR from tangjz/acm-icpc :: hdu (6353)

; 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.Edge = type { i32, i32 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@lnk = external dso_local global [100001 x i32], align 16
@rdep = external dso_local global [100001 x i32], align 16
@mx = external dso_local global i32, align 4
@rfa = external dso_local global [17 x [100001 x i32]], align 16
@e = external dso_local global [200003 x %struct.Edge], align 16
@ban = external dso_local global [100001 x i8], align 16
@tot = external dso_local global i32, align 4
@fa = external dso_local global [100001 x i32], align 16
@dep = external dso_local global [100001 x i32], align 16
@ptot = external dso_local global i32, align 4
@pool = external dso_local global [3400035 x i32], align 16
@tail = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3bfsi(i32 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5buildii(i32 noundef, i32 noundef) #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: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryiii(i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3lcaii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Edge, align 4
  %6 = alloca %struct.Edge, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @t)
  br label %19

19:                                               ; preds = %231, %0
  %20 = load i32, ptr @t, align 4, !tbaa !5
  %21 = add nsw i32 %20, -1
  store i32 %21, ptr @t, align 4, !tbaa !5
  %22 = icmp ne i32 %20, 0
  br i1 %22, label %23, label %232

23:                                               ; preds = %19
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @n, ptr noundef @m)
  store i32 0, ptr @tot, align 4, !tbaa !5
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = mul i64 %26, 4
  call void @llvm.memset.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @lnk, i64 1), i8 -1, i64 %27, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %65, %23
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %68

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %3, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %35 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 0
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  store i32 %39, ptr %35, align 4, !tbaa !9
  %40 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 1
  %41 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %41, ptr %40, align 4, !tbaa !11
  %42 = load i32, ptr @tot, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %43
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %45 = load i32, ptr @tot, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr @tot, align 4, !tbaa !5
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %48
  store i32 %45, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %50 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 0
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  store i32 %54, ptr %50, align 4, !tbaa !9
  %55 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 1
  %56 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %56, ptr %55, align 4, !tbaa !11
  %57 = load i32, ptr @tot, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %60 = load i32, ptr @tot, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr @tot, align 4, !tbaa !5
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %63
  store i32 %60, ptr %64, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %65

65:                                               ; preds = %33
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %2, align 4, !tbaa !5
  br label %28, !llvm.loop !13

68:                                               ; preds = %32
  %69 = load i32, ptr @n, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = mul i64 %70, 1
  call void @llvm.memset.p0.i64(ptr align 1 getelementptr inbounds (i8, ptr @ban, i64 1), i8 0, i64 %71, i1 false)
  store i32 0, ptr getelementptr inbounds ([100001 x i32], ptr @dep, i64 0, i64 1), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds ([100001 x i32], ptr @fa, i64 0, i64 1), align 4, !tbaa !5
  call void @_Z3bfsi(i32 noundef 1)
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = mul i64 %73, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @rdep, i64 1), ptr align 4 getelementptr inbounds (i32, ptr @dep, i64 1), i64 %74, i1 false)
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = mul i64 %76, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 getelementptr inbounds (i32, ptr @rfa, i64 1), ptr align 4 getelementptr inbounds (i32, ptr @fa, i64 1), i64 %77, i1 false)
  store i32 1, ptr @mx, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %115, %68
  %79 = load i32, ptr @mx, align 4, !tbaa !5
  %80 = shl i32 1, %79
  %81 = load i32, ptr @n, align 4, !tbaa !5
  %82 = icmp sle i32 %80, %81
  br i1 %82, label %83, label %118

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

84:                                               ; preds = %111, %83
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = icmp sle i32 %85, %86
  br i1 %87, label %89, label %88

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

89:                                               ; preds = %84
  %90 = load i32, ptr @mx, align 4, !tbaa !5
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %92
  %94 = load i32, ptr @mx, align 4, !tbaa !5
  %95 = sub nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %96
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100001 x i32], ptr %97, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [100001 x i32], ptr %93, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load i32, ptr @mx, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %106
  %108 = load i32, ptr %7, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [100001 x i32], ptr %107, i64 0, i64 %109
  store i32 %104, ptr %110, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %89
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %7, align 4, !tbaa !5
  br label %84, !llvm.loop !15

114:                                              ; preds = %88
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr @mx, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr @mx, align 4, !tbaa !5
  br label %78, !llvm.loop !16

118:                                              ; preds = %78
  store i32 0, ptr @ptot, align 4, !tbaa !5
  store ptr @pool, ptr @tail, align 8, !tbaa !17
  call void @_Z5buildii(i32 noundef 0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %212, %118
  %120 = load i32, ptr @m, align 4, !tbaa !5
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr @m, align 4, !tbaa !5
  %122 = icmp ne i32 %120, 0
  br i1 %122, label %123, label %231

123:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %124 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %127 = add nsw i32 %125, %126
  %128 = load i32, ptr @n, align 4, !tbaa !5
  %129 = srem i32 %127, %128
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %9, align 4, !tbaa !5
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = add nsw i32 %131, %132
  %134 = load i32, ptr @n, align 4, !tbaa !5
  %135 = srem i32 %133, %134
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %10, align 4, !tbaa !5
  %137 = load i32, ptr %11, align 4, !tbaa !5
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = add nsw i32 %137, %138
  %140 = load i32, ptr @n, align 4, !tbaa !5
  %141 = srem i32 %139, %140
  store i32 %141, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %142 = load i32, ptr %9, align 4, !tbaa !5
  %143 = load i32, ptr %10, align 4, !tbaa !5
  %144 = call noundef i32 @_Z3lcaii(i32 noundef %142, i32 noundef %143)
  store i32 %144, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = add nsw i32 %148, %152
  %154 = load i32, ptr %12, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = shl i32 %157, 1
  %159 = sub nsw i32 %153, %158
  store i32 %159, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = icmp slt i32 %163, %167
  br i1 %168, label %169, label %171

169:                                              ; preds = %123
  %170 = load i32, ptr %10, align 4, !tbaa !5
  br label %173

171:                                              ; preds = %123
  %172 = load i32, ptr %9, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %171, %169
  %174 = phi i32 [ %170, %169 ], [ %172, %171 ]
  store i32 %174, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %175 = load i32, ptr %13, align 4, !tbaa !5
  %176 = ashr i32 %175, 1
  store i32 %176, ptr %16, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %196, %173
  %178 = load i32, ptr %16, align 4, !tbaa !5
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %181, label %180

180:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %201

181:                                              ; preds = %177
  %182 = load i32, ptr %16, align 4, !tbaa !5
  %183 = and i32 %182, 1
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %194

185:                                              ; preds = %181
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %187
  %189 = load i32, ptr %14, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [100001 x i32], ptr %188, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !5
  store i32 %192, ptr %14, align 4, !tbaa !5
  %193 = icmp ne i32 %192, 0
  br label %194

194:                                              ; preds = %185, %181
  %195 = phi i1 [ false, %181 ], [ %193, %185 ]
  br label %196

196:                                              ; preds = %194
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %15, align 4, !tbaa !5
  %199 = load i32, ptr %16, align 4, !tbaa !5
  %200 = ashr i32 %199, 1
  store i32 %200, ptr %16, align 4, !tbaa !5
  br label %177, !llvm.loop !19

201:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = and i32 %202, 1
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %210

205:                                              ; preds = %201
  %206 = load i32, ptr %14, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [100001 x i32], ptr @rfa, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  br label %212

210:                                              ; preds = %201
  %211 = load i32, ptr %14, align 4, !tbaa !5
  br label %212

212:                                              ; preds = %210, %205
  %213 = phi i32 [ %209, %205 ], [ %211, %210 ]
  store i32 %213, ptr %17, align 4, !tbaa !5
  %214 = load i32, ptr %9, align 4, !tbaa !5
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = call noundef i32 @_Z5queryii(i32 noundef %214, i32 noundef %215)
  %217 = load i32, ptr %10, align 4, !tbaa !5
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = call noundef i32 @_Z5queryii(i32 noundef %217, i32 noundef %218)
  %220 = add nsw i32 %216, %219
  %221 = load i32, ptr %14, align 4, !tbaa !5
  %222 = load i32, ptr %17, align 4, !tbaa !5
  %223 = load i32, ptr %11, align 4, !tbaa !5
  %224 = load i32, ptr %13, align 4, !tbaa !5
  %225 = add nsw i32 %224, 1
  %226 = ashr i32 %225, 1
  %227 = sub nsw i32 %223, %226
  %228 = call noundef i32 @_Z5queryiii(i32 noundef %221, i32 noundef %222, i32 noundef %227)
  %229 = sub nsw i32 %220, %228
  store i32 %229, ptr %8, align 4, !tbaa !5
  %230 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %229)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %119, !llvm.loop !20

231:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %19, !llvm.loop !21

232:                                              ; preds = %19
  ret i32 0
}

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

; 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) #6

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

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


; 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.Edge = type { i32, i32 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@lnk = external dso_local local_unnamed_addr global [100001 x i32], align 16
@rdep = external dso_local local_unnamed_addr global [100001 x i32], align 16
@mx = external dso_local local_unnamed_addr global i32, align 4
@rfa = external dso_local local_unnamed_addr global [17 x [100001 x i32]], align 16
@e = external dso_local local_unnamed_addr global [200003 x %struct.Edge], align 16
@ban = external dso_local local_unnamed_addr global [100001 x i8], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@fa = external dso_local local_unnamed_addr global [100001 x i32], align 16
@dep = external dso_local local_unnamed_addr global [100001 x i32], align 16
@ptot = external dso_local local_unnamed_addr global i32, align 4
@pool = external dso_local global [3400035 x i32], align 16
@tail = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3bfsi(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5buildii(i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryii(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3lcaii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %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 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @t)
  %7 = load i32, ptr @t, align 4, !tbaa !5
  %8 = add nsw i32 %7, -1
  store i32 %8, ptr @t, align 4, !tbaa !5
  %.not56 = icmp eq i32 %7, 0
  br i1 %.not56, label %._crit_edge59, label %.lr.ph58

.loopexit:                                        ; preds = %108, %._crit_edge43.split
  %9 = load i32, ptr @t, align 4, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !9

.lr.ph58:                                         ; preds = %0, %.loopexit
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @n, ptr noundef nonnull @m)
  store i32 0, ptr @tot, align 4, !tbaa !5
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = shl nsw i64 %13, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @lnk, i64 4), i8 -1, i64 %14, i1 false)
  %15 = icmp sgt i32 %12, 1
  br i1 %15, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = sext i32 %37 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph58
  %.pre-phi = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %13, %.lr.ph58 ]
  call void @llvm.memset.p0.i64(ptr nonnull align 1 getelementptr inbounds (i8, ptr @ban, i64 1), i8 0, i64 %.pre-phi, i1 false)
  store i32 0, ptr getelementptr inbounds (i8, ptr @dep, i64 4), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @fa, i64 4), align 4, !tbaa !5
  call void @_Z3bfsi(i32 noundef 1)
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = shl nsw i64 %17, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @rdep, i64 4), ptr nonnull align 4 getelementptr inbounds (i8, ptr @dep, i64 4), i64 %18, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @rfa, i64 4), ptr nonnull align 4 getelementptr inbounds (i8, ptr @fa, i64 4), i64 %18, i1 false)
  %.not3141 = icmp slt i32 %16, 2
  br i1 %.not3141, label %._crit_edge43.split, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge
  %19 = zext nneg i32 %16 to i64
  %xtraiter = and i64 %19, 1
  %unroll_iter = and i64 %19, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader

.lr.ph:                                           ; preds = %.lr.ph58, %.lr.ph
  %.036 = phi i32 [ %36, %.lr.ph ], [ 1, %.lr.ph58 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr @tot, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %27
  store i32 %24, ptr %28, align 8, !tbaa !5
  %.sroa.422.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 4
  store i32 %25, ptr %.sroa.422.0..sroa_idx, align 4, !tbaa !5
  %29 = add nsw i32 %26, 1
  store i32 %26, ptr %23, align 4, !tbaa !5
  %30 = sext i32 %25 to i64
  %31 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sext i32 %29 to i64
  %34 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %33
  store i32 %32, ptr %34, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %34, i64 4
  store i32 %21, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %35 = add nsw i32 %26, 2
  store i32 %35, ptr @tot, align 4, !tbaa !5
  store i32 %29, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %36 = add nuw nsw i32 %.036, 1
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !11

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge40
  %indvars.iv64 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next65, %._crit_edge40 ]
  %39 = add nsw i64 %indvars.iv64, -1
  br label %48

._crit_edge40.unr-lcssa:                          ; preds = %48
  br i1 %lcmp.mod.not, label %._crit_edge40, label %._crit_edge40.epilog-lcssa

._crit_edge40.epilog-lcssa:                       ; preds = %._crit_edge40.unr-lcssa
  %40 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %39, i64 %indvars.iv.next.1
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %39, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %indvars.iv64, i64 %indvars.iv.next.1
  store i32 %44, ptr %45, align 4, !tbaa !5
  br label %._crit_edge40

._crit_edge40:                                    ; preds = %._crit_edge40.unr-lcssa, %._crit_edge40.epilog-lcssa
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %46 = trunc nuw nsw i64 %indvars.iv64 to i32
  %47 = shl nuw i32 2, %46
  %.not31 = icmp sgt i32 %47, %16
  br i1 %.not31, label %._crit_edge43.split.loopexit, label %.preheader, !llvm.loop !12

48:                                               ; preds = %48, %.preheader
  %indvars.iv = phi i64 [ 1, %.preheader ], [ %indvars.iv.next.1, %48 ]
  %niter = phi i64 [ 0, %.preheader ], [ %niter.next.1, %48 ]
  %49 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %39, i64 %indvars.iv
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %39, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %indvars.iv64, i64 %indvars.iv
  store i32 %53, ptr %54, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %39, i64 %indvars.iv.next
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %39, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %indvars.iv64, i64 %indvars.iv.next
  store i32 %59, ptr %60, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge40.unr-lcssa, label %48, !llvm.loop !13

._crit_edge43.split.loopexit:                     ; preds = %._crit_edge40
  %61 = trunc nsw i64 %indvars.iv.next65 to i32
  br label %._crit_edge43.split

._crit_edge43.split:                              ; preds = %._crit_edge43.split.loopexit, %._crit_edge
  %storemerge.lcssa = phi i32 [ 1, %._crit_edge ], [ %61, %._crit_edge43.split.loopexit ]
  store i32 %storemerge.lcssa, ptr @mx, align 4, !tbaa !5
  store i32 0, ptr @ptot, align 4, !tbaa !5
  store ptr @pool, ptr @tail, align 8, !tbaa !14
  call void @_Z5buildii(i32 noundef 0, i32 noundef 1)
  %62 = load i32, ptr @m, align 4, !tbaa !5
  %63 = add nsw i32 %62, -1
  store i32 %63, ptr @m, align 4, !tbaa !5
  %.not3252 = icmp eq i32 %62, 0
  br i1 %.not3252, label %.loopexit, label %.lr.ph55

.lr.ph55:                                         ; preds = %._crit_edge43.split, %108
  %.02953 = phi i32 [ %121, %108 ], [ 0, %._crit_edge43.split ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %64 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = add nsw i32 %65, %.02953
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = srem i32 %66, %67
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %3, align 4, !tbaa !5
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = add nsw i32 %70, %.02953
  %72 = srem i32 %71, %67
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %4, align 4, !tbaa !5
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = add nsw i32 %74, %.02953
  %76 = srem i32 %75, %67
  store i32 %76, ptr %5, align 4, !tbaa !5
  %77 = call noundef i32 @_Z3lcaii(i32 noundef %69, i32 noundef %73)
  %78 = load i32, ptr %3, align 4
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = load i32, ptr %4, align 4
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = add nsw i32 %85, %81
  %87 = sext i32 %77 to i64
  %88 = getelementptr inbounds [100001 x i32], ptr @rdep, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = shl i32 %89, 1
  %91 = sub nsw i32 %86, %90
  %92 = icmp slt i32 %81, %85
  %93 = select i1 %92, i32 %82, i32 %78
  %94 = ashr i32 %91, 1
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph49, label %._crit_edge50

._crit_edge50:                                    ; preds = %102, %.lr.ph55
  %.027.lcssa = phi i32 [ %93, %.lr.ph55 ], [ %.1, %102 ]
  %96 = and i32 %86, 1
  %.not33 = icmp eq i32 %96, 0
  br i1 %.not33, label %108, label %104

.lr.ph49:                                         ; preds = %.lr.ph55, %102
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %102 ], [ 0, %.lr.ph55 ]
  %.02547 = phi i32 [ %103, %102 ], [ %94, %.lr.ph55 ]
  %.02745 = phi i32 [ %.1, %102 ], [ %93, %.lr.ph55 ]
  %97 = and i32 %.02547, 1
  %.not34 = icmp eq i32 %97, 0
  br i1 %.not34, label %102, label %98

98:                                               ; preds = %.lr.ph49
  %99 = sext i32 %.02745 to i64
  %100 = getelementptr inbounds [17 x [100001 x i32]], ptr @rfa, i64 0, i64 %indvars.iv67, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %.lr.ph49, %98
  %.1 = phi i32 [ %101, %98 ], [ %.02745, %.lr.ph49 ]
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %103 = lshr i32 %.02547, 1
  %.not60 = icmp ult i32 %.02547, 2
  br i1 %.not60, label %._crit_edge50, label %.lr.ph49, !llvm.loop !16

104:                                              ; preds = %._crit_edge50
  %105 = sext i32 %.027.lcssa to i64
  %106 = getelementptr inbounds [100001 x i32], ptr @rfa, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %._crit_edge50, %104
  %109 = phi i32 [ %107, %104 ], [ %.027.lcssa, %._crit_edge50 ]
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = call noundef i32 @_Z5queryii(i32 noundef %78, i32 noundef %110)
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = call noundef i32 @_Z5queryii(i32 noundef %112, i32 noundef %113)
  %115 = add nsw i32 %114, %111
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = add nsw i32 %91, 1
  %118 = ashr i32 %117, 1
  %119 = sub nsw i32 %116, %118
  %120 = call noundef i32 @_Z5queryiii(i32 noundef %.027.lcssa, i32 noundef %109, i32 noundef %119)
  %121 = sub i32 %115, %120
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %121)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %123 = load i32, ptr @m, align 4, !tbaa !5
  %124 = add nsw i32 %123, -1
  store i32 %124, ptr @m, align 4, !tbaa !5
  %.not32 = icmp eq i32 %123, 0
  br i1 %.not32, label %.loopexit, label %.lr.ph55, !llvm.loop !17

._crit_edge59:                                    ; preds = %.loopexit, %0
  ret i32 0
}

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

; 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) #6

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

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

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


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